Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output: Change Dir: /home/nvidia/workspace/driveworks_3.5/samples/build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make cmTC_47c06/fast && /usr/bin/make -f CMakeFiles/cmTC_47c06.dir/build.make CMakeFiles/cmTC_47c06.dir/build make[1]: Entering directory '/home/nvidia/workspace/driveworks_3.5/samples/build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_47c06.dir/src.c.o /usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -fPIE -std=gnu99 -o CMakeFiles/cmTC_47c06.dir/src.c.o -c /home/nvidia/workspace/driveworks_3.5/samples/build/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_47c06 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_47c06.dir/link.txt --verbose=1 /usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD CMakeFiles/cmTC_47c06.dir/src.c.o -o cmTC_47c06 CMakeFiles/cmTC_47c06.dir/src.c.o: In function `main': src.c:(.text+0x3e): undefined reference to `pthread_create' src.c:(.text+0x4a): undefined reference to `pthread_detach' src.c:(.text+0x56): undefined reference to `pthread_cancel' src.c:(.text+0x67): undefined reference to `pthread_join' src.c:(.text+0x7b): undefined reference to `pthread_atfork' collect2: error: ld returned 1 exit status CMakeFiles/cmTC_47c06.dir/build.make:106: recipe for target 'cmTC_47c06' failed make[1]: *** [cmTC_47c06] Error 1 make[1]: Leaving directory '/home/nvidia/workspace/driveworks_3.5/samples/build/CMakeFiles/CMakeTmp' Makefile:141: recipe for target 'cmTC_47c06/fast' failed make: *** [cmTC_47c06/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: /home/nvidia/workspace/driveworks_3.5/samples/build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make cmTC_495f9/fast && /usr/bin/make -f CMakeFiles/cmTC_495f9.dir/build.make CMakeFiles/cmTC_495f9.dir/build make[1]: Entering directory '/home/nvidia/workspace/driveworks_3.5/samples/build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_495f9.dir/CheckFunctionExists.c.o /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -fPIE -std=gnu99 -o CMakeFiles/cmTC_495f9.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.17/Modules/CheckFunctionExists.c Linking C executable cmTC_495f9 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_495f9.dir/link.txt --verbose=1 /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_495f9.dir/CheckFunctionExists.c.o -o cmTC_495f9 -lpthreads /usr/bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status CMakeFiles/cmTC_495f9.dir/build.make:106: recipe for target 'cmTC_495f9' failed make[1]: *** [cmTC_495f9] Error 1 make[1]: Leaving directory '/home/nvidia/workspace/driveworks_3.5/samples/build/CMakeFiles/CMakeTmp' Makefile:141: recipe for target 'cmTC_495f9/fast' failed make: *** [cmTC_495f9/fast] Error 2