Advertisement
Guest User

Uff SSD C++ plugin compile error

a guest
Sep 13th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 6.57 KB | None | 0 0
  1. running install
  2. running bdist_egg
  3. running egg_info
  4. writing dependency_links to tensorrtplugins.egg-info/dependency_links.txt
  5. writing requirements to tensorrtplugins.egg-info/requires.txt
  6. writing top-level names to tensorrtplugins.egg-info/top_level.txt
  7. writing tensorrtplugins.egg-info/PKG-INFO
  8. reading manifest file 'tensorrtplugins.egg-info/SOURCES.txt'
  9. reading manifest template 'MANIFEST.in'
  10. writing manifest file 'tensorrtplugins.egg-info/SOURCES.txt'
  11. installing library code to build/bdist.linux-x86_64/egg
  12. running install_lib
  13. running build_py
  14. running build_ext
  15. building 'tensorrtplugins._plugins' extension
  16. swigging interfaces/plugins.i to interfaces/plugins_wrap.cpp
  17. swig -python -c++ -v -modern -builtin -Wall -fvirtual -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/usr/include -I/usr/include/c++/4.8/ -py3 -o interfaces/plugins_wrap.cpp interfaces/plugins.i
  18. Language subdirectory: python
  19. Search paths:
  20.    ./
  21.    /usr/include/x86_64-linux-gnu/
  22.    /usr/local/include/
  23.    /usr/include/
  24.    /usr/include/c++/4.8//
  25.    ./swig_lib/python/
  26.    /usr/share/swig3.0/python/
  27.    ./swig_lib/
  28.    /usr/share/swig3.0/
  29. Preprocessing...
  30. Starting language-specific parse...
  31. /usr/include/x86_64-linux-gnu/NvInfer.h:514: Warning 321: 'type' conflicts with a built-in name in python
  32. Processing types...
  33. C++ analysis...
  34. /usr/include/x86_64-linux-gnu/NvInfer.h:2922: Warning 403: Class 'nvinfer1::IRaggedSoftMaxLayer' might be abstract, no constructors generated,
  35. /usr/include/x86_64-linux-gnu/NvInfer.h:730: Warning 403: Method nvinfer1::ILayer::getType() const might not be implemented.
  36. /usr/include/x86_64-linux-gnu/NvInfer.h:3939: Warning 403: Class 'nvinfer1::IInt8EntropyCalibrator' might be abstract, no constructors generated,
  37. /usr/include/x86_64-linux-gnu/NvInfer.h:3883: Warning 403: Method nvinfer1::IInt8Calibrator::getBatchSize() const might not be implemented.
  38. Processing nested classes...
  39. Generating wrappers...
  40. src/SSDPluginFactory.h:48: Warning 451: Setting a const char * variable may leak memory.
  41. src/SSDPluginFactory.h:62: Warning 401: Base class 'nvinfer1::IPlugin' ignored - unknown module name for base. Either import the appropriate module interface file or specify the name of the module in the %import directive.
  42. src/SSDPluginFactory.h:231: Warning 401: Base class 'nvinfer1::IPluginFactory' ignored - unknown module name for base. Either import the appropriate module interface file or specify the name of the module in the %import directive.
  43. src/SSDPluginFactory.h:231: Warning 401: Base class 'nvuffparser::IPluginFactory' ignored - unknown module name for base. Either import the appropriate module interface file or specify the name of the module in the %import directive.
  44. g++ -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I. -I/usr/include -I/usr/include/x86_64-linux-gnu -I/usr/include/python3.5 -I/usr/local/lib/python3.5/numpy/core/include -I/usr/include/x86_64-linux-gnu -I/usr/local/cuda/include -I/usr/local/include -I/usr/include/x86_64-linux-gnu/ -I/usr/include/python3.5m -c interfaces/plugins_wrap.cpp -o build/temp.linux-x86_64-3.5/interfaces/plugins_wrap.o -std=c++11 -DNDEBUG -DUNIX -D__UNIX -m64 -fPIC -O2 -w -fmessage-length=0
  45. cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
  46. interfaces/plugins_wrap.cpp: In function 'PyObject* _wrap_PluginFactory_mPluginPriorBox_set(PyObject*, PyObject*)':
  47. interfaces/plugins_wrap.cpp:4716:37: error: use of deleted function 'std::unique_ptr<_Tp, _Dp>& std::unique_ptr<_Tp, _Dp>::operator=(const std::unique_ptr<_Tp, _Dp>&) [with _Tp = nvinfer1::plugin::INvPlugin; _Dp = void (*)(nvinfer1::plugin::INvPlugin*)]'
  48.    if (arg1) (arg1)->mPluginPriorBox = *arg2;
  49.                                      ^
  50. In file included from /usr/include/c++/5/memory:81:0,
  51.                  from ./src/SSDPluginFactory.h:10,
  52.                  from interfaces/plugins_wrap.cpp:3686:
  53. /usr/include/c++/5/bits/unique_ptr.h:357:19: note: declared here
  54.        unique_ptr& operator=(const unique_ptr&) = delete;
  55.                    ^
  56. interfaces/plugins_wrap.cpp: In function 'PyObject* _wrap_PluginFactory_mPluginDetectionOutput_set(PyObject*, PyObject*)':
  57. interfaces/plugins_wrap.cpp:4766:44: error: use of deleted function 'std::unique_ptr<_Tp, _Dp>& std::unique_ptr<_Tp, _Dp>::operator=(const std::unique_ptr<_Tp, _Dp>&) [with _Tp = nvinfer1::plugin::INvPlugin; _Dp = void (*)(nvinfer1::plugin::INvPlugin*)]'
  58.    if (arg1) (arg1)->mPluginDetectionOutput = *arg2;
  59.                                             ^
  60. In file included from /usr/include/c++/5/memory:81:0,
  61.                  from ./src/SSDPluginFactory.h:10,
  62.                  from interfaces/plugins_wrap.cpp:3686:
  63. /usr/include/c++/5/bits/unique_ptr.h:357:19: note: declared here
  64.        unique_ptr& operator=(const unique_ptr&) = delete;
  65.                    ^
  66. interfaces/plugins_wrap.cpp: In function 'PyObject* _wrap_PluginFactory_mPluginConcat_set(PyObject*, PyObject*)':
  67. interfaces/plugins_wrap.cpp:4816:35: error: use of deleted function 'std::unique_ptr<_Tp, _Dp>& std::unique_ptr<_Tp, _Dp>::operator=(const std::unique_ptr<_Tp, _Dp>&) [with _Tp = nvinfer1::plugin::INvPlugin; _Dp = void (*)(nvinfer1::plugin::INvPlugin*)]'
  68.    if (arg1) (arg1)->mPluginConcat = *arg2;
  69.                                    ^
  70. In file included from /usr/include/c++/5/memory:81:0,
  71.                  from ./src/SSDPluginFactory.h:10,
  72.                  from interfaces/plugins_wrap.cpp:3686:
  73. /usr/include/c++/5/bits/unique_ptr.h:357:19: note: declared here
  74.        unique_ptr& operator=(const unique_ptr&) = delete;
  75.                    ^
  76. interfaces/plugins_wrap.cpp: In function 'PyObject* _wrap_PluginFactory_mPluginFlattenConcat_set(PyObject*, PyObject*)':
  77. interfaces/plugins_wrap.cpp:4869:105: error: use of deleted function 'std::unique_ptr<_Tp, _Dp>& std::unique_ptr<_Tp, _Dp>::operator=(const std::unique_ptr<_Tp, _Dp>&) [with _Tp = FlattenConcat; _Dp = std::default_delete<FlattenConcat>]'
  78.        for (; ii < (size_t)2; ++ii) *(std::unique_ptr< FlattenConcat > *)&arg1->mPluginFlattenConcat[ii] = *((std::unique_ptr< FlattenConcat > *)arg2 + ii);
  79.                                                                                                          ^
  80. In file included from /usr/include/c++/5/memory:81:0,
  81.                  from ./src/SSDPluginFactory.h:10,
  82.                  from interfaces/plugins_wrap.cpp:3686:
  83. /usr/include/c++/5/bits/unique_ptr.h:357:19: note: declared here
  84.        unique_ptr& operator=(const unique_ptr&) = delete;
  85.                    ^
  86. error: command 'g++' failed with exit status 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement