Unable to build buildroot with some options enabled in config file.
Posted: 2025-10-01 8:01
Hello! I am using SDK 250815,
and then I add gdb server in Target packages (build.sh buildroot-config) build failed with error.
2025-10-01T10:00:00 CC libz_a-gzread.o
2025-10-01T10:00:00 checking for sys/stat.h... In file included from [01m[K/home/inter/Lyra-sdk/buildroot/output/rockchip_rk3506_luckfox/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/features.h:394[m[K,
2025-10-01T10:00:00 from [01m[K/home/inter/Lyra-sdk/buildroot/output/rockchip_rk3506_luckfox/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/bits/libc-header-start.h:33[m[K,
2025-10-01T10:00:00 from [01m[K/home/inter/Lyra-sdk/buildroot/output/rockchip_rk3506_luckfox/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/stdio.h:27[m[K,
2025-10-01T10:00:00 from [01m[K../../zlib/gzguts.h:21[m[K,
2025-10-01T10:00:00 from [01m[K../../zlib/gzread.c:6[m[K:
2025-10-01T10:00:00 [01m[K/home/inter/Lyra-sdk/buildroot/output/rockchip_rk3506_luckfox/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/features-time64.h:26:5:[m[K [01;31m[Kerror: [m[K#error "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64"
2025-10-01T10:00:00 26 | # [01;31m[Kerror[m[K "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64"
2025-10-01T10:00:00 | [01;31m[K^~~~~[m[K
2025-10-01T10:00:00 make[4]: *** [Makefile:660: libz_a-gzread.o] Error 1
2025-10-01T10:00:00 make[3]: *** [Makefile:10091: all-zlib] Error 2
2025-10-01T10:00:00 make[3]: *** Waiting for unfinished jobs....
and then I add gdb server in Target packages (build.sh buildroot-config) build failed with error.
2025-10-01T10:00:00 CC libz_a-gzread.o
2025-10-01T10:00:00 checking for sys/stat.h... In file included from [01m[K/home/inter/Lyra-sdk/buildroot/output/rockchip_rk3506_luckfox/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/features.h:394[m[K,
2025-10-01T10:00:00 from [01m[K/home/inter/Lyra-sdk/buildroot/output/rockchip_rk3506_luckfox/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/bits/libc-header-start.h:33[m[K,
2025-10-01T10:00:00 from [01m[K/home/inter/Lyra-sdk/buildroot/output/rockchip_rk3506_luckfox/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/stdio.h:27[m[K,
2025-10-01T10:00:00 from [01m[K../../zlib/gzguts.h:21[m[K,
2025-10-01T10:00:00 from [01m[K../../zlib/gzread.c:6[m[K:
2025-10-01T10:00:00 [01m[K/home/inter/Lyra-sdk/buildroot/output/rockchip_rk3506_luckfox/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/features-time64.h:26:5:[m[K [01;31m[Kerror: [m[K#error "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64"
2025-10-01T10:00:00 26 | # [01;31m[Kerror[m[K "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64"
2025-10-01T10:00:00 | [01;31m[K^~~~~[m[K
2025-10-01T10:00:00 make[4]: *** [Makefile:660: libz_a-gzread.o] Error 1
2025-10-01T10:00:00 make[3]: *** [Makefile:10091: all-zlib] Error 2
2025-10-01T10:00:00 make[3]: *** Waiting for unfinished jobs....