tensorrt-build / CMakeFiles /CMakeError.log
camenduru's picture
content
aaee26f
Detecting the CUDA native architecture(s) failed with the following output:
No CUDA devices found.
Performing C++ SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
Change Dir: /content/TensorRT/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make -f Makefile cmTC_3ca09/fast && /usr/bin/make -f CMakeFiles/cmTC_3ca09.dir/build.make CMakeFiles/cmTC_3ca09.dir/build
make[1]: Entering directory '/content/TensorRT/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_3ca09.dir/src.cxx.o
/usr/bin/g++ -DCMAKE_HAVE_LIBC_PTHREAD -Wno-deprecated-declarations -DBUILD_SYSTEM=cmake_oss -std=c++14 -o CMakeFiles/cmTC_3ca09.dir/src.cxx.o -c /content/TensorRT/build/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTC_3ca09
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_3ca09.dir/link.txt --verbose=1
/usr/bin/g++ -Wno-deprecated-declarations -DBUILD_SYSTEM=cmake_oss CMakeFiles/cmTC_3ca09.dir/src.cxx.o -o cmTC_3ca09
/usr/bin/ld: CMakeFiles/cmTC_3ca09.dir/src.cxx.o: in function `main':
src.cxx:(.text+0x46): undefined reference to `pthread_create'
/usr/bin/ld: src.cxx:(.text+0x52): undefined reference to `pthread_detach'
/usr/bin/ld: src.cxx:(.text+0x5e): undefined reference to `pthread_cancel'
/usr/bin/ld: src.cxx:(.text+0x6f): undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_3ca09.dir/build.make:99: cmTC_3ca09] Error 1
make[1]: Leaving directory '/content/TensorRT/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:127: cmTC_3ca09/fast] Error 2
Source file was:
#include <pthread.h>
static 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: /content/TensorRT/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make -f Makefile cmTC_08b58/fast && /usr/bin/make -f CMakeFiles/cmTC_08b58.dir/build.make CMakeFiles/cmTC_08b58.dir/build
make[1]: Entering directory '/content/TensorRT/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_08b58.dir/CheckFunctionExists.cxx.o
/usr/bin/g++ -Wno-deprecated-declarations -DBUILD_SYSTEM=cmake_oss -DCHECK_FUNCTION_EXISTS=pthread_create -std=c++14 -o CMakeFiles/cmTC_08b58.dir/CheckFunctionExists.cxx.o -c /content/TensorRT/build/CMakeFiles/CheckLibraryExists/CheckFunctionExists.cxx
Linking CXX executable cmTC_08b58
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_08b58.dir/link.txt --verbose=1
/usr/bin/g++ -Wno-deprecated-declarations -DBUILD_SYSTEM=cmake_oss -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_08b58.dir/CheckFunctionExists.cxx.o -o cmTC_08b58 -lpthreads
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_08b58.dir/build.make:99: cmTC_08b58] Error 1
make[1]: Leaving directory '/content/TensorRT/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:127: cmTC_08b58/fast] Error 2