Failed to run install mlperf loadgen, plugin and harness on Jetson Xavier NX

Jetson Xavier NX
4.5.1 JetPack

I cloned inference v1.0 repo from GitHub and follow the instruction to install the plugin, loadgen and harness with make command line. Error found on “make build_plugins”.

/home/ubuntu/inference_results_v1.0/closed/NVIDIA/code/plugin/NMSOptPlugin/src/softmaxScore.cpp: In function ‘ssdStatus_t nvinfer1::plugin::softmaxScore(cudaStream_t, int, int, int, int, DType_t, const void*, void*, cudnnHandle_t, cudnnTensorDescriptor_t, cudnnTensorDescriptor_t)’:
/home/ubuntu/inference_results_v1.0/closed/NVIDIA/code/plugin/NMSOptPlugin/src/softmaxScore.cpp:43:19: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
cudnnStatus_t status;
^~~~~~
/home/ubuntu/inference_results_v1.0/closed/NVIDIA/code/plugin/NMSOptPlugin/src/nmsPluginOpt.h(99): warning: function “nvinfer1::IPluginV2Ext::configurePlugin(const nvinfer1::Dims *, int, const nvinfer1::Dims *, int, const nvinfer1::DataType *, const nvinfer1::DataType *, const __nv_bool *, const __nv_bool *, nvinfer1::PluginFormat, int)” is hidden by “nvinfer1::plugin::DetectionOutputOptStatic::configurePlugin” – virtual function override intended?

/home/ubuntu/inference_results_v1.0/closed/NVIDIA/code/plugin/NMSOptPlugin/src/nmsPluginOpt.h(115): warning: function “nvinfer1::IPluginV2::getOutputDimensions(int, const nvinfer1::Dims *, int)” is hidden by “nvinfer1::plugin::DetectionOutputOptDynamic::getOutputDimensions” – virtual function override intended?

/home/ubuntu/inference_results_v1.0/closed/NVIDIA/code/plugin/NMSOptPlugin/src/nmsPluginOpt.h(118): warning: function “nvinfer1::IPluginV2Ext::configurePlugin(const nvinfer1::Dims *, int, const nvinfer1::Dims *, int, const nvinfer1::DataType *, const nvinfer1::DataType *, const __nv_bool *, const __nv_bool *, nvinfer1::PluginFormat, int)” is hidden by “nvinfer1::plugin::DetectionOutputOptDynamic::configurePlugin” – virtual function override intended?

/home/ubuntu/inference_results_v1.0/closed/NVIDIA/code/plugin/NMSOptPlugin/src/nmsPluginOpt.h(120): warning: function “nvinfer1::IPluginV2::getWorkspaceSize(int) const” is hidden by “nvinfer1::plugin::DetectionOutputOptDynamic::getWorkspaceSize” – virtual function override intended?

/home/ubuntu/inference_results_v1.0/closed/NVIDIA/code/plugin/NMSOptPlugin/src/nmsPluginOpt.h(122): warning: function “nvinfer1::IPluginV2::enqueue(int, const void *const *, void **, void *, cudaStream_t)” is hidden by “nvinfer1::plugin::DetectionOutputOptDynamic::enqueue” – virtual function override intended?

/home/ubuntu/inference_results_v1.0/closed/NVIDIA/code/plugin/NMSOptPlugin/src/allClassNMSOpt.cu(139): warning: variable “result_active_count” was set but never used
detected during instantiation of “ssdStatus_t nvinfer1::plugin::allClassNMSOpt_gpu<T_SCORE,T_BBOX>(cudaStream_t, int, int, int, int, float, __nv_bool, __nv_bool, void *, void *, void *, void *, void *, void *, void *, __nv_bool) [with T_SCORE=float, T_BBOX=float]”
(409): here

/home/ubuntu/inference_results_v1.0/closed/NVIDIA/code/plugin/NMSOptPlugin/src/nmsPluginOpt.h(99): warning: function “nvinfer1::IPluginV2Ext::configurePlugin(const nvinfer1::Dims *, int, const nvinfer1::Dims *, int, const nvinfer1::DataType *, const nvinfer1::DataType *, const __nv_bool *, const __nv_bool *, nvinfer1::PluginFormat, int)” is hidden by “nvinfer1::plugin::DetectionOutputOptStatic::configurePlugin” – virtual function override intended?

/home/ubuntu/inference_results_v1.0/closed/NVIDIA/code/plugin/NMSOptPlugin/src/nmsPluginOpt.h(115): warning: function “nvinfer1::IPluginV2::getOutputDimensions(int, const nvinfer1::Dims *, int)” is hidden by “nvinfer1::plugin::DetectionOutputOptDynamic::getOutputDimensions” – virtual function override intended?

/home/ubuntu/inference_results_v1.0/closed/NVIDIA/code/plugin/NMSOptPlugin/src/nmsPluginOpt.h(118): warning: function “nvinfer1::IPluginV2Ext::configurePlugin(const nvinfer1::Dims *, int, const nvinfer1::Dims *, int, const nvinfer1::DataType *, const nvinfer1::DataType *, const __nv_bool *, const __nv_bool *, nvinfer1::PluginFormat, int)” is hidden by “nvinfer1::plugin::DetectionOutputOptDynamic::configurePlugin” – virtual function override intended?



/home/ubuntu/inference_results_v1.0/closed/NVIDIA/code/plugin/RNNTOptPlugin/src/decoderPlugin.cu: In member function ‘virtual bool nvinfer1::plugin::RNNTDecoderPlugin::supportsFormatCombination(int, const nvinfer1::PluginTensorDesc*, int, int)’:
/home/ubuntu/inference_results_v1.0/closed/NVIDIA/code/plugin/RNNTOptPlugin/src/decoderPlugin.cu:186:44: warning: ‘kNCHW’ is deprecated [-Wdeprecated-declarations]
if (inOut[pos].format != TensorFormat::kNCHW)
^~~~~
/usr/include/aarch64-linux-gnu/NvInferRuntimeCommon.h:259:1: note: declared here
kNCHW TRT_DEPRECATED_ENUM = kLINEAR, //!< Deprecated name of kLINEAR, provided for backwards compatibility
^ ~
/home/ubuntu/inference_results_v1.0/closed/NVIDIA/code/plugin/RNNTOptPlugin/src/decoderPlugin.cu:186:44: warning: ‘kNCHW’ is deprecated [-Wdeprecated-declarations]
if (inOut[pos].format != TensorFormat::kNCHW)
^~~~~
/usr/include/aarch64-linux-gnu/NvInferRuntimeCommon.h:259:1: note: declared here
kNCHW TRT_DEPRECATED_ENUM = kLINEAR, //!< Deprecated name of kLINEAR, provided for backwards compatibility
^ ~




/home/ubuntu/inference_results_v1.0/closed/NVIDIA/code/plugin/instanceNormalization3DPlugin/src/instanceNormalization3DPlugin.cu(253): error: enum “nvinfer1::TensorFormat” has no member “kDHWC8”

/home/ubuntu/inference_results_v1.0/closed/NVIDIA/code/plugin/instanceNormalization3DPlugin/src/instanceNormalization3DPlugin.cu(254): error: enum “nvinfer1::TensorFormat” has no member “kCDHW32”

/home/ubuntu/inference_results_v1.0/closed/NVIDIA/code/plugin/instanceNormalization3DPlugin/src/instanceNormalization3DPlugin.cu(362): error: enum “nvinfer1::TensorFormat” has no member “kDHWC8”

/home/ubuntu/inference_results_v1.0/closed/NVIDIA/code/plugin/instanceNormalization3DPlugin/src/instanceNormalization3DPlugin.cu(363): error: enum “nvinfer1::TensorFormat” has no member “kCDHW32”

/home/ubuntu/inference_results_v1.0/closed/NVIDIA/code/plugin/instanceNormalization3DPlugin/src/instanceNormalization3DPlugin.cu(454): error: enum “nvinfer1::TensorFormat” has no member “kDHWC8”

/home/ubuntu/inference_results_v1.0/closed/NVIDIA/code/plugin/instanceNormalization3DPlugin/src/instanceNormalization3DPlugin.cu(459): error: enum “nvinfer1::TensorFormat” has no member “kCDHW32”

6 errors detected in the compilation of “/tmp/tmpxft_00002399_00000000-8_instanceNormalization3DPlugin.compute_75.cpp1.ii”.
CMakeFiles/instancenorm3dplugin.dir/build.make:82: recipe for target ‘CMakeFiles/instancenorm3dplugin.dir/src/instanceNormalization3DPlugin.cu.o’ failed
make[3]: *** [CMakeFiles/instancenorm3dplugin.dir/src/instanceNormalization3DPlugin.cu.o] Error 1
make[3]: *** Waiting for unfinished jobs…
make[3]: Leaving directory ‘/home/ubuntu/inference_results_v1.0/closed/NVIDIA/build/plugins/instanceNormalization3DPlugin’
CMakeFiles/Makefile2:95: recipe for target ‘CMakeFiles/instancenorm3dplugin.dir/all’ failed
make[2]: *** [CMakeFiles/instancenorm3dplugin.dir/all] Error 2
make[2]: Leaving directory ‘/home/ubuntu/inference_results_v1.0/closed/NVIDIA/build/plugins/instanceNormalization3DPlugin’
Makefile:103: recipe for target ‘all’ failed
make[1]: *** [all] Error 2
make[1]: Leaving directory ‘/home/ubuntu/inference_results_v1.0/closed/NVIDIA/build/plugins/instanceNormalization3DPlugin’
Makefile:464: recipe for target ‘build_plugins’ failed
make: *** [build_plugins] Error 2

Another Error found when “make build_loadgen”

Installing collected packages: mlperf-loadgen
Exception:
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/pip/basecommand.py”, line 215, in main
status = self.run(options, args)
File “/usr/lib/python3/dist-packages/pip/commands/install.py”, line 360, in run
prefix=options.prefix_path,
File “/usr/lib/python3/dist-packages/pip/req/req_set.py”, line 784, in install
**kwargs
File “/usr/lib/python3/dist-packages/pip/req/req_install.py”, line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File “/usr/lib/python3/dist-packages/pip/req/req_install.py”, line 1064, in move_wheel_files
isolated=self.isolated,
File “/usr/lib/python3/dist-packages/pip/wheel.py”, line 247, in move_wheel_files
prefix=prefix,
File “/usr/lib/python3/dist-packages/pip/locations.py”, line 153, in distutils_scheme
i.finalize_options()
File “/usr/lib/python3.6/distutils/command/install.py”, line 274, in finalize_options
raise DistutilsOptionError("can’t combine user with prefix, "
distutils.errors.DistutilsOptionError: can’t combine user with prefix, exec_prefix/home, or install_(plat)base
Makefile:498: recipe for target ‘build_loadgen’ failed

Again, “make buid_harness” errors found
/home/ubuntu/inference_results_v1.0/closed/NVIDIA/code/harness/lwis/include/lwis_buffers.h: In function ‘int64_t lwis::volume(const nvinfer1::Dims&, const nvinfer1::TensorFormat&, bool)’:
/home/ubuntu/inference_results_v1.0/closed/NVIDIA/code/harness/lwis/include/lwis_buffers.h:83:38: error: ‘kDHWC8’ is not a member of ‘nvinfer1::TensorFormat’
case nvinfer1::TensorFormat::kDHWC8: spv = 8; channelDim = d_new.nbDims - 4; break;
^~~~~~
/home/ubuntu/inference_results_v1.0/closed/NVIDIA/code/harness/lwis/include/lwis_buffers.h:86:38: error: ‘kCDHW32’ is not a member of ‘nvinfer1::TensorFormat’
case nvinfer1::TensorFormat::kCDHW32: spv = 32; channelDim = d_new.nbDims - 4; break;
^~~~~~~
In file included from /home/ubuntu/inference_results_v1.0/closed/NVIDIA/code/harness/harness_bert/bert_server.h:34:0,
from /home/ubuntu/inference_results_v1.0/closed/NVIDIA/code/harness/harness_bert/bert_server.cc:17:
/home/ubuntu/inference_results_v1.0/closed/NVIDIA/code/harness/lwis/include/lwis_buffers.h: In function ‘int64_t lwis::volume(const nvinfer1::Dims&, const nvinfer1::TensorFormat&, bool)’:
/home/ubuntu/inference_results_v1.0/closed/NVIDIA/code/harness/lwis/include/lwis_buffers.h:83:38: error: ‘kDHWC8’ is not a member of ‘nvinfer1::TensorFormat’
case nvinfer1::TensorFormat::kDHWC8: spv = 8; channelDim = d_new.nbDims - 4; break;
^~~~~~
/home/ubuntu/inference_results_v1.0/closed/NVIDIA/code/harness/lwis/include/lwis_buffers.h:86:38: error: ‘kCDHW32’ is not a member of ‘nvinfer1::TensorFormat’
case nvinfer1::TensorFormat::kCDHW32: spv = 32; channelDim = d_new.nbDims - 4; break;
^~~~~~~
In file included from /home/ubuntu/inference_results_v1.0/closed/NVIDIA/code/harness/harness_bert/bert_server.h:34:0,
from /home/ubuntu/inference_results_v1.0/closed/NVIDIA/code/harness/harness_bert/bert_core_vs.h:21,
from /home/ubuntu/inference_results_v1.0/closed/NVIDIA/code/harness/harness_bert/bert_core_vs.cc:17:
/home/ubuntu/inference_results_v1.0/closed/NVIDIA/code/harness/lwis/include/lwis_buffers.h: In function ‘int64_t lwis::volume(const nvinfer1::Dims&, const nvinfer1::TensorFormat&, bool)’:
/home/ubuntu/inference_results_v1.0/closed/NVIDIA/code/harness/lwis/include/lwis_buffers.h:83:38: error: ‘kDHWC8’ is not a member of ‘nvinfer1::TensorFormat’
case nvinfer1::TensorFormat::kDHWC8: spv = 8; channelDim = d_new.nbDims - 4; break;
^~~~~~
/home/ubuntu/inference_results_v1.0/closed/NVIDIA/code/harness/lwis/include/lwis_buffers.h:86:38: error: ‘kCDHW32’ is not a member of ‘nvinfer1::TensorFormat’
case nvinfer1::TensorFormat::kCDHW32: spv = 32; channelDim = d_new.nbDims - 4; break;
^~~~~~~
In file included from /home/ubuntu/inference_results_v1.0/closed/NVIDIA/code/harness/harness_bert/bert_server.h:34:0,
from /home/ubuntu/inference_results_v1.0/closed/NVIDIA/code/harness/harness_bert/main_bert.cc:26:
/home/ubuntu/inference_results_v1.0/closed/NVIDIA/code/harness/lwis/include/lwis_buffers.h: In function ‘int64_t lwis::volume(const nvinfer1::Dims&, const nvinfer1::TensorFormat&, bool)’:
/home/ubuntu/inference_results_v1.0/closed/NVIDIA/code/harness/lwis/include/lwis_buffers.h:83:38: error: ‘kDHWC8’ is not a member of ‘nvinfer1::TensorFormat’
case nvinfer1::TensorFormat::kDHWC8: spv = 8; channelDim = d_new.nbDims - 4; break;
^~~~~~
/home/ubuntu/inference_results_v1.0/closed/NVIDIA/code/harness/lwis/include/lwis_buffers.h:86:38: error: ‘kCDHW32’ is not a member of ‘nvinfer1::TensorFormat’
case nvinfer1::TensorFormat::kCDHW32: spv = 32; channelDim = d_new.nbDims - 4; break;
^~~~~~~
CMakeFiles/harness_bert.dir/build.make:82: recipe for target ‘CMakeFiles/harness_bert.dir/harness_bert/main_bert.cc.o’ failed
make[3]: *** [CMakeFiles/harness_bert.dir/harness_bert/main_bert.cc.o] Error 1
make[3]: *** Waiting for unfinished jobs…
CMakeFiles/harness_bert.dir/build.make:108: recipe for target ‘CMakeFiles/harness_bert.dir/harness_bert/bert_core_vs.cc.o’ failed
make[3]: *** [CMakeFiles/harness_bert.dir/harness_bert/bert_core_vs.cc.o] Error 1
CMakeFiles/harness_bert.dir/build.make:95: recipe for target ‘CMakeFiles/harness_bert.dir/harness_bert/bert_server.cc.o’

I have a similar problem. But I’m using the JetsonNX with JetsonPack 6 and trying to launch an app using Docker.

Building wheel for tracktorpy (PEP 517): started
Running command /usr/bin/python3 /usr/local/lib/python3.6/dist-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmp_e3mlpj7
running bdist_wheel
running build
running build_ext
– The CXX compiler identification is GNU 7.5.0
– The C compiler identification is GNU 7.5.0
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Check for working CXX compiler: /usr/bin/c++ - skipped
– Detecting CXX compile features
– Detecting CXX compile features - done
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Check for working C compiler: /usr/bin/cc - skipped
– Detecting C compile features
– Detecting C compile features - done
– Loading submodules
– Submodule update
– Adding hungarian
– pybind11 v2.6.1
– Found PythonInterp: /usr/bin/python3 (found version “3.6.9”)
– Found PythonLibs: /usr/lib/aarch64-linux-gnu/libpython3.6m.so
– Performing Test HAS_FLTO
– Performing Test HAS_FLTO - Success
– Adding core
– Adding tracking
– Looking for pthread.h
– Looking for 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 CUDA: /usr/local/cuda-10.2 (found suitable version “10.2”, minimum required is “9.0”)
– Found TBB: /usr/include (found version “2017.0”)
– Adding Romain-Detector
– The CUDA compiler identification is NVIDIA 10.2.300
– Detecting CUDA compiler ABI info
– Detecting CUDA compiler ABI info - done
– Check for working CUDA compiler: /usr/local/cuda/bin/nvcc - skipped
– Detecting CUDA compile features
– Detecting CUDA compile features - done
– Found Boost: /prefix/include (found suitable version “1.68.0”, minimum required is “1.59”) found components: filesystem iostreams system regex
– Found OpenCV: /prefix (found suitable version “4.3.0”, minimum required is “4.0”) found components: core imgproc dnn
– Adding tracktor
– Found OpenCV: /prefix (found suitable version “4.3.0”, minimum required is “4.0”) found components: core
– Adding tracktorpy
– Found PythonInterp: /usr/bin/python3 (found suitable version “3.6.9”, minimum required is “3”)
– Found PythonLibs: /usr/lib/aarch64-linux-gnu/libpython3.6m.so (found suitable version “3.6.9”, minimum required is “3”)
– Configuring done
– Generating done
– Build files have been written to: /tmp/pip-req-build-a3ieygd2/build/temp.linux-aarch64-3.6
[ 3%] Building CXX object extern/hungarian-algorithm-cpp/CMakeFiles/hungarian.dir/Hungarian.cpp.o
[ 6%] Building CXX object modules/core/CMakeFiles/core.dir/src/box.cpp.o
[ 9%] Linking CXX shared library …/…/…/lib.linux-aarch64-3.6/libhungarian.so
[ 12%] Linking CXX shared library …/…/…/lib.linux-aarch64-3.6/libcore.so
[ 12%] Built target hungarian
[ 12%] Built target core
[ 15%] Building CXX object modules/tracking/CMakeFiles/tracking.dir/src/baseTracking.cpp.o
[ 18%] Building CUDA object modules/detection/CMakeFiles/detector.dir/src/chunk.cu.o
/tmp/pip-req-build-a3ieygd2/modules/detection/include/detection/chunk.h(56): error: member function declared with “override” does not override a base class member

/tmp/pip-req-build-a3ieygd2/modules/detection/include/detection/chunk.h(70): error: function “nvinfer1::IPluginV2IOExt::configurePlugin(const nvinfer1::Dims *, int32_t, const nvinfer1::Dims *, int32_t, const nvinfer1::DataType *, const nvinfer1::DataType *, const __nv_bool *, const __nv_bool *, nvinfer1::PluginFormat, int32_t)”
/usr/include/aarch64-linux-gnu/NvInferRuntimeCommon.h(836): here is inaccessible

/tmp/pip-req-build-a3ieygd2/modules/detection/include/detection/chunk.h(56): warning: function “nvinfer1::IPluginV2::enqueue(int32_t, const void *const *, void *const *, void *, cudaStream_t)” is hidden by “nvinfer1::Chunk::enqueue” – virtual function override intended?

/tmp/pip-req-build-a3ieygd2/modules/detection/include/detection/chunk.h(69): warning: function “nvinfer1::IPluginV2Ext::configurePlugin(const nvinfer1::Dims *, int32_t, const nvinfer1::Dims *, int32_t, const nvinfer1::DataType *, const nvinfer1::DataType *, const __nv_bool *, const __nv_bool *, nvinfer1::PluginFormat, int32_t)” is hidden by “nvinfer1::Chunk::configurePlugin” – virtual function override intended?

/tmp/pip-req-build-a3ieygd2/modules/detection/include/detection/chunk.h(76): error: exception specification for virtual function “nvinfer1::Chunk::clone” is incompatible with that of overridden function “nvinfer1::IPluginV2Ext::clone”

/tmp/pip-req-build-a3ieygd2/modules/detection/include/detection/chunk.h(76): error: exception specification for virtual function “nvinfer1::Chunk::clone” is incompatible with that of overridden function “nvinfer1::IPluginV2::clone”

/tmp/pip-req-build-a3ieygd2/modules/detection/include/detection/chunk.h(72): error: exception specification for virtual function “nvinfer1::Chunk::supportsFormatCombination” is incompatible with that of overridden function “nvinfer1::IPluginV2IOExt::supportsFormatCombination”

/tmp/pip-req-build-a3ieygd2/modules/detection/include/detection/chunk.h(71): error: exception specification for virtual function “nvinfer1::Chunk::detachFromContext” is incompatible with that of overridden function “nvinfer1::IPluginV2Ext::detachFromContext”

/tmp/pip-req-build-a3ieygd2/modules/detection/include/detection/chunk.h(69): error: exception specification for virtual function “nvinfer1::Chunk::configurePlugin” is incompatible with that of overridden function “nvinfer1::IPluginV2IOExt::configurePlugin(const nvinfer1::PluginTensorDesc *, int32_t, const nvinfer1::PluginTensorDesc *, int32_t)”

/tmp/pip-req-build-a3ieygd2/modules/detection/include/detection/chunk.h(67): error: exception specification for virtual function “nvinfer1::Chunk::attachToContext” is incompatible with that of overridden function “nvinfer1::IPluginV2Ext::attachToContext”

/tmp/pip-req-build-a3ieygd2/modules/detection/include/detection/chunk.h(66): error: exception specification for virtual function “nvinfer1::Chunk::canBroadcastInputAcrossBatch” is incompatible with that of overridden function “nvinfer1::IPluginV2Ext::canBroadcastInputAcrossBatch”

/tmp/pip-req-build-a3ieygd2/modules/detection/include/detection/chunk.h(65): error: exception specification for virtual function “nvinfer1::Chunk::isOutputBroadcastAcrossBatch” is incompatible with that of overridden function “nvinfer1::IPluginV2Ext::isOutputBroadcastAcrossBatch”

/tmp/pip-req-build-a3ieygd2/modules/detection/include/detection/chunk.h(64): error: exception specification for virtual function “nvinfer1::Chunk::getOutputDataType” is incompatible with that of overridden function “nvinfer1::IPluginV2Ext::getOutputDataType”

/tmp/pip-req-build-a3ieygd2/modules/detection/include/detection/chunk.h(63): error: exception specification for virtual function “nvinfer1::Chunk::getPluginNamespace” is incompatible with that of overridden function “nvinfer1::IPluginV2::getPluginNamespace”

/tmp/pip-req-build-a3ieygd2/modules/detection/include/detection/chunk.h(62): error: exception specification for virtual function “nvinfer1::Chunk::setPluginNamespace” is incompatible with that of overridden function “nvinfer1::IPluginV2::setPluginNamespace”

/tmp/pip-req-build-a3ieygd2/modules/detection/include/detection/chunk.h(61): error: exception specification for virtual function “nvinfer1::Chunk::destroy” is incompatible with that of overridden function “nvinfer1::IPluginV2::destroy”

/tmp/pip-req-build-a3ieygd2/modules/detection/include/detection/chunk.h(60): error: exception specification for virtual function “nvinfer1::Chunk::getPluginVersion” is incompatible with that of overridden function “nvinfer1::IPluginV2::getPluginVersion”

/tmp/pip-req-build-a3ieygd2/modules/detection/include/detection/chunk.h(59): error: exception specification for virtual function “nvinfer1::Chunk::getPluginType” is incompatible with that of overridden function “nvinfer1::IPluginV2::getPluginType”

/tmp/pip-req-build-a3ieygd2/modules/detection/include/detection/chunk.h(58): error: exception specification for virtual function “nvinfer1::Chunk::serialize” is incompatible with that of overridden function “nvinfer1::IPluginV2::serialize”

/tmp/pip-req-build-a3ieygd2/modules/detection/include/detection/chunk.h(57): error: exception specification for virtual function “nvinfer1::Chunk::getSerializationSize” is incompatible with that of overridden function “nvinfer1::IPluginV2::getSerializationSize”

/tmp/pip-req-build-a3ieygd2/modules/detection/include/detection/chunk.h(55): error: exception specification for virtual function “nvinfer1::Chunk::getWorkspaceSize” is incompatible with that of overridden function “nvinfer1::IPluginV2::getWorkspaceSize”

/tmp/pip-req-build-a3ieygd2/modules/detection/include/detection/chunk.h(54): error: exception specification for virtual function “nvinfer1::Chunk::terminate” is incompatible with that of overridden function “nvinfer1::IPluginV2::terminate”

/tmp/pip-req-build-a3ieygd2/modules/detection/include/detection/chunk.h(53): error: exception specification for virtual function “nvinfer1::Chunk::initialize” is incompatible with that of overridden function “nvinfer1::IPluginV2::initialize”

/tmp/pip-req-build-a3ieygd2/modules/detection/include/detection/chunk.h(52): error: exception specification for virtual function “nvinfer1::Chunk::getOutputDimensions” is incompatible with that of overridden function “nvinfer1::IPluginV2::getOutputDimensions”

/tmp/pip-req-build-a3ieygd2/modules/detection/include/detection/chunk.h(51): error: exception specification for virtual function “nvinfer1::Chunk::getNbOutputs” is incompatible with that of overridden function “nvinfer1::IPluginV2::getNbOutputs”

/tmp/pip-req-build-a3ieygd2/modules/detection/include/detection/chunk.h(93): error: exception specification for virtual function “nvinfer1::ChunkPluginCreator::getPluginNamespace” is incompatible with that of overridden function “nvinfer1::IPluginCreator::getPluginNamespace”

/tmp/pip-req-build-a3ieygd2/modules/detection/include/detection/chunk.h(92): error: exception specification for virtual function “nvinfer1::ChunkPluginCreator::setPluginNamespace” is incompatible with that of overridden function “nvinfer1::IPluginCreator::setPluginNamespace”

/tmp/pip-req-build-a3ieygd2/modules/detection/include/detection/chunk.h(91): error: exception specification for virtual function “nvinfer1::ChunkPluginCreator::deserializePlugin” is incompatible with that of overridden function “nvinfer1::IPluginCreator::deserializePlugin”

/tmp/pip-req-build-a3ieygd2/modules/detection/include/detection/chunk.h(90): error: exception specification for virtual function “nvinfer1::ChunkPluginCreator::createPlugin” is incompatible with that of overridden function “nvinfer1::IPluginCreator::createPlugin”

/tmp/pip-req-build-a3ieygd2/modules/detection/include/detection/chunk.h(89): error: exception specification for virtual function “nvinfer1::ChunkPluginCreator::getFieldNames” is incompatible with that of overridden function “nvinfer1::IPluginCreator::getFieldNames”

/tmp/pip-req-build-a3ieygd2/modules/detection/include/detection/chunk.h(88): error: exception specification for virtual function “nvinfer1::ChunkPluginCreator::getPluginVersion” is incompatible with that of overridden function “nvinfer1::IPluginCreator::getPluginVersion”

/tmp/pip-req-build-a3ieygd2/modules/detection/include/detection/chunk.h(87): error: exception specification for virtual function “nvinfer1::ChunkPluginCreator::getPluginName” is incompatible with that of overridden function “nvinfer1::IPluginCreator::getPluginName”

/tmp/pip-req-build-a3ieygd2/modules/detection/src/chunk.cu(163): error: object of abstract class type “nvinfer1::Chunk” is not allowed:
pure virtual function “nvinfer1::IPluginV2::enqueue” has no overrider

/tmp/pip-req-build-a3ieygd2/modules/detection/src/chunk.cu(197): error: object of abstract class type “nvinfer1::Chunk” is not allowed:
pure virtual function “nvinfer1::IPluginV2::enqueue” has no overrider

/tmp/pip-req-build-a3ieygd2/modules/detection/src/chunk.cu(204): error: object of abstract class type “nvinfer1::Chunk” is not allowed:
pure virtual function “nvinfer1::IPluginV2::enqueue” has no overrider

33 errors detected in the compilation of “/tmp/tmpxft_0000016a_00000000-8_chunk.compute_75.cpp1.ii”.
modules/detection/CMakeFiles/detector.dir/build.make:75: recipe for target ‘modules/detection/CMakeFiles/detector.dir/src/chunk.cu.o’ failed
make[2]: *** [modules/detection/CMakeFiles/detector.dir/src/chunk.cu.o] Error 1
CMakeFiles/Makefile2:315: recipe for target ‘modules/detection/CMakeFiles/detector.dir/all’ failed
make[1]: *** [modules/detection/CMakeFiles/detector.dir/all] Error 2

Hi Adrian,
I able resolved above issues after I have TensorRT 7.2.0 installed into Jetson board. By the way, recently Nvidia did published JetPack 4.6 instead of 6 and it’s no problem on above issues anymore, thank you.

Hi! I made a mistake. I’m using exactly the JetPack 4.6 (newest version). The strange thing here is that I created an app using only two lines code and I can see all compiles works, but in that project, I got this error message.