onnx-tensorrt
onnx-tensorrt copied to clipboard
make error CMakeFiles/nvonnxparser.dir/build.make:239: recipe for target 'libnvonnxparser.so.8.2.1' failed
Description
/usr/bin/ld: /usr/local/lib/libprotobuf.a(arena.cc.o): relocation R_X86_64_TPOFF32 against symbol _ZN6google8protobuf8internal9ArenaImpl13thread_cache_E' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: CMakeFiles/nvonnxparser.dir/builtin_op_importers.cpp.o: relocation R_X86_64_PC32 against symbol _ZTISt13runtime_error@@GLIBCXX_3.4' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
CMakeFiles/nvonnxparser.dir/build.make:239: recipe for target 'libnvonnxparser.so.8.2.1' failed
make[2]: *** [libnvonnxparser.so.8.2.1] Error 1
CMakeFiles/Makefile2:109: recipe for target 'CMakeFiles/nvonnxparser.dir/all' failed
make[1]: *** [CMakeFiles/nvonnxparser.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2
Environment
**TensorRT Version 16: **ONNX-TensorRT Version / Branch : GPU Type: **Nvidia Driver Version 470.86: **CUDA Version 11.4: **CUDNN Version 8.2: **Operating System + Version Ubuntu18.04: Python Version (if applicable): TensorFlow + TF2ONNX Version (if applicable): PyTorch Version (if applicable): Baremetal or Container (if container which image + tag):
Relevant Files
Steps To Reproduce
In this bug, i have configured the tensorRT path in my operation.
i wander know when i have installed tensorRT 8.0 and i set the correct lib path in environment path of my ubuntu system.
Looks to be an error with protobuf - what version of protobuf do you have? Can you try building in the TensorRT container? - https://catalog.ngc.nvidia.com/orgs/nvidia/containers/tensorrt