Compile error when build Tensorrt_OSS
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 13.4k
- Forks
- 2.4k
- Avg merge
- 5d 3h
- Merged PRs (30d)
- 2
Description
[ 3%] Linking CXX shared library ../out/libnvinfer_plugin.so
/usr/bin/ld: cannot find -lcudadevrt
/usr/bin/ld: cannot find -lcudart_static
collect2: error: ld returned 1 exit status
plugin/CMakeFiles/nvinfer_plugin.dir/build.make:2517: recipe for target 'out/libnvinfer_plugin.so.8.2.3' failed
make[2]: *** [out/libnvinfer_plugin.so.8.2.3] Error 1
CMakeFiles/Makefile2:1411: recipe for target 'plugin/CMakeFiles/nvinfer_plugin.dir/all' failed
make[1]: *** [plugin/CMakeFiles/nvinfer_plugin.dir/all] Error 2
Makefile:155: recipe for target 'all' failed
make: *** [all] Error 2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported CMake build output and plugin/CMakeFiles/nvinfer_plugin.dir/build.make around recipe line 2517. Reproduce the link step and inspect how the build locates the two missing runtime libraries. Done means the nvinfer_plugin shared library links successfully and the build proceeds past this target.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100