setuptools icon indicating copy to clipboard operation
setuptools copied to clipboard

Build Error when build ONNX

Open CelestineSmith opened this issue 3 years ago • 6 comments

setuptools version

60.1.0

Python version

Python 3.8.16

OS

Ubuntu

Additional environment information

      --   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.14.0

Description

I tried building ONNX from Source (Follow https://github.com/onnx/onnx/tree/1ba785612a79fe749aa1e478336e534743372639#linux), but when I excuted

/usr/local/bin/pip3.8 install -e .

I met a error

Expected behavior

Build ONNX

How to Reproduce

export CMAKE_ARGS="-DONNX_USE_PROTOBUF_SHARED_LIBS=ON"
apt-get install python3-pip python3-dev libprotobuf-dev protobuf-compiler
git clone https://github.com/onnx/onnx.git
cd onnx
git submodule update --init --recursive
# Optional: prefer lite proto
export CMAKE_ARGS=-DONNX_USE_LITE_PROTO=ON
pip install -e .

Output

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.14.0) (4.4.0)
Requirement already satisfied: protobuf<4,>=3.20.2 in /usr/local/lib/python3.8/site-packages (from onnx==1.14.0) (3.20.2)
Requirement already satisfied: numpy>=1.16.6 in /usr/local/lib/python3.8/site-packages (from onnx==1.14.0) (1.21.5)
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
  ╰─> [594 lines of output]
      running editable_wheel
      creating /tmp/pip-wheel-b_vd1pag/.tmp-4u2hpv97/onnx.egg-info
      writing /tmp/pip-wheel-b_vd1pag/.tmp-4u2hpv97/onnx.egg-info/PKG-INFO
      writing dependency_links to /tmp/pip-wheel-b_vd1pag/.tmp-4u2hpv97/onnx.egg-info/dependency_links.txt
      writing entry points to /tmp/pip-wheel-b_vd1pag/.tmp-4u2hpv97/onnx.egg-info/entry_points.txt
      writing requirements to /tmp/pip-wheel-b_vd1pag/.tmp-4u2hpv97/onnx.egg-info/requires.txt
      writing top-level names to /tmp/pip-wheel-b_vd1pag/.tmp-4u2hpv97/onnx.egg-info/top_level.txt
      writing manifest file '/tmp/pip-wheel-b_vd1pag/.tmp-4u2hpv97/onnx.egg-info/SOURCES.txt'
      reading manifest file '/tmp/pip-wheel-b_vd1pag/.tmp-4u2hpv97/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-b_vd1pag/.tmp-4u2hpv97/onnx.egg-info/SOURCES.txt'
      creating '/tmp/pip-wheel-b_vd1pag/.tmp-4u2hpv97/onnx-1.14.0.dist-info'
      creating /tmp/pip-wheel-b_vd1pag/.tmp-4u2hpv97/onnx-1.14.0.dist-info/WHEEL
      running build_py
      running create_version
      running cmake_build
      Extra cmake args: ['-DONNX_USE_LITE_PROTO=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_LITE_PROTO=ON', '/data/onnx-mlir/third_party/onnx']
      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.14.0
      --   ONNX NAMESPACE            : onnx
      --   ONNX_USE_LITE_PROTO       : ON
      --   USE_PROTOBUF_SHARED_LIBS  : OFF
      --   Protobuf_USE_STATIC_LIBS  : ON
      --   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/checker.cc.o
      [ 26%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/controlflow/old.cc.o
      [ 31%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/controlflow/defs.cc.o
      [ 31%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/function.cc.o
      [ 31%] Building CXX object CMakeFiles/onnx.dir/onnx/common/model_helpers.cc.o
      [ 32%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/generator/defs.cc.o
      [ 34%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/generator/old.cc.o
      [ 35%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/optional/defs.cc.o
      [ 38%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/math/old.cc.o
      [ 40%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/math/utils.cc.o
      [ 40%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/math/defs.cc.o
      [ 43%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/logical/defs.cc.o
      [ 43%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/logical/old.cc.o
      [ 44%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/object_detection/old.cc.o
      [ 46%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/nn/defs.cc.o
      [ 47%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/nn/old.cc.o
      [ 49%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/optional/old.cc.o
      [ 52%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/quantization/old.cc.o
      [ 55%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/object_detection/defs.cc.o
      [ 52%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/quantization/defs.cc.o
      [ 55%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/reduction/old.cc.o
      [ 56%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/reduction/defs.cc.o
      [ 59%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/reduction/utils.cc.o
      [ 61%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/rnn/defs.cc.o
      [ 61%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/schema.cc.o
      [ 62%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/sequence/defs.cc.o
      [ 65%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/rnn/old.cc.o
      [ 65%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/shape_inference.cc.o
      [ 68%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/tensor/old.cc.o
      [ 68%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/tensor/defs.cc.o
      [ 70%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/tensor/utils.cc.o
      [ 71%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/tensor_proto_util.cc.o
      [ 74%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/traditionalml/defs.cc.o
      [ 74%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/training/defs.cc.o
      [ 76%] Building CXX object CMakeFiles/onnx.dir/onnx/shape_inference/implementation.cc.o
      [ 77%] 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
      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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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();
                      ^~~~~~~~~~~~~~~~
      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/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();
                      ^~~~~~~~~~~~~~~~
      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/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/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/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/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/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();
                      ^~~~~~~~~~~~~~~~
      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/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/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/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/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/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/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();
                      ^~~~~~~~~~~~~~~~
      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
      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: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: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: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: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
      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: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: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: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: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: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: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: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: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: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: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: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: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: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: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: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: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: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: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: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: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: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: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: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: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: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: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: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: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: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: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-j2e8is44/overlay/lib/python3.8/site-packages/setuptools/command/editable_wheel.py:286: SetuptoolsDeprecationWarning: Traceback (most recent call last):
        File "/tmp/pip-build-env-j2e8is44/overlay/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 292, in _safely_run
          return self.run_command(cmd_name)
        File "/tmp/pip-build-env-j2e8is44/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-j2e8is44/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 1213, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-j2e8is44/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-j2e8is44/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-j2e8is44/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 1213, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-j2e8is44/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-j2e8is44/overlay/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 140, in run
          self._create_wheel_file(bdist_wheel)
        File "/tmp/pip-build-env-j2e8is44/overlay/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 330, in _create_wheel_file
          files, mapping = self._run_build_commands(dist_name, unpacked, lib, tmp)
        File "/tmp/pip-build-env-j2e8is44/overlay/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 261, in _run_build_commands
          self._run_build_subcommands()
        File "/tmp/pip-build-env-j2e8is44/overlay/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 288, in _run_build_subcommands
          self.run_command(name)
        File "/tmp/pip-build-env-j2e8is44/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-j2e8is44/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 1213, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-j2e8is44/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-j2e8is44/overlay/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 84, in run
          _build_ext.run(self)
        File "/tmp/pip-build-env-j2e8is44/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-j2e8is44/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-j2e8is44/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
      Traceback (most recent call last):
        File "/tmp/pip-build-env-j2e8is44/overlay/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 140, in run
          self._create_wheel_file(bdist_wheel)
        File "/tmp/pip-build-env-j2e8is44/overlay/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 330, in _create_wheel_file
          files, mapping = self._run_build_commands(dist_name, unpacked, lib, tmp)
        File "/tmp/pip-build-env-j2e8is44/overlay/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 261, in _run_build_commands
          self._run_build_subcommands()
        File "/tmp/pip-build-env-j2e8is44/overlay/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 288, in _run_build_subcommands
          self.run_command(name)
        File "/tmp/pip-build-env-j2e8is44/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-j2e8is44/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 1213, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-j2e8is44/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-j2e8is44/overlay/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 84, in run
          _build_ext.run(self)
        File "/tmp/pip-build-env-j2e8is44/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-j2e8is44/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-j2e8is44/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
      
      The above exception was the direct cause of the following exception:
      
      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-j2e8is44/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-j2e8is44/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-j2e8is44/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 484, in run_setup
          super(_BuildMetaLegacyBackend,
        File "/tmp/pip-build-env-j2e8is44/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 335, in run_setup
          exec(code, locals())
        File "<string>", line 339, in <module>
        File "/tmp/pip-build-env-j2e8is44/overlay/lib/python3.8/site-packages/setuptools/__init__.py", line 108, in setup
          return distutils.core.setup(**attrs)
        File "/tmp/pip-build-env-j2e8is44/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup
          return run_commands(dist)
        File "/tmp/pip-build-env-j2e8is44/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
          dist.run_commands()
        File "/tmp/pip-build-env-j2e8is44/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "/tmp/pip-build-env-j2e8is44/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 1213, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-j2e8is44/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/tmp/pip-build-env-j2e8is44/overlay/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 154, in run
          raise errors.InternalError(cleandoc(msg)) from ex
      setuptools._distutils.errors.DistutilsInternalError: Support for editable installs via PEP 660 was recently introduced
      in `setuptools`. If you are seeing this error, please report to:
      
      https://github.com/pypa/setuptools/issues
      
      Meanwhile you can try the legacy behavior by setting an
      environment variable and trying to install again:
      
      SETUPTOOLS_ENABLE_FEATURES="legacy-editable"
      [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

CelestineSmith avatar Feb 11 '23 12:02 CelestineSmith

Hi @CelestineSmith, could you please confirm:

  • that the project installs normally when using /usr/local/bin/pip3.8 install . (i.e. without the -e flag)?
  • that the version of libprotobuf-dev and protobuf-compiler that you have installed in your system are compatible with the version of ONNX you are trying to install?

Other than that, could you please also try to use the latest version of setuptools? setuptools does not provide patches for old versions, instead all bugs and fixed are provided in the latest version.

abravalheri avatar Feb 13 '23 09:02 abravalheri

@abravalheri Thank you for your reply. When I using /usr/local/bin/pip3.8 install . The result is

Processing /data/onnx-mlir/third_party/onnx
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy>=1.16.6 in /usr/local/lib/python3.8/site-packages (from onnx==1.13.0) (1.21.3)
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)
Building wheels for collected packages: onnx
  Building wheel for onnx (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for onnx (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [502 lines of output]
      running bdist_wheel
      running build
      running build_py
      running create_version
      running cmake_build
      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', '/data/onnx-mlir/third_party/onnx']
      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  : OFF
      --   Protobuf_USE_STATIC_LIBS  : ON
      --   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
      [  8%] Built target gen_onnx_operators_proto
      [  8%] Built target gen_onnx_data_proto
      [ 23%] Built target onnx_proto
      [ 25%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/controlflow/defs.cc.o
      [ 26%] Building CXX object CMakeFiles/onnx.dir/onnx/checker.cc.o
      [ 28%] Building CXX object CMakeFiles/onnx.dir/onnx/common/model_helpers.cc.o
      [ 29%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/nn/defs.cc.o
      [ 31%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/rnn/old.cc.o
      [ 32%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/logical/old.cc.o
      [ 35%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/object_detection/defs.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/shape_inference.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/optional/defs.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/logical/defs.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/tensor/utils.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/old.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/schema.cc.o
      [ 35%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/generator/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/quantization/old.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/reduction/utils.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/tensor/old.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/nn/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/training/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/function.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/traditionalml/old.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/controlflow/old.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/tensor/defs.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/math/old.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/shape_inference/implementation.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/generator/old.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/object_detection/old.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/traditionalml/defs.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/math/utils.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/version_converter/convert.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/optional/old.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/reduction/defs.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/rnn/defs.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/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/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/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/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/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/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();
                      ^~~~~~~~~~~~~~~~
      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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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();
                      ^~~~~~~~~~~~~~~~
      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/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/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/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/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/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/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/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/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: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....
      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: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: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: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: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: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: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: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
      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: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: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: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: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: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: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: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: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: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: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: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: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: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: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: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: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: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: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: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: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: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: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: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: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: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: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
      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 251, in build_wheel
          return _build_backend().build_wheel(wheel_directory, config_settings,
        File "/tmp/pip-build-env-ivpx15hf/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 413, in build_wheel
          return self._build_with_temp_dir(['bdist_wheel'], '.whl',
        File "/tmp/pip-build-env-ivpx15hf/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-ivpx15hf/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 484, in run_setup
          super(_BuildMetaLegacyBackend,
        File "/tmp/pip-build-env-ivpx15hf/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-ivpx15hf/overlay/lib/python3.8/site-packages/setuptools/__init__.py", line 108, in setup
          return distutils.core.setup(**attrs)
        File "/tmp/pip-build-env-ivpx15hf/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup
          return run_commands(dist)
        File "/tmp/pip-build-env-ivpx15hf/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
          dist.run_commands()
        File "/tmp/pip-build-env-ivpx15hf/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "/tmp/pip-build-env-ivpx15hf/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 1213, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-ivpx15hf/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/tmp/pip-build-env-ivpx15hf/overlay/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 325, in run
          self.run_command("build")
        File "/tmp/pip-build-env-ivpx15hf/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-ivpx15hf/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 1213, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-ivpx15hf/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/tmp/pip-build-env-ivpx15hf/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/build.py", line 131, in run
          self.run_command(cmd_name)
        File "/tmp/pip-build-env-ivpx15hf/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-ivpx15hf/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 1213, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-ivpx15hf/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-ivpx15hf/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-ivpx15hf/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 1213, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-ivpx15hf/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.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for onnx
Failed to build onnx
ERROR: Could not build wheels for onnx, which is required to install pyproject.toml-based projects

Could you tell me what to do next?

CelestineSmith avatar Feb 14 '23 07:02 CelestineSmith

Thank you very much @CelestineSmith.

By the looks of it, it seems that you have an incompatible version of protobuf installed in your machine and that setuptools is not directly responsible for the error (I might be wrong here, but we need further evidence).

What I would try to do next is to go though ONNX documentation and ensure I have all the right versions of the OS-level dependencies installed. Maybe you can also have a look on conda/mamba environments, the requirements conda-forge uses and how conda-forge builds ONNX.

Another thing that you can try is to build ONNX using a fresh, up-to-date docker container (with the latest version of the OS)...

I think the best people to further help you in this case would be from the ONNX project/forums, etc...

abravalheri avatar Feb 14 '23 08:02 abravalheri

If that is OK with you @CelestineSmith, I think I will go ahead and close this issue. If we later have more evidence that implies that setuptools is doing something wrong we can re-open it.

abravalheri avatar Feb 14 '23 08:02 abravalheri

@abravalheri Thank you. I'll have a look at these documentation. If I have any question about setuptools, I will re-open this issue.

CelestineSmith avatar Feb 14 '23 08:02 CelestineSmith

I got almost exactly the same error when building from source. I tried installing the protobuf from scratch and it did not help me going too much further.

  git clone https://github.com/protocolbuffers/protobuf.git
  cd protobuf
  git checkout v3.20.2
  git submodule update --init --recursive
  mkdir build_source && cd build_source
  cmake ../cmake -Dprotobuf_BUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_POSITION_INDEPENDENT_CODE=ON -Dprotobuf_BUILD_TESTS=OFF -DCMAKE_BUILD_TYPE=Release
  make -j$(nproc)
  make install

leimao avatar Mar 13 '23 23:03 leimao