Determining if the pthread_create exist failed with the following output: Change Dir: /home/mice/Grid/MAUS-v2.8.4/third_party/build/googletest-release-1.8.0/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_2e46a/fast" /usr/bin/gmake -f CMakeFiles/cmTC_2e46a.dir/build.make CMakeFiles/cmTC_2e46a.dir/build gmake[1]: Entering directory `/home/mice/Grid/MAUS-v2.8.4/third_party/build/googletest-release-1.8.0/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_2e46a.dir/CheckSymbolExists.c.o /home/mice/Grid/MAUS-v2.8.4/third_party/install/bin/gcc -o CMakeFiles/cmTC_2e46a.dir/CheckSymbolExists.c.o -c /home/mice/Grid/MAUS-v2.8.4/third_party/build/googletest-release-1.8.0/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_2e46a /home/mice/Grid/MAUS-v2.8.4/third_party/install/bin/cmake -E cmake_link_script CMakeFiles/cmTC_2e46a.dir/link.txt --verbose=1 /home/mice/Grid/MAUS-v2.8.4/third_party/install/bin/gcc CMakeFiles/cmTC_2e46a.dir/CheckSymbolExists.c.o -o cmTC_2e46a -rdynamic CMakeFiles/cmTC_2e46a.dir/CheckSymbolExists.c.o: In function `main': CheckSymbolExists.c:(.text+0x16): undefined reference to `pthread_create' collect2: error: ld returned 1 exit status gmake[1]: *** [cmTC_2e46a] Error 1 gmake[1]: Leaving directory `/home/mice/Grid/MAUS-v2.8.4/third_party/build/googletest-release-1.8.0/CMakeFiles/CMakeTmp' gmake: *** [cmTC_2e46a/fast] Error 2 File /home/mice/Grid/MAUS-v2.8.4/third_party/build/googletest-release-1.8.0/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/mice/Grid/MAUS-v2.8.4/third_party/build/googletest-release-1.8.0/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/gmake" "cmTC_dd632/fast" /usr/bin/gmake -f CMakeFiles/cmTC_dd632.dir/build.make CMakeFiles/cmTC_dd632.dir/build gmake[1]: Entering directory `/home/mice/Grid/MAUS-v2.8.4/third_party/build/googletest-release-1.8.0/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_dd632.dir/CheckFunctionExists.c.o /home/mice/Grid/MAUS-v2.8.4/third_party/install/bin/gcc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_dd632.dir/CheckFunctionExists.c.o -c /home/mice/Grid/MAUS-v2.8.4/third_party/install/share/cmake-3.5/Modules/CheckFunctionExists.c Linking C executable cmTC_dd632 /home/mice/Grid/MAUS-v2.8.4/third_party/install/bin/cmake -E cmake_link_script CMakeFiles/cmTC_dd632.dir/link.txt --verbose=1 /home/mice/Grid/MAUS-v2.8.4/third_party/install/bin/gcc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_dd632.dir/CheckFunctionExists.c.o -o cmTC_dd632 -rdynamic -lpthreads /usr/bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status gmake[1]: *** [cmTC_dd632] Error 1 gmake[1]: Leaving directory `/home/mice/Grid/MAUS-v2.8.4/third_party/build/googletest-release-1.8.0/CMakeFiles/CMakeTmp' gmake: *** [cmTC_dd632/fast] Error 2