We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is my compile command, in cross compile docker
trtuser@0ff2823304ce:/workspace/TensorRT/build$ cmake .. -DTRT_LIB_DIR=$TRT_LIBPATH -DTRT_OUT_DIR=workspace/out -DCMAKE_TOOLCHAIN_FILE=$TRT_OSSPATH/cmake/toolchains/cmake_aarch64.toolchain -DCUDA_VERSION=10.2 -DCUBLASLT_LIB=/usr/lib/aarch64-linux-gnu/libcublasLt.so -DCUBLAS_LIB=/usr/lib/aarch64-linux-gnu/libcublas.so -DCUDNN_LIB=/pdk_files/cudnn/usr/lib/aarch64-linux-gnu/libcudnn.so trtuser@0ff2823304ce:/workspace/TensorRT/build$ make -j
The following is the error reported by using make to compile after I use cmake to build. The file is CMakeError.log
Compiling the CUDA compiler identification source file "CMakeCUDACompilerId.cu" failed. Compiler: /usr/local/cuda/bin/nvcc Build flags: -I/usr/local/cuda-10.2/targets/aarch64-linux/include;-Xcompiler="-fPIC;" Id flags: -v;--keep;--keep-dir;tmp;-ccbin=/usr/bin/aarch64-linux-gnu-g++ The output was: 1 nvcc fatal : Stray '"' character Determining if the pthread_create exist failed with the following output: Change Dir: /workspace/TensorRT/build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make cmTC_9b726/fast /usr/bin/make -f CMakeFiles/cmTC_9b726.dir/build.make CMakeFiles/cmTC_9b726.dir/build make[1]: Entering directory '/workspace/TensorRT/build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_9b726.dir/CheckSymbolExists.cxx.o /usr/bin/aarch64-linux-gnu-g++ -Wno-deprecated-declarations -DBUILD_SYSTEM=cmake_oss -std=c++11 -o CMakeFiles/cmTC_9b726.dir/CheckSymbolExists.cxx.o -c /workspace/TensorRT/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx Linking CXX executable cmTC_9b726 /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_9b726.dir/link.txt --verbose=1 /usr/bin/aarch64-linux-gnu-g++ -Wno-deprecated-declarations -DBUILD_SYSTEM=cmake_oss CMakeFiles/cmTC_9b726.dir/CheckSymbolExists.cxx.o -o cmTC_9b726 CMakeFiles/cmTC_9b726.dir/CheckSymbolExists.cxx.o: In function `main': CheckSymbolExists.cxx:(.text+0x14): undefined reference to `pthread_create' CheckSymbolExists.cxx:(.text+0x18): undefined reference to `pthread_create' collect2: error: ld returned 1 exit status CMakeFiles/cmTC_9b726.dir/build.make:86: recipe for target 'cmTC_9b726' failed make[1]: *** [cmTC_9b726] Error 1 make[1]: Leaving directory '/workspace/TensorRT/build/CMakeFiles/CMakeTmp' Makefile:121: recipe for target 'cmTC_9b726/fast' failed make: *** [cmTC_9b726/fast] Error 2 File /workspace/TensorRT/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx: /* */ #include <pthread.h> 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: /workspace/TensorRT/build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make cmTC_a2b5a/fast /usr/bin/make -f CMakeFiles/cmTC_a2b5a.dir/build.make CMakeFiles/cmTC_a2b5a.dir/build make[1]: Entering directory '/workspace/TensorRT/build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_a2b5a.dir/CheckFunctionExists.cxx.o /usr/bin/aarch64-linux-gnu-g++ -Wno-deprecated-declarations -DBUILD_SYSTEM=cmake_oss -DCHECK_FUNCTION_EXISTS=pthread_create -std=c++11 -o CMakeFiles/cmTC_a2b5a.dir/CheckFunctionExists.cxx.o -c /workspace/TensorRT/build/CMakeFiles/CheckLibraryExists/CheckFunctionExists.cxx Linking CXX executable cmTC_a2b5a /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_a2b5a.dir/link.txt --verbose=1 /usr/bin/aarch64-linux-gnu-g++ -Wno-deprecated-declarations -DBUILD_SYSTEM=cmake_oss -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_a2b5a.dir/CheckFunctionExists.cxx.o -o cmTC_a2b5a -lpthreads /usr/lib/gcc-cross/aarch64-linux-gnu/7/../../../../aarch64-linux-gnu/bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status CMakeFiles/cmTC_a2b5a.dir/build.make:86: recipe for target 'cmTC_a2b5a' failed make[1]: *** [cmTC_a2b5a] Error 1 make[1]: Leaving directory '/workspace/TensorRT/build/CMakeFiles/CMakeTmp' Makefile:121: recipe for target 'cmTC_a2b5a/fast' failed make: *** [cmTC_a2b5a/fast] Error 2
The text was updated successfully, but these errors were encountered:
@rajeevsrao ^ ^
Sorry, something went wrong.
@ou1443989517 have you tried the latest container in rel/10.0 branch? thanks!
closing since no activity for more than 3 weeks, pls reopen if you still have question, thanks all!
rajeevsrao
No branches or pull requests
This is my compile command, in cross compile docker
The following is the error reported by using make to compile after I use cmake to build. The file is CMakeError.log
The text was updated successfully, but these errors were encountered: