Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/28.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux Cmake安装中的TensorRT nvidia容器错误_Linux_Docker_Cmake_Ubuntu 18.04_Tensorrt - Fatal编程技术网

Linux Cmake安装中的TensorRT nvidia容器错误

Linux Cmake安装中的TensorRT nvidia容器错误,linux,docker,cmake,ubuntu-18.04,tensorrt,Linux,Docker,Cmake,Ubuntu 18.04,Tensorrt,我正在使用nvidia容器构建TensorRT,但当我使用cmake安装时,它会给我错误信息。我试着搜索,但找不到任何解决办法 Ubuntu 18.04.5 nvcc-版本 nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2017 NVIDIA Corporation Built on Fri_Nov__3_21:07:56_CDT_2017 Cuda compilation tools, release 9.1, V9.1.85

我正在使用nvidia容器构建TensorRT,但当我使用
cmake安装时,它会给我错误信息。我试着搜索,但找不到任何解决办法

Ubuntu 18.04.5

nvcc-版本

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Nov__3_21:07:56_CDT_2017
Cuda compilation tools, release 9.1, V9.1.85

请附上错误日志

make install
[  2%] Built target onnxifi_dummy
[  5%] Built target onnxifi_loader
[  8%] Built target onnxifi_wrapper
[ 10%] Built target gen_onnx_proto
[ 24%] Built target onnx_proto
[ 26%] Building CXX object CMakeFiles/onnx.dir/onnx/checker.cc.o
In file included from /workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/checker.cc:1:0:
/workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/checker.cc: In function 'void onnx::checker::check_graph(const onnx::GraphProto&, const onnx::checker::CheckerContext&, const onnx::checker::LexicalScopeContext&)':
/workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/checker.cc:719:30: error: invalid initialization of reference of type 'const google::protobuf::Message&' from expression of type 'const onnx::NodeProto'
             ProtoDebugString(node),
                              ^
/workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/checker.h:35:34: note: in definition of macro 'fail_check'
       ONNX_NAMESPACE::MakeString(__VA_ARGS__));
                                  ^~~~~~~~~~~
In file included from /workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/defs/shape_inference.h:4:0,
                 from /workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/defs/schema.h:24,
                 from /workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/checker.h:7,
                 from /workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/checker.cc:1:
/workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/proto_utils.h:23:20: note: in passing argument 1 of 'std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::Message&)'
 inline std::string ProtoDebugString(const Message& proto) {
                    ^~~~~~~~~~~~~~~~
/workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/checker.cc:731:61: error: invalid initialization of reference of type 'const google::protobuf::Message&' from expression of type 'const onnx::NodeProto'
       ex.AppendContext("Bad node spec: " + ProtoDebugString(node));
                                                             ^~~~
In file included from /workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/defs/shape_inference.h:4:0,
                 from /workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/defs/schema.h:24,
                 from /workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/checker.h:7,
                 from /workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/checker.cc:1:
/workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/proto_utils.h:23:20: note: in passing argument 1 of 'std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::Message&)'
 inline std::string ProtoDebugString(const Message& proto) {
                    ^~~~~~~~~~~~~~~~
In file included from /workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/checker.cc:1:0:
/workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/checker.cc: In function 'void onnx::checker::check_function(const onnx::FunctionProto&, const onnx::checker::CheckerContext&, const onnx::checker::LexicalScopeContext&)':
/workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/checker.cc:815:30: error: invalid initialization of reference of type 'const google::protobuf::Message&' from expression of type 'const onnx::NodeProto'
             ProtoDebugString(node),
                              ^
/workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/checker.h:35:34: note: in definition of macro 'fail_check'
       ONNX_NAMESPACE::MakeString(__VA_ARGS__));
                                  ^~~~~~~~~~~
In file included from /workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/defs/shape_inference.h:4:0,
                 from /workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/defs/schema.h:24,
                 from /workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/checker.h:7,
                 from /workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/checker.cc:1:
/workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/proto_utils.h:23:20: note: in passing argument 1 of 'std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::Message&)'
 inline std::string ProtoDebugString(const Message& proto) {
                    ^~~~~~~~~~~~~~~~
CMakeFiles/onnx.dir/build.make:95: recipe for target 'CMakeFiles/onnx.dir/onnx/checker.cc.o' failed
make[2]: *** [CMakeFiles/onnx.dir/onnx/checker.cc.o] Error 1
CMakeFiles/Makefile2:317: recipe for target 'CMakeFiles/onnx.dir/all' failed
make[1]: *** [CMakeFiles/onnx.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
提前感谢,我们将非常感谢您的帮助

make install
[  2%] Built target onnxifi_dummy
[  5%] Built target onnxifi_loader
[  8%] Built target onnxifi_wrapper
[ 10%] Built target gen_onnx_proto
[ 24%] Built target onnx_proto
[ 26%] Building CXX object CMakeFiles/onnx.dir/onnx/checker.cc.o
In file included from /workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/checker.cc:1:0:
/workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/checker.cc: In function 'void onnx::checker::check_graph(const onnx::GraphProto&, const onnx::checker::CheckerContext&, const onnx::checker::LexicalScopeContext&)':
/workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/checker.cc:719:30: error: invalid initialization of reference of type 'const google::protobuf::Message&' from expression of type 'const onnx::NodeProto'
             ProtoDebugString(node),
                              ^
/workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/checker.h:35:34: note: in definition of macro 'fail_check'
       ONNX_NAMESPACE::MakeString(__VA_ARGS__));
                                  ^~~~~~~~~~~
In file included from /workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/defs/shape_inference.h:4:0,
                 from /workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/defs/schema.h:24,
                 from /workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/checker.h:7,
                 from /workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/checker.cc:1:
/workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/proto_utils.h:23:20: note: in passing argument 1 of 'std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::Message&)'
 inline std::string ProtoDebugString(const Message& proto) {
                    ^~~~~~~~~~~~~~~~
/workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/checker.cc:731:61: error: invalid initialization of reference of type 'const google::protobuf::Message&' from expression of type 'const onnx::NodeProto'
       ex.AppendContext("Bad node spec: " + ProtoDebugString(node));
                                                             ^~~~
In file included from /workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/defs/shape_inference.h:4:0,
                 from /workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/defs/schema.h:24,
                 from /workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/checker.h:7,
                 from /workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/checker.cc:1:
/workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/proto_utils.h:23:20: note: in passing argument 1 of 'std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::Message&)'
 inline std::string ProtoDebugString(const Message& proto) {
                    ^~~~~~~~~~~~~~~~
In file included from /workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/checker.cc:1:0:
/workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/checker.cc: In function 'void onnx::checker::check_function(const onnx::FunctionProto&, const onnx::checker::CheckerContext&, const onnx::checker::LexicalScopeContext&)':
/workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/checker.cc:815:30: error: invalid initialization of reference of type 'const google::protobuf::Message&' from expression of type 'const onnx::NodeProto'
             ProtoDebugString(node),
                              ^
/workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/checker.h:35:34: note: in definition of macro 'fail_check'
       ONNX_NAMESPACE::MakeString(__VA_ARGS__));
                                  ^~~~~~~~~~~
In file included from /workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/defs/shape_inference.h:4:0,
                 from /workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/defs/schema.h:24,
                 from /workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/checker.h:7,
                 from /workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/checker.cc:1:
/workspace/code-samples/posts/TensorRT-introduction/onnx/onnx/proto_utils.h:23:20: note: in passing argument 1 of 'std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::Message&)'
 inline std::string ProtoDebugString(const Message& proto) {
                    ^~~~~~~~~~~~~~~~
CMakeFiles/onnx.dir/build.make:95: recipe for target 'CMakeFiles/onnx.dir/onnx/checker.cc.o' failed
make[2]: *** [CMakeFiles/onnx.dir/onnx/checker.cc.o] Error 1
CMakeFiles/Makefile2:317: recipe for target 'CMakeFiles/onnx.dir/all' failed
make[1]: *** [CMakeFiles/onnx.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2