From baf285e1ecf8d9eb8d01427d256fb45cb7dac1cb Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Wed, 27 May 2026 23:00:16 +0200 Subject: [PATCH] package/odhcp6c: needs gcc >= 10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes build errors seen with Gitlab pipeline and this defconfig: support/config-fragments/autobuild/bootlin-aarch64-glibc-old.config https://gitlab.com/bkuhls/buildroot/-/jobs/14570080455 aarch64-linux-gcc.br_real: error: unrecognized command line option ‘-Wimplicit-fallthrough=5’; did you mean ‘-Wno-fallthrough’? aarch64-linux-gcc.br_real: error: unrecognized command line option ‘-Wshadow=local’; did you mean ‘-Wshadow-ivar’? Removing all the unrecognized command line options from CMakeLists.txt showed more build errors during compile: output/build/odhcp6c-24485bb4b35ab84c17c2e87bd561d026d4c15c00/src/odhcp6c.h:47:46: error: expected ‘)’ before ‘__VA_OPT__’ #define error(fmt, ...) __iflog(LOG_ERR, fmt __VA_OPT__(, ) __VA_ARGS__) Another pipeline with gcc 9 showed other errors: https://gitlab.com/bkuhls/buildroot/-/jobs/14570080479 /builds/bkuhls/buildroot/br-test-pkg/br-arm-basic/build/odhcp6c-24485bb4b35ab84c17c2e87bd561d026d4c15c00/src/dhcpv6.c:1126:4: error: a label can only be part of a statement and a declaration is not a statement 1126 | struct dhcpv6_auth *r = (void*)&odata[-DHCPV6_OPT_HDR_SIZE]; so we raise the minimum gcc version to 10. Signed-off-by: Bernd Kuhls Signed-off-by: Arnout Vandecappelle (cherry picked from commit f8ea3ae2a51f06310f414d89aa382bbf90a7ef82) Signed-off-by: Thomas Perale --- package/odhcp6c/Config.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package/odhcp6c/Config.in b/package/odhcp6c/Config.in index 83b38755c3..0acaff7fed 100644 --- a/package/odhcp6c/Config.in +++ b/package/odhcp6c/Config.in @@ -2,6 +2,7 @@ config BR2_PACKAGE_ODHCP6C bool "odhcp6c" depends on BR2_USE_MMU # fork() depends on !BR2_STATIC_LIBS # libubox + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_10 depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libubox -> json-c select BR2_PACKAGE_LIBUBOX help @@ -10,7 +11,7 @@ config BR2_PACKAGE_ODHCP6C https://git.openwrt.org/project/odhcp6c.git -comment "odhcp6c needs a toolchain w/ dynamic library" +comment "odhcp6c needs a toolchain w/ dynamic library, gcc >= 10" depends on BR2_USE_MMU - depends on BR2_STATIC_LIBS + depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_GCC_AT_LEAST_10 depends on BR2_TOOLCHAIN_HAS_SYNC_4