Closed CelestineSmith closed 1 year ago
Have you installed onnx? Maybe that is the issue.
@AlexandreEichenberger Thank you for your reply, I've installed onnx(1.13.0). I use 'pip3.8 install onnx' to install it. Could you tell me is this the right way to install onnx? Thank you very much.
In the onnx-mlir dir, type pip install -e third_party/onnx
you need the specific version that onnx-mlir currently support.
@AlexandreEichenberger Thank you for your reply. The onnx(1.13.0) is the right version since in https://github.com/onnx/onnx-mlir/tree/main/third_party, it has upgrade its ONNX to 1.13.0. However, in the onnx-mlir dir, if I excute pip install -e third_party/onnx
, it will return:
Obtaining file:///data/onnx-mlir/third_party/onnx
Installing build dependencies ... done
Checking if build backend supports build_editable ... done
Getting requirements to build editable ... done
Installing backend dependencies ... done
Preparing editable metadata (pyproject.toml) ... done
Requirement already satisfied: typing-extensions>=3.6.2.1 in /usr/local/lib/python3.8/site-packages (from onnx==1.13.0) (4.4.0)
Requirement already satisfied: protobuf<4,>=3.20.2 in /usr/local/lib/python3.8/site-packages (from onnx==1.13.0) (3.20.3)
Requirement already satisfied: numpy>=1.16.6 in /usr/local/lib/python3.8/site-packages (from onnx==1.13.0) (1.21.6)
Building wheels for collected packages: onnx
Building editable for onnx (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building editable for onnx (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [612 lines of output]
running editable_wheel
creating /tmp/pip-wheel-q_7x5edb/.tmp-ep65sabv/onnx.egg-info
writing /tmp/pip-wheel-q_7x5edb/.tmp-ep65sabv/onnx.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-wheel-q_7x5edb/.tmp-ep65sabv/onnx.egg-info/dependency_links.txt
writing entry points to /tmp/pip-wheel-q_7x5edb/.tmp-ep65sabv/onnx.egg-info/entry_points.txt
writing requirements to /tmp/pip-wheel-q_7x5edb/.tmp-ep65sabv/onnx.egg-info/requires.txt
writing top-level names to /tmp/pip-wheel-q_7x5edb/.tmp-ep65sabv/onnx.egg-info/top_level.txt
writing manifest file '/tmp/pip-wheel-q_7x5edb/.tmp-ep65sabv/onnx.egg-info/SOURCES.txt'
reading manifest file '/tmp/pip-wheel-q_7x5edb/.tmp-ep65sabv/onnx.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.c' under directory 'onnx'
adding license file 'LICENSE'
writing manifest file '/tmp/pip-wheel-q_7x5edb/.tmp-ep65sabv/onnx.egg-info/SOURCES.txt'
creating '/tmp/pip-wheel-q_7x5edb/.tmp-ep65sabv/onnx-1.13.0.dist-info'
creating /tmp/pip-wheel-q_7x5edb/.tmp-ep65sabv/onnx-1.13.0.dist-info/WHEEL
running build_py
running create_version
running cmake_build
Extra cmake args: ['-DONNX_USE_PROTOBUF_SHARED_LIBS=ON']
Using cmake args: ['/data/cmake/cmake-3.25.0-linux-x86_64/bin/cmake', '-DPYTHON_INCLUDE_DIR=/usr/local/include/python3.8', '-DPYTHON_EXECUTABLE=/usr/local/bin/python3.8', '-DBUILD_ONNX_PYTHON=ON', '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON', '-DONNX_NAMESPACE=onnx', '-DPY_EXT_SUFFIX=.cpython-38-x86_64-linux-gnu.so', '-DCMAKE_BUILD_TYPE=Release', '-DONNX_ML=1', '-DONNX_USE_PROTOBUF_SHARED_LIBS=ON', '/data/onnx-mlir/third_party/onnx']
CMake Warning at /data/cmake/cmake-3.25.0-linux-x86_64/share/cmake-3.25/Modules/FindProtobuf.cmake:524 (message):
Protobuf compiler version doesn't match library version 3.0.0
Call Stack (most recent call first):
CMakeLists.txt:179 (find_package)
Generated: /data/onnx-mlir/third_party/onnx/.setuptools-cmake-build/onnx/onnx-ml.proto
Generated: /data/onnx-mlir/third_party/onnx/.setuptools-cmake-build/onnx/onnx-operators-ml.proto
Generated: /data/onnx-mlir/third_party/onnx/.setuptools-cmake-build/onnx/onnx-data.proto
-- Found pybind11: /usr/local/include (found version "2.10.3")
--
-- ******** Summary ********
-- CMake version : 3.25.0
-- CMake command : /data/cmake/cmake-3.25.0-linux-x86_64/bin/cmake
-- System : Linux
-- C++ compiler : /usr/bin/c++
-- C++ compiler version : 7.5.0
-- CXX flags : -Wnon-virtual-dtor
-- Build type : Release
-- Compile definitions : __STDC_FORMAT_MACROS
-- CMAKE_PREFIX_PATH :
-- CMAKE_INSTALL_PREFIX : /usr/local
-- CMAKE_MODULE_PATH :
--
-- ONNX version : 1.13.0
-- ONNX NAMESPACE : onnx
-- ONNX_USE_LITE_PROTO : ON
-- USE_PROTOBUF_SHARED_LIBS : ON
-- Protobuf_USE_STATIC_LIBS : OFF
-- ONNX_DISABLE_EXCEPTIONS : OFF
-- ONNX_WERROR : OFF
-- ONNX_BUILD_TESTS : OFF
-- ONNX_BUILD_BENCHMARKS : OFF
--
-- Protobuf compiler : /usr/bin/protoc
-- Protobuf includes : /usr/include
-- Protobuf libraries : /usr/lib/x86_64-linux-gnu/libprotobuf.a;-lpthread
-- BUILD_ONNX_PYTHON : ON
-- Python version :
-- Python executable : /usr/local/bin/python3.8
-- Python includes : /usr/local/include/python3.8
-- Configuring done
-- Generating done
-- Build files have been written to: /data/onnx-mlir/third_party/onnx/.setuptools-cmake-build
[ 2%] Built target gen_onnx_proto
[ 5%] Built target gen_onnx_data_proto
[ 8%] Built target gen_onnx_operators_proto
[ 23%] Built target onnx_proto
[ 25%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/logical/old.cc.o
[ 26%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/rnn/defs.cc.o
[ 31%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/logical/defs.cc.o
[ 31%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/optional/old.cc.o
[ 38%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/controlflow/old.cc.o
[ 31%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/tensor/old.cc.o
[ 38%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/controlflow/defs.cc.o
[ 38%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/generator/old.cc.o
[ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/object_detection/defs.cc.o
[ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/quantization/defs.cc.o
[ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/function.cc.o
[ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/nn/old.cc.o
[ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/nn/defs.cc.o
[ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/math/old.cc.o
[ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/sequence/defs.cc.o
[ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/rnn/old.cc.o
[ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/quantization/old.cc.o
[ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/optional/defs.cc.o
[ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/traditionalml/defs.cc.o
[ 38%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/shape_inference.cc.o
[ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/tensor_proto_util.cc.o
[ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/reduction/defs.cc.o
[ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/tensor/defs.cc.o
[ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/generator/defs.cc.o
[ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/math/defs.cc.o
[ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/traditionalml/old.cc.o
[ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/version_converter/convert.cc.o
[ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/reduction/old.cc.o
[ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/common/model_helpers.cc.o
[ 38%] Building CXX object CMakeFiles/onnx.dir/onnx/checker.cc.o
[ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/tensor/utils.cc.o
[ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/reduction/utils.cc.o
[ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/training/defs.cc.o
[ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/math/utils.cc.o
[ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/schema.cc.o
[ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/shape_inference/implementation.cc.o
[ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/object_detection/old.cc.o
In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
from /data/onnx-mlir/third_party/onnx/onnx/defs/controlflow/defs.cc:6:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
return proto.ShortDebugString();
^~~~~~~~~~~~~~~~
In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
from /data/onnx-mlir/third_party/onnx/onnx/defs/reduction/utils.h:7,
from /data/onnx-mlir/third_party/onnx/onnx/defs/reduction/utils.cc:5:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
return proto.ShortDebugString();
^~~~~~~~~~~~~~~~
In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
from /data/onnx-mlir/third_party/onnx/onnx/defs/math/utils.h:7,
from /data/onnx-mlir/third_party/onnx/onnx/defs/math/utils.cc:5:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
return proto.ShortDebugString();
^~~~~~~~~~~~~~~~
In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
from /data/onnx-mlir/third_party/onnx/onnx/defs/function.h:16,
from /data/onnx-mlir/third_party/onnx/onnx/checker.h:10,
from /data/onnx-mlir/third_party/onnx/onnx/common/model_helpers.cc:6:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
return proto.ShortDebugString();
^~~~~~~~~~~~~~~~
In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
from /data/onnx-mlir/third_party/onnx/onnx/defs/function.h:16,
from /data/onnx-mlir/third_party/onnx/onnx/defs/quantization/defs.cc:5:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
return proto.ShortDebugString();
^~~~~~~~~~~~~~~~
In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
from /data/onnx-mlir/third_party/onnx/onnx/defs/logical/old.cc:5:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
return proto.ShortDebugString();
^~~~~~~~~~~~~~~~
In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
from /data/onnx-mlir/third_party/onnx/onnx/defs/tensor_proto_util.cc:9:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
return proto.ShortDebugString();
^~~~~~~~~~~~~~~~
In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
from /data/onnx-mlir/third_party/onnx/onnx/defs/data_propagators.h:5,
from /data/onnx-mlir/third_party/onnx/onnx/defs/tensor/defs.cc:5:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
return proto.ShortDebugString();
^~~~~~~~~~~~~~~~
In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
from /data/onnx-mlir/third_party/onnx/onnx/defs/traditionalml/defs.cc:5:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
return proto.ShortDebugString();
^~~~~~~~~~~~~~~~
In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
from /data/onnx-mlir/third_party/onnx/onnx/defs/reduction/utils.h:7,
from /data/onnx-mlir/third_party/onnx/onnx/defs/reduction/old.cc:7:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
return proto.ShortDebugString();
^~~~~~~~~~~~~~~~
In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
from /data/onnx-mlir/third_party/onnx/onnx/defs/controlflow/old.cc:5:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
return proto.ShortDebugString();
^~~~~~~~~~~~~~~~
In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
from /data/onnx-mlir/third_party/onnx/onnx/defs/data_propagators.h:5,
from /data/onnx-mlir/third_party/onnx/onnx/defs/tensor/old.cc:8:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
return proto.ShortDebugString();
^~~~~~~~~~~~~~~~
In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
from /data/onnx-mlir/third_party/onnx/onnx/defs/function.h:16,
from /data/onnx-mlir/third_party/onnx/onnx/checker.h:10,
from /data/onnx-mlir/third_party/onnx/onnx/checker.cc:5:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
return proto.ShortDebugString();
^~~~~~~~~~~~~~~~
In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
from /data/onnx-mlir/third_party/onnx/onnx/defs/object_detection/defs.cc:5:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
return proto.ShortDebugString();
^~~~~~~~~~~~~~~~
In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
from /data/onnx-mlir/third_party/onnx/onnx/defs/rnn/defs.cc:5:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
return proto.ShortDebugString();
^~~~~~~~~~~~~~~~
In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
from /data/onnx-mlir/third_party/onnx/onnx/defs/function.h:16,
from /data/onnx-mlir/third_party/onnx/onnx/shape_inference/implementation.h:7,
from /data/onnx-mlir/third_party/onnx/onnx/shape_inference/implementation.cc:5:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
return proto.ShortDebugString();
^~~~~~~~~~~~~~~~
In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
from /data/onnx-mlir/third_party/onnx/onnx/defs/function.h:16,
from /data/onnx-mlir/third_party/onnx/onnx/defs/quantization/old.cc:5:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
return proto.ShortDebugString();
^~~~~~~~~~~~~~~~
In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
from /data/onnx-mlir/third_party/onnx/onnx/defs/generator/old.cc:7:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
return proto.ShortDebugString();
^~~~~~~~~~~~~~~~
In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
from /data/onnx-mlir/third_party/onnx/onnx/defs/function.h:16,
from /data/onnx-mlir/third_party/onnx/onnx/defs/optional/defs.cc:5:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
return proto.ShortDebugString();
^~~~~~~~~~~~~~~~
In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
from /data/onnx-mlir/third_party/onnx/onnx/defs/function.h:16,
from /data/onnx-mlir/third_party/onnx/onnx/defs/reduction/defs.cc:7:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
return proto.ShortDebugString();
^~~~~~~~~~~~~~~~
In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
from /data/onnx-mlir/third_party/onnx/onnx/defs/rnn/old.cc:5:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
return proto.ShortDebugString();
^~~~~~~~~~~~~~~~
In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
from /data/onnx-mlir/third_party/onnx/onnx/defs/traditionalml/old.cc:5:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
return proto.ShortDebugString();
^~~~~~~~~~~~~~~~
In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
from /data/onnx-mlir/third_party/onnx/onnx/defs/function.h:16,
from /data/onnx-mlir/third_party/onnx/onnx/defs/math/defs.cc:8:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
return proto.ShortDebugString();
^~~~~~~~~~~~~~~~
In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
from /data/onnx-mlir/third_party/onnx/onnx/defs/function.h:16,
from /data/onnx-mlir/third_party/onnx/onnx/defs/logical/defs.cc:5:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
return proto.ShortDebugString();
^~~~~~~~~~~~~~~~
In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
from /data/onnx-mlir/third_party/onnx/onnx/defs/tensor/utils.h:7,
from /data/onnx-mlir/third_party/onnx/onnx/defs/tensor/utils.cc:5:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
return proto.ShortDebugString();
^~~~~~~~~~~~~~~~
In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
from /data/onnx-mlir/third_party/onnx/onnx/defs/object_detection/old.cc:5:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
return proto.ShortDebugString();
^~~~~~~~~~~~~~~~
In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.cc:5:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
return proto.ShortDebugString();
^~~~~~~~~~~~~~~~
In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
from /data/onnx-mlir/third_party/onnx/onnx/defs/function.h:16,
from /data/onnx-mlir/third_party/onnx/onnx/defs/generator/defs.cc:7:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
return proto.ShortDebugString();
^~~~~~~~~~~~~~~~
In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
from /data/onnx-mlir/third_party/onnx/onnx/defs/function.h:16,
from /data/onnx-mlir/third_party/onnx/onnx/defs/optional/old.cc:5:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
return proto.ShortDebugString();
^~~~~~~~~~~~~~~~
CMakeFiles/onnx.dir/build.make:635: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/tensor_proto_util.cc.o' failed
make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/tensor_proto_util.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
from /data/onnx-mlir/third_party/onnx/onnx/defs/function.h:16,
from /data/onnx-mlir/third_party/onnx/onnx/defs/function.cc:5:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
return proto.ShortDebugString();
^~~~~~~~~~~~~~~~
In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.cc:5:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
return proto.ShortDebugString();
^~~~~~~~~~~~~~~~
In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
from /data/onnx-mlir/third_party/onnx/onnx/defs/function.h:16,
from /data/onnx-mlir/third_party/onnx/onnx/defs/nn/defs.cc:8:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
return proto.ShortDebugString();
^~~~~~~~~~~~~~~~
In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
from /data/onnx-mlir/third_party/onnx/onnx/defs/function.h:16,
from /data/onnx-mlir/third_party/onnx/onnx/defs/sequence/defs.cc:5:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
return proto.ShortDebugString();
^~~~~~~~~~~~~~~~
In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
from /data/onnx-mlir/third_party/onnx/onnx/defs/function.h:16,
from /data/onnx-mlir/third_party/onnx/onnx/defs/nn/old.cc:6:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
return proto.ShortDebugString();
^~~~~~~~~~~~~~~~
In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
from /data/onnx-mlir/third_party/onnx/onnx/defs/function.h:16,
from /data/onnx-mlir/third_party/onnx/onnx/defs/math/old.cc:6:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
return proto.ShortDebugString();
^~~~~~~~~~~~~~~~
CMakeFiles/onnx.dir/build.make:327: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/math/utils.cc.o' failed
make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/math/utils.cc.o] Error 1
In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
from /data/onnx-mlir/third_party/onnx/onnx/defs/function.h:16,
from /data/onnx-mlir/third_party/onnx/onnx/defs/training/defs.cc:7:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
return proto.ShortDebugString();
^~~~~~~~~~~~~~~~
In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
from /data/onnx-mlir/third_party/onnx/onnx/version_converter/BaseConverter.h:15,
from /data/onnx-mlir/third_party/onnx/onnx/version_converter/convert.h:10,
from /data/onnx-mlir/third_party/onnx/onnx/version_converter/convert.cc:5:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
/data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
return proto.ShortDebugString();
^~~~~~~~~~~~~~~~
CMakeFiles/onnx.dir/build.make:187: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/controlflow/defs.cc.o' failed
make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/controlflow/defs.cc.o] Error 1
CMakeFiles/onnx.dir/build.make:131: recipe for target 'CMakeFiles/onnx.dir/onnx/common/model_helpers.cc.o' failed
make[2]: *** [CMakeFiles/onnx.dir/onnx/common/model_helpers.cc.o] Error 1
CMakeFiles/onnx.dir/build.make:579: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/shape_inference.cc.o' failed
make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/shape_inference.cc.o] Error 1
CMakeFiles/onnx.dir/build.make:453: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/quantization/defs.cc.o' failed
make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/quantization/defs.cc.o] Error 1
CMakeFiles/onnx.dir/build.make:509: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/reduction/utils.cc.o' failed
make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/reduction/utils.cc.o] Error 1
CMakeFiles/onnx.dir/build.make:369: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/object_detection/defs.cc.o' failed
make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/object_detection/defs.cc.o] Error 1
CMakeFiles/onnx.dir/build.make:495: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/reduction/old.cc.o' failed
make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/reduction/old.cc.o] Error 1
CMakeFiles/onnx.dir/build.make:383: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/object_detection/old.cc.o' failed
make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/object_detection/old.cc.o] Error 1
CMakeFiles/onnx.dir/build.make:467: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/quantization/old.cc.o' failed
make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/quantization/old.cc.o] Error 1
CMakeFiles/onnx.dir/build.make:285: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/logical/old.cc.o' failed
make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/logical/old.cc.o] Error 1
CMakeFiles/onnx.dir/build.make:201: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/controlflow/old.cc.o' failed
make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/controlflow/old.cc.o] Error 1
CMakeFiles/onnx.dir/build.make:663: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/traditionalml/defs.cc.o' failed
make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/traditionalml/defs.cc.o] Error 1
CMakeFiles/onnx.dir/build.make:257: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/generator/old.cc.o' failed
make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/generator/old.cc.o] Error 1
CMakeFiles/onnx.dir/build.make:411: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/optional/old.cc.o' failed
make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/optional/old.cc.o] Error 1
CMakeFiles/onnx.dir/build.make:481: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/reduction/defs.cc.o' failed
make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/reduction/defs.cc.o] Error 1
CMakeFiles/onnx.dir/build.make:537: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/rnn/old.cc.o' failed
make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/rnn/old.cc.o] Error 1
CMakeFiles/onnx.dir/build.make:397: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/optional/defs.cc.o' failed
make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/optional/defs.cc.o] Error 1
CMakeFiles/onnx.dir/build.make:523: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/rnn/defs.cc.o' failed
make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/rnn/defs.cc.o] Error 1
CMakeFiles/onnx.dir/build.make:299: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/math/defs.cc.o' failed
make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/math/defs.cc.o] Error 1
CMakeFiles/onnx.dir/build.make:677: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/traditionalml/old.cc.o' failed
make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/traditionalml/old.cc.o] Error 1
CMakeFiles/onnx.dir/build.make:565: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/sequence/defs.cc.o' failed
make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/sequence/defs.cc.o] Error 1
CMakeFiles/onnx.dir/build.make:271: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/logical/defs.cc.o' failed
make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/logical/defs.cc.o] Error 1
CMakeFiles/onnx.dir/build.make:243: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/generator/defs.cc.o' failed
make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/generator/defs.cc.o] Error 1
CMakeFiles/onnx.dir/build.make:355: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/nn/old.cc.o' failed
make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/nn/old.cc.o] Error 1
CMakeFiles/onnx.dir/build.make:691: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/training/defs.cc.o' failed
make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/training/defs.cc.o] Error 1
CMakeFiles/onnx.dir/build.make:621: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/tensor/utils.cc.o' failed
make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/tensor/utils.cc.o] Error 1
CMakeFiles/onnx.dir/build.make:229: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/function.cc.o' failed
make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/function.cc.o] Error 1
CMakeFiles/onnx.dir/build.make:313: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/math/old.cc.o' failed
make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/math/old.cc.o] Error 1
CMakeFiles/onnx.dir/build.make:341: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/nn/defs.cc.o' failed
make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/nn/defs.cc.o] Error 1
CMakeFiles/onnx.dir/build.make:593: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/tensor/defs.cc.o' failed
make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/tensor/defs.cc.o] Error 1
CMakeFiles/onnx.dir/build.make:607: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/tensor/old.cc.o' failed
make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/tensor/old.cc.o] Error 1
CMakeFiles/onnx.dir/build.make:75: recipe for target 'CMakeFiles/onnx.dir/onnx/checker.cc.o' failed
make[2]: *** [CMakeFiles/onnx.dir/onnx/checker.cc.o] Error 1
CMakeFiles/onnx.dir/build.make:705: recipe for target 'CMakeFiles/onnx.dir/onnx/shape_inference/implementation.cc.o' failed
make[2]: *** [CMakeFiles/onnx.dir/onnx/shape_inference/implementation.cc.o] Error 1
CMakeFiles/onnx.dir/build.make:551: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/schema.cc.o' failed
make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/schema.cc.o] Error 1
CMakeFiles/onnx.dir/build.make:719: recipe for target 'CMakeFiles/onnx.dir/onnx/version_converter/convert.cc.o' failed
make[2]: *** [CMakeFiles/onnx.dir/onnx/version_converter/convert.cc.o] Error 1
CMakeFiles/Makefile2:195: recipe for target 'CMakeFiles/onnx.dir/all' failed
make[1]: *** [CMakeFiles/onnx.dir/all] Error 2
Makefile:135: recipe for target 'all' failed
make: *** [all] Error 2
running build_ext
running cmake_build
/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/command/editable_wheel.py:284: SetuptoolsDeprecationWarning: Traceback (most recent call last):
File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 290, in _safely_run
return self.run_command(cmd_name)
File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 1221, in run_command
super().run_command(command)
File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "<string>", line 233, in run
File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 1221, in run_command
super().run_command(command)
File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "<string>", line 227, in run
File "/usr/local/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/data/cmake/cmake-3.25.0-linux-x86_64/bin/cmake', '--build', '.', '--', '-j', '72']' returned non-zero exit status 2.
If you are seeing this warning it is very likely that a setuptools
plugin or customization overrides the `build_py` command, without
taking into consideration how editable installs run build steps
starting from v64.0.0.
Plugin authors and developers relying on custom build steps are encouraged
to update their `build_py` implementation considering the information in
https://setuptools.pypa.io/en/latest/userguide/extension.html
about editable installs.
For the time being `setuptools` will silence this error and ignore
the faulty command, but this behaviour will change in future versions.
self._safely_run(name)
Traceback (most recent call last):
File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 147, in run
self._create_wheel_file(bdist_wheel)
File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 328, in _create_wheel_file
files, mapping = self._run_build_commands(dist_name, unpacked, lib, tmp)
File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 259, in _run_build_commands
self._run_build_subcommands()
File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 286, in _run_build_subcommands
self.run_command(name)
File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 1221, in run_command
super().run_command(command)
File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "<string>", line 257, in run
File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 84, in run
_build_ext.run(self)
File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
self.build_extensions()
File "<string>", line 274, in build_extensions
File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 350, in copy_file
return file_util.copy_file(
File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/_distutils/file_util.py", line 115, in copy_file
raise DistutilsFileError(
setuptools._distutils.errors.DistutilsFileError: can't copy '/data/onnx-mlir/third_party/onnx/.setuptools-cmake-build/onnx_cpp2py_export.cpython-38-x86_64-linux-gnu.so': doesn't exist or not a regular file
/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/command/editable_wheel.py:151: _DebuggingTips: An error happened while installing 'onnx' in editable mode.
************************************************************************
The following steps are recommended to help debugging this problem:
- Try to install the project normally, without using the editable mode.
Does the error still persists?
(If it does, try fixing the problem before attempting the editable mode).
- If you are using binary extensions, make sure you have all OS-level
dependencies installed (e.g. compilers, toolchains, binary libraries, ...).
- Try the latest version of setuptools (maybe the error was already fixed).
- If you (or your project dependencies) are using any setuptools extension
or customization, make sure they support the editable mode.
After following the steps above, if the problem still persist and
you think this is related to how setuptools handles editable installations,
please submit a reproducible example
(see https://stackoverflow.com/help/minimal-reproducible-example) to:
https://github.com/pypa/setuptools/issues
More information about editable installs can be found in the docs:
https://setuptools.pypa.io/en/latest/userguide/development_mode.html
************************************************************************
_DebuggingTips.warn(project)
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/usr/local/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/usr/local/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 273, in build_editable
return hook(wheel_directory, config_settings, metadata_directory)
File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 442, in build_editable
return self._build_with_temp_dir(
File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 398, in _build_with_temp_dir
self.run_setup()
File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 484, in run_setup
super(_BuildMetaLegacyBackend,
File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 335, in run_setup
exec(code, locals())
File "<string>", line 358, in <module>
File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/__init__.py", line 108, in setup
return distutils.core.setup(**attrs)
File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 1221, in run_command
super().run_command(command)
File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 147, in run
self._create_wheel_file(bdist_wheel)
File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 328, in _create_wheel_file
files, mapping = self._run_build_commands(dist_name, unpacked, lib, tmp)
File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 259, in _run_build_commands
self._run_build_subcommands()
File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 286, in _run_build_subcommands
self.run_command(name)
File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 1221, in run_command
super().run_command(command)
File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "<string>", line 257, in run
File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 84, in run
_build_ext.run(self)
File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
self.build_extensions()
File "<string>", line 274, in build_extensions
File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 350, in copy_file
return file_util.copy_file(
File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/_distutils/file_util.py", line 115, in copy_file
raise DistutilsFileError(
setuptools._distutils.errors.DistutilsFileError: can't copy '/data/onnx-mlir/third_party/onnx/.setuptools-cmake-build/onnx_cpp2py_export.cpython-38-x86_64-linux-gnu.so': doesn't exist or not a regular file
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building editable for onnx
Failed to build onnx
ERROR: Could not build wheels for onnx, which is required to install pyproject.toml-based projects
Therefore I tried to install onnx by pip install onnx
. Could you tell me how to install onnx in onnx-mlir dir?Thank you very much.
We strongly recommend users to use our docker environment to build/use onnx-mlir. That avoid the issues shown in this thread. Please consider using existing and/or building your docker image using our Docker files.
onnx package depends on protobuf. Make sure to install the right version of protobuf. Issue #1936 may help?
LLVM: ba8b8a73 Follow https://github.com/onnx/onnx-mlir/blob/main/docs/BuildOnLinuxOSX.md#mlir
excute
Cmake log:
excute
Cmake build log:
CMakeError.log:
I can't find out why ninja build stopped. Can anyone have a look?