From 3a2150d8226997c63355bc33896c359b144cad00 Mon Sep 17 00:00:00 2001 From: CyberMind-FR Date: Wed, 24 Dec 2025 17:26:58 +0100 Subject: [PATCH] fix: disable GDB in toolchain to resolve build failures MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The firmware builds were failing during toolchain compilation due to GDB (GNU debugger) missing testsuite/Makefile. This is a known issue with OpenWrt's GDB toolchain component. Error: Missing testsuite/Makefile make[7]: *** [Makefile:1992: subdir_do] Error 1 ERROR: toolchain/gdb failed to build Solution: - Disable GDB in toolchain with '# CONFIG_GDB is not set' - GDB is not needed for building firmware images - Only useful for on-device debugging (can be installed separately) - Enable BUILD_LOG for better debugging This fix applies to both: - Local firmware builds (local-build.sh) - GitHub Actions firmware builds (build-secubox-images.yml) Impact: - Toolchain will compile successfully - Firmware images will be generated - Build time remains the same (1-2 hours for full build) - No impact on firmware functionality Tested with: - OpenWrt 23.05.5 - Target: mvebu/cortexa72 (MOCHAbin) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- .github/workflows/build-secubox-images.yml | 6 +++++- secubox-tools/local-build.sh | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-secubox-images.yml b/.github/workflows/build-secubox-images.yml index 4bb82318..02f35a52 100644 --- a/.github/workflows/build-secubox-images.yml +++ b/.github/workflows/build-secubox-images.yml @@ -236,7 +236,11 @@ jobs: CONFIG_TARGET_ROOTFS_EXT4FS=y CONFIG_TARGET_KERNEL_PARTSIZE=32 CONFIG_TARGET_ROOTFS_PARTSIZE=512 - + + # Disable GDB in toolchain (fixes build issues) + # CONFIG_GDB is not set + CONFIG_BUILD_LOG=y + # Base packages CONFIG_PACKAGE_luci=y CONFIG_PACKAGE_luci-ssl=y diff --git a/secubox-tools/local-build.sh b/secubox-tools/local-build.sh index 06a57a6d..abf7d081 100755 --- a/secubox-tools/local-build.sh +++ b/secubox-tools/local-build.sh @@ -937,6 +937,10 @@ CONFIG_TARGET_ROOTFS_EXT4FS=y CONFIG_TARGET_KERNEL_PARTSIZE=32 CONFIG_TARGET_ROOTFS_PARTSIZE=512 +# Disable GDB in toolchain (fixes build issues) +# CONFIG_GDB is not set +CONFIG_BUILD_LOG=y + # Base packages CONFIG_PACKAGE_luci=y CONFIG_PACKAGE_luci-ssl=y