Cannot successfully pass the "make" step for TensorRT 7 which was downloaded on Github

Sorry I already got stuck for this problem for a long time. I have no idea on it.
I need your help.

My situation is that I downloaded the NVidia/TensorRT on github, and then I followed the steps to install.
Currently I can pass the cmake step.

This is what I typed the command below.

cmake .. -DCMAKE_CUDA_COMPILER=/usr/local/cuda-10.2/bin/nvcc -DTRT_LIB_DIR=/home/chieh/Downloads/TensorRT-7.0.0.11/lib -DTRT_BIN_DIR=`pwd`/out

Its output is

Building for TensorRT version: 7.0.0.1, library version: 7.0.0
-- The CXX compiler identification is GNU 7.4.0
-- The CUDA compiler identification is NVIDIA 10.2.89
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working CUDA compiler: /usr/local/cuda-10.2/bin/nvcc
-- Check for working CUDA compiler: /usr/local/cuda-10.2/bin/nvcc -- works
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Targeting TRT Platform: x86_64
-- GPU_ARCHS is not defined. Generating CUDA code for default SMs: 35;53;61;70;75
-- CUDA version set to 10.2
-- cuDNN version set to 7.6
-- Protobuf version set to 3.0.0
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- 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 PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Checking for one of the modules 'zlib'
-- Found CUDA: /usr/local/cuda-10.2 (found suitable version "10.2", minimum required is "10.2")
-- Using libprotobuf /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/lib/libprotobuf.a
-- ========================= Importing and creating target nvinfer ==========================
-- Looking for library nvinfer
-- Library that was found /home/chieh/Downloads/TensorRT-7.0.0.11/lib/libnvinfer.so
-- ==========================================================================================
-- ========================= Importing and creating target nvuffparser ==========================
-- Looking for library nvparsers
-- Library that was found /home/chieh/Downloads/TensorRT-7.0.0.11/lib/libnvparsers.so
-- ==========================================================================================
-- Protobuf proto/trtcaffe.proto -> proto/trtcaffe.pb.cc proto/trtcaffe.pb.h
-- /home/chieh/github/TensorRT_fourth/build/parsers/caffe
-- The C compiler identification is GNU 7.4.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
-- Build type not set - defaulting to Release
Generated: /home/chieh/github/TensorRT_fourth/build/parsers/onnx/third_party/onnx/onnx/onnx_onnx2trt_onnx-ml.proto
Generated: /home/chieh/github/TensorRT_fourth/build/parsers/onnx/third_party/onnx/onnx/onnx-operators_onnx2trt_onnx-ml.proto
--
-- ******** Summary ********
--   CMake version         : 3.16.2
--   CMake command         : /usr/local/bin/cmake
--   System                : Linux
--   C++ compiler          : /usr/bin/g++
--   C++ compiler version  : 7.4.0
--   CXX flags             : -Wno-deprecated-declarations  -DBUILD_SYSTEM=cmake_oss -Wall -Wno-deprecated-declarations -Wno-unused-function -Wnon-virtual-dtor
--   Build type            : Release
--   Compile definitions   : _PROTOBUF_INSTALL_DIR=/home/chieh/github/TensorRT_fourth/build;ONNX_NAMESPACE=onnx2trt_onnx
--   CMAKE_PREFIX_PATH     :
--   CMAKE_INSTALL_PREFIX  : /home/chieh/Downloads/TensorRT-7.0.0.11/lib/..
--   CMAKE_MODULE_PATH     :
--
--   ONNX version          : 1.6.0
--   ONNX NAMESPACE        : onnx2trt_onnx
--   ONNX_BUILD_TESTS      : OFF
--   ONNX_BUILD_BENCHMARKS : OFF
--   ONNX_USE_LITE_PROTO   : OFF
--   ONNXIFI_DUMMY_BACKEND : OFF
--   ONNXIFI_ENABLE_EXT    : OFF
--
--   Protobuf compiler     :
--   Protobuf includes     :
--   Protobuf libraries    :
--   BUILD_ONNX_PYTHON     : OFF
-- Found TensorRT headers at /home/chieh/github/TensorRT_fourth/include
-- Find TensorRT libs at /home/chieh/Downloads/TensorRT-7.0.0.11/lib/libnvinfer.so;/home/chieh/Downloads/TensorRT-7.0.0.11/lib/libnvinfer_plugin.so;/home/chieh/Downloads/TensorRT-7.0.0.11/lib/libmyelin.so
-- Found TENSORRT: /home/chieh/github/TensorRT_fourth/include  
-- Adding new sample: sample_char_rnn
--     - Parsers Used: none
--     - InferPlugin Used: OFF
--     - Licensing: opensource
-- Adding new sample: sample_dynamic_reshape
--     - Parsers Used: onnx
--     - InferPlugin Used: OFF
--     - Licensing: opensource
-- Adding new sample: sample_fasterRCNN
--     - Parsers Used: caffe
--     - InferPlugin Used: ON
--     - Licensing: opensource
-- Adding new sample: sample_googlenet
--     - Parsers Used: caffe
--     - InferPlugin Used: OFF
--     - Licensing: opensource
-- Adding new sample: sample_int8
--     - Parsers Used: caffe
--     - InferPlugin Used: ON
--     - Licensing: opensource
-- Adding new sample: sample_int8_api
--     - Parsers Used: onnx
--     - InferPlugin Used: OFF
--     - Licensing: opensource
-- Adding new sample: sample_mlp
--     - Parsers Used: caffe
--     - InferPlugin Used: OFF
--     - Licensing: opensource
-- Adding new sample: sample_mnist
--     - Parsers Used: caffe
--     - InferPlugin Used: OFF
--     - Licensing: opensource
-- Adding new sample: sample_mnist_api
--     - Parsers Used: caffe
--     - InferPlugin Used: OFF
--     - Licensing: opensource
-- Adding new sample: sample_movielens
--     - Parsers Used: uff
--     - InferPlugin Used: OFF
--     - Licensing: opensource
-- Adding new sample: sample_movielens_mps
--     - Parsers Used: uff
--     - InferPlugin Used: OFF
--     - Licensing: opensource
-- Adding new sample: sample_nmt
--     - Parsers Used: none
--     - InferPlugin Used: OFF
--     - Licensing: opensource
-- Adding new sample: sample_onnx_mnist
--     - Parsers Used: onnx
--     - InferPlugin Used: OFF
--     - Licensing: opensource
-- Adding new sample: sample_plugin
--     - Parsers Used: caffe
--     - InferPlugin Used: ON
--     - Licensing: opensource
-- Adding new sample: sample_reformat_free_io
--     - Parsers Used: caffe
--     - InferPlugin Used: OFF
--     - Licensing: opensource
-- Adding new sample: sample_ssd
--     - Parsers Used: caffe
--     - InferPlugin Used: ON
--     - Licensing: opensource
-- Adding new sample: sample_uff_fasterRCNN
--     - Parsers Used: uff
--     - InferPlugin Used: ON
--     - Licensing: opensource
-- Adding new sample: sample_uff_maskRCNN
--     - Parsers Used: uff
--     - InferPlugin Used: ON
--     - Licensing: opensource
-- Adding new sample: sample_uff_mnist
--     - Parsers Used: uff
--     - InferPlugin Used: OFF
--     - Licensing: opensource
-- Adding new sample: sample_uff_plugin_v2_ext
--     - Parsers Used: uff
--     - InferPlugin Used: OFF
--     - Licensing: opensource
-- Adding new sample: sample_uff_ssd
--     - Parsers Used: uff
--     - InferPlugin Used: ON
--     - Licensing: opensource
-- Adding new sample: trtexec
--     - Parsers Used: caffe;uff;onnx
--     - InferPlugin Used: ON
--     - Licensing: opensource
-- Configuring done
-- Generating done
-- Build files have been written to: /home/chieh/github/TensorRT_fourth/build

I also followed the instruction from https://devtalk.nvidia.com/default/topic/1064407/transfer-learning-toolkit/how-to-export-model-using-tlt-converter-for-jetson-nano/post/5393964/#5393964.

$ vim CMakeFiles/third_party.protobuf.dir/build.make
comment out line90
90         #cd /home/nvidia/trt-oss/TensorRT/build/third_party.protobuf/src && /usr/local/bin/cmake -P /home/nvidia/trt-oss/TensorRT/build/third_party.protobuf/src/third_party.protobuf-stamp/download-third_party.protobuf.cmake

Subsequently, I typed

make -j$(nproc)

Then I got the error.

/usr/local/cuda-10.2/include/cuda_runtime_api.h:9534:87: note: suggested alternative: ‘cudaError_t’
 extern __host__ cudaError_t CUDARTAPI cudaGraphExecUpdate(cudaGraphExec_t hGraphExec, cudaGraph_t hGraph, cudaGraphNode_t *hErrorNode_out, enum cudaGraphExecUpdateResult *updateResult_out);
                                                                                       ^~~~~~~~~~~
                                                                                       cudaError_t
/usr/local/cuda-10.2/include/cuda_runtime_api.h:9534:107: error: ‘cudaGraphNode_t’ was not declared in this scope
 extern __host__ cudaError_t CUDARTAPI cudaGraphExecUpdate(cudaGraphExec_t hGraphExec, cudaGraph_t hGraph, cudaGraphNode_t *hErrorNode_out, enum cudaGraphExecUpdateResult *updateResult_out);
                                                                                                           ^~~~~~~~~~~~~~~
/usr/local/cuda-10.2/include/cuda_runtime_api.h:9534:107: note: suggested alternative: ‘cudaGraphGetNodes’
 extern __host__ cudaError_t CUDARTAPI cudaGraphExecUpdate(cudaGraphExec_t hGraphExec, cudaGraph_t hGraph, cudaGraphNode_t *hErrorNode_out, enum cudaGraphExecUpdateResult *updateResult_out);
                                                                                                           ^~~~~~~~~~~~~~~
                                                                                                           cudaGraphGetNodes
/usr/local/cuda-10.2/include/cuda_runtime_api.h:9534:124: error: ‘hErrorNode_out’ was not declared in this scope
 extern __host__ cudaError_t CUDARTAPI cudaGraphExecUpdate(cudaGraphExec_t hGraphExec, cudaGraph_t hGraph, cudaGraphNode_t *hErrorNode_out, enum cudaGraphExecUpdateResult *updateResult_out);
                                                                                                                            ^~~~~~~~~~~~~~
/usr/local/cuda-10.2/include/cuda_runtime_api.h:9534:140: error: expected primary-expression before ‘enum’
 extern __host__ cudaError_t CUDARTAPI cudaGraphExecUpdate(cudaGraphExec_t hGraphExec, cudaGraph_t hGraph, cudaGraphNode_t *hErrorNode_out, enum cudaGraphExecUpdateResult *updateResult_out);
                                                                                                                                            ^~~~
/usr/local/cuda-10.2/include/cuda_runtime_api.h:9534:188: error: expression list treated as compound expression in initializer [-fpermissive]
 extern __host__ cudaError_t CUDARTAPI cudaGraphExecUpdate(cudaGraphExec_t hGraphExec, cudaGraph_t hGraph, cudaGraphNode_t *hErrorNode_out, enum cudaGraphExecUpdateResult *updateResult_out);
                                                                                                                                                                                            ^
/usr/local/cuda-10.2/include/cuda_runtime_api.h:9559:55: error: ‘cudaGraphExec_t’ was not declared in this scope
 extern __host__ cudaError_t CUDARTAPI cudaGraphLaunch(cudaGraphExec_t graphExec, cudaStream_t stream);
                                                       ^~~~~~~~~~~~~~~
/usr/local/cuda-10.2/include/cuda_runtime_api.h:9559:55: note: suggested alternative: ‘cudaGraphExecUpdate’
 extern __host__ cudaError_t CUDARTAPI cudaGraphLaunch(cudaGraphExec_t graphExec, cudaStream_t stream);
                                                       ^~~~~~~~~~~~~~~
                                                       cudaGraphExecUpdate
/usr/local/cuda-10.2/include/cuda_runtime_api.h:9559:95: error: expected primary-expression before ‘stream’
 extern __host__ cudaError_t CUDARTAPI cudaGraphLaunch(cudaGraphExec_t graphExec, cudaStream_t stream);
                                                                                               ^~~~~~
/usr/local/cuda-10.2/include/cuda_runtime_api.h:9559:101: error: expression list treated as compound expression in initializer [-fpermissive]
 extern __host__ cudaError_t CUDARTAPI cudaGraphLaunch(cudaGraphExec_t graphExec, cudaStream_t stream);
                                                                                                     ^
/usr/local/cuda-10.2/include/cuda_runtime_api.h:9580:60: error: ‘cudaGraphExec_t’ was not declared in this scope
 extern __host__ cudaError_t CUDARTAPI cudaGraphExecDestroy(cudaGraphExec_t graphExec);
                                                            ^~~~~~~~~~~~~~~
/usr/local/cuda-10.2/include/cuda_runtime_api.h:9580:60: note: suggested alternative: ‘cudaGraphExecUpdate’
 extern __host__ cudaError_t CUDARTAPI cudaGraphExecDestroy(cudaGraphExec_t graphExec);
                                                            ^~~~~~~~~~~~~~~
                                                            cudaGraphExecUpdate
/usr/local/cuda-10.2/include/cuda_runtime_api.h:9600:56: error: ‘cudaGraph_t’ was not declared in this scope
 extern __host__ cudaError_t CUDARTAPI cudaGraphDestroy(cudaGraph_t graph);
                                                        ^~~~~~~~~~~
/usr/local/cuda-10.2/include/cuda_runtime_api.h:9600:56: note: suggested alternative: ‘cudaError_t’
 extern __host__ cudaError_t CUDARTAPI cudaGraphDestroy(cudaGraph_t graph);
                                                        ^~~~~~~~~~~
                                                        cudaError_t
plugin/CMakeFiles/nvinfer_plugin_static.dir/build.make:205: recipe for target 'plugin/CMakeFiles/nvinfer_plugin_static.dir/proposalPlugin/proposalPlugin.cpp.o' failed
make[2]: *** [plugin/CMakeFiles/nvinfer_plugin_static.dir/proposalPlugin/proposalPlugin.cpp.o] Error 1
CMakeFiles/Makefile2:1356: recipe for target 'plugin/CMakeFiles/nvinfer_plugin_static.dir/all' failed
make[1]: *** [plugin/CMakeFiles/nvinfer_plugin_static.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2

Another information what I typed.

$whereis libnvinfer_plugin.so                                                               
libnvinfer_plugin: /usr/lib/x86_64-linux-gnu/libnvinfer_plugin.so

My environment information:

  • Ubuntu 18.04
  • Cuda 10.2
  • cmake version 3.16.2
  • TensorRT 7
  • gcc version 7.4.0

Is there any suggestion for solving this problem?

Thank you!!

Hi,

Could you please try the fix suggested in below link:
https://github.com/onnx/onnx-tensorrt/issues/97

Thanks

Dear SunilJB,
Thanks for your reply!!

I followed the link to modify.

Editing /usr/include/cudnn.h

and changing the line:
#include "driver_types.h"
to:
#include <driver_types.h>

Then I still get the error.

[ 96%] Building CXX object CMakeFiles/libprotoc.dir/src/google/protobuf/compiler/python/python_generator.cc.o
[ 97%] Building CXX object CMakeFiles/libprotoc.dir/src/google/protobuf/compiler/ruby/ruby_generator.cc.o
[ 97%] Building CXX object CMakeFiles/libprotoc.dir/src/google/protobuf/compiler/subprocess.cc.o
[ 98%] Building CXX object CMakeFiles/libprotoc.dir/src/google/protobuf/compiler/zip_writer.cc.o
[ 98%] Linking CXX static library libprotoc.a
[ 98%] Built target libprotoc
Scanning dependencies of target protoc
[ 99%] Building CXX object CMakeFiles/protoc.dir/src/google/protobuf/compiler/main.cc.o
[100%] Linking CXX executable protoc
[100%] Built target protoc
[  5%] Performing install step for 'third_party.protobuf'
[ 12%] Built target libprotobuf-lite
[ 51%] Built target libprotobuf
[ 98%] Built target libprotoc
[100%] Built target protoc
Install the project...
-- Install configuration: ""
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/lib/libprotobuf-lite.a
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/lib/libprotobuf.a
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/lib/libprotoc.a
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/bin/protoc
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/any.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/any.pb.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/api.pb.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/arena.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/arenastring.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/compiler/code_generator.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/compiler/command_line_interface.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/compiler/cpp/cpp_generator.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/compiler/csharp/csharp_generator.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/compiler/csharp/csharp_names.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/compiler/csharp/csharp_options.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/compiler/importer.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/compiler/java/java_generator.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/compiler/java/java_names.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/compiler/javanano/javanano_generator.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/compiler/js/js_generator.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/compiler/objectivec/objectivec_generator.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/compiler/objectivec/objectivec_helpers.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/compiler/parser.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/compiler/plugin.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/compiler/plugin.pb.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/compiler/python/python_generator.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/compiler/ruby/ruby_generator.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/descriptor.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/descriptor.pb.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/descriptor_database.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/duration.pb.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/dynamic_message.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/empty.pb.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/extension_set.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/field_mask.pb.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/generated_enum_reflection.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/generated_enum_util.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/generated_message_reflection.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/generated_message_util.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/io/coded_stream.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/io/gzip_stream.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/io/printer.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/io/strtod.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/io/tokenizer.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/io/zero_copy_stream.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/io/zero_copy_stream_impl.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/io/zero_copy_stream_impl_lite.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/map.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/map_entry.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/map_entry_lite.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/map_field.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/map_field_inl.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/map_field_lite.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/map_type_handler.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/message.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/message_lite.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/metadata.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/reflection.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/reflection_ops.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/repeated_field.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/service.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/source_context.pb.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/struct.pb.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/stubs/atomic_sequence_num.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/stubs/atomicops.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/stubs/atomicops_internals_arm64_gcc.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/stubs/atomicops_internals_arm_gcc.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/stubs/atomicops_internals_arm_qnx.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/stubs/atomicops_internals_atomicword_compat.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/stubs/atomicops_internals_generic_gcc.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/stubs/atomicops_internals_macosx.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/stubs/atomicops_internals_mips_gcc.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/stubs/atomicops_internals_pnacl.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/stubs/atomicops_internals_power.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/stubs/atomicops_internals_solaris.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/stubs/atomicops_internals_tsan.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/stubs/atomicops_internals_x86_gcc.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/stubs/atomicops_internals_x86_msvc.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/stubs/bytestream.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/stubs/callback.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/stubs/casts.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/stubs/common.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/stubs/fastmem.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/stubs/hash.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/stubs/logging.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/stubs/macros.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/stubs/mutex.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/stubs/once.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/stubs/platform_macros.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/stubs/port.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/stubs/scoped_ptr.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/stubs/shared_ptr.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/stubs/singleton.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/stubs/status.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/stubs/stl_util.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/stubs/stringpiece.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/stubs/template_util.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/stubs/type_traits.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/text_format.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/timestamp.pb.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/type.pb.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/unknown_field_set.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/util/field_comparator.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/util/field_mask_util.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/util/json_util.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/util/message_differencer.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/util/time_util.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/util/type_resolver.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/util/type_resolver_util.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/wire_format.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/wire_format_lite.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/wire_format_lite_inl.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/wrappers.pb.h
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/descriptor.proto
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/any.proto
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/api.proto
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/duration.proto
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/empty.proto
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/field_mask.proto
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/source_context.proto
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/struct.proto
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/timestamp.proto
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/type.proto
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/wrappers.proto
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/include/google/protobuf/compiler/plugin.proto
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/lib/cmake/protobuf/protobuf-targets.cmake
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/lib/cmake/protobuf/protobuf-targets-noconfig.cmake
-- Up-to-date: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/lib/cmake/protobuf
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/lib/cmake/protobuf/protobuf-config.cmake
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/lib/cmake/protobuf/protobuf-config-version.cmake
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/lib/cmake/protobuf/protobuf-module.cmake
-- Installing: /home/chieh/github/TensorRT_fourth/build/third_party.protobuf/lib/cmake/protobuf/protobuf-options.cmake
[  5%] Completed 'third_party.protobuf'
[  5%] Built target third_party.protobuf
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2

When I tried the second time, it showed the new information.

/usr/local/cuda-10.2/include/cuda_runtime_api.h:9534:124: error: ‘hErrorNode_out’ was not declared in this scope
 extern __host__ cudaError_t CUDARTAPI cudaGraphExecUpdate(cudaGraphExec_t hGraphExec, cudaGraph_t hGraph, cudaGraphNode_t *hErrorNode_out, enum cudaGraphExecUpdateResult *updateResult_out);
                                                                                                                            ^~~~~~~~~~~~~~
/usr/local/cuda-10.2/include/cuda_runtime_api.h:9534:140: error: expected primary-expression before ‘enum’
 extern __host__ cudaError_t CUDARTAPI cudaGraphExecUpdate(cudaGraphExec_t hGraphExec, cudaGraph_t hGraph, cudaGraphNode_t *hErrorNode_out, enum cudaGraphExecUpdateResult *updateResult_out);
                                                                                                                                            ^~~~
/usr/local/cuda-10.2/include/cuda_runtime_api.h:9534:188: error: expression list treated as compound expression in initializer [-fpermissive]
 extern __host__ cudaError_t CUDARTAPI cudaGraphExecUpdate(cudaGraphExec_t hGraphExec, cudaGraph_t hGraph, cudaGraphNode_t *hErrorNode_out, enum cudaGraphExecUpdateResult *updateResult_out);
                                                                                                                                                                                            ^
/usr/local/cuda-10.2/include/cuda_runtime_api.h:9559:55: error: ‘cudaGraphExec_t’ was not declared in this scope
 extern __host__ cudaError_t CUDARTAPI cudaGraphLaunch(cudaGraphExec_t graphExec, cudaStream_t stream);
                                                       ^~~~~~~~~~~~~~~
/usr/local/cuda-10.2/include/cuda_runtime_api.h:9559:55: note: suggested alternative: ‘cudaGraphExecUpdate’
 extern __host__ cudaError_t CUDARTAPI cudaGraphLaunch(cudaGraphExec_t graphExec, cudaStream_t stream);
                                                       ^~~~~~~~~~~~~~~
                                                       cudaGraphExecUpdate
/usr/local/cuda-10.2/include/cuda_runtime_api.h:9559:95: error: expected primary-expression before ‘stream’
 extern __host__ cudaError_t CUDARTAPI cudaGraphLaunch(cudaGraphExec_t graphExec, cudaStream_t stream);
                                                                                               ^~~~~~
/usr/local/cuda-10.2/include/cuda_runtime_api.h:9559:101: error: expression list treated as compound expression in initializer [-fpermissive]
 extern __host__ cudaError_t CUDARTAPI cudaGraphLaunch(cudaGraphExec_t graphExec, cudaStream_t stream);
                                                                                                     ^
/usr/local/cuda-10.2/include/cuda_runtime_api.h:9580:60: error: ‘cudaGraphExec_t’ was not declared in this scope
 extern __host__ cudaError_t CUDARTAPI cudaGraphExecDestroy(cudaGraphExec_t graphExec);
                                                            ^~~~~~~~~~~~~~~
/usr/local/cuda-10.2/include/cuda_runtime_api.h:9580:60: note: suggested alternative: ‘cudaGraphExecUpdate’
 extern __host__ cudaError_t CUDARTAPI cudaGraphExecDestroy(cudaGraphExec_t graphExec);
                                                            ^~~~~~~~~~~~~~~
                                                            cudaGraphExecUpdate
/usr/local/cuda-10.2/include/cuda_runtime_api.h:9600:56: error: ‘cudaGraph_t’ was not declared in this scope
 extern __host__ cudaError_t CUDARTAPI cudaGraphDestroy(cudaGraph_t graph);
                                                        ^~~~~~~~~~~
/usr/local/cuda-10.2/include/cuda_runtime_api.h:9600:56: note: suggested alternative: ‘cudaError_t’
 extern __host__ cudaError_t CUDARTAPI cudaGraphDestroy(cudaGraph_t graph);
                                                        ^~~~~~~~~~~
                                                        cudaError_t
plugin/CMakeFiles/nvinfer_plugin_static.dir/build.make:101: recipe for target 'plugin/CMakeFiles/nvinfer_plugin_static.dir/reorgPlugin/reorgPlugin.cpp.o' failed
make[2]: *** [plugin/CMakeFiles/nvinfer_plugin_static.dir/reorgPlugin/reorgPlugin.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
plugin/CMakeFiles/nvinfer_plugin_static.dir/build.make:127: recipe for target 'plugin/CMakeFiles/nvinfer_plugin_static.dir/regionPlugin/regionPlugin.cpp.o' failed
make[2]: *** [plugin/CMakeFiles/nvinfer_plugin_static.dir/regionPlugin/regionPlugin.cpp.o] Error 1
[  8%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser_static.dir/caffeParser/opParsers/parseBatchNorm.cpp.o
[  8%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser_static.dir/caffeParser/opParsers/parseAbsVal.cpp.o
plugin/CMakeFiles/nvinfer_plugin.dir/build.make:101: recipe for target 'plugin/CMakeFiles/nvinfer_plugin.dir/reorgPlugin/reorgPlugin.cpp.o' failed
make[2]: *** [plugin/CMakeFiles/nvinfer_plugin.dir/reorgPlugin/reorgPlugin.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[  9%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser_static.dir/caffeParser/opParsers/parseBNLL.cpp.o
plugin/CMakeFiles/nvinfer_plugin.dir/build.make:62: recipe for target 'plugin/CMakeFiles/nvinfer_plugin.dir/nmsPlugin/nmsPlugin.cpp.o' failed
make[2]: *** [plugin/CMakeFiles/nvinfer_plugin.dir/nmsPlugin/nmsPlugin.cpp.o] Error 1
CMakeFiles/Makefile2:1301: recipe for target 'plugin/CMakeFiles/nvinfer_plugin.dir/all' failed
make[1]: *** [plugin/CMakeFiles/nvinfer_plugin.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[  9%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser_static.dir/caffeParser/opParsers/parseClip.cpp.o
plugin/CMakeFiles/nvinfer_plugin_static.dir/build.make:62: recipe for target 'plugin/CMakeFiles/nvinfer_plugin_static.dir/nmsPlugin/nmsPlugin.cpp.o' failed
make[2]: *** [plugin/CMakeFiles/nvinfer_plugin_static.dir/nmsPlugin/nmsPlugin.cpp.o] Error 1
[  9%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser_static.dir/caffeParser/opParsers/parseConcat.cpp.o
plugin/CMakeFiles/nvinfer_plugin_static.dir/build.make:192: recipe for target 'plugin/CMakeFiles/nvinfer_plugin_static.dir/cropAndResizePlugin/cropAndResizePlugin.cpp.o' failed
make[2]: *** [plugin/CMakeFiles/nvinfer_plugin_static.dir/cropAndResizePlugin/cropAndResizePlugin.cpp.o] Error 1
CMakeFiles/Makefile2:1356: recipe for target 'plugin/CMakeFiles/nvinfer_plugin_static.dir/all' failed
make[1]: *** [plugin/CMakeFiles/nvinfer_plugin_static.dir/all] Error 2
[ 10%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser.dir/caffeParser/opParsers/parseAbsVal.cpp.o
[ 11%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser_static.dir/caffeParser/opParsers/parseConv.cpp.o
[ 11%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser_static.dir/caffeParser/opParsers/parseCrop.cpp.o
[ 11%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser_static.dir/caffeParser/opParsers/parseDeconv.cpp.o
[ 11%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser_static.dir/caffeParser/opParsers/parseEltwise.cpp.o
[ 12%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser_static.dir/caffeParser/opParsers/parseELU.cpp.o
[ 12%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser.dir/caffeParser/opParsers/parseBatchNorm.cpp.o
[ 12%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser_static.dir/caffeParser/opParsers/parseInnerProduct.cpp.o
[ 12%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser_static.dir/caffeParser/opParsers/parseLRN.cpp.o
[ 13%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser_static.dir/caffeParser/opParsers/parsePermute.cpp.o
[ 13%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser_static.dir/caffeParser/opParsers/parsePooling.cpp.o
[ 13%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser_static.dir/caffeParser/opParsers/parsePower.cpp.o
[ 13%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser.dir/caffeParser/opParsers/parseBNLL.cpp.o
[ 13%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser_static.dir/caffeParser/opParsers/parsePReLU.cpp.o
[ 15%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser_static.dir/caffeParser/opParsers/parseReduction.cpp.o
[ 15%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser_static.dir/caffeParser/opParsers/parseReLU.cpp.o
[ 15%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser_static.dir/caffeParser/opParsers/parseReshape.cpp.o
[ 16%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser_static.dir/caffeParser/opParsers/parseScale.cpp.o
[ 16%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser_static.dir/caffeParser/opParsers/parseSigmoid.cpp.o
[ 16%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser_static.dir/caffeParser/opParsers/parseSoftMax.cpp.o
[ 16%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser_static.dir/caffeParser/opParsers/parseTanH.cpp.o
[ 17%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser_static.dir/caffeWeightFactory/caffeWeightFactory.cpp.o
[ 17%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser_static.dir/caffeParser/caffeParser.cpp.o
[ 17%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser_static.dir/NvCaffeParser.cpp.o
[ 18%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser.dir/caffeParser/opParsers/parseClip.cpp.o
[ 18%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser.dir/caffeParser/opParsers/parseConcat.cpp.o
[ 18%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser.dir/caffeParser/opParsers/parseConv.cpp.o
[ 18%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser.dir/caffeParser/opParsers/parseCrop.cpp.o
[ 19%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser.dir/caffeParser/opParsers/parseDeconv.cpp.o
[ 19%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser.dir/caffeParser/opParsers/parseEltwise.cpp.o
[ 19%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser.dir/caffeParser/opParsers/parseELU.cpp.o
[ 20%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser.dir/caffeParser/opParsers/parseInnerProduct.cpp.o
[ 20%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser.dir/caffeParser/opParsers/parseLRN.cpp.o
[ 20%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser.dir/caffeParser/opParsers/parsePermute.cpp.o
[ 20%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser.dir/caffeParser/opParsers/parsePooling.cpp.o
[ 22%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser.dir/caffeParser/opParsers/parsePower.cpp.o
[ 22%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser.dir/caffeParser/opParsers/parsePReLU.cpp.o
[ 22%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser.dir/caffeParser/opParsers/parseReduction.cpp.o
[ 23%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser.dir/caffeParser/opParsers/parseReLU.cpp.o
[ 23%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser.dir/caffeParser/opParsers/parseReshape.cpp.o
[ 23%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser.dir/caffeParser/opParsers/parseScale.cpp.o
[ 23%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser.dir/caffeParser/opParsers/parseSigmoid.cpp.o
[ 24%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser.dir/caffeParser/opParsers/parseSoftMax.cpp.o
[ 24%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser.dir/caffeParser/opParsers/parseTanH.cpp.o
[ 24%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser.dir/caffeWeightFactory/caffeWeightFactory.cpp.o
[ 25%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser.dir/caffeParser/caffeParser.cpp.o
[ 25%] Building CXX object parsers/caffe/CMakeFiles/nvcaffeparser.dir/NvCaffeParser.cpp.o
[ 26%] Linking CXX static library ../../out/libnvcaffeparser_static.a
[ 26%] Built target nvcaffeparser_static
[ 26%] Linking CXX shared library ../../out/libnvcaffeparser.so
[ 26%] Built target nvcaffeparser
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2

Is there any method to check where I didn’t do correctly? For example, is there any version too low or should I need to reinstall something again?

It is very strange because I can run a majority of samples including Python and C++ cases in the TensorRT7.0.0.11 which was installed by tar file.

Hi,

Could you please let me know the GPU type and cuDNN version that you are using for this experiment?
Also, just wanted to check, if steps to reproduce the issue is same as mentioned in below link:
https://devtalk.nvidia.com/default/topic/1064407/transfer-learning-toolkit/how-to-export-model-using-tlt-converter-for-jetson-nano/post/5393964/#5393964

Thanks

Dear SunilJB,
Thanks for your suggestion!

My GPU is GTX 1060, cuDNN version is 7.6.5.

yeah, I already saw this issue. and I tried the second part of this reply https://devtalk.nvidia.com/default/topic/1064407/transfer-learning-toolkit/how-to-export-model-using-tlt-converter-for-jetson-nano/post/5393964/#5393964.

I didn’t re-download cmake and reinstall it, because I already had.

Moreover, I can pass the cmake part, but I got stuck at the “make -j$(nproc)” step.
I am not sure one thing that I was not using the Jetpack. whether it will influence or not?

Another confused point is that when I checked my location at /usr/lib/x86_64-linux-gnu, I just saw version 6. But it should be version 7, right?

PS I used the latest TensorRT version 7.0.0.11.

$ls libnvinfer_plugin.so  
libnvinfer_plugin.so@       libnvinfer_plugin.so.6.0.1                            
libnvinfer_plugin.so.6@     libnvinfer_plugin_static.a

Does it this reason to get wrong?

I have no idea now. whatever I remove the document and re-git it, and then try the steps again and again. It didn’t work and got the similar error.

Thanks a lot!

Hi,

Could you please try installing TRT using tar file approach? Please refer below link for more details:
https://docs.nvidia.com/deeplearning/sdk/tensorrt-archived/tensorrt-700/tensorrt-install-guide/index.html#installing-tar
Most of the TRT samples are part of TRT 7 package.

Also, I will recommend you to use NGC to reduce any host-side dependencies.

Thanks

Hi SunilJB,

Thanks for your response.

My TensorRT was installed by tar file from older Version 6 to current Version 7. (I have removed TensorRT version 6.) My TRT of tar file was working very well.

Mainly I want to try the onnx_tensorrt which is included in the TensorRT of Github version.

I knew NGC before, but I was worry about that it will crash with my existing TensorRT.
I will try to use NGC.

Thanks for your suggestion and help!

Best Regards,
Chieh