Determining if the pthread_create exist failed with the following output: Change Dir: /nvmedata/autobuild/instance-2/output-1/build/cegui-0-8-7/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTC_c23a1/fast" make[1]: Entering directory '/nvmedata/autobuild/instance-2/output-1/build/cegui-0-8-7/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_c23a1.dir/build.make CMakeFiles/cmTC_c23a1.dir/build make[2]: Entering directory '/nvmedata/autobuild/instance-2/output-1/build/cegui-0-8-7/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_c23a1.dir/CheckSymbolExists.c.o /nvmedata/autobuild/instance-2/output-1/host/bin/sparc64-linux-gcc --sysroot=/nvmedata/autobuild/instance-2/output-1/host/sparc64-buildroot-linux-gnu/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -D_FORTIFY_SOURCE=1 -std=c99 -DNDEBUG -o CMakeFiles/cmTC_c23a1.dir/CheckSymbolExists.c.o -c /nvmedata/autobuild/instance-2/output-1/build/cegui-0-8-7/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_c23a1 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_c23a1.dir/link.txt --verbose=1 /nvmedata/autobuild/instance-2/output-1/host/bin/sparc64-linux-gcc --sysroot=/nvmedata/autobuild/instance-2/output-1/host/sparc64-buildroot-linux-gnu/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -D_FORTIFY_SOURCE=1 -std=c99 -DNDEBUG CMakeFiles/cmTC_c23a1.dir/CheckSymbolExists.c.o -o cmTC_c23a1 /nvmedata/autobuild/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/sparc64-buildroot-linux-gnu/8.3.0/../../../../sparc64-buildroot-linux-gnu/bin/ld: CMakeFiles/cmTC_c23a1.dir/CheckSymbolExists.c.o: in function `main': CheckSymbolExists.c:(.text.startup+0x4): undefined reference to `pthread_create' /nvmedata/autobuild/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/sparc64-buildroot-linux-gnu/8.3.0/../../../../sparc64-buildroot-linux-gnu/bin/ld: CheckSymbolExists.c:(.text.startup+0x8): undefined reference to `pthread_create' collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/cmTC_c23a1.dir/build.make:87: cmTC_c23a1] Error 1 make[2]: Leaving directory '/nvmedata/autobuild/instance-2/output-1/build/cegui-0-8-7/CMakeFiles/CMakeTmp' make[1]: *** [Makefile:121: cmTC_c23a1/fast] Error 2 make[1]: Leaving directory '/nvmedata/autobuild/instance-2/output-1/build/cegui-0-8-7/CMakeFiles/CMakeTmp' File /nvmedata/autobuild/instance-2/output-1/build/cegui-0-8-7/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: /nvmedata/autobuild/instance-2/output-1/build/cegui-0-8-7/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTC_6feea/fast" make[1]: Entering directory '/nvmedata/autobuild/instance-2/output-1/build/cegui-0-8-7/CMakeFiles/CMakeTmp' /usr/bin/make -f CMakeFiles/cmTC_6feea.dir/build.make CMakeFiles/cmTC_6feea.dir/build make[2]: Entering directory '/nvmedata/autobuild/instance-2/output-1/build/cegui-0-8-7/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_6feea.dir/CheckFunctionExists.c.o /nvmedata/autobuild/instance-2/output-1/host/bin/sparc64-linux-gcc --sysroot=/nvmedata/autobuild/instance-2/output-1/host/sparc64-buildroot-linux-gnu/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -D_FORTIFY_SOURCE=1 -std=c99 -DCHECK_FUNCTION_EXISTS=pthread_create -DNDEBUG -o CMakeFiles/cmTC_6feea.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.13/Modules/CheckFunctionExists.c Linking C executable cmTC_6feea /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_6feea.dir/link.txt --verbose=1 /nvmedata/autobuild/instance-2/output-1/host/bin/sparc64-linux-gcc --sysroot=/nvmedata/autobuild/instance-2/output-1/host/sparc64-buildroot-linux-gnu/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -D_FORTIFY_SOURCE=1 -std=c99 -DCHECK_FUNCTION_EXISTS=pthread_create -DNDEBUG CMakeFiles/cmTC_6feea.dir/CheckFunctionExists.c.o -o cmTC_6feea -lpthreads /nvmedata/autobuild/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/sparc64-buildroot-linux-gnu/8.3.0/../../../../sparc64-buildroot-linux-gnu/bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/cmTC_6feea.dir/build.make:87: cmTC_6feea] Error 1 make[2]: Leaving directory '/nvmedata/autobuild/instance-2/output-1/build/cegui-0-8-7/CMakeFiles/CMakeTmp' make[1]: *** [Makefile:121: cmTC_6feea/fast] Error 2 make[1]: Leaving directory '/nvmedata/autobuild/instance-2/output-1/build/cegui-0-8-7/CMakeFiles/CMakeTmp'