NVIDIA / NVIDIA/TensorRT

Compile error when build Tensorrt_OSS

Open
#4,164 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Module:OSS Build triaged
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.