TensorRT icon indicating copy to clipboard operation
TensorRT copied to clipboard

build TensorRT OSS 8.2.1 aarch64 link errors

Open jamdodot opened this issue 3 years ago • 2 comments

Description

see also x.log

-- [download 49% complete]
[ 53%] Linking CXX shared library ../out/libnvinfer_plugin.so
/usr/bin/ld: read in flex scanner failed
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [plugin/CMakeFiles/nvinfer_plugin.dir/build.make:2219: out/libnvinfer_plugin.so.8.2.1] Error 1
make[2]: Leaving directory '/root/TensorRT/TensorRT-8.2.1/build'
make[1]: *** [CMakeFiles/Makefile2:1500: plugin/CMakeFiles/nvinfer_plugin.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

x.log

Environment

TensorRT Version: 8.2.5.1 NVIDIA GPU: A100 NVIDIA Driver Version: 470.141.03 CUDA Version: 11.4 CUDNN Version: 8.2 Baremetal or Container (if so, version): none

steps

export TRT_LIBPATH=/root/TensorRT/TensorRT-8.2.5.1/lib/
export TRT_OSSPATH=/root/TensorRT/TensorRT-8.2.1
cmake .. -DTRT_LIB_DIR=$TRT_LIBPATH -DTRT_OUT_DIR=`pwd`/out -DTRT_PLATFORM_ID=aarch64 -DCUDA_VERSION=11.4 -Dnvinfer_LIB_PATH=$TRT_LIBPATH -Dnvparsers_LIB_PATH=$TRT_LIBPATH

Do I have to use docker to build a container to solve this problem? If so, will the 18.09 version of docker work?

jamdodot avatar Sep 20 '22 07:09 jamdodot

@kevinch-nv ^ ^

zerollzeng avatar Sep 21 '22 15:09 zerollzeng

out/libnvinfer_plugin.so.8.2.1 was solved , here comes new problem:

No rule to make target 'third_party.protobuf_aarch64/lib/libprotobuf.a', needed by 'parsers/caffe/proto/trtcaffe.pb.cc'. Stop. make[2]: Leaving directory '/root/TensorRT/TensorRT-8.2.1/build' make[1]: *** [CMakeFiles/Makefile2:1639: parsers/caffe/CMakeFiles/caffe_proto.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs....

new log here : gcc.log

jamdodot avatar Sep 24 '22 09:09 jamdodot

I have a new question,My linux system does not belong to ubuntu or centos, it is a niche distribution. After adding the repo in the dockfile, the installation packages of TensorRT cannot be found.
If I don't use the docker method, I get the error that the .h file cannot be found. Here is my latest error log x.log

jamdodot avatar Oct 06 '22 09:10 jamdodot