talebolano / TensorRT-Scaled-YOLOv4

TensorRT for Scaled YOLOv4(yolov4-csp.cfg)
10 stars 4 forks source link

make error #9

Open JobCollins opened 3 years ago

JobCollins commented 3 years ago

I am stuck at the compile step with the following error:

[  4%] Building CXX object mot/CMakeFiles/SortMot.dir/track.cpp.o
[  9%] Building CXX object mot/CMakeFiles/SortMot.dir/klmf.cpp.o
[ 13%] Building CXX object mot/CMakeFiles/SortMot.dir/lapjv.cpp.o
[ 18%] Building CXX object mot/CMakeFiles/SortMot.dir/cholesky.cpp.o
[ 22%] Building CUDA object mishplugin/CMakeFiles/Mish_plugin.dir/mishkernel.cu.o
[ 27%] Building CXX object mishplugin/CMakeFiles/Mish_plugin.dir/mish.cpp.o
/content/TensorRT-Scaled-YOLOv4/mot/klmf.cpp: In function ‘float klmf::gating_distance(std::vector<float>, std::vector<std::vector<float> >, std::vector<float>)’:
/content/TensorRT-Scaled-YOLOv4/mot/klmf.cpp:213:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int i=0;i<x.size();++i){
                     ~^~~~~~~~~
/content/TensorRT-Scaled-YOLOv4/mot/klmf.cpp:197:19: warning: unused variable ‘m’ [-Wunused-variable]
         const int m = d.size(); //4
                   ^
/content/TensorRT-Scaled-YOLOv4/mot/lapjv.cpp: In function ‘int lapjy(cost_t*, uint_t, uint_t, cost_t, bool, int_t*, int_t*)’:
/content/TensorRT-Scaled-YOLOv4/mot/lapjv.cpp:380:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int i=0;i<n;++i){
                     ~^~
/content/TensorRT-Scaled-YOLOv4/mot/lapjv.cpp:381:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for(int j=0;j<n;++j){
                         ~^~
/content/TensorRT-Scaled-YOLOv4/mot/lapjv.cpp:383:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                 if(i<n_rows and j<n_cols){
                    ~^~~~~~~
/content/TensorRT-Scaled-YOLOv4/mot/lapjv.cpp:383:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                 if(i<n_rows and j<n_cols){
                                 ~^~~~~~~
/content/TensorRT-Scaled-YOLOv4/mot/lapjv.cpp:386:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                 else if(i<n_rows or j<n_cols)
                         ~^~~~~~~
/content/TensorRT-Scaled-YOLOv4/mot/lapjv.cpp:386:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                 else if(i<n_rows or j<n_cols)
                                     ~^~~~~~~
/content/TensorRT-Scaled-YOLOv4/mot/lapjv.cpp:399:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int i=0;i<n;++i){
                     ~^~
/content/TensorRT-Scaled-YOLOv4/mot/lapjv.cpp:400:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for(int j=0;j<n;++j){
                         ~^~
/content/TensorRT-Scaled-YOLOv4/mot/lapjv.cpp:408:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0;i<n;++i){
                 ~^~
/content/TensorRT-Scaled-YOLOv4/mot/lapjv.cpp:421:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int i=0;i<n;++i){
                     ~^~
/content/TensorRT-Scaled-YOLOv4/mot/lapjv.cpp:422:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if(x_c[i]>=n_cols){
                ~~~~~~^~~~~~~~
/content/TensorRT-Scaled-YOLOv4/mot/lapjv.cpp:425:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if(y_c[i]>=n_rows){
                ~~~~~~^~~~~~~~
/content/TensorRT-Scaled-YOLOv4/mot/lapjv.cpp:429:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if(i<n_rows){
                ~^~~~~~~
/content/TensorRT-Scaled-YOLOv4/mot/lapjv.cpp:432:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if(i<n_cols){
                ~^~~~~~~
/content/TensorRT-Scaled-YOLOv4/mot/lapjv.cpp:416:9: warning: unused variable ‘ret’ [-Wunused-variable]
     int ret = lapjv_internal(n,cost_ptr,x_c,y_c);
         ^~~
/content/TensorRT-Scaled-YOLOv4/mot/lapjv.cpp: In function ‘int lapjy__(std::vector<std::vector<float> >, uint_t, uint_t, cost_t, bool, std::vector<int>&, std::vector<int>&)’:
/content/TensorRT-Scaled-YOLOv4/mot/lapjv.cpp:471:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int i=0;i<n;++i){
                     ~^~
/content/TensorRT-Scaled-YOLOv4/mot/lapjv.cpp:472:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for(int j=0;j<n;++j){
                         ~^~
/content/TensorRT-Scaled-YOLOv4/mot/lapjv.cpp:474:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                 if(i<n_rows and j<n_cols){
                    ~^~~~~~~
/content/TensorRT-Scaled-YOLOv4/mot/lapjv.cpp:474:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                 if(i<n_rows and j<n_cols){
                                 ~^~~~~~~
/content/TensorRT-Scaled-YOLOv4/mot/lapjv.cpp:477:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                 else if(i<n_rows or j<n_cols)
                         ~^~~~~~~
/content/TensorRT-Scaled-YOLOv4/mot/lapjv.cpp:477:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                 else if(i<n_rows or j<n_cols)
                                     ~^~~~~~~
/content/TensorRT-Scaled-YOLOv4/mot/lapjv.cpp:490:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int i=0;i<n;++i){
                     ~^~
/content/TensorRT-Scaled-YOLOv4/mot/lapjv.cpp:491:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for(int j=0;j<n;++j){
                         ~^~
/content/TensorRT-Scaled-YOLOv4/mot/lapjv.cpp:499:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0;i<n;++i){
                 ~^~
/content/TensorRT-Scaled-YOLOv4/mot/lapjv.cpp:512:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int i=0;i<n;++i){
                     ~^~
/content/TensorRT-Scaled-YOLOv4/mot/lapjv.cpp:513:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if(x_c[i]>=n_cols){
                ~~~~~~^~~~~~~~
/content/TensorRT-Scaled-YOLOv4/mot/lapjv.cpp:516:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if(y_c[i]>=n_rows){
                ~~~~~~^~~~~~~~
/content/TensorRT-Scaled-YOLOv4/mot/lapjv.cpp:520:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if(i<n_rows){
                ~^~~~~~~
/content/TensorRT-Scaled-YOLOv4/mot/lapjv.cpp:523:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if(i<n_cols){
                ~^~~~~~~
/content/TensorRT-Scaled-YOLOv4/mot/lapjv.cpp:507:9: warning: unused variable ‘ret’ [-Wunused-variable]
     int ret = lapjv_internal(n,cost_ptr,x_c,y_c);
         ^~~
/content/TensorRT-Scaled-YOLOv4/mot/lapjv.cpp: In function ‘int lapjy(cost_t*, uint_t, uint_t, cost_t, bool, int_t*, int_t*)’:
/content/TensorRT-Scaled-YOLOv4/mot/lapjv.cpp:367:12: warning: ‘n’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     uint_t n;
            ^
/content/TensorRT-Scaled-YOLOv4/mot/lapjv.cpp: In function ‘int lapjy__(std::vector<std::vector<float> >, uint_t, uint_t, cost_t, bool, std::vector<int>&, std::vector<int>&)’:
/content/TensorRT-Scaled-YOLOv4/mot/lapjv.cpp:491:26: warning: ‘n’ may be used uninitialized in this function [-Wmaybe-uninitialized]
             for(int j=0;j<n;++j){
                         ~^~
In file included from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:0:
/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:28:9: error: looser throw specifier for ‘virtual int MishPlugin::getNbOutputs() const’
     int getNbOutputs() const override;
         ^~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/NvInferLegacyDims.h:53:0,
                 from /usr/include/x86_64-linux-gnu/NvInfer.h:53,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:4,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:
/usr/include/x86_64-linux-gnu/NvInferRuntimeCommon.h:442:21: error:   overriding ‘virtual int32_t nvinfer1::IPluginV2::getNbOutputs() const noexcept’
     virtual int32_t getNbOutputs() const noexcept = 0;
                     ^~~~~~~~~~~~
In file included from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:0:
/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:29:15: error: looser throw specifier for ‘virtual nvinfer1::DimsExprs MishPlugin::getOutputDimensions(int, const nvinfer1::DimsExprs*, int, nvinfer1::IExprBuilder&)’
     DimsExprs getOutputDimensions(int outputIndex,const DimsExprs* inputs,int nbInputs,IExprBuilder &exprBuilder) override;
               ^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/NvInfer.h:54:0,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:4,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:
/usr/include/x86_64-linux-gnu/NvInferRuntime.h:399:23: error:   overriding ‘virtual nvinfer1::DimsExprs nvinfer1::IPluginV2DynamicExt::getOutputDimensions(int32_t, const nvinfer1::DimsExprs*, int32_t, nvinfer1::IExprBuilder&) noexcept’
     virtual DimsExprs getOutputDimensions(
                       ^~~~~~~~~~~~~~~~~~~
In file included from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:0:
/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:30:9: error: looser throw specifier for ‘virtual int MishPlugin::initialize()’
     int initialize() override;
         ^~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/NvInferLegacyDims.h:53:0,
                 from /usr/include/x86_64-linux-gnu/NvInfer.h:53,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:4,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:
/usr/include/x86_64-linux-gnu/NvInferRuntimeCommon.h:506:21: error:   overriding ‘virtual int32_t nvinfer1::IPluginV2::initialize() noexcept’
     virtual int32_t initialize() noexcept = 0;
                     ^~~~~~~~~~
In file included from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:0:
/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:31:10: error: looser throw specifier for ‘virtual void MishPlugin::terminate()’
     void terminate() override;
          ^~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/NvInferLegacyDims.h:53:0,
                 from /usr/include/x86_64-linux-gnu/NvInfer.h:53,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:4,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:
/usr/include/x86_64-linux-gnu/NvInferRuntimeCommon.h:513:18: error:   overriding ‘virtual void nvinfer1::IPluginV2::terminate() noexcept’
     virtual void terminate() noexcept = 0;
                  ^~~~~~~~~
In file included from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:0:
/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:33:12: error: looser throw specifier for ‘virtual size_t MishPlugin::getWorkspaceSize(const nvinfer1::PluginTensorDesc*, int, const nvinfer1::PluginTensorDesc*, int) const’
     size_t getWorkspaceSize(const PluginTensorDesc *inputs,int nbInputs, const PluginTensorDesc *ouputs,int nbOutputs) const override;
            ^~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/NvInfer.h:54:0,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:4,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:
/usr/include/x86_64-linux-gnu/NvInferRuntime.h:495:20: error:   overriding ‘virtual size_t nvinfer1::IPluginV2DynamicExt::getWorkspaceSize(const nvinfer1::PluginTensorDesc*, int32_t, const nvinfer1::PluginTensorDesc*, int32_t) const noexcept’
     virtual size_t getWorkspaceSize(const PluginTensorDesc* inputs, int32_t nbInputs, const PluginTensorDesc* outputs,
                    ^~~~~~~~~~~~~~~~
In file included from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:0:
/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:34:9: error: looser throw specifier for ‘virtual int MishPlugin::enqueue(const nvinfer1::PluginTensorDesc*, const nvinfer1::PluginTensorDesc*, const void* const*, void* const*, void*, cudaStream_t)’
     int enqueue(const PluginTensorDesc* inputDesc,const PluginTensorDesc* outputDesc,
         ^~~~~~~
In file included from /usr/include/x86_64-linux-gnu/NvInfer.h:54:0,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:4,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:
/usr/include/x86_64-linux-gnu/NvInferRuntime.h:511:21: error:   overriding ‘virtual int32_t nvinfer1::IPluginV2DynamicExt::enqueue(const nvinfer1::PluginTensorDesc*, const nvinfer1::PluginTensorDesc*, const void* const*, void* const*, void*, cudaStream_t) noexcept’
     virtual int32_t enqueue(const PluginTensorDesc* inputDesc, const PluginTensorDesc* outputDesc,
                     ^~~~~~~
In file included from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:0:
/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:39:12: error: looser throw specifier for ‘virtual size_t MishPlugin::getSerializationSize() const’
     size_t getSerializationSize() const override;
            ^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/NvInferLegacyDims.h:53:0,
                 from /usr/include/x86_64-linux-gnu/NvInfer.h:53,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:4,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:
/usr/include/x86_64-linux-gnu/NvInferRuntimeCommon.h:545:20: error:   overriding ‘virtual size_t nvinfer1::IPluginV2::getSerializationSize() const noexcept’
     virtual size_t getSerializationSize() const noexcept = 0;
                    ^~~~~~~~~~~~~~~~~~~~
In file included from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:0:
/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:40:10: error: looser throw specifier for ‘virtual void MishPlugin::serialize(void*) const’
     void serialize(void *buffer) const override;
          ^~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/NvInferLegacyDims.h:53:0,
                 from /usr/include/x86_64-linux-gnu/NvInfer.h:53,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:4,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:
/usr/include/x86_64-linux-gnu/NvInferRuntimeCommon.h:555:18: error:   overriding ‘virtual void nvinfer1::IPluginV2::serialize(void*) const noexcept’
     virtual void serialize(void* buffer) const noexcept = 0;
                  ^~~~~~~~~
In file included from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:0:
/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:41:10: error: looser throw specifier for ‘virtual bool MishPlugin::supportsFormatCombination(int, const nvinfer1::PluginTensorDesc*, int, int)’
     bool supportsFormatCombination(int pos, const PluginTensorDesc *inOut,int nbInputs,int nbOutputs) override;
          ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/NvInfer.h:54:0,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:4,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:
/usr/include/x86_64-linux-gnu/NvInferRuntime.h:440:18: error:   overriding ‘virtual bool nvinfer1::IPluginV2DynamicExt::supportsFormatCombination(int32_t, const nvinfer1::PluginTensorDesc*, int32_t, int32_t) noexcept’
     virtual bool supportsFormatCombination(
                  ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:0:
/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:42:17: error: looser throw specifier for ‘virtual const char* MishPlugin::getPluginType() const’
     const char* getPluginType() const override;
                 ^~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/NvInferLegacyDims.h:53:0,
                 from /usr/include/x86_64-linux-gnu/NvInfer.h:53,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:4,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:
/usr/include/x86_64-linux-gnu/NvInferRuntimeCommon.h:426:30: error:   overriding ‘virtual const AsciiChar* nvinfer1::IPluginV2::getPluginType() const noexcept’
     virtual AsciiChar const* getPluginType() const noexcept = 0;
                              ^~~~~~~~~~~~~
In file included from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:0:
/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:43:17: error: looser throw specifier for ‘virtual const char* MishPlugin::getPluginVersion() const’
     const char* getPluginVersion() const override;
                 ^~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/NvInferLegacyDims.h:53:0,
                 from /usr/include/x86_64-linux-gnu/NvInfer.h:53,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:4,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:
/usr/include/x86_64-linux-gnu/NvInferRuntimeCommon.h:432:30: error:   overriding ‘virtual const AsciiChar* nvinfer1::IPluginV2::getPluginVersion() const noexcept’
     virtual AsciiChar const* getPluginVersion() const noexcept = 0;
                              ^~~~~~~~~~~~~~~~
In file included from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:0:
/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:44:10: error: looser throw specifier for ‘virtual void MishPlugin::destroy()’
     void destroy() override;
          ^~~~~~~
In file included from /usr/include/x86_64-linux-gnu/NvInferLegacyDims.h:53:0,
                 from /usr/include/x86_64-linux-gnu/NvInfer.h:53,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:4,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:
/usr/include/x86_64-linux-gnu/NvInferRuntimeCommon.h:560:18: error:   overriding ‘virtual void nvinfer1::IPluginV2::destroy() noexcept’
     virtual void destroy() noexcept = 0;
                  ^~~~~~~
In file included from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:0:
/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:45:26: error: looser throw specifier for ‘virtual nvinfer1::IPluginV2DynamicExt* MishPlugin::clone() const’
     IPluginV2DynamicExt *clone() const override;
                          ^~~~~
In file included from /usr/include/x86_64-linux-gnu/NvInfer.h:54:0,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:4,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:
/usr/include/x86_64-linux-gnu/NvInferRuntime.h:373:26: error:   overriding ‘virtual nvinfer1::IPluginV2DynamicExt* nvinfer1::IPluginV2DynamicExt::clone() const noexcept’
     IPluginV2DynamicExt* clone() const noexcept override = 0;
                          ^~~~~
In file included from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:0:
/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:46:10: error: looser throw specifier for ‘virtual void MishPlugin::setPluginNamespace(const char*)’
     void setPluginNamespace(const char *pluginNamespace) override;
          ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/NvInferLegacyDims.h:53:0,
                 from /usr/include/x86_64-linux-gnu/NvInfer.h:53,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:4,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:
/usr/include/x86_64-linux-gnu/NvInferRuntimeCommon.h:572:18: error:   overriding ‘virtual void nvinfer1::IPluginV2::setPluginNamespace(const AsciiChar*) noexcept’
     virtual void setPluginNamespace(AsciiChar const* pluginNamespace) noexcept = 0;
                  ^~~~~~~~~~~~~~~~~~
In file included from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:0:
/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:47:17: error: looser throw specifier for ‘virtual const char* MishPlugin::getPluginNamespace() const’
     const char *getPluginNamespace() const override;
                 ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/NvInferLegacyDims.h:53:0,
                 from /usr/include/x86_64-linux-gnu/NvInfer.h:53,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:4,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:
/usr/include/x86_64-linux-gnu/NvInferRuntimeCommon.h:577:30: error:   overriding ‘virtual const AsciiChar* nvinfer1::IPluginV2::getPluginNamespace() const noexcept’
     virtual AsciiChar const* getPluginNamespace() const noexcept = 0;
                              ^~~~~~~~~~~~~~~~~~
In file included from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:0:
/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:48:14: error: looser throw specifier for ‘virtual nvinfer1::DataType MishPlugin::getOutputDataType(int, const nvinfer1::DataType*, int) const’
     DataType getOutputDataType(int index,const DataType *inputTypes, int nbInputs) const override;
              ^~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/NvInferLegacyDims.h:53:0,
                 from /usr/include/x86_64-linux-gnu/NvInfer.h:53,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:4,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:
/usr/include/x86_64-linux-gnu/NvInferRuntimeCommon.h:610:32: error:   overriding ‘virtual nvinfer1::DataType nvinfer1::IPluginV2Ext::getOutputDataType(int32_t, const nvinfer1::DataType*, int32_t) const noexcept’
     virtual nvinfer1::DataType getOutputDataType(
                                ^~~~~~~~~~~~~~~~~
In file included from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:0:
/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:49:10: error: looser throw specifier for ‘virtual void MishPlugin::attachToContext(cudnnContext*, cublasContext*, nvinfer1::IGpuAllocator*)’
     void attachToContext(cudnnContext *cudnn, cublasContext *blas, IGpuAllocator *allocator) override;
          ^~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/NvInferLegacyDims.h:53:0,
                 from /usr/include/x86_64-linux-gnu/NvInfer.h:53,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:4,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:
/usr/include/x86_64-linux-gnu/NvInferRuntimeCommon.h:694:18: error:   overriding ‘virtual void nvinfer1::IPluginV2Ext::attachToContext(cudnnContext*, cublasContext*, nvinfer1::IGpuAllocator*) noexcept’
     virtual void attachToContext(cudnnContext* /*cudnn*/, cublasContext* /*cublas*/, IGpuAllocator* /*allocator*/) noexcept {}
                  ^~~~~~~~~~~~~~~
In file included from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:0:
/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:50:10: error: looser throw specifier for ‘virtual void MishPlugin::detachFromContext()’
     void detachFromContext() override;
          ^~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/NvInferLegacyDims.h:53:0,
                 from /usr/include/x86_64-linux-gnu/NvInfer.h:53,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:4,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:
/usr/include/x86_64-linux-gnu/NvInferRuntimeCommon.h:704:18: error:   overriding ‘virtual void nvinfer1::IPluginV2Ext::detachFromContext() noexcept’
     virtual void detachFromContext() noexcept {}
                  ^~~~~~~~~~~~~~~~~
In file included from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:0:
/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:51:10: error: looser throw specifier for ‘virtual void MishPlugin::configurePlugin(const nvinfer1::DynamicPluginTensorDesc*, int, const nvinfer1::DynamicPluginTensorDesc*, int)’
     void configurePlugin(const DynamicPluginTensorDesc *in,int nbInputs,
          ^~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/NvInfer.h:54:0,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:4,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:
/usr/include/x86_64-linux-gnu/NvInferRuntime.h:482:18: error:   overriding ‘virtual void nvinfer1::IPluginV2DynamicExt::configurePlugin(const nvinfer1::DynamicPluginTensorDesc*, int32_t, const nvinfer1::DynamicPluginTensorDesc*, int32_t) noexcept’
     virtual void configurePlugin(const DynamicPluginTensorDesc* in, int32_t nbInputs,
                  ^~~~~~~~~~~~~~~
In file included from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:0:
/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:60:17: error: looser throw specifier for ‘virtual const char* MishPluginCreator::getPluginName() const’
     const char* getPluginName() const override;
                 ^~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/NvInferLegacyDims.h:53:0,
                 from /usr/include/x86_64-linux-gnu/NvInfer.h:53,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:4,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:
/usr/include/x86_64-linux-gnu/NvInferRuntimeCommon.h:933:30: error:   overriding ‘virtual const AsciiChar* nvinfer1::IPluginCreator::getPluginName() const noexcept’
     virtual AsciiChar const* getPluginName() const noexcept = 0;
                              ^~~~~~~~~~~~~
In file included from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:0:
/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:61:17: error: looser throw specifier for ‘virtual const char* MishPluginCreator::getPluginVersion() const’
     const char* getPluginVersion() const override;
                 ^~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/NvInferLegacyDims.h:53:0,
                 from /usr/include/x86_64-linux-gnu/NvInfer.h:53,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:4,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:
/usr/include/x86_64-linux-gnu/NvInferRuntimeCommon.h:938:30: error:   overriding ‘virtual const AsciiChar* nvinfer1::IPluginCreator::getPluginVersion() const noexcept’
     virtual AsciiChar const* getPluginVersion() const noexcept = 0;
                              ^~~~~~~~~~~~~~~~
In file included from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:0:
/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:62:33: error: looser throw specifier for ‘virtual const nvinfer1::PluginFieldCollection* MishPluginCreator::getFieldNames()’
     const PluginFieldCollection*getFieldNames() override;
                                 ^~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/NvInferLegacyDims.h:53:0,
                 from /usr/include/x86_64-linux-gnu/NvInfer.h:53,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:4,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:
/usr/include/x86_64-linux-gnu/NvInferRuntimeCommon.h:944:42: error:   overriding ‘virtual const nvinfer1::PluginFieldCollection* nvinfer1::IPluginCreator::getFieldNames() noexcept’
     virtual PluginFieldCollection const* getFieldNames() noexcept = 0;
                                          ^~~~~~~~~~~~~
In file included from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:0:
/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:63:26: error: looser throw specifier for ‘virtual nvinfer1::IPluginV2DynamicExt* MishPluginCreator::createPlugin(const char*, const nvinfer1::PluginFieldCollection*)’
     IPluginV2DynamicExt *createPlugin(const char *name,const PluginFieldCollection *fc) override;
                          ^~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/NvInferLegacyDims.h:53:0,
                 from /usr/include/x86_64-linux-gnu/NvInfer.h:53,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:4,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:
/usr/include/x86_64-linux-gnu/NvInferRuntimeCommon.h:949:24: error:   overriding ‘virtual nvinfer1::IPluginV2* nvinfer1::IPluginCreator::createPlugin(const AsciiChar*, const nvinfer1::PluginFieldCollection*) noexcept’
     virtual IPluginV2* createPlugin(AsciiChar const* name, PluginFieldCollection const* fc) noexcept = 0;
                        ^~~~~~~~~~~~
In file included from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:0:
/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:64:26: error: looser throw specifier for ‘virtual nvinfer1::IPluginV2DynamicExt* MishPluginCreator::deserializePlugin(const char*, const void*, size_t)’
     IPluginV2DynamicExt *deserializePlugin(const char *name,const void *serialData,size_t serialLength) override;
                          ^~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/NvInferLegacyDims.h:53:0,
                 from /usr/include/x86_64-linux-gnu/NvInfer.h:53,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:4,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:
/usr/include/x86_64-linux-gnu/NvInferRuntimeCommon.h:954:24: error:   overriding ‘virtual nvinfer1::IPluginV2* nvinfer1::IPluginCreator::deserializePlugin(const AsciiChar*, const void*, size_t) noexcept’
     virtual IPluginV2* deserializePlugin(AsciiChar const* name, void const* serialData, size_t serialLength) noexcept = 0;
                        ^~~~~~~~~~~~~~~~~
In file included from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:0:
/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:65:10: error: looser throw specifier for ‘virtual void MishPluginCreator::setPluginNamespace(const char*)’
     void setPluginNamespace(const char *pluginNamespace) override;
          ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/NvInferLegacyDims.h:53:0,
                 from /usr/include/x86_64-linux-gnu/NvInfer.h:53,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:4,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:
/usr/include/x86_64-linux-gnu/NvInferRuntimeCommon.h:962:18: error:   overriding ‘virtual void nvinfer1::IPluginCreator::setPluginNamespace(const AsciiChar*) noexcept’
     virtual void setPluginNamespace(AsciiChar const* pluginNamespace) noexcept = 0;
                  ^~~~~~~~~~~~~~~~~~
In file included from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:0:
/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:66:17: error: looser throw specifier for ‘virtual const char* MishPluginCreator::getPluginNamespace() const’
     const char *getPluginNamespace() const override;
                 ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/NvInferLegacyDims.h:53:0,
                 from /usr/include/x86_64-linux-gnu/NvInfer.h:53,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h:4,
                 from /content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:1:
/usr/include/x86_64-linux-gnu/NvInferRuntimeCommon.h:967:30: error:   overriding ‘virtual const AsciiChar* nvinfer1::IPluginCreator::getPluginNamespace() const noexcept’
     virtual AsciiChar const* getPluginNamespace() const noexcept = 0;
                              ^~~~~~~~~~~~~~~~~~
In file included from /content/TensorRT-Scaled-YOLOv4/mot/track.cpp:6:0:
/content/TensorRT-Scaled-YOLOv4/mot/track.h: In constructor ‘track::STrack::STrack(std::vector<float>, float, int)’:
/content/TensorRT-Scaled-YOLOv4/mot/track.h:42:27: warning: ‘track::STrack::mtlwh’ will be initialized after [-Wreorder]
             vector<float> mtlwh;//4
                           ^~~~~
/content/TensorRT-Scaled-YOLOv4/mot/track.h:39:19: warning:   ‘float track::STrack::mscores’ [-Wreorder]
             float mscores;
                   ^~~~~~~
/content/TensorRT-Scaled-YOLOv4/mot/track.cpp:46:5: warning:   when initialized here [-Wreorder]
     STrack::STrack(vector<float> tlwh,float score,int classes)
     ^~~~~~
In file included from /content/TensorRT-Scaled-YOLOv4/mot/track.cpp:6:0:
/content/TensorRT-Scaled-YOLOv4/mot/track.h:39:19: warning: ‘track::STrack::mscores’ will be initialized after [-Wreorder]
             float mscores;
                   ^~~~~~~
/content/TensorRT-Scaled-YOLOv4/mot/track.h:38:17: warning:   ‘int track::STrack::mclasses’ [-Wreorder]
             int mclasses;
                 ^~~~~~~~
/content/TensorRT-Scaled-YOLOv4/mot/track.cpp:46:5: warning:   when initialized here [-Wreorder]
     STrack::STrack(vector<float> tlwh,float score,int classes)
     ^~~~~~
/content/TensorRT-Scaled-YOLOv4/mot/track.cpp: In member function ‘std::vector<std::vector<float> > track::SortedTracker::update(std::vector<std::vector<float> >)’:
/content/TensorRT-Scaled-YOLOv4/mot/track.cpp:165:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int i=0;i<strack_pool.size();++i){
                     ~^~~~~~~~~~~~~~~~~~~
/content/TensorRT-Scaled-YOLOv4/mot/track.cpp:167:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for(int j=0;j<dets.size();++j){
                         ~^~~~~~~~~~~~
/content/TensorRT-Scaled-YOLOv4/mot/track.cpp:194:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for(int i=0;i<x.size();++i){
                         ~^~~~~~~~~
/content/TensorRT-Scaled-YOLOv4/mot/track.cpp:203:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for(int i=0;i<y.size();++i){
                         ~^~~~~~~~~
/content/TensorRT-Scaled-YOLOv4/mot/track.cpp:210:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for(int i=0;i<strack_pool.size();++i){
                         ~^~~~~~~~~~~~~~~~~~~
/content/TensorRT-Scaled-YOLOv4/mot/track.cpp:213:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for(int i=0;i<dets.size();++i){
                         ~^~~~~~~~~~~~
/content/TensorRT-Scaled-YOLOv4/mot/track.cpp:236:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for(int i=0;i<u_track.size();++i){
                         ~^~~~~~~~~~~~~~~
/content/TensorRT-Scaled-YOLOv4/mot/track.cpp:237:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                 for(int j=0;j<u_detection.size();++j){
                             ~^~~~~~~~~~~~~~~~~~~
/content/TensorRT-Scaled-YOLOv4/mot/track.cpp:248:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for(int i=0;i<x_iou.size();++i){
                         ~^~~~~~~~~~~~~
/content/TensorRT-Scaled-YOLOv4/mot/track.cpp:256:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for(int i=0;i<y_iou.size();++i){
                         ~^~~~~~~~~~~~~
/content/TensorRT-Scaled-YOLOv4/mot/track.cpp:278:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for(int i=0;i<u_track_iou.size();++i){
                         ~^~~~~~~~~~~~~~~~~~~
/content/TensorRT-Scaled-YOLOv4/mot/track.cpp:281:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for(int i=0;i<u_detection_iou.size();++i){
                         ~^~~~~~~~~~~~~~~~~~~~~~~
/content/TensorRT-Scaled-YOLOv4/mot/track.cpp:293:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int i=0;i<u_track.size();++i){
                     ~^~~~~~~~~~~~~~~
/content/TensorRT-Scaled-YOLOv4/mot/track.cpp:300:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int i=0;i<u_detection.size();++i){
                     ~^~~~~~~~~~~~~~~~~~~
/content/TensorRT-Scaled-YOLOv4/mot/track.cpp:306:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int i=0;i<strack_pool.size();++i){
                     ~^~~~~~~~~~~~~~~~~~~
/content/TensorRT-Scaled-YOLOv4/mot/track.cpp:316:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int i=0;i<strack_pool.size();++i){
                     ~^~~~~~~~~~~~~~~~~~~
/content/TensorRT-Scaled-YOLOv4/mot/track.cpp:329:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int i=0;i<mtracked_stracks.size();++i){
                     ~^~~~~~~~~~~~~~~~~~~~~~~~
/content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp: In member function ‘virtual bool MishPlugin::supportsFormatCombination(int, const nvinfer1::PluginTensorDesc*, int, int)’:
/content/TensorRT-Scaled-YOLOv4/mishplugin/mish.cpp:74:57: error: ‘kNCHW’ is not a member of ‘nvinfer1::PluginFormat {aka nvinfer1::TensorFormat}’
         && inOut[pos].format == nvinfer1::PluginFormat::kNCHW && inOut[pos].type == inOut[0].type);
                                                         ^~~~~
mishplugin/CMakeFiles/Mish_plugin.dir/build.make:75: recipe for target 'mishplugin/CMakeFiles/Mish_plugin.dir/mish.cpp.o' failed
make[2]: *** [mishplugin/CMakeFiles/Mish_plugin.dir/mish.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h(29): warning: function "nvinfer1::IPluginV2::getOutputDimensions(int32_t, const nvinfer1::Dims *, int32_t)" is hidden by "MishPlugin::getOutputDimensions" -- virtual function override intended?

/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h(33): warning: function "nvinfer1::IPluginV2::getWorkspaceSize(int32_t) const" is hidden by "MishPlugin::getWorkspaceSize" -- virtual function override intended?

/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h(34): warning: function "nvinfer1::IPluginV2::enqueue(int32_t, const void *const *, void *const *, void *, cudaStream_t)" is hidden by "MishPlugin::enqueue" -- virtual function override intended?

/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h(51): 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 "MishPlugin::configurePlugin" -- virtual function override intended?

/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h(51): error: exception specification for virtual function "MishPlugin::configurePlugin" is incompatible with that of overridden function "nvinfer1::IPluginV2DynamicExt::configurePlugin(const nvinfer1::DynamicPluginTensorDesc *, int32_t, const nvinfer1::DynamicPluginTensorDesc *, int32_t)"

/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h(50): error: exception specification for virtual function "MishPlugin::detachFromContext" is incompatible with that of overridden function "nvinfer1::IPluginV2Ext::detachFromContext"

/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h(49): error: exception specification for virtual function "MishPlugin::attachToContext" is incompatible with that of overridden function "nvinfer1::IPluginV2Ext::attachToContext"

/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h(48): error: exception specification for virtual function "MishPlugin::getOutputDataType" is incompatible with that of overridden function "nvinfer1::IPluginV2Ext::getOutputDataType"

/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h(47): error: exception specification for virtual function "MishPlugin::getPluginNamespace" is incompatible with that of overridden function "nvinfer1::IPluginV2::getPluginNamespace"

/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h(46): error: exception specification for virtual function "MishPlugin::setPluginNamespace" is incompatible with that of overridden function "nvinfer1::IPluginV2::setPluginNamespace"

/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h(45): error: exception specification for virtual function "MishPlugin::clone" is incompatible with that of overridden function "nvinfer1::IPluginV2DynamicExt::clone"

/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h(45): error: exception specification for virtual function "MishPlugin::clone" is incompatible with that of overridden function "nvinfer1::IPluginV2Ext::clone"

/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h(45): error: exception specification for virtual function "MishPlugin::clone" is incompatible with that of overridden function "nvinfer1::IPluginV2::clone"

/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h(44): error: exception specification for virtual function "MishPlugin::destroy" is incompatible with that of overridden function "nvinfer1::IPluginV2::destroy"

/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h(43): error: exception specification for virtual function "MishPlugin::getPluginVersion" is incompatible with that of overridden function "nvinfer1::IPluginV2::getPluginVersion"

/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h(42): error: exception specification for virtual function "MishPlugin::getPluginType" is incompatible with that of overridden function "nvinfer1::IPluginV2::getPluginType"

/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h(41): error: exception specification for virtual function "MishPlugin::supportsFormatCombination" is incompatible with that of overridden function "nvinfer1::IPluginV2DynamicExt::supportsFormatCombination"

/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h(40): error: exception specification for virtual function "MishPlugin::serialize" is incompatible with that of overridden function "nvinfer1::IPluginV2::serialize"

/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h(39): error: exception specification for virtual function "MishPlugin::getSerializationSize" is incompatible with that of overridden function "nvinfer1::IPluginV2::getSerializationSize"

/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h(34): error: exception specification for virtual function "MishPlugin::enqueue" is incompatible with that of overridden function "nvinfer1::IPluginV2DynamicExt::enqueue(const nvinfer1::PluginTensorDesc *, const nvinfer1::PluginTensorDesc *, const void *const *, void *const *, void *, cudaStream_t)"

/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h(33): error: exception specification for virtual function "MishPlugin::getWorkspaceSize" is incompatible with that of overridden function "nvinfer1::IPluginV2DynamicExt::getWorkspaceSize(const nvinfer1::PluginTensorDesc *, int32_t, const nvinfer1::PluginTensorDesc *, int32_t) const"

/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h(31): error: exception specification for virtual function "MishPlugin::terminate" is incompatible with that of overridden function "nvinfer1::IPluginV2::terminate"

/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h(30): error: exception specification for virtual function "MishPlugin::initialize" is incompatible with that of overridden function "nvinfer1::IPluginV2::initialize"

/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h(29): error: exception specification for virtual function "MishPlugin::getOutputDimensions" is incompatible with that of overridden function "nvinfer1::IPluginV2DynamicExt::getOutputDimensions(int32_t, const nvinfer1::DimsExprs *, int32_t, nvinfer1::IExprBuilder &)"

/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h(28): error: exception specification for virtual function "MishPlugin::getNbOutputs" is incompatible with that of overridden function "nvinfer1::IPluginV2::getNbOutputs"

/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h(66): error: exception specification for virtual function "MishPluginCreator::getPluginNamespace" is incompatible with that of overridden function "nvinfer1::IPluginCreator::getPluginNamespace"

/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h(65): error: exception specification for virtual function "MishPluginCreator::setPluginNamespace" is incompatible with that of overridden function "nvinfer1::IPluginCreator::setPluginNamespace"

/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h(64): error: exception specification for virtual function "MishPluginCreator::deserializePlugin" is incompatible with that of overridden function "nvinfer1::IPluginCreator::deserializePlugin"

/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h(63): error: exception specification for virtual function "MishPluginCreator::createPlugin" is incompatible with that of overridden function "nvinfer1::IPluginCreator::createPlugin"

/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h(62): error: exception specification for virtual function "MishPluginCreator::getFieldNames" is incompatible with that of overridden function "nvinfer1::IPluginCreator::getFieldNames"

/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h(61): error: exception specification for virtual function "MishPluginCreator::getPluginVersion" is incompatible with that of overridden function "nvinfer1::IPluginCreator::getPluginVersion"

/content/TensorRT-Scaled-YOLOv4/mishplugin/../include/mish.h(60): error: exception specification for virtual function "MishPluginCreator::getPluginName" is incompatible with that of overridden function "nvinfer1::IPluginCreator::getPluginName"

28 errors detected in the compilation of "/content/TensorRT-Scaled-YOLOv4/mishplugin/mishkernel.cu".
mishplugin/CMakeFiles/Mish_plugin.dir/build.make:62: recipe for target 'mishplugin/CMakeFiles/Mish_plugin.dir/mishkernel.cu.o' failed
make[2]: *** [mishplugin/CMakeFiles/Mish_plugin.dir/mishkernel.cu.o] Error 1
CMakeFiles/Makefile2:205: recipe for target 'mishplugin/CMakeFiles/Mish_plugin.dir/all' failed
make[1]: *** [mishplugin/CMakeFiles/Mish_plugin.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 31%] Linking CXX shared library libSortMot.so
[ 31%] Built target SortMot
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

What could I have done wrong?

talebolano commented 3 years ago

@JobCollins I dont meet a similar problem, maybe your compiler version is too old?

JobCollins commented 3 years ago

I am running this on google colab

Here is the system:

nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2020 NVIDIA Corporation Built on Wed_Jul_22_19:09:09_PDT_2020 Cuda compilation tools, release 11.0, V11.0.221 Build cuda_11.0_bu.TC445_37.28845127_0 Ubuntu 18.04.5 LTS \n \l

Anything I should upgrade or downgrade?

talebolano commented 3 years ago

@JobCollins maybe upgrade g++/gcc or clang will be helpful

JobCollins commented 3 years ago

okay let me try that

JobCollins commented 3 years ago

What is the recommended gcc/g++ version? I have the latest