Determining if the newlocale exist failed with the following output: Change Dir: /home/buildroot/autobuild/instance-3/output-1/build/libiio-0.23/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make cmTC_2ac73/fast && make[1]: Entering directory '/home/buildroot/autobuild/instance-3/output-1/build/libiio-0.23/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_2ac73.dir/build.make CMakeFiles/cmTC_2ac73.dir/build make[2]: Entering directory '/home/buildroot/autobuild/instance-3/output-1/build/libiio-0.23/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_2ac73.dir/CheckSymbolExists.c.o /home/buildroot/autobuild/instance-3/output-1/host/bin/arceb-buildroot-linux-uclibc-gcc --sysroot=/home/buildroot/autobuild/instance-3/output-1/host/arceb-buildroot-linux-uclibc/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O0 -g0 -static -fvisibility=hidden -Wall -Wextra -Wno-unused-parameter -Wpedantic -Wshadow -DNDEBUG -o CMakeFiles/cmTC_2ac73.dir/CheckSymbolExists.c.o -c /home/buildroot/autobuild/instance-3/output-1/build/libiio-0.23/CMakeFiles/CMakeTmp/CheckSymbolExists.c /home/buildroot/autobuild/instance-3/output-1/build/libiio-0.23/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function 'main': /home/buildroot/autobuild/instance-3/output-1/build/libiio-0.23/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: 'newlocale' undeclared (first use in this function); did you mean 'setlocale'? 8 | return ((int*)(&newlocale))[argc]; | ^~~~~~~~~ | setlocale /home/buildroot/autobuild/instance-3/output-1/build/libiio-0.23/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: note: each undeclared identifier is reported only once for each function it appears in /home/buildroot/autobuild/instance-3/output-1/build/libiio-0.23/CMakeFiles/CMakeTmp/CheckSymbolExists.c:4:14: warning: parameter 'argc' set but not used [-Wunused-but-set-parameter] 4 | int main(int argc, char** argv) | ~~~~^~~~ CMakeFiles/cmTC_2ac73.dir/build.make:84: recipe for target 'CMakeFiles/cmTC_2ac73.dir/CheckSymbolExists.c.o' failed make[2]: *** [CMakeFiles/cmTC_2ac73.dir/CheckSymbolExists.c.o] Error 1 make[2]: Leaving directory '/home/buildroot/autobuild/instance-3/output-1/build/libiio-0.23/CMakeFiles/CMakeTmp' Makefile:140: recipe for target 'cmTC_2ac73/fast' failed make[1]: *** [cmTC_2ac73/fast] Error 2 make[1]: Leaving directory '/home/buildroot/autobuild/instance-3/output-1/build/libiio-0.23/CMakeFiles/CMakeTmp' File /home/buildroot/autobuild/instance-3/output-1/build/libiio-0.23/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include int main(int argc, char** argv) { (void)argv; #ifndef newlocale return ((int*)(&newlocale))[argc]; #else (void)argc; return 0; #endif } Determining if the libusb_get_version exist failed with the following output: Change Dir: /home/buildroot/autobuild/instance-3/output-1/build/libiio-0.23/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make cmTC_1456a/fast && make[1]: Entering directory '/home/buildroot/autobuild/instance-3/output-1/build/libiio-0.23/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_1456a.dir/build.make CMakeFiles/cmTC_1456a.dir/build make[2]: Entering directory '/home/buildroot/autobuild/instance-3/output-1/build/libiio-0.23/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_1456a.dir/CheckSymbolExists.c.o /home/buildroot/autobuild/instance-3/output-1/host/bin/arceb-buildroot-linux-uclibc-gcc --sysroot=/home/buildroot/autobuild/instance-3/output-1/host/arceb-buildroot-linux-uclibc/sysroot -I/home/buildroot/autobuild/instance-3/output-1/host/arceb-buildroot-linux-uclibc/sysroot/usr/include/libusb-1.0 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O0 -g0 -static -fvisibility=hidden -Wall -Wextra -Wno-unused-parameter -Wpedantic -Wshadow -DNDEBUG -o CMakeFiles/cmTC_1456a.dir/CheckSymbolExists.c.o -c /home/buildroot/autobuild/instance-3/output-1/build/libiio-0.23/CMakeFiles/CMakeTmp/CheckSymbolExists.c /home/buildroot/autobuild/instance-3/output-1/build/libiio-0.23/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function 'main': /home/buildroot/autobuild/instance-3/output-1/build/libiio-0.23/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:11: warning: ISO C forbids conversion of function pointer to object pointer type [-Wpedantic] 8 | return ((int*)(&libusb_get_version))[argc]; | ^ Linking C executable cmTC_1456a /home/buildroot/autobuild/instance-3/output-1/host/bin/cmake -E cmake_link_script CMakeFiles/cmTC_1456a.dir/link.txt --verbose=1 /home/buildroot/autobuild/instance-3/output-1/host/bin/arceb-buildroot-linux-uclibc-gcc --sysroot=/home/buildroot/autobuild/instance-3/output-1/host/arceb-buildroot-linux-uclibc/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O0 -g0 -static -fvisibility=hidden -Wall -Wextra -Wno-unused-parameter -Wpedantic -Wshadow -DNDEBUG -static CMakeFiles/cmTC_1456a.dir/CheckSymbolExists.c.o -o cmTC_1456a /home/buildroot/autobuild/instance-3/output-1/host/arceb-buildroot-linux-uclibc/sysroot/usr/lib/libusb-1.0.a /home/buildroot/autobuild/instance-3/output-1/host/lib/gcc/arceb-buildroot-linux-uclibc/10.2.0/../../../../arceb-buildroot-linux-uclibc/bin/ld: /home/buildroot/autobuild/instance-3/output-1/host/arceb-buildroot-linux-uclibc/sysroot/usr/lib/libusb-1.0.a(core.o): in function `libusb_ref_device': core.c:(.text+0x107e): undefined reference to `__atomic_fetch_add_4' /home/buildroot/autobuild/instance-3/output-1/host/lib/gcc/arceb-buildroot-linux-uclibc/10.2.0/../../../../arceb-buildroot-linux-uclibc/bin/ld: core.c:(.text+0x107e): undefined reference to `__atomic_fetch_add_4' /home/buildroot/autobuild/instance-3/output-1/host/lib/gcc/arceb-buildroot-linux-uclibc/10.2.0/../../../../arceb-buildroot-linux-uclibc/bin/ld: /home/buildroot/autobuild/instance-3/output-1/host/arceb-buildroot-linux-uclibc/sysroot/usr/lib/libusb-1.0.a(core.o): in function `libusb_unref_device': core.c:(.text+0x10f4): undefined reference to `__atomic_fetch_add_4' /home/buildroot/autobuild/instance-3/output-1/host/lib/gcc/arceb-buildroot-linux-uclibc/10.2.0/../../../../arceb-buildroot-linux-uclibc/bin/ld: core.c:(.text+0x10f4): undefined reference to `__atomic_fetch_add_4' collect2: error: ld returned 1 exit status CMakeFiles/cmTC_1456a.dir/build.make:106: recipe for target 'cmTC_1456a' failed make[2]: *** [cmTC_1456a] Error 1 make[2]: Leaving directory '/home/buildroot/autobuild/instance-3/output-1/build/libiio-0.23/CMakeFiles/CMakeTmp' Makefile:140: recipe for target 'cmTC_1456a/fast' failed make[1]: *** [cmTC_1456a/fast] Error 2 make[1]: Leaving directory '/home/buildroot/autobuild/instance-3/output-1/build/libiio-0.23/CMakeFiles/CMakeTmp' File /home/buildroot/autobuild/instance-3/output-1/build/libiio-0.23/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include int main(int argc, char** argv) { (void)argv; #ifndef libusb_get_version return ((int*)(&libusb_get_version))[argc]; #else (void)argc; return 0; #endif } Performing C SOURCE FILE Test Iconv_IS_BUILT_IN failed with the following output: Change Dir: /home/buildroot/autobuild/instance-3/output-1/build/libiio-0.23/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make cmTC_1d57a/fast && make[1]: Entering directory '/home/buildroot/autobuild/instance-3/output-1/build/libiio-0.23/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_1d57a.dir/build.make CMakeFiles/cmTC_1d57a.dir/build make[2]: Entering directory '/home/buildroot/autobuild/instance-3/output-1/build/libiio-0.23/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_1d57a.dir/src.c.o /home/buildroot/autobuild/instance-3/output-1/host/bin/arceb-buildroot-linux-uclibc-gcc --sysroot=/home/buildroot/autobuild/instance-3/output-1/host/arceb-buildroot-linux-uclibc/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O0 -g0 -static -fvisibility=hidden -Wall -Wextra -Wno-unused-parameter -Wpedantic -Wshadow -DIconv_IS_BUILT_IN -DNDEBUG -o CMakeFiles/cmTC_1d57a.dir/src.c.o -c /home/buildroot/autobuild/instance-3/output-1/build/libiio-0.23/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_1d57a /home/buildroot/autobuild/instance-3/output-1/host/bin/cmake -E cmake_link_script CMakeFiles/cmTC_1d57a.dir/link.txt --verbose=1 /home/buildroot/autobuild/instance-3/output-1/host/bin/arceb-buildroot-linux-uclibc-gcc --sysroot=/home/buildroot/autobuild/instance-3/output-1/host/arceb-buildroot-linux-uclibc/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O0 -g0 -static -fvisibility=hidden -Wall -Wextra -Wno-unused-parameter -Wpedantic -Wshadow -DIconv_IS_BUILT_IN -DNDEBUG -static CMakeFiles/cmTC_1d57a.dir/src.c.o -o cmTC_1d57a /home/buildroot/autobuild/instance-3/output-1/host/lib/gcc/arceb-buildroot-linux-uclibc/10.2.0/../../../../arceb-buildroot-linux-uclibc/bin/ld: CMakeFiles/cmTC_1d57a.dir/src.c.o: in function `main': src.c:(.text+0x1e): undefined reference to `libiconv_open' /home/buildroot/autobuild/instance-3/output-1/host/lib/gcc/arceb-buildroot-linux-uclibc/10.2.0/../../../../arceb-buildroot-linux-uclibc/bin/ld: src.c:(.text+0x1e): undefined reference to `libiconv_open' /home/buildroot/autobuild/instance-3/output-1/host/lib/gcc/arceb-buildroot-linux-uclibc/10.2.0/../../../../arceb-buildroot-linux-uclibc/bin/ld: src.c:(.text+0x3e): undefined reference to `libiconv' /home/buildroot/autobuild/instance-3/output-1/host/lib/gcc/arceb-buildroot-linux-uclibc/10.2.0/../../../../arceb-buildroot-linux-uclibc/bin/ld: src.c:(.text+0x3e): undefined reference to `libiconv' /home/buildroot/autobuild/instance-3/output-1/host/lib/gcc/arceb-buildroot-linux-uclibc/10.2.0/../../../../arceb-buildroot-linux-uclibc/bin/ld: src.c:(.text+0x46): undefined reference to `libiconv_close' /home/buildroot/autobuild/instance-3/output-1/host/lib/gcc/arceb-buildroot-linux-uclibc/10.2.0/../../../../arceb-buildroot-linux-uclibc/bin/ld: src.c:(.text+0x46): undefined reference to `libiconv_close' collect2: error: ld returned 1 exit status CMakeFiles/cmTC_1d57a.dir/build.make:105: recipe for target 'cmTC_1d57a' failed make[2]: *** [cmTC_1d57a] Error 1 make[2]: Leaving directory '/home/buildroot/autobuild/instance-3/output-1/build/libiio-0.23/CMakeFiles/CMakeTmp' Makefile:140: recipe for target 'cmTC_1d57a/fast' failed make[1]: *** [cmTC_1d57a/fast] Error 2 make[1]: Leaving directory '/home/buildroot/autobuild/instance-3/output-1/build/libiio-0.23/CMakeFiles/CMakeTmp' Source file was: #include #include int main() { char *a, *b; size_t i, j; iconv_t ic; ic = iconv_open("to", "from"); iconv(ic, &a, &i, &b, &j); iconv_close(ic); }