Determining if the newlocale exist failed with the following output: Change Dir: /home/autobuild/autobuild/instance-2/output-1/build/libiio-0.24/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make -f Makefile cmTC_b684d/fast && make[1]: Entering directory '/home/autobuild/autobuild/instance-2/output-1/build/libiio-0.24/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_b684d.dir/build.make CMakeFiles/cmTC_b684d.dir/build make[2]: Entering directory '/home/autobuild/autobuild/instance-2/output-1/build/libiio-0.24/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_b684d.dir/CheckSymbolExists.c.o /home/autobuild/autobuild/instance-2/output-1/per-package/libiio/host/bin/sparc-buildroot-linux-uclibc-gcc --sysroot=/home/autobuild/autobuild/instance-2/output-1/per-package/libiio/host/sparc-buildroot-linux-uclibc/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Og -g0 -fvisibility=hidden -Wall -Wextra -Wno-unused-parameter -Wpedantic -Wshadow -DNDEBUG -o CMakeFiles/cmTC_b684d.dir/CheckSymbolExists.c.o -c /home/autobuild/autobuild/instance-2/output-1/build/libiio-0.24/CMakeFiles/CMakeTmp/CheckSymbolExists.c /home/autobuild/autobuild/instance-2/output-1/build/libiio-0.24/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function 'main': /home/autobuild/autobuild/instance-2/output-1/build/libiio-0.24/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/autobuild/autobuild/instance-2/output-1/build/libiio-0.24/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: note: each undeclared identifier is reported only once for each function it appears in /home/autobuild/autobuild/instance-2/output-1/build/libiio-0.24/CMakeFiles/CMakeTmp/CheckSymbolExists.c:4:14: warning: parameter 'argc' set but not used [-Wunused-but-set-parameter] 4 | int main(int argc, char** argv) | ~~~~^~~~ make[2]: *** [CMakeFiles/cmTC_b684d.dir/build.make:78: CMakeFiles/cmTC_b684d.dir/CheckSymbolExists.c.o] Error 1 make[2]: Leaving directory '/home/autobuild/autobuild/instance-2/output-1/build/libiio-0.24/CMakeFiles/CMakeTmp' make[1]: *** [Makefile:127: cmTC_b684d/fast] Error 2 make[1]: Leaving directory '/home/autobuild/autobuild/instance-2/output-1/build/libiio-0.24/CMakeFiles/CMakeTmp' File /home/autobuild/autobuild/instance-2/output-1/build/libiio-0.24/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 } Performing C SOURCE FILE Test Iconv_IS_BUILT_IN failed with the following output: Change Dir: /home/autobuild/autobuild/instance-2/output-1/build/libiio-0.24/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make -f Makefile cmTC_1ff95/fast && make[1]: Entering directory '/home/autobuild/autobuild/instance-2/output-1/build/libiio-0.24/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_1ff95.dir/build.make CMakeFiles/cmTC_1ff95.dir/build make[2]: Entering directory '/home/autobuild/autobuild/instance-2/output-1/build/libiio-0.24/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_1ff95.dir/src.c.o /home/autobuild/autobuild/instance-2/output-1/per-package/libiio/host/bin/sparc-buildroot-linux-uclibc-gcc --sysroot=/home/autobuild/autobuild/instance-2/output-1/per-package/libiio/host/sparc-buildroot-linux-uclibc/sysroot -DIconv_IS_BUILT_IN -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Og -g0 -fvisibility=hidden -Wall -Wextra -Wno-unused-parameter -Wpedantic -Wshadow -DNDEBUG -o CMakeFiles/cmTC_1ff95.dir/src.c.o -c /home/autobuild/autobuild/instance-2/output-1/build/libiio-0.24/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_1ff95 /home/autobuild/autobuild/instance-2/output-1/per-package/libiio/host/bin/cmake -E cmake_link_script CMakeFiles/cmTC_1ff95.dir/link.txt --verbose=1 /home/autobuild/autobuild/instance-2/output-1/per-package/libiio/host/bin/sparc-buildroot-linux-uclibc-gcc --sysroot=/home/autobuild/autobuild/instance-2/output-1/per-package/libiio/host/sparc-buildroot-linux-uclibc/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Og -g0 -fvisibility=hidden -Wall -Wextra -Wno-unused-parameter -Wpedantic -Wshadow -DNDEBUG CMakeFiles/cmTC_1ff95.dir/src.c.o -o cmTC_1ff95 /home/autobuild/autobuild/instance-2/output-1/per-package/libiio/host/bin/../lib/gcc/sparc-buildroot-linux-uclibc/10.4.0/../../../../sparc-buildroot-linux-uclibc/bin/ld: CMakeFiles/cmTC_1ff95.dir/src.c.o: in function `main': src.c:(.text+0x14): undefined reference to `libiconv_open' /home/autobuild/autobuild/instance-2/output-1/per-package/libiio/host/bin/../lib/gcc/sparc-buildroot-linux-uclibc/10.4.0/../../../../sparc-buildroot-linux-uclibc/bin/ld: src.c:(.text+0x30): undefined reference to `libiconv' /home/autobuild/autobuild/instance-2/output-1/per-package/libiio/host/bin/../lib/gcc/sparc-buildroot-linux-uclibc/10.4.0/../../../../sparc-buildroot-linux-uclibc/bin/ld: src.c:(.text+0x3c): undefined reference to `libiconv_close' collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/cmTC_1ff95.dir/build.make:99: cmTC_1ff95] Error 1 make[2]: Leaving directory '/home/autobuild/autobuild/instance-2/output-1/build/libiio-0.24/CMakeFiles/CMakeTmp' make[1]: *** [Makefile:127: cmTC_1ff95/fast] Error 2 make[1]: Leaving directory '/home/autobuild/autobuild/instance-2/output-1/build/libiio-0.24/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); }