Performing C++ SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output: Change Dir: /home/iagschli/software/precice-2.2.1/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/gmake cmTC_91018/fast && /usr/bin/gmake -f CMakeFiles/cmTC_91018.dir/build.make CMakeFiles/cmTC_91018.dir/build gmake[1]: Entering directory `/home/iagschli/software/precice-2.2.1/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_91018.dir/src.cxx.o /opt/ohpc/pub/compiler/gcc/11.1.0/bin/g++ -DCMAKE_HAVE_LIBC_PTHREAD -o CMakeFiles/cmTC_91018.dir/src.cxx.o -c /home/iagschli/software/precice-2.2.1/CMakeFiles/CMakeTmp/src.cxx Linking CXX executable cmTC_91018 /opt/ohpc/pub/utils/cmake/3.15.4/bin/cmake -E cmake_link_script CMakeFiles/cmTC_91018.dir/link.txt --verbose=1 /opt/ohpc/pub/compiler/gcc/11.1.0/bin/g++ -DCMAKE_HAVE_LIBC_PTHREAD CMakeFiles/cmTC_91018.dir/src.cxx.o -o cmTC_91018 CMakeFiles/cmTC_91018.dir/src.cxx.o: In function `main': src.cxx:(.text+0x2d): undefined reference to `pthread_create' src.cxx:(.text+0x39): undefined reference to `pthread_detach' src.cxx:(.text+0x4a): undefined reference to `pthread_join' src.cxx:(.text+0x5e): undefined reference to `pthread_atfork' collect2: error: ld returned 1 exit status gmake[1]: *** [cmTC_91018] Error 1 gmake[1]: Leaving directory `/home/iagschli/software/precice-2.2.1/CMakeFiles/CMakeTmp' gmake: *** [cmTC_91018/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_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: /home/iagschli/software/precice-2.2.1/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/gmake cmTC_340db/fast && /usr/bin/gmake -f CMakeFiles/cmTC_340db.dir/build.make CMakeFiles/cmTC_340db.dir/build gmake[1]: Entering directory `/home/iagschli/software/precice-2.2.1/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_340db.dir/CheckFunctionExists.cxx.o /opt/ohpc/pub/compiler/gcc/11.1.0/bin/g++ -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_340db.dir/CheckFunctionExists.cxx.o -c /home/iagschli/software/precice-2.2.1/CMakeFiles/CheckLibraryExists/CheckFunctionExists.cxx Linking CXX executable cmTC_340db /opt/ohpc/pub/utils/cmake/3.15.4/bin/cmake -E cmake_link_script CMakeFiles/cmTC_340db.dir/link.txt --verbose=1 /opt/ohpc/pub/compiler/gcc/11.1.0/bin/g++ -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_340db.dir/CheckFunctionExists.cxx.o -o cmTC_340db -lpthreads /usr/bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status gmake[1]: *** [cmTC_340db] Error 1 gmake[1]: Leaving directory `/home/iagschli/software/precice-2.2.1/CMakeFiles/CMakeTmp' gmake: *** [cmTC_340db/fast] Error 2