Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output: Change Dir: /wcdo/src/mrb/build_slf7.x86_64/CMakeFiles/CMakeTmp Run Build Command(s):/bin/gmake cmTC_30291/fast && /bin/gmake -f CMakeFiles/cmTC_30291.dir/build.make CMakeFiles/cmTC_30291.dir/build gmake[1]: Entering directory `/wcdo/src/mrb/build_slf7.x86_64/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_30291.dir/src.c.o /cvmfs/larsoft.opensciencegrid.org/products/gcc/v9_3_0/Linux64bit+3.10-2.17/bin/gcc -DCMAKE_HAVE_LIBC_PTHREAD -o CMakeFiles/cmTC_30291.dir/src.c.o -c /wcdo/src/mrb/build_slf7.x86_64/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_30291 /cvmfs/larsoft.opensciencegrid.org/products/cmake/v3_17_3/Linux64bit+3.10-2.17/bin/cmake -E cmake_link_script CMakeFiles/cmTC_30291.dir/link.txt --verbose=1 /cvmfs/larsoft.opensciencegrid.org/products/gcc/v9_3_0/Linux64bit+3.10-2.17/bin/gcc -DCMAKE_HAVE_LIBC_PTHREAD CMakeFiles/cmTC_30291.dir/src.c.o -o cmTC_30291 CMakeFiles/cmTC_30291.dir/src.c.o: In function `main': src.c:(.text+0x2d): undefined reference to `pthread_create' src.c:(.text+0x39): undefined reference to `pthread_detach' src.c:(.text+0x45): undefined reference to `pthread_cancel' src.c:(.text+0x56): undefined reference to `pthread_join' src.c:(.text+0x6a): undefined reference to `pthread_atfork' collect2: error: ld returned 1 exit status gmake[1]: *** [cmTC_30291] Error 1 gmake[1]: Leaving directory `/wcdo/src/mrb/build_slf7.x86_64/CMakeFiles/CMakeTmp' gmake: *** [cmTC_30291/fast] Error 2 Source file was: #include void* test_func(void* data) { return data; } int main(void) { pthread_t thread; pthread_create(&thread, NULL, test_func, NULL); pthread_detach(thread); pthread_cancel(thread); pthread_join(thread, NULL); pthread_atfork(NULL, NULL, NULL); pthread_exit(NULL); return 0; } 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):/bin/gmake cmTC_1070e/fast && /bin/gmake -f CMakeFiles/cmTC_1070e.dir/build.make CMakeFiles/cmTC_1070e.dir/build gmake[1]: Entering directory `/wcdo/src/mrb/build_slf7.x86_64/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_1070e.dir/CheckFunctionExists.c.o /cvmfs/larsoft.opensciencegrid.org/products/gcc/v9_3_0/Linux64bit+3.10-2.17/bin/gcc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_1070e.dir/CheckFunctionExists.c.o -c /cvmfs/larsoft.opensciencegrid.org/products/cmake/v3_17_3/Linux64bit+3.10-2.17/share/cmake-3.17/Modules/CheckFunctionExists.c Linking C executable cmTC_1070e /cvmfs/larsoft.opensciencegrid.org/products/cmake/v3_17_3/Linux64bit+3.10-2.17/bin/cmake -E cmake_link_script CMakeFiles/cmTC_1070e.dir/link.txt --verbose=1 /cvmfs/larsoft.opensciencegrid.org/products/gcc/v9_3_0/Linux64bit+3.10-2.17/bin/gcc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_1070e.dir/CheckFunctionExists.c.o -o cmTC_1070e -lpthreads /bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status gmake[1]: *** [cmTC_1070e] Error 1 gmake[1]: Leaving directory `/wcdo/src/mrb/build_slf7.x86_64/CMakeFiles/CMakeTmp' gmake: *** [cmTC_1070e/fast] Error 2