Applying /builder/shared-workdir/build/sdk/feeds/packages/net/lora-gateway-hal/patches/0001-add-cmake-support.patch using plaintext: patching file CMakeLists.txt patching file cmake/loragw-config.cmake patching file libloragw/CMakeLists.txt patching file libloragw/loragw.pc.in patching file libloragw/loragw_config.h.in patching file util_lbt_test/CMakeLists.txt patching file util_pkt_logger/CMakeLists.txt patching file util_spectral_scan/CMakeLists.txt patching file util_spi_stress/CMakeLists.txt patching file util_tx_continuous/CMakeLists.txt patching file util_tx_test/CMakeLists.txt Applying /builder/shared-workdir/build/sdk/feeds/packages/net/lora-gateway-hal/patches/0002-add-preprocessing-for-SPI_DEV_PATH-and-SPI_SPEED.patch using plaintext: patching file libloragw/src/loragw_spi.native.c Applying /builder/shared-workdir/build/sdk/feeds/packages/net/lora-gateway-hal/patches/0003-add-SPI_DEV_PATH-and-SPI_SPEED-to-cmake.patch using plaintext: patching file libloragw/CMakeLists.txt CMake Deprecation Warning at CMakeLists.txt:2 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. Not searching for unused variables given on the command line. -- The C compiler identification is GNU 12.3.0 -- The CXX compiler identification is GNU 12.3.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /builder/shared-workdir/build/sdk/staging_dir/toolchain-mipsel_24kc+24kf_gcc-12.3.0_musl/bin/mipsel-openwrt-linux-musl-gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /builder/shared-workdir/build/sdk/staging_dir/toolchain-mipsel_24kc+24kf_gcc-12.3.0_musl/bin/mipsel-openwrt-linux-musl-g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Build with debug AUX: OFF -- Build with debug SPI: OFF -- Build with debug REG: OFF -- Build with debug HAL: OFF -- Build with debug GPIO: OFF -- Build with debug LBT: OFF -- Build with debug GPS: OFF -- Build with SPI_DEV_PATH: /dev/spidev0.0 -- Build with SPI_SPEED: 8000000 -- Configuring done (1.7s) -- Generating done (0.1s) -- Build files have been written to: /builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc+24kf_musl/lora_gateway-5.0.1 ninja: Entering directory `/builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc+24kf_musl/lora_gateway-5.0.1' [1/33] Building C object libloragw/CMakeFiles/loragw.dir/src/loragw_aux.c.o [2/33] Building C object libloragw/CMakeFiles/loragw.dir/src/loragw_fpga.c.o [3/33] Building C object libloragw/CMakeFiles/loragw.dir/src/loragw_gps.c.o [4/33] Building C object libloragw/CMakeFiles/loragw.dir/src/loragw_hal.c.o [5/33] Building C object libloragw/CMakeFiles/loragw.dir/src/loragw_lbt.c.o [6/33] Building C object libloragw/CMakeFiles/loragw.dir/src/loragw_radio.c.o [7/33] Building C object libloragw/CMakeFiles/loragw.dir/src/loragw_reg.c.o [8/33] Building C object libloragw/CMakeFiles/loragw.dir/src/loragw_spi.native.c.o [9/33] Linking C shared library libloragw/libloragw.so.0 [10/33] Creating library symlink libloragw/libloragw.so [11/33] Building C object libloragw/CMakeFiles/test_loragw_spi.dir/tst/test_loragw_spi.c.o [12/33] Linking C executable libloragw/test_loragw_spi [13/33] Building C object libloragw/CMakeFiles/test_loragw_gps.dir/tst/test_loragw_gps.c.o [14/33] Linking C executable libloragw/test_loragw_gps [15/33] Building C object libloragw/CMakeFiles/test_loragw_reg.dir/tst/test_loragw_reg.c.o [16/33] Linking C executable libloragw/test_loragw_reg [17/33] Building C object libloragw/CMakeFiles/test_loragw_hal.dir/tst/test_loragw_hal.c.o [18/33] Linking C executable libloragw/test_loragw_hal [19/33] Building C object libloragw/CMakeFiles/test_loragw_cal.dir/tst/test_loragw_cal.c.o [20/33] Linking C executable libloragw/test_loragw_cal [21/33] Building C object util_lbt_test/CMakeFiles/util_lbt_test.dir/src/util_lbt_test.c.o [22/33] Linking C executable bin/util_lbt_test [23/33] Building C object util_pkt_logger/CMakeFiles/util_pkt_logger.dir/src/util_pkt_logger.c.o /builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc+24kf_musl/lora_gateway-5.0.1/util_pkt_logger/src/util_pkt_logger.c: In function 'main': /builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc+24kf_musl/lora_gateway-5.0.1/util_pkt_logger/src/util_pkt_logger.c:489:58: warning: '%02i' directive writing between 2 and 11 bytes into a region of size between 0 and 16 [-Wformat-overflow=] 489 | sprintf(fetch_timestamp,"%04i-%02i-%02i %02i:%02i:%02i.%03liZ",(x->tm_year)+1900,(x->tm_mon)+1,x->tm_mday,x->tm_hour,x->tm_min,x->tm_sec,(fetch_time.tv_nsec)/1000000); /* ISO 8601 format */ | ^~~~ /builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc+24kf_musl/lora_gateway-5.0.1/util_pkt_logger/src/util_pkt_logger.c:489:37: note: directive argument in the range [-2147, 2147] 489 | sprintf(fetch_timestamp,"%04i-%02i-%02i %02i:%02i:%02i.%03liZ",(x->tm_year)+1900,(x->tm_mon)+1,x->tm_mday,x->tm_hour,x->tm_min,x->tm_sec,(fetch_time.tv_nsec)/1000000); /* ISO 8601 format */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc+24kf_musl/lora_gateway-5.0.1/util_pkt_logger/src/util_pkt_logger.c:489:13: note: 'sprintf' output between 25 and 79 bytes into a destination of size 30 489 | sprintf(fetch_timestamp,"%04i-%02i-%02i %02i:%02i:%02i.%03liZ",(x->tm_year)+1900,(x->tm_mon)+1,x->tm_mday,x->tm_hour,x->tm_min,x->tm_sec,(fetch_time.tv_nsec)/1000000); /* ISO 8601 format */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [24/33] Building C object util_pkt_logger/CMakeFiles/util_pkt_logger.dir/src/parson.c.o [25/33] Linking C executable bin/util_pkt_logger FAILED: bin/util_pkt_logger : && /builder/shared-workdir/build/sdk/staging_dir/toolchain-mipsel_24kc+24kf_gcc-12.3.0_musl/bin/mipsel-openwrt-linux-musl-gcc -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -ffile-prefix-map=/builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc+24kf_musl/lora_gateway-5.0.1=lora_gateway-5.0.1 -mips16 -minterlink-mips16 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DNDEBUG -L/builder/shared-workdir/build/sdk/staging_dir/toolchain-mipsel_24kc+24kf_gcc-12.3.0_musl/usr/lib -L/builder/shared-workdir/build/sdk/staging_dir/toolchain-mipsel_24kc+24kf_gcc-12.3.0_musl/lib -fuse-ld=bfd -znow -zrelro -rdynamic util_pkt_logger/CMakeFiles/util_pkt_logger.dir/src/util_pkt_logger.c.o util_pkt_logger/CMakeFiles/util_pkt_logger.dir/src/parson.c.o -o bin/util_pkt_logger libloragw/libloragw.so.0 -lm && : /builder/shared-workdir/build/sdk/staging_dir/toolchain-mipsel_24kc+24kf_gcc-12.3.0_musl/bin/../lib/gcc/mipsel-openwrt-linux-musl/12.3.0/../../../../mipsel-openwrt-linux-musl/bin/ld.bfd: BFD (GNU Binutils) 2.40.0 assertion fail elfxx-mips.c:11278 collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. make[3]: *** [Makefile:96: /builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc+24kf_musl/lora_gateway-5.0.1/.built] Error 1 time: package/feeds/packages/lora-gateway-hal/compile#7.82#1.97#11.46