Determining if the newlocale exist failed with the following output: Change Dir: /home/thomas/autobuild/instance-2/output-1/build/libiio-0.24/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make -f Makefile cmTC_757c3/fast && make[1]: Entering directory '/home/thomas/autobuild/instance-2/output-1/build/libiio-0.24/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_757c3.dir/build.make CMakeFiles/cmTC_757c3.dir/build make[2]: Entering directory '/home/thomas/autobuild/instance-2/output-1/build/libiio-0.24/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_757c3.dir/CheckSymbolExists.c.o /home/thomas/autobuild/instance-2/output-1/host/bin/sparc-buildroot-linux-uclibc-gcc --sysroot=/home/thomas/autobuild/instance-2/output-1/host/sparc-buildroot-linux-uclibc/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -g0 -static -fvisibility=hidden -Wall -Wextra -Wno-unused-parameter -Wpedantic -Wshadow -DNDEBUG -o CMakeFiles/cmTC_757c3.dir/CheckSymbolExists.c.o -c /home/thomas/autobuild/instance-2/output-1/build/libiio-0.24/CMakeFiles/CMakeTmp/CheckSymbolExists.c /home/thomas/autobuild/instance-2/output-1/build/libiio-0.24/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function 'main': /home/thomas/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/thomas/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/thomas/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_757c3.dir/build.make:78: CMakeFiles/cmTC_757c3.dir/CheckSymbolExists.c.o] Error 1 make[2]: Leaving directory '/home/thomas/autobuild/instance-2/output-1/build/libiio-0.24/CMakeFiles/CMakeTmp' make[1]: *** [Makefile:127: cmTC_757c3/fast] Error 2 make[1]: Leaving directory '/home/thomas/autobuild/instance-2/output-1/build/libiio-0.24/CMakeFiles/CMakeTmp' File /home/thomas/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/thomas/autobuild/instance-2/output-1/build/libiio-0.24/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make -f Makefile cmTC_e2ebf/fast && make[1]: Entering directory '/home/thomas/autobuild/instance-2/output-1/build/libiio-0.24/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_e2ebf.dir/build.make CMakeFiles/cmTC_e2ebf.dir/build make[2]: Entering directory '/home/thomas/autobuild/instance-2/output-1/build/libiio-0.24/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_e2ebf.dir/src.c.o /home/thomas/autobuild/instance-2/output-1/host/bin/sparc-buildroot-linux-uclibc-gcc --sysroot=/home/thomas/autobuild/instance-2/output-1/host/sparc-buildroot-linux-uclibc/sysroot -DIconv_IS_BUILT_IN -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -g0 -static -fvisibility=hidden -Wall -Wextra -Wno-unused-parameter -Wpedantic -Wshadow -DNDEBUG -o CMakeFiles/cmTC_e2ebf.dir/src.c.o -c /home/thomas/autobuild/instance-2/output-1/build/libiio-0.24/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_e2ebf /home/thomas/autobuild/instance-2/output-1/host/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e2ebf.dir/link.txt --verbose=1 /home/thomas/autobuild/instance-2/output-1/host/bin/sparc-buildroot-linux-uclibc-gcc --sysroot=/home/thomas/autobuild/instance-2/output-1/host/sparc-buildroot-linux-uclibc/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -g0 -static -fvisibility=hidden -Wall -Wextra -Wno-unused-parameter -Wpedantic -Wshadow -DNDEBUG -static CMakeFiles/cmTC_e2ebf.dir/src.c.o -o cmTC_e2ebf /home/thomas/autobuild/instance-2/output-1/host/lib/gcc/sparc-buildroot-linux-uclibc/10.4.0/../../../../sparc-buildroot-linux-uclibc/bin/ld: CMakeFiles/cmTC_e2ebf.dir/src.c.o: in function `main': src.c:(.text.startup+0x10): undefined reference to `libiconv_open' /home/thomas/autobuild/instance-2/output-1/host/lib/gcc/sparc-buildroot-linux-uclibc/10.4.0/../../../../sparc-buildroot-linux-uclibc/bin/ld: src.c:(.text.startup+0x28): undefined reference to `libiconv' /home/thomas/autobuild/instance-2/output-1/host/lib/gcc/sparc-buildroot-linux-uclibc/10.4.0/../../../../sparc-buildroot-linux-uclibc/bin/ld: src.c:(.text.startup+0x34): undefined reference to `libiconv_close' collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/cmTC_e2ebf.dir/build.make:99: cmTC_e2ebf] Error 1 make[2]: Leaving directory '/home/thomas/autobuild/instance-2/output-1/build/libiio-0.24/CMakeFiles/CMakeTmp' make[1]: *** [Makefile:127: cmTC_e2ebf/fast] Error 2 make[1]: Leaving directory '/home/thomas/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); }