Determining if the pthread_create exist failed with the following output: Change Dir: /wcdo/src/mrb/build_slf7.x86_64/CMakeFiles/CMakeTmp Run Build Command(s):/cvmfs/larsoft.opensciencegrid.org/products/ninja/v1_10_0/Linux64bit+3.10-2.17/bin/ninja cmTC_723b3 [1/2] Building C object CMakeFiles/cmTC_723b3.dir/CheckSymbolExists.c.o [2/2] Linking C executable cmTC_723b3 FAILED: cmTC_723b3 : && /cvmfs/dune.opensciencegrid.org/products/dune/gcc/v8_2_0/Linux64bit+3.10-2.17/bin/gcc CMakeFiles/cmTC_723b3.dir/CheckSymbolExists.c.o -o cmTC_723b3 && : CMakeFiles/cmTC_723b3.dir/CheckSymbolExists.c.o: In function `main': CheckSymbolExists.c:(.text+0x16): undefined reference to `pthread_create' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. File /wcdo/src/mrb/build_slf7.x86_64/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: /wcdo/src/mrb/build_slf7.x86_64/CMakeFiles/CMakeTmp Run Build Command(s):/cvmfs/larsoft.opensciencegrid.org/products/ninja/v1_10_0/Linux64bit+3.10-2.17/bin/ninja cmTC_b9ade [1/2] Building C object CMakeFiles/cmTC_b9ade.dir/CheckFunctionExists.c.o [2/2] Linking C executable cmTC_b9ade FAILED: cmTC_b9ade : && /cvmfs/dune.opensciencegrid.org/products/dune/gcc/v8_2_0/Linux64bit+3.10-2.17/bin/gcc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_b9ade.dir/CheckFunctionExists.c.o -o cmTC_b9ade -lpthreads && : /bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed.