Skip to content
New issue

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

Build Error #94

Open
sainisanjay opened this issue Nov 11, 2021 · 0 comments
Open

Build Error #94

sainisanjay opened this issue Nov 11, 2021 · 0 comments

Comments

@sainisanjay
Copy link

OS: Ubuntu 18.04 LTS
TensorRT: 8.0
Cuda: 10.2
GCC: 7.5


jetsonhack@jetsonhack-desktop:~/tensorRT/TensorRT-Yolov3$ cd build && cmake .. && make && make install
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found CUDA: /usr/local/cuda-10.2 (found version "10.2") 
-- Found TensorRT headers at /usr/include/aarch64-linux-gnu
-- Find TensorRT libs at /usr/lib/aarch64-linux-gnu/libnvinfer.so;/usr/lib/aarch64-linux-gnu/libnvinfer_plugin.so;/usr/lib/aarch64-linux-gnu/libnvparsers.so
-- Found TENSORRT: /usr/include/aarch64-linux-gnu  
-- Found OpenCV: /usr (found version "4.1.1") 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/jetsonhack/tensorRT/TensorRT-Yolov3/build
[ 10%] Building NVCC (Device) object tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_YoloLayer.cu.o
-- Removing /home/jetsonhack/tensorRT/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/./TrtNet_generated_YoloLayer.cu.o
/usr/bin/cmake -E remove /home/jetsonhack/tensorRT/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/./TrtNet_generated_YoloLayer.cu.o
-- Generating dependency file: /home/jetsonhack/tensorRT/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_YoloLayer.cu.o.NVCC-depend
/usr/local/cuda-10.2/bin/nvcc -M -D__CUDACC__ /home/jetsonhack/tensorRT/TensorRT-Yolov3/tensorRTWrapper/code/src/YoloLayer.cu -o /home/jetsonhack/tensorRT/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_YoloLayer.cu.o.NVCC-depend -ccbin /usr/bin/c++ -m64 --std c++11 -Xcompiler ,\"-Wall\",\"-Ofast\",\"-Wfatal-errors\",\"-Wall\",\"-Ofast\",\"-Wfatal-errors\",\"-D_MWAITXINTRIN_H_INCLUDED\",\"-O3\",\"-DNDEBUG\" -D_FORCE_INLINES -Xcompiler -fPIC -DNVCC -I/usr/include/aarch64-linux-gnu -I/usr/local/cuda-10.2/include -I/home/jetsonhack/tensorRT/TensorRT-Yolov3/tensorRTWrapper/code/include
-- Generating temporary cmake readable file: /home/jetsonhack/tensorRT/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_YoloLayer.cu.o.depend.tmp
/usr/bin/cmake -D input_file:FILEPATH=/home/jetsonhack/tensorRT/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_YoloLayer.cu.o.NVCC-depend -D output_file:FILEPATH=/home/jetsonhack/tensorRT/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_YoloLayer.cu.o.depend.tmp -D verbose=ON -P /usr/share/cmake-3.10/Modules/FindCUDA/make2cmake.cmake
-- Copy if different /home/jetsonhack/tensorRT/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_YoloLayer.cu.o.depend.tmp to /home/jetsonhack/tensorRT/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_YoloLayer.cu.o.depend
/usr/bin/cmake -E copy_if_different /home/jetsonhack/tensorRT/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_YoloLayer.cu.o.depend.tmp /home/jetsonhack/tensorRT/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_YoloLayer.cu.o.depend
-- Removing /home/jetsonhack/tensorRT/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_YoloLayer.cu.o.depend.tmp and /home/jetsonhack/tensorRT/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_YoloLayer.cu.o.NVCC-depend
/usr/bin/cmake -E remove /home/jetsonhack/tensorRT/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_YoloLayer.cu.o.depend.tmp /home/jetsonhack/tensorRT/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_YoloLayer.cu.o.NVCC-depend
-- Generating /home/jetsonhack/tensorRT/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/./TrtNet_generated_YoloLayer.cu.o
/usr/local/cuda-10.2/bin/nvcc /home/jetsonhack/tensorRT/TensorRT-Yolov3/tensorRTWrapper/code/src/YoloLayer.cu -c -o /home/jetsonhack/tensorRT/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/./TrtNet_generated_YoloLayer.cu.o -ccbin /usr/bin/c++ -m64 --std c++11 -Xcompiler ,\"-Wall\",\"-Ofast\",\"-Wfatal-errors\",\"-Wall\",\"-Ofast\",\"-Wfatal-errors\",\"-D_MWAITXINTRIN_H_INCLUDED\",\"-O3\",\"-DNDEBUG\" -D_FORCE_INLINES -Xcompiler -fPIC -DNVCC -I/usr/include/aarch64-linux-gnu -I/usr/local/cuda-10.2/include -I/home/jetsonhack/tensorRT/TensorRT-Yolov3/tensorRTWrapper/code/include
/home/jetsonhack/tensorRT/TensorRT-Yolov3/tensorRTWrapper/code/include/Utils.h(41): error: exception specification for virtual function "Tn::Profiler::reportLayerTime" is incompatible with that of overridden function "nvinfer1::IProfiler::reportLayerTime"

/home/jetsonhack/tensorRT/TensorRT-Yolov3/tensorRTWrapper/code/include/Utils.h(60): error: exception specification for virtual function "Tn::Logger::log" is incompatible with that of overridden function "nvinfer1::ILogger::log"

/home/jetsonhack/tensorRT/TensorRT-Yolov3/tensorRTWrapper/code/include/YoloLayer.h(30): error: incomplete type is not allowed

/home/jetsonhack/tensorRT/TensorRT-Yolov3/tensorRTWrapper/code/include/YoloLayer.h(38): error: member function declared with "override" does not override a base class member

/home/jetsonhack/tensorRT/TensorRT-Yolov3/tensorRTWrapper/code/include/YoloLayer.h(43): error: member function declared with "override" does not override a base class member

/home/jetsonhack/tensorRT/TensorRT-Yolov3/tensorRTWrapper/code/include/YoloLayer.h(45): error: member function declared with "override" does not override a base class member

/home/jetsonhack/tensorRT/TensorRT-Yolov3/tensorRTWrapper/code/include/YoloLayer.h(49): error: member function declared with "override" does not override a base class member

/home/jetsonhack/tensorRT/TensorRT-Yolov3/tensorRTWrapper/code/include/YoloLayer.h(51): error: member function declared with "override" does not override a base class member

/home/jetsonhack/tensorRT/TensorRT-Yolov3/tensorRTWrapper/code/include/YoloLayer.h(53): error: member function declared with "override" does not override a base class member

/home/jetsonhack/tensorRT/TensorRT-Yolov3/tensorRTWrapper/code/include/YoloLayer.h(55): error: member function declared with "override" does not override a base class member

/home/jetsonhack/tensorRT/TensorRT-Yolov3/tensorRTWrapper/code/include/YoloLayer.h(57): error: member function declared with "override" does not override a base class member

/home/jetsonhack/tensorRT/TensorRT-Yolov3/tensorRTWrapper/code/include/YoloLayer.h(59): error: member function declared with "override" does not override a base class member

/home/jetsonhack/tensorRT/TensorRT-Yolov3/tensorRTWrapper/code/include/YoloLayer.h(61): error: member function declared with "override" does not override a base class member

/home/jetsonhack/tensorRT/TensorRT-Yolov3/tensorRTWrapper/code/include/YoloLayer.h(46): error: enum "nvinfer1::TensorFormat" has no member "kNCHW"

/home/jetsonhack/tensorRT/TensorRT-Yolov3/tensorRTWrapper/code/src/YoloLayer.cu(32): warning: variable "a" was declared but never referenced

/home/jetsonhack/tensorRT/TensorRT-Yolov3/tensorRTWrapper/code/src/YoloLayer.cu(47): warning: variable "a" was declared but never referenced

14 errors detected in the compilation of "/tmp/tmpxft_000009e8_00000000-6_YoloLayer.cpp1.ii".
-- Removing /home/jetsonhack/tensorRT/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/./TrtNet_generated_YoloLayer.cu.o
/usr/bin/cmake -E remove /home/jetsonhack/tensorRT/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/./TrtNet_generated_YoloLayer.cu.o
CMake Error at TrtNet_generated_YoloLayer.cu.o.Release.cmake:279 (message):
  Error generating file
  /home/jetsonhack/tensorRT/TensorRT-Yolov3/build/tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/./TrtNet_generated_YoloLayer.cu.o


tensorRTWrapper/code/CMakeFiles/TrtNet.dir/build.make:70: recipe for target 'tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_YoloLayer.cu.o' failed
make[2]: *** [tensorRTWrapper/code/CMakeFiles/TrtNet.dir/src/TrtNet_generated_YoloLayer.cu.o] Error 1
CMakeFiles/Makefile2:122: recipe for target 'tensorRTWrapper/code/CMakeFiles/TrtNet.dir/all' failed
make[1]: *** [tensorRTWrapper/code/CMakeFiles/TrtNet.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant