Determining if the system is big endian passed with the following output: Change Dir: /home/rclinux/rc-buildroot-test/scripts/instance-1/output/build/domoticz-4.9700/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTC_97a79/fast" make[1]: Entering directory '/home/rclinux/rc-buildroot-test/scripts/instance-1/output/build/domoticz-4.9700/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_97a79.dir/build.make CMakeFiles/cmTC_97a79.dir/build make[2]: Entering directory '/home/rclinux/rc-buildroot-test/scripts/instance-1/output/build/domoticz-4.9700/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_97a79.dir/TestEndianess.c.o /home/rclinux/rc-buildroot-test/scripts/instance-1/output/host/bin/mips64el-ctng_n32-linux-gnu-gcc --sysroot=/home/rclinux/rc-buildroot-test/scripts/instance-1/output/host/mips64el-buildroot-linux-gnu/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -DNDEBUG -o CMakeFiles/cmTC_97a79.dir/TestEndianess.c.o -c /home/rclinux/rc-buildroot-test/scripts/instance-1/output/build/domoticz-4.9700/CMakeFiles/CMakeTmp/TestEndianess.c Linking C executable cmTC_97a79 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_97a79.dir/link.txt --verbose=1 /home/rclinux/rc-buildroot-test/scripts/instance-1/output/host/bin/mips64el-ctng_n32-linux-gnu-gcc --sysroot=/home/rclinux/rc-buildroot-test/scripts/instance-1/output/host/mips64el-buildroot-linux-gnu/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -DNDEBUG CMakeFiles/cmTC_97a79.dir/TestEndianess.c.o -o cmTC_97a79 -rdynamic make[2]: Leaving directory '/home/rclinux/rc-buildroot-test/scripts/instance-1/output/build/domoticz-4.9700/CMakeFiles/CMakeTmp' make[1]: Leaving directory '/home/rclinux/rc-buildroot-test/scripts/instance-1/output/build/domoticz-4.9700/CMakeFiles/CMakeTmp' TestEndianess.c: /* A 16 bit integer is required. */ typedef unsigned short cmakeint16; /* On a little endian machine, these 16bit ints will give "THIS IS LITTLE ENDIAN." On a big endian machine the characters will be exchanged pairwise. */ const cmakeint16 info_little[] = {0x4854, 0x5349, 0x4920, 0x2053, 0x494c, 0x5454, 0x454c, 0x4520, 0x444e, 0x4149, 0x2e4e, 0x0000}; /* on a big endian machine, these 16bit ints will give "THIS IS BIG ENDIAN." On a little endian machine the characters will be exchanged pairwise. */ const cmakeint16 info_big[] = {0x5448, 0x4953, 0x2049, 0x5320, 0x4249, 0x4720, 0x454e, 0x4449, 0x414e, 0x2e2e, 0x0000}; #ifdef __CLASSIC_C__ int main(argc, argv) int argc; char *argv[]; #else int main(int argc, char *argv[]) #endif { int require = 0; require += info_little[argc]; require += info_big[argc]; (void)argv; return require; } Determining if the pthread_create exist failed with the following output: Change Dir: /home/rclinux/rc-buildroot-test/scripts/instance-1/output/build/domoticz-4.9700/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTC_c7420/fast" make[1]: Entering directory '/home/rclinux/rc-buildroot-test/scripts/instance-1/output/build/domoticz-4.9700/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_c7420.dir/build.make CMakeFiles/cmTC_c7420.dir/build make[2]: Entering directory '/home/rclinux/rc-buildroot-test/scripts/instance-1/output/build/domoticz-4.9700/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_c7420.dir/CheckSymbolExists.c.o /home/rclinux/rc-buildroot-test/scripts/instance-1/output/host/bin/mips64el-ctng_n32-linux-gnu-gcc --sysroot=/home/rclinux/rc-buildroot-test/scripts/instance-1/output/host/mips64el-buildroot-linux-gnu/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -DNDEBUG -o CMakeFiles/cmTC_c7420.dir/CheckSymbolExists.c.o -c /home/rclinux/rc-buildroot-test/scripts/instance-1/output/build/domoticz-4.9700/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_c7420 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_c7420.dir/link.txt --verbose=1 /home/rclinux/rc-buildroot-test/scripts/instance-1/output/host/bin/mips64el-ctng_n32-linux-gnu-gcc --sysroot=/home/rclinux/rc-buildroot-test/scripts/instance-1/output/host/mips64el-buildroot-linux-gnu/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -DNDEBUG CMakeFiles/cmTC_c7420.dir/CheckSymbolExists.c.o -o cmTC_c7420 -rdynamic CMakeFiles/cmTC_c7420.dir/CheckSymbolExists.c.o: In function `main': CheckSymbolExists.c:(.text.startup+0x8): undefined reference to `pthread_create' collect2: error: ld returned 1 exit status CMakeFiles/cmTC_c7420.dir/build.make:97: recipe for target 'cmTC_c7420' failed make[2]: *** [cmTC_c7420] Error 1 make[2]: Leaving directory '/home/rclinux/rc-buildroot-test/scripts/instance-1/output/build/domoticz-4.9700/CMakeFiles/CMakeTmp' Makefile:126: recipe for target 'cmTC_c7420/fast' failed make[1]: *** [cmTC_c7420/fast] Error 2 make[1]: Leaving directory '/home/rclinux/rc-buildroot-test/scripts/instance-1/output/build/domoticz-4.9700/CMakeFiles/CMakeTmp' File /home/rclinux/rc-buildroot-test/scripts/instance-1/output/build/domoticz-4.9700/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include int main(int argc, char** argv) { (void)argv; #ifndef pthread_create return ((int*)(&pthread_create))[argc]; #else (void)argc; return 0; #endif } Determining if the function pthread_create exists in the pthreads failed with the following output: Change Dir: /home/rclinux/rc-buildroot-test/scripts/instance-1/output/build/domoticz-4.9700/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTC_fd820/fast" make[1]: Entering directory '/home/rclinux/rc-buildroot-test/scripts/instance-1/output/build/domoticz-4.9700/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_fd820.dir/build.make CMakeFiles/cmTC_fd820.dir/build make[2]: Entering directory '/home/rclinux/rc-buildroot-test/scripts/instance-1/output/build/domoticz-4.9700/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_fd820.dir/CheckFunctionExists.c.o /home/rclinux/rc-buildroot-test/scripts/instance-1/output/host/bin/mips64el-ctng_n32-linux-gnu-gcc --sysroot=/home/rclinux/rc-buildroot-test/scripts/instance-1/output/host/mips64el-buildroot-linux-gnu/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -DCHECK_FUNCTION_EXISTS=pthread_create -DNDEBUG -o CMakeFiles/cmTC_fd820.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.5/Modules/CheckFunctionExists.c Linking C executable cmTC_fd820 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_fd820.dir/link.txt --verbose=1 /home/rclinux/rc-buildroot-test/scripts/instance-1/output/host/bin/mips64el-ctng_n32-linux-gnu-gcc --sysroot=/home/rclinux/rc-buildroot-test/scripts/instance-1/output/host/mips64el-buildroot-linux-gnu/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -DCHECK_FUNCTION_EXISTS=pthread_create -DNDEBUG CMakeFiles/cmTC_fd820.dir/CheckFunctionExists.c.o -o cmTC_fd820 -rdynamic -lpthreads /home/rclinux/rc-buildroot-test/scripts/instance-1/output/host/opt/ext-toolchain/bin/../lib/gcc/mips64el-ctng_n32-linux-gnu/4.8.2/../../../../mips64el-ctng_n32-linux-gnu/bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status CMakeFiles/cmTC_fd820.dir/build.make:97: recipe for target 'cmTC_fd820' failed make[2]: *** [cmTC_fd820] Error 1 make[2]: Leaving directory '/home/rclinux/rc-buildroot-test/scripts/instance-1/output/build/domoticz-4.9700/CMakeFiles/CMakeTmp' Makefile:126: recipe for target 'cmTC_fd820/fast' failed make[1]: *** [cmTC_fd820/fast] Error 2 make[1]: Leaving directory '/home/rclinux/rc-buildroot-test/scripts/instance-1/output/build/domoticz-4.9700/CMakeFiles/CMakeTmp'