onnx / onnx-mlir

Representation and Reference Lowering of ONNX Models in MLIR Compiler Infrastructure
Apache License 2.0
756 stars 321 forks source link

Ninja build stopped with 'subcommand failed.' #2017

Closed CelestineSmith closed 1 year ago

CelestineSmith commented 1 year ago

LLVM: ba8b8a73 Follow https://github.com/onnx/onnx-mlir/blob/main/docs/BuildOnLinuxOSX.md#mlir

excute

if [[ -z "$pythonLocation" ]]; then
  cmake -G Ninja \
        -DCMAKE_CXX_COMPILER=/usr/bin/c++ \
        -DMLIR_DIR=${MLIR_DIR} \
        ..
else
  cmake -G Ninja \
        -DCMAKE_CXX_COMPILER=/usr/bin/c++ \
        -DPython3_ROOT_DIR=$pythonLocation \
        -DMLIR_DIR=${MLIR_DIR} \
        ..
fi

Cmake log:

-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- No build type selected, default to Debug
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11") 
-- Using MLIRConfig.cmake in: /data/llvm-project/build/lib/cmake/mlir
-- Using LLVMConfig.cmake in: /data/llvm-project/build/lib/cmake/llvm
-- Linker detection: GNU ld
-- Performing Test C_SUPPORTS_FPIC
-- Performing Test C_SUPPORTS_FPIC - Success
-- Performing Test CXX_SUPPORTS_FPIC
-- Performing Test CXX_SUPPORTS_FPIC - Success
-- Building with -fPIC
-- Performing Test C_SUPPORTS_FNO_SEMANTIC_INTERPOSITION
-- Performing Test C_SUPPORTS_FNO_SEMANTIC_INTERPOSITION - Success
-- Performing Test CXX_SUPPORTS_FNO_SEMANTIC_INTERPOSITION
-- Performing Test CXX_SUPPORTS_FNO_SEMANTIC_INTERPOSITION - Success
-- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG
-- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG - Success
-- Performing Test C_SUPPORTS_WERROR_DATE_TIME
-- Performing Test C_SUPPORTS_WERROR_DATE_TIME - Success
-- Performing Test CXX_SUPPORTS_WERROR_DATE_TIME
-- Performing Test CXX_SUPPORTS_WERROR_DATE_TIME - Success
-- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW
-- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW - Failed
-- Performing Test CXX_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW
-- Performing Test CXX_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW - Failed
-- Performing Test CXX_SUPPORTS_MISSING_FIELD_INITIALIZERS_FLAG
-- Performing Test CXX_SUPPORTS_MISSING_FIELD_INITIALIZERS_FLAG - Success
-- Performing Test C_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG
-- Performing Test C_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG - Success
-- Performing Test CXX_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG
-- Performing Test CXX_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG - Success
-- Performing Test C_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG
-- Performing Test C_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG - Failed
-- Performing Test CXX_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG
-- Performing Test CXX_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG - Failed
-- Performing Test CXX_SUPPORTS_CLASS_MEMACCESS_FLAG
-- Performing Test CXX_SUPPORTS_CLASS_MEMACCESS_FLAG - Failed
-- Performing Test CXX_SUPPORTS_REDUNDANT_MOVE_FLAG
-- Performing Test CXX_SUPPORTS_REDUNDANT_MOVE_FLAG - Failed
-- Performing Test CXX_SUPPORTS_PESSIMIZING_MOVE_FLAG
-- Performing Test CXX_SUPPORTS_PESSIMIZING_MOVE_FLAG - Failed
-- Performing Test CXX_SUPPORTS_NOEXCEPT_TYPE_FLAG
-- Performing Test CXX_SUPPORTS_NOEXCEPT_TYPE_FLAG - Success
-- Performing Test CXX_WONT_WARN_ON_FINAL_NONVIRTUALDTOR
-- Performing Test CXX_WONT_WARN_ON_FINAL_NONVIRTUALDTOR - Failed
-- Performing Test CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG
-- Performing Test CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG - Success
-- Performing Test CXX_WSUGGEST_OVERRIDE_ALLOWS_ONLY_FINAL
-- Performing Test CXX_WSUGGEST_OVERRIDE_ALLOWS_ONLY_FINAL - Failed
-- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP
-- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP - Failed
-- Performing Test C_SUPPORTS_STRING_CONVERSION_FLAG
-- Performing Test C_SUPPORTS_STRING_CONVERSION_FLAG - Failed
-- Performing Test CXX_SUPPORTS_STRING_CONVERSION_FLAG
-- Performing Test CXX_SUPPORTS_STRING_CONVERSION_FLAG - Failed
-- Performing Test CXX_SUPPORTS_MISLEADING_INDENTATION_FLAG
-- Performing Test CXX_SUPPORTS_MISLEADING_INDENTATION_FLAG - Success
-- Performing Test C_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG
-- Performing Test C_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG - Failed
-- Performing Test CXX_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG
-- Performing Test CXX_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG - Failed
-- Performing Test LINKER_SUPPORTS_COLOR_DIAGNOSTICS
-- Performing Test LINKER_SUPPORTS_COLOR_DIAGNOSTICS - Failed
-- Looking for os_signpost_interval_begin
-- Looking for os_signpost_interval_begin - not found
-- BUILD_SHARED_LIBS        : OFF
-- LLVM_REQUIRES_EH         : ON
-- ONNX_MLIR_DEFAULT_TRIPLE : x86_64-unknown-linux-gnu
-- CMAKE_INSTALL_PREFIX     : /usr/local
-- Found Python3: /usr/local/bin/python3.8 (found version "3.8.16") found components: Interpreter Development Development.Module Development.Embed 
-- Found Java: /usr/local/java/jdk-11.0.18/bin/java (found version "11.0.18") found components: Development 
-- Found JNI: /usr/local/java/jdk-11.0.18/include  found components: AWT JVM 
Generated: /data/onnx-mlir/build/third_party/onnx/onnx/onnx-ml.proto
Generated: /data/onnx-mlir/build/third_party/onnx/onnx/onnx-operators-ml.proto
Generated: /data/onnx-mlir/build/third_party/onnx/onnx/onnx-data.proto
-- Accelerators             : NONE
-- Onnx version             : 1.14.0
-- Product version          : 0.0.0-NOT_SPECIFIED
-- Tests optimization level : 3
-- Parallel backend tests   : OFF (install pytest-xdist to enable)
-- JNI backend tests        : ON
-- JSONITER_JAR             : /data/onnx-mlir/build/src/Runtime/jni/jsoniter/jsoniter-0.9.23.jar
-- Accelerator lit tests    : NONE
-- Configuring done
-- Generating done
-- Build files have been written to: /data/onnx-mlir/build

excute

cmake --build .

Cmake build log:

[1/664] Running gen_proto.py on onnx/onnx.in.proto
FAILED: third_party/onnx/onnx/onnx-ml.proto /data/onnx-mlir/build/third_party/onnx/onnx/onnx-ml.proto 
cd /data/onnx-mlir/build/third_party/onnx && /usr/bin/python /data/onnx-mlir/third_party/onnx/onnx/gen_proto.py -p onnx -o /data/onnx-mlir/build/third_party/onnx/onnx onnx -m
  File "/data/onnx-mlir/third_party/onnx/onnx/gen_proto.py", line 35
    def process_ifs(lines: Iterable[str], onnx_ml: bool) -> Iterable[str]:
                         ^
SyntaxError: invalid syntax
[74/664] Building CXX object third_party/rapidcheck/CMakeFiles/rapidcheck.dir/src/gen/Numeric.cpp.o
ninja: build stopped: subcommand failed.

CMakeError.log:

Performing C SOURCE FILE Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW failed with the following output:
Change Dir: /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-Dvngdq

Run Build Command(s):/usr/bin/ninja cmTC_6956f && [1/2] Building C object CMakeFiles/cmTC_6956f.dir/src.c.o
FAILED: CMakeFiles/cmTC_6956f.dir/src.c.o 
/usr/bin/cc -DC_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW  -fPIC -fno-semantic-interposition -Werror=date-time    -Werror -Werror=unguarded-availability-new -o CMakeFiles/cmTC_6956f.dir/src.c.o -c /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-Dvngdq/src.c
cc1: error: -Werror=unguarded-availability-new: no option -Wunguarded-availability-new
ninja: build stopped: subcommand failed.

Source file was:
int main(void) { return 0; }

Performing C++ SOURCE FILE Test CXX_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW failed with the following output:
Change Dir: /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-XKD6yy

Run Build Command(s):/usr/bin/ninja cmTC_d9b69 && [1/2] Building CXX object CMakeFiles/cmTC_d9b69.dir/src.cxx.o
FAILED: CMakeFiles/cmTC_d9b69.dir/src.cxx.o 
/usr/bin/c++ -DCXX_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW  -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time    -Werror -Werror=unguarded-availability-new -std=gnu++1z -o CMakeFiles/cmTC_d9b69.dir/src.cxx.o -c /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-XKD6yy/src.cxx
cc1plus: error: -Werror=unguarded-availability-new: no option -Wunguarded-availability-new
ninja: build stopped: subcommand failed.

Source file was:
int main() { return 0; }

Performing C SOURCE FILE Test C_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG failed with the following output:
Change Dir: /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-tVrSr8

Run Build Command(s):/usr/bin/ninja cmTC_0a0c0 && [1/2] Building C object CMakeFiles/cmTC_0a0c0.dir/src.c.o
FAILED: CMakeFiles/cmTC_0a0c0.dir/src.c.o 
/usr/bin/cc -DC_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG  -fPIC -fno-semantic-interposition -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wno-missing-field-initializers -Wimplicit-fallthrough    -Werror -Wcovered-switch-default -o CMakeFiles/cmTC_0a0c0.dir/src.c.o -c /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-tVrSr8/src.c
cc: error: unrecognized command line option '-Wcovered-switch-default'; did you mean '-Wno-switch-default'?
ninja: build stopped: subcommand failed.

Source file was:
int main(void) { return 0; }

Performing C++ SOURCE FILE Test CXX_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG failed with the following output:
Change Dir: /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-ZvxY4h

Run Build Command(s):/usr/bin/ninja cmTC_e694d && [1/2] Building CXX object CMakeFiles/cmTC_e694d.dir/src.cxx.o
FAILED: CMakeFiles/cmTC_e694d.dir/src.cxx.o 
/usr/bin/c++ -DCXX_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG  -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough    -Werror -Wcovered-switch-default -std=gnu++1z -o CMakeFiles/cmTC_e694d.dir/src.cxx.o -c /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-ZvxY4h/src.cxx
c++: error: unrecognized command line option '-Wcovered-switch-default'; did you mean '-Wno-switch-default'?
ninja: build stopped: subcommand failed.

Source file was:
int main() { return 0; }

Performing C++ SOURCE FILE Test CXX_SUPPORTS_CLASS_MEMACCESS_FLAG failed with the following output:
Change Dir: /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-3LSARr

Run Build Command(s):/usr/bin/ninja cmTC_ef981 && [1/2] Building CXX object CMakeFiles/cmTC_ef981.dir/src.cxx.o
FAILED: CMakeFiles/cmTC_ef981.dir/src.cxx.o 
/usr/bin/c++ -DCXX_SUPPORTS_CLASS_MEMACCESS_FLAG  -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough    -Wclass-memaccess -std=gnu++1z -o CMakeFiles/cmTC_ef981.dir/src.cxx.o -c /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-3LSARr/src.cxx
c++: error: unrecognized command line option '-Wclass-memaccess'
ninja: build stopped: subcommand failed.

Source file was:
int main() { return 0; }

Performing C++ SOURCE FILE Test CXX_SUPPORTS_REDUNDANT_MOVE_FLAG failed with the following output:
Change Dir: /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-ZfkIOB

Run Build Command(s):/usr/bin/ninja cmTC_ec3aa && [1/2] Building CXX object CMakeFiles/cmTC_ec3aa.dir/src.cxx.o
FAILED: CMakeFiles/cmTC_ec3aa.dir/src.cxx.o 
/usr/bin/c++ -DCXX_SUPPORTS_REDUNDANT_MOVE_FLAG  -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough    -Wredundant-move -std=gnu++1z -o CMakeFiles/cmTC_ec3aa.dir/src.cxx.o -c /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-ZfkIOB/src.cxx
c++: error: unrecognized command line option '-Wredundant-move'; did you mean '-Wredundant-decls'?
ninja: build stopped: subcommand failed.

Source file was:
int main() { return 0; }

Performing C++ SOURCE FILE Test CXX_SUPPORTS_PESSIMIZING_MOVE_FLAG failed with the following output:
Change Dir: /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-tCSwWL

Run Build Command(s):/usr/bin/ninja cmTC_b9d9f && [1/2] Building CXX object CMakeFiles/cmTC_b9d9f.dir/src.cxx.o
FAILED: CMakeFiles/cmTC_b9d9f.dir/src.cxx.o 
/usr/bin/c++ -DCXX_SUPPORTS_PESSIMIZING_MOVE_FLAG  -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough    -Wpessimizing-move -std=gnu++1z -o CMakeFiles/cmTC_b9d9f.dir/src.cxx.o -c /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-tCSwWL/src.cxx
c++: error: unrecognized command line option '-Wpessimizing-move'
ninja: build stopped: subcommand failed.

Source file was:
int main() { return 0; }

Performing C++ SOURCE FILE Test CXX_WONT_WARN_ON_FINAL_NONVIRTUALDTOR failed with the following output:
Change Dir: /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-5UJVS6

Run Build Command(s):/usr/bin/ninja cmTC_a6b9f && [1/2] Building CXX object CMakeFiles/cmTC_a6b9f.dir/src.cxx.o
FAILED: CMakeFiles/cmTC_a6b9f.dir/src.cxx.o 
/usr/bin/c++ -DCXX_WONT_WARN_ON_FINAL_NONVIRTUALDTOR  -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-noexcept-type  -Werror=non-virtual-dtor -std=gnu++1z -o CMakeFiles/cmTC_a6b9f.dir/src.cxx.o -c /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-5UJVS6/src.cxx
/data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-5UJVS6/src.cxx:2:36: error: 'class base' has virtual functions and accessible non-virtual destructor [-Werror=non-virtual-dtor]
                              class base {friend f; public: virtual void anchor();protected: ~base();};
                                    ^~~~
cc1plus: some warnings being treated as errors
ninja: build stopped: subcommand failed.

Source file was:
class f {};
                             class base {friend f; public: virtual void anchor();protected: ~base();};
                             int main() { return 0; }

Performing C++ SOURCE FILE Test CXX_WSUGGEST_OVERRIDE_ALLOWS_ONLY_FINAL failed with the following output:
Change Dir: /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-lKJZPs

Run Build Command(s):/usr/bin/ninja cmTC_2a4da && [1/2] Building CXX object CMakeFiles/cmTC_2a4da.dir/src.cxx.o
FAILED: CMakeFiles/cmTC_2a4da.dir/src.cxx.o 
/usr/bin/c++ -DCXX_WSUGGEST_OVERRIDE_ALLOWS_ONLY_FINAL  -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-noexcept-type -Wdelete-non-virtual-dtor  -Werror=suggest-override -std=gnu++1z -o CMakeFiles/cmTC_2a4da.dir/src.cxx.o -c /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-lKJZPs/src.cxx
/data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-lKJZPs/src.cxx:2:67: error: 'virtual void derived::anchor()' can be marked override [-Werror=suggest-override]
                                class derived : base {public: void anchor() final;};
                                                                   ^~~~~~
cc1plus: some warnings being treated as errors
ninja: build stopped: subcommand failed.

Source file was:
class base {public: virtual void anchor();};
                               class derived : base {public: void anchor() final;};
                               int main() { return 0; }

Performing C SOURCE FILE Test C_WCOMMENT_ALLOWS_LINE_WRAP failed with the following output:
Change Dir: /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-3Kyu9D

Run Build Command(s):/usr/bin/ninja cmTC_1d7dd && [1/2] Building C object CMakeFiles/cmTC_1d7dd.dir/src.c.o
FAILED: CMakeFiles/cmTC_1d7dd.dir/src.c.o 
/usr/bin/cc -DC_WCOMMENT_ALLOWS_LINE_WRAP  -fPIC -fno-semantic-interposition -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wno-missing-field-initializers -Wimplicit-fallthrough  -Werror -Wcomment -o CMakeFiles/cmTC_1d7dd.dir/src.c.o -c /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-3Kyu9D/src.c
/data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-3Kyu9D/src.c:1:1: error: multi-line comment [-Werror=comment]
 // \
 ^
cc1: all warnings being treated as errors
ninja: build stopped: subcommand failed.

Source file was:
// \
//
int main(void) {return 0;}

Performing C SOURCE FILE Test C_SUPPORTS_STRING_CONVERSION_FLAG failed with the following output:
Change Dir: /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-HW8pCP

Run Build Command(s):/usr/bin/ninja cmTC_aa810 && [1/2] Building C object CMakeFiles/cmTC_aa810.dir/src.c.o
FAILED: CMakeFiles/cmTC_aa810.dir/src.c.o 
/usr/bin/cc -DC_SUPPORTS_STRING_CONVERSION_FLAG  -fPIC -fno-semantic-interposition -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-comment    -Werror -Wstring-conversion -o CMakeFiles/cmTC_aa810.dir/src.c.o -c /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-HW8pCP/src.c
cc: error: unrecognized command line option '-Wstring-conversion'; did you mean '-Wint-conversion'?
ninja: build stopped: subcommand failed.

Source file was:
int main(void) { return 0; }

Performing C++ SOURCE FILE Test CXX_SUPPORTS_STRING_CONVERSION_FLAG failed with the following output:
Change Dir: /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-RLcoe1

Run Build Command(s):/usr/bin/ninja cmTC_c34bc && [1/2] Building CXX object CMakeFiles/cmTC_c34bc.dir/src.cxx.o
FAILED: CMakeFiles/cmTC_c34bc.dir/src.cxx.o 
/usr/bin/c++ -DCXX_SUPPORTS_STRING_CONVERSION_FLAG  -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment    -Werror -Wstring-conversion -std=gnu++1z -o CMakeFiles/cmTC_c34bc.dir/src.cxx.o -c /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-RLcoe1/src.cxx
c++: error: unrecognized command line option '-Wstring-conversion'; did you mean '-Wint-conversion'?
ninja: build stopped: subcommand failed.

Source file was:
int main() { return 0; }

Performing C SOURCE FILE Test C_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG failed with the following output:
Change Dir: /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-j1da5o

Run Build Command(s):/usr/bin/ninja cmTC_e6bd0 && [1/2] Building C object CMakeFiles/cmTC_e6bd0.dir/src.c.o
FAILED: CMakeFiles/cmTC_e6bd0.dir/src.c.o 
/usr/bin/cc -DC_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG  -fPIC -fno-semantic-interposition -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-comment    -Werror -Wctad-maybe-unsupported -o CMakeFiles/cmTC_e6bd0.dir/src.c.o -c /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-j1da5o/src.c
cc: error: unrecognized command line option '-Wctad-maybe-unsupported'; did you mean '-Wconditionally-supported'?
ninja: build stopped: subcommand failed.

Source file was:
int main(void) { return 0; }

Performing C++ SOURCE FILE Test CXX_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG failed with the following output:
Change Dir: /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-9VwGkB

Run Build Command(s):/usr/bin/ninja cmTC_40941 && [1/2] Building CXX object CMakeFiles/cmTC_40941.dir/src.cxx.o
FAILED: CMakeFiles/cmTC_40941.dir/src.cxx.o 
/usr/bin/c++ -DCXX_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG  -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation    -Werror -Wctad-maybe-unsupported -std=gnu++1z -o CMakeFiles/cmTC_40941.dir/src.cxx.o -c /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-9VwGkB/src.cxx
c++: error: unrecognized command line option '-Wctad-maybe-unsupported'; did you mean '-Wconditionally-supported'?
ninja: build stopped: subcommand failed.

Source file was:
int main() { return 0; }

Performing C++ SOURCE FILE Test LINKER_SUPPORTS_COLOR_DIAGNOSTICS failed with the following output:
Change Dir: /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-j5UjJN

Run Build Command(s):/usr/bin/ninja cmTC_bf100 && [1/2] Building CXX object CMakeFiles/cmTC_bf100.dir/src.cxx.o
[2/2] Linking CXX executable cmTC_bf100
FAILED: cmTC_bf100 
: && /usr/bin/c++ -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -Wl,--color-diagnostics CMakeFiles/cmTC_bf100.dir/src.cxx.o -o cmTC_bf100   && :
/usr/bin/ld: unrecognized option '--color-diagnostics'
/usr/bin/ld: use the --help option for usage information
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

Source file was:
int main() { return 0; }

Determining if the os_signpost_interval_begin exist failed with the following output:
Change Dir: /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-R1FTl0

Run Build Command(s):/usr/bin/ninja cmTC_9a9cb && [1/2] Building C object CMakeFiles/cmTC_9a9cb.dir/CheckSymbolExists.c.o
FAILED: CMakeFiles/cmTC_9a9cb.dir/CheckSymbolExists.c.o 
/usr/bin/cc   -fPIC -fno-semantic-interposition -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-comment -fdiagnostics-color -o CMakeFiles/cmTC_9a9cb.dir/CheckSymbolExists.c.o -c /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-R1FTl0/CheckSymbolExists.c
/data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-R1FTl0/CheckSymbolExists.c:2:10: fatal error: os/signpost.h: No such file or directory
 #include <os/signpost.h>
          ^~~~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.

File CheckSymbolExists.c:
/* */
#include <os/signpost.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef os_signpost_interval_begin
  return ((int*)(&os_signpost_interval_begin))[argc];
#else
  (void)argc;
  return 0;
#endif
}
Performing C SOURCE FILE Test JNI_INCLUDE_PATH2_OPTIONAL failed with the following output:
Change Dir: /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-LYz6Dq

Run Build Command(s):/usr/bin/ninja cmTC_fc5a5 && [1/2] Building C object CMakeFiles/cmTC_fc5a5.dir/src.c.o
FAILED: CMakeFiles/cmTC_fc5a5.dir/src.c.o 
/usr/bin/cc -DJNI_INCLUDE_PATH2_OPTIONAL -I/usr/local/java/jdk-11.0.18/include -fPIC -fno-semantic-interposition -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-comment -fdiagnostics-color -o CMakeFiles/cmTC_fc5a5.dir/src.c.o -c /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-LYz6Dq/src.c
In file included from /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-LYz6Dq/src.c:2:0:
/usr/local/java/jdk-11.0.18/include/jni.h:45:10: fatal error: jni_md.h: No such file or directory
 #include "jni_md.h"
          ^~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.

Source file was:

#include <jni.h>
int main(void) { return 0; }

Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
Change Dir: /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-zAtOfR

Run Build Command(s):/usr/bin/ninja cmTC_f52d2 && [1/2] Building C object CMakeFiles/cmTC_f52d2.dir/src.c.o
[2/2] Linking C executable cmTC_f52d2
FAILED: cmTC_f52d2 
: && /usr/bin/cc -fPIC -fno-semantic-interposition -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-comment -fdiagnostics-color -w  CMakeFiles/cmTC_f52d2.dir/src.c.o -o cmTC_f52d2   && :
CMakeFiles/cmTC_f52d2.dir/src.c.o: In function `main':
src.c:(.text+0x3e): undefined reference to `pthread_create'
src.c:(.text+0x4a): undefined reference to `pthread_detach'
src.c:(.text+0x56): undefined reference to `pthread_cancel'
src.c:(.text+0x67): undefined reference to `pthread_join'
src.c:(.text+0x7b): undefined reference to `pthread_atfork'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

Source file was:
#include <pthread.h>

static void* test_func(void* data)
{
  return data;
}

int main(void)
{
  pthread_t thread;
  pthread_create(&thread, NULL, test_func, NULL);
  pthread_detach(thread);
  pthread_cancel(thread);
  pthread_join(thread, NULL);
  pthread_atfork(NULL, NULL, NULL);
  pthread_exit(NULL);

  return 0;
}

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-5FZjfi

Run Build Command(s):/usr/bin/ninja cmTC_b4a9d && [1/2] Building C object CMakeFiles/cmTC_b4a9d.dir/CheckFunctionExists.c.o
[2/2] Linking C executable cmTC_b4a9d
FAILED: cmTC_b4a9d 
: && /usr/bin/cc -fPIC -fno-semantic-interposition -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-comment -fdiagnostics-color -w -DCHECK_FUNCTION_EXISTS=pthread_create -rdynamic CMakeFiles/cmTC_b4a9d.dir/CheckFunctionExists.c.o -o cmTC_b4a9d  -lpthreads && :
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

Performing C++ SOURCE FILE Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32 failed with the following output:
Change Dir: /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-x3McL1

Run Build Command(s):/usr/bin/ninja cmTC_afbe2 && [1/2] Building CXX object CMakeFiles/cmTC_afbe2.dir/src.cxx.o
FAILED: CMakeFiles/cmTC_afbe2.dir/src.cxx.o 
/usr/bin/c++ -DHAVE_CXX_FLAG_WSHORTEN_64_TO_32  -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -w  -Wall  -Wextra  -Wshadow  -Wfloat-equal  -Wsuggest-override  -pedantic  -pedantic-errors  -Wshorten-64-to-32   -Wshorten-64-to-32 -std=c++11 -o CMakeFiles/cmTC_afbe2.dir/src.cxx.o -c /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-x3McL1/src.cxx
c++: error: unrecognized command line option '-Wshorten-64-to-32'
c++: error: unrecognized command line option '-Wshorten-64-to-32'
ninja: build stopped: subcommand failed.

Source file was:
int main() { return 0; }

Performing C++ SOURCE FILE Test HAVE_CXX_FLAG_WD654 failed with the following output:
Change Dir: /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-tWhJsj

Run Build Command(s):/usr/bin/ninja cmTC_95876 && [1/2] Building CXX object CMakeFiles/cmTC_95876.dir/src.cxx.o
FAILED: CMakeFiles/cmTC_95876.dir/src.cxx.o 
/usr/bin/c++ -DHAVE_CXX_FLAG_WD654  -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -w  -Wall  -Wextra  -Wshadow  -Wfloat-equal  -Wsuggest-override  -pedantic  -pedantic-errors  -fstrict-aliasing  -Wno-deprecated-declarations  -Wstrict-aliasing  -wd654   -wd654 -std=c++11 -o CMakeFiles/cmTC_95876.dir/src.cxx.o -c /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-tWhJsj/src.cxx
c++: error: unrecognized command line option '-wd654'
c++: error: unrecognized command line option '-wd654'
ninja: build stopped: subcommand failed.

Source file was:
int main() { return 0; }

Performing C++ SOURCE FILE Test HAVE_CXX_FLAG_WTHREAD_SAFETY failed with the following output:
Change Dir: /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-lXUdCT

Run Build Command(s):/usr/bin/ninja cmTC_45fc2 && [1/2] Building CXX object CMakeFiles/cmTC_45fc2.dir/src.cxx.o
FAILED: CMakeFiles/cmTC_45fc2.dir/src.cxx.o 
/usr/bin/c++ -DHAVE_CXX_FLAG_WTHREAD_SAFETY  -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -w  -Wall  -Wextra  -Wshadow  -Wfloat-equal  -Wsuggest-override  -pedantic  -pedantic-errors  -fstrict-aliasing  -Wno-deprecated-declarations  -Wstrict-aliasing  -Wthread-safety   -Wthread-safety -std=c++11 -o CMakeFiles/cmTC_45fc2.dir/src.cxx.o -c /data/onnx-mlir/build/CMakeFiles/CMakeScratch/TryCompile-lXUdCT/src.cxx
c++: error: unrecognized command line option '-Wthread-safety'; did you mean '-fthread-jumps'?
c++: error: unrecognized command line option '-Wthread-safety'; did you mean '-fthread-jumps'?
ninja: build stopped: subcommand failed.

Source file was:
int main() { return 0; }

I can't find out why ninja build stopped. Can anyone have a look?

AlexandreEichenberger commented 1 year ago

Have you installed onnx? Maybe that is the issue.

CelestineSmith commented 1 year ago

@AlexandreEichenberger Thank you for your reply, I've installed onnx(1.13.0). I use 'pip3.8 install onnx' to install it. Could you tell me is this the right way to install onnx? Thank you very much.

AlexandreEichenberger commented 1 year ago

In the onnx-mlir dir, type pip install -e third_party/onnx

AlexandreEichenberger commented 1 year ago

you need the specific version that onnx-mlir currently support.

CelestineSmith commented 1 year ago

@AlexandreEichenberger Thank you for your reply. The onnx(1.13.0) is the right version since in https://github.com/onnx/onnx-mlir/tree/main/third_party, it has upgrade its ONNX to 1.13.0. However, in the onnx-mlir dir, if I excute pip install -e third_party/onnx, it will return:

Obtaining file:///data/onnx-mlir/third_party/onnx
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... done
  Installing backend dependencies ... done
  Preparing editable metadata (pyproject.toml) ... done
Requirement already satisfied: typing-extensions>=3.6.2.1 in /usr/local/lib/python3.8/site-packages (from onnx==1.13.0) (4.4.0)
Requirement already satisfied: protobuf<4,>=3.20.2 in /usr/local/lib/python3.8/site-packages (from onnx==1.13.0) (3.20.3)
Requirement already satisfied: numpy>=1.16.6 in /usr/local/lib/python3.8/site-packages (from onnx==1.13.0) (1.21.6)
Building wheels for collected packages: onnx
  Building editable for onnx (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building editable for onnx (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [612 lines of output]
      running editable_wheel
      creating /tmp/pip-wheel-q_7x5edb/.tmp-ep65sabv/onnx.egg-info
      writing /tmp/pip-wheel-q_7x5edb/.tmp-ep65sabv/onnx.egg-info/PKG-INFO
      writing dependency_links to /tmp/pip-wheel-q_7x5edb/.tmp-ep65sabv/onnx.egg-info/dependency_links.txt
      writing entry points to /tmp/pip-wheel-q_7x5edb/.tmp-ep65sabv/onnx.egg-info/entry_points.txt
      writing requirements to /tmp/pip-wheel-q_7x5edb/.tmp-ep65sabv/onnx.egg-info/requires.txt
      writing top-level names to /tmp/pip-wheel-q_7x5edb/.tmp-ep65sabv/onnx.egg-info/top_level.txt
      writing manifest file '/tmp/pip-wheel-q_7x5edb/.tmp-ep65sabv/onnx.egg-info/SOURCES.txt'
      reading manifest file '/tmp/pip-wheel-q_7x5edb/.tmp-ep65sabv/onnx.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no files found matching '*.c' under directory 'onnx'
      adding license file 'LICENSE'
      writing manifest file '/tmp/pip-wheel-q_7x5edb/.tmp-ep65sabv/onnx.egg-info/SOURCES.txt'
      creating '/tmp/pip-wheel-q_7x5edb/.tmp-ep65sabv/onnx-1.13.0.dist-info'
      creating /tmp/pip-wheel-q_7x5edb/.tmp-ep65sabv/onnx-1.13.0.dist-info/WHEEL
      running build_py
      running create_version
      running cmake_build
      Extra cmake args: ['-DONNX_USE_PROTOBUF_SHARED_LIBS=ON']
      Using cmake args: ['/data/cmake/cmake-3.25.0-linux-x86_64/bin/cmake', '-DPYTHON_INCLUDE_DIR=/usr/local/include/python3.8', '-DPYTHON_EXECUTABLE=/usr/local/bin/python3.8', '-DBUILD_ONNX_PYTHON=ON', '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON', '-DONNX_NAMESPACE=onnx', '-DPY_EXT_SUFFIX=.cpython-38-x86_64-linux-gnu.so', '-DCMAKE_BUILD_TYPE=Release', '-DONNX_ML=1', '-DONNX_USE_PROTOBUF_SHARED_LIBS=ON', '/data/onnx-mlir/third_party/onnx']
      CMake Warning at /data/cmake/cmake-3.25.0-linux-x86_64/share/cmake-3.25/Modules/FindProtobuf.cmake:524 (message):
        Protobuf compiler version doesn't match library version 3.0.0
      Call Stack (most recent call first):
        CMakeLists.txt:179 (find_package)

      Generated: /data/onnx-mlir/third_party/onnx/.setuptools-cmake-build/onnx/onnx-ml.proto
      Generated: /data/onnx-mlir/third_party/onnx/.setuptools-cmake-build/onnx/onnx-operators-ml.proto
      Generated: /data/onnx-mlir/third_party/onnx/.setuptools-cmake-build/onnx/onnx-data.proto
      -- Found pybind11: /usr/local/include (found version "2.10.3")
      --
      -- ******** Summary ********
      --   CMake version             : 3.25.0
      --   CMake command             : /data/cmake/cmake-3.25.0-linux-x86_64/bin/cmake
      --   System                    : Linux
      --   C++ compiler              : /usr/bin/c++
      --   C++ compiler version      : 7.5.0
      --   CXX flags                 :  -Wnon-virtual-dtor
      --   Build type                : Release
      --   Compile definitions       : __STDC_FORMAT_MACROS
      --   CMAKE_PREFIX_PATH         :
      --   CMAKE_INSTALL_PREFIX      : /usr/local
      --   CMAKE_MODULE_PATH         :
      --
      --   ONNX version              : 1.13.0
      --   ONNX NAMESPACE            : onnx
      --   ONNX_USE_LITE_PROTO       : ON
      --   USE_PROTOBUF_SHARED_LIBS  : ON
      --   Protobuf_USE_STATIC_LIBS  : OFF
      --   ONNX_DISABLE_EXCEPTIONS   : OFF
      --   ONNX_WERROR               : OFF
      --   ONNX_BUILD_TESTS          : OFF
      --   ONNX_BUILD_BENCHMARKS     : OFF
      --
      --   Protobuf compiler         : /usr/bin/protoc
      --   Protobuf includes         : /usr/include
      --   Protobuf libraries        : /usr/lib/x86_64-linux-gnu/libprotobuf.a;-lpthread
      --   BUILD_ONNX_PYTHON         : ON
      --     Python version        :
      --     Python executable     : /usr/local/bin/python3.8
      --     Python includes       : /usr/local/include/python3.8
      -- Configuring done
      -- Generating done
      -- Build files have been written to: /data/onnx-mlir/third_party/onnx/.setuptools-cmake-build
      [  2%] Built target gen_onnx_proto
      [  5%] Built target gen_onnx_data_proto
      [  8%] Built target gen_onnx_operators_proto
      [ 23%] Built target onnx_proto
      [ 25%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/logical/old.cc.o
      [ 26%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/rnn/defs.cc.o
      [ 31%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/logical/defs.cc.o
      [ 31%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/optional/old.cc.o
      [ 38%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/controlflow/old.cc.o
      [ 31%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/tensor/old.cc.o
      [ 38%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/controlflow/defs.cc.o
      [ 38%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/generator/old.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/object_detection/defs.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/quantization/defs.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/function.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/nn/old.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/nn/defs.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/math/old.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/sequence/defs.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/rnn/old.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/quantization/old.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/optional/defs.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/traditionalml/defs.cc.o
      [ 38%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/shape_inference.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/tensor_proto_util.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/reduction/defs.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/tensor/defs.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/generator/defs.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/math/defs.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/traditionalml/old.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/version_converter/convert.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/reduction/old.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/common/model_helpers.cc.o
      [ 38%] Building CXX object CMakeFiles/onnx.dir/onnx/checker.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/tensor/utils.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/reduction/utils.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/training/defs.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/math/utils.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/schema.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/shape_inference/implementation.cc.o
      [ 79%] Building CXX object CMakeFiles/onnx.dir/onnx/defs/object_detection/old.cc.o
      In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/controlflow/defs.cc:6:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
         return proto.ShortDebugString();
                      ^~~~~~~~~~~~~~~~
      In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/reduction/utils.h:7,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/reduction/utils.cc:5:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
         return proto.ShortDebugString();
                      ^~~~~~~~~~~~~~~~
      In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/math/utils.h:7,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/math/utils.cc:5:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
         return proto.ShortDebugString();
                      ^~~~~~~~~~~~~~~~
      In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/function.h:16,
                       from /data/onnx-mlir/third_party/onnx/onnx/checker.h:10,
                       from /data/onnx-mlir/third_party/onnx/onnx/common/model_helpers.cc:6:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
         return proto.ShortDebugString();
                      ^~~~~~~~~~~~~~~~
      In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/function.h:16,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/quantization/defs.cc:5:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
         return proto.ShortDebugString();
                      ^~~~~~~~~~~~~~~~
      In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/logical/old.cc:5:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
         return proto.ShortDebugString();
                      ^~~~~~~~~~~~~~~~
      In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/tensor_proto_util.cc:9:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
         return proto.ShortDebugString();
                      ^~~~~~~~~~~~~~~~
      In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/data_propagators.h:5,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/tensor/defs.cc:5:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
         return proto.ShortDebugString();
                      ^~~~~~~~~~~~~~~~
      In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/traditionalml/defs.cc:5:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
         return proto.ShortDebugString();
                      ^~~~~~~~~~~~~~~~
      In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/reduction/utils.h:7,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/reduction/old.cc:7:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
         return proto.ShortDebugString();
                      ^~~~~~~~~~~~~~~~
      In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/controlflow/old.cc:5:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
         return proto.ShortDebugString();
                      ^~~~~~~~~~~~~~~~
      In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/data_propagators.h:5,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/tensor/old.cc:8:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
         return proto.ShortDebugString();
                      ^~~~~~~~~~~~~~~~
      In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/function.h:16,
                       from /data/onnx-mlir/third_party/onnx/onnx/checker.h:10,
                       from /data/onnx-mlir/third_party/onnx/onnx/checker.cc:5:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
         return proto.ShortDebugString();
                      ^~~~~~~~~~~~~~~~
      In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/object_detection/defs.cc:5:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
         return proto.ShortDebugString();
                      ^~~~~~~~~~~~~~~~
      In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/rnn/defs.cc:5:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
         return proto.ShortDebugString();
                      ^~~~~~~~~~~~~~~~
      In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/function.h:16,
                       from /data/onnx-mlir/third_party/onnx/onnx/shape_inference/implementation.h:7,
                       from /data/onnx-mlir/third_party/onnx/onnx/shape_inference/implementation.cc:5:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
         return proto.ShortDebugString();
                      ^~~~~~~~~~~~~~~~
      In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/function.h:16,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/quantization/old.cc:5:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
         return proto.ShortDebugString();
                      ^~~~~~~~~~~~~~~~
      In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/generator/old.cc:7:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
         return proto.ShortDebugString();
                      ^~~~~~~~~~~~~~~~
      In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/function.h:16,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/optional/defs.cc:5:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
         return proto.ShortDebugString();
                      ^~~~~~~~~~~~~~~~
      In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/function.h:16,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/reduction/defs.cc:7:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
         return proto.ShortDebugString();
                      ^~~~~~~~~~~~~~~~
      In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/rnn/old.cc:5:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
         return proto.ShortDebugString();
                      ^~~~~~~~~~~~~~~~
      In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/traditionalml/old.cc:5:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
         return proto.ShortDebugString();
                      ^~~~~~~~~~~~~~~~
      In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/function.h:16,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/math/defs.cc:8:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
         return proto.ShortDebugString();
                      ^~~~~~~~~~~~~~~~
      In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/function.h:16,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/logical/defs.cc:5:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
         return proto.ShortDebugString();
                      ^~~~~~~~~~~~~~~~
      In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/tensor/utils.h:7,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/tensor/utils.cc:5:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
         return proto.ShortDebugString();
                      ^~~~~~~~~~~~~~~~
      In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/object_detection/old.cc:5:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
         return proto.ShortDebugString();
                      ^~~~~~~~~~~~~~~~
      In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.cc:5:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
         return proto.ShortDebugString();
                      ^~~~~~~~~~~~~~~~
      In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/function.h:16,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/generator/defs.cc:7:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
         return proto.ShortDebugString();
                      ^~~~~~~~~~~~~~~~
      In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/function.h:16,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/optional/old.cc:5:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
         return proto.ShortDebugString();
                      ^~~~~~~~~~~~~~~~
      CMakeFiles/onnx.dir/build.make:635: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/tensor_proto_util.cc.o' failed
      make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/tensor_proto_util.cc.o] Error 1
      make[2]: *** Waiting for unfinished jobs....
      In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/function.h:16,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/function.cc:5:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
         return proto.ShortDebugString();
                      ^~~~~~~~~~~~~~~~
      In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.cc:5:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
         return proto.ShortDebugString();
                      ^~~~~~~~~~~~~~~~
      In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/function.h:16,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/nn/defs.cc:8:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
         return proto.ShortDebugString();
                      ^~~~~~~~~~~~~~~~
      In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/function.h:16,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/sequence/defs.cc:5:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
         return proto.ShortDebugString();
                      ^~~~~~~~~~~~~~~~
      In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/function.h:16,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/nn/old.cc:6:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
         return proto.ShortDebugString();
                      ^~~~~~~~~~~~~~~~
      In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/function.h:16,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/math/old.cc:6:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
         return proto.ShortDebugString();
                      ^~~~~~~~~~~~~~~~
      CMakeFiles/onnx.dir/build.make:327: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/math/utils.cc.o' failed
      make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/math/utils.cc.o] Error 1
      In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/function.h:16,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/training/defs.cc:7:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
         return proto.ShortDebugString();
                      ^~~~~~~~~~~~~~~~
      In file included from /data/onnx-mlir/third_party/onnx/onnx/defs/shape_inference.h:9:0,
                       from /data/onnx-mlir/third_party/onnx/onnx/defs/schema.h:24,
                       from /data/onnx-mlir/third_party/onnx/onnx/version_converter/BaseConverter.h:15,
                       from /data/onnx-mlir/third_party/onnx/onnx/version_converter/convert.h:10,
                       from /data/onnx-mlir/third_party/onnx/onnx/version_converter/convert.cc:5:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h: In function ‘std::__cxx11::string onnx::ProtoDebugString(const google::protobuf::MessageLite&)’:
      /data/onnx-mlir/third_party/onnx/onnx/proto_utils.h:26:16: error: ‘const class google::protobuf::MessageLite’ has no member named ‘ShortDebugString’
         return proto.ShortDebugString();
                      ^~~~~~~~~~~~~~~~
      CMakeFiles/onnx.dir/build.make:187: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/controlflow/defs.cc.o' failed
      make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/controlflow/defs.cc.o] Error 1
      CMakeFiles/onnx.dir/build.make:131: recipe for target 'CMakeFiles/onnx.dir/onnx/common/model_helpers.cc.o' failed
      make[2]: *** [CMakeFiles/onnx.dir/onnx/common/model_helpers.cc.o] Error 1
      CMakeFiles/onnx.dir/build.make:579: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/shape_inference.cc.o' failed
      make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/shape_inference.cc.o] Error 1
      CMakeFiles/onnx.dir/build.make:453: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/quantization/defs.cc.o' failed
      make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/quantization/defs.cc.o] Error 1
      CMakeFiles/onnx.dir/build.make:509: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/reduction/utils.cc.o' failed
      make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/reduction/utils.cc.o] Error 1
      CMakeFiles/onnx.dir/build.make:369: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/object_detection/defs.cc.o' failed
      make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/object_detection/defs.cc.o] Error 1
      CMakeFiles/onnx.dir/build.make:495: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/reduction/old.cc.o' failed
      make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/reduction/old.cc.o] Error 1
      CMakeFiles/onnx.dir/build.make:383: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/object_detection/old.cc.o' failed
      make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/object_detection/old.cc.o] Error 1
      CMakeFiles/onnx.dir/build.make:467: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/quantization/old.cc.o' failed
      make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/quantization/old.cc.o] Error 1
      CMakeFiles/onnx.dir/build.make:285: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/logical/old.cc.o' failed
      make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/logical/old.cc.o] Error 1
      CMakeFiles/onnx.dir/build.make:201: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/controlflow/old.cc.o' failed
      make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/controlflow/old.cc.o] Error 1
      CMakeFiles/onnx.dir/build.make:663: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/traditionalml/defs.cc.o' failed
      make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/traditionalml/defs.cc.o] Error 1
      CMakeFiles/onnx.dir/build.make:257: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/generator/old.cc.o' failed
      make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/generator/old.cc.o] Error 1
      CMakeFiles/onnx.dir/build.make:411: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/optional/old.cc.o' failed
      make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/optional/old.cc.o] Error 1
      CMakeFiles/onnx.dir/build.make:481: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/reduction/defs.cc.o' failed
      make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/reduction/defs.cc.o] Error 1
      CMakeFiles/onnx.dir/build.make:537: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/rnn/old.cc.o' failed
      make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/rnn/old.cc.o] Error 1
      CMakeFiles/onnx.dir/build.make:397: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/optional/defs.cc.o' failed
      make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/optional/defs.cc.o] Error 1
      CMakeFiles/onnx.dir/build.make:523: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/rnn/defs.cc.o' failed
      make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/rnn/defs.cc.o] Error 1
      CMakeFiles/onnx.dir/build.make:299: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/math/defs.cc.o' failed
      make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/math/defs.cc.o] Error 1
      CMakeFiles/onnx.dir/build.make:677: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/traditionalml/old.cc.o' failed
      make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/traditionalml/old.cc.o] Error 1
      CMakeFiles/onnx.dir/build.make:565: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/sequence/defs.cc.o' failed
      make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/sequence/defs.cc.o] Error 1
      CMakeFiles/onnx.dir/build.make:271: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/logical/defs.cc.o' failed
      make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/logical/defs.cc.o] Error 1
      CMakeFiles/onnx.dir/build.make:243: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/generator/defs.cc.o' failed
      make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/generator/defs.cc.o] Error 1
      CMakeFiles/onnx.dir/build.make:355: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/nn/old.cc.o' failed
      make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/nn/old.cc.o] Error 1
      CMakeFiles/onnx.dir/build.make:691: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/training/defs.cc.o' failed
      make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/training/defs.cc.o] Error 1
      CMakeFiles/onnx.dir/build.make:621: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/tensor/utils.cc.o' failed
      make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/tensor/utils.cc.o] Error 1
      CMakeFiles/onnx.dir/build.make:229: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/function.cc.o' failed
      make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/function.cc.o] Error 1
      CMakeFiles/onnx.dir/build.make:313: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/math/old.cc.o' failed
      make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/math/old.cc.o] Error 1
      CMakeFiles/onnx.dir/build.make:341: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/nn/defs.cc.o' failed
      make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/nn/defs.cc.o] Error 1
      CMakeFiles/onnx.dir/build.make:593: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/tensor/defs.cc.o' failed
      make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/tensor/defs.cc.o] Error 1
      CMakeFiles/onnx.dir/build.make:607: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/tensor/old.cc.o' failed
      make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/tensor/old.cc.o] Error 1
      CMakeFiles/onnx.dir/build.make:75: recipe for target 'CMakeFiles/onnx.dir/onnx/checker.cc.o' failed
      make[2]: *** [CMakeFiles/onnx.dir/onnx/checker.cc.o] Error 1
      CMakeFiles/onnx.dir/build.make:705: recipe for target 'CMakeFiles/onnx.dir/onnx/shape_inference/implementation.cc.o' failed
      make[2]: *** [CMakeFiles/onnx.dir/onnx/shape_inference/implementation.cc.o] Error 1
      CMakeFiles/onnx.dir/build.make:551: recipe for target 'CMakeFiles/onnx.dir/onnx/defs/schema.cc.o' failed
      make[2]: *** [CMakeFiles/onnx.dir/onnx/defs/schema.cc.o] Error 1
      CMakeFiles/onnx.dir/build.make:719: recipe for target 'CMakeFiles/onnx.dir/onnx/version_converter/convert.cc.o' failed
      make[2]: *** [CMakeFiles/onnx.dir/onnx/version_converter/convert.cc.o] Error 1
      CMakeFiles/Makefile2:195: recipe for target 'CMakeFiles/onnx.dir/all' failed
      make[1]: *** [CMakeFiles/onnx.dir/all] Error 2
      Makefile:135: recipe for target 'all' failed
      make: *** [all] Error 2
      running build_ext
      running cmake_build
      /tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/command/editable_wheel.py:284: SetuptoolsDeprecationWarning: Traceback (most recent call last):
        File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 290, in _safely_run
          return self.run_command(cmd_name)
        File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 1221, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "<string>", line 233, in run
        File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 1221, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "<string>", line 227, in run
        File "/usr/local/lib/python3.8/subprocess.py", line 364, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['/data/cmake/cmake-3.25.0-linux-x86_64/bin/cmake', '--build', '.', '--', '-j', '72']' returned non-zero exit status 2.

                  If you are seeing this warning it is very likely that a setuptools
                  plugin or customization overrides the `build_py` command, without
                  taking into consideration how editable installs run build steps
                  starting from v64.0.0.

                  Plugin authors and developers relying on custom build steps are encouraged
                  to update their `build_py` implementation considering the information in
                  https://setuptools.pypa.io/en/latest/userguide/extension.html
                  about editable installs.

                  For the time being `setuptools` will silence this error and ignore
                  the faulty command, but this behaviour will change in future versions.

        self._safely_run(name)
      Traceback (most recent call last):
        File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 147, in run
          self._create_wheel_file(bdist_wheel)
        File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 328, in _create_wheel_file
          files, mapping = self._run_build_commands(dist_name, unpacked, lib, tmp)
        File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 259, in _run_build_commands
          self._run_build_subcommands()
        File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 286, in _run_build_subcommands
          self.run_command(name)
        File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 1221, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "<string>", line 257, in run
        File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 84, in run
          _build_ext.run(self)
        File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
          self.build_extensions()
        File "<string>", line 274, in build_extensions
        File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 350, in copy_file
          return file_util.copy_file(
        File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/_distutils/file_util.py", line 115, in copy_file
          raise DistutilsFileError(
      setuptools._distutils.errors.DistutilsFileError: can't copy '/data/onnx-mlir/third_party/onnx/.setuptools-cmake-build/onnx_cpp2py_export.cpython-38-x86_64-linux-gnu.so': doesn't exist or not a regular file
      /tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/command/editable_wheel.py:151: _DebuggingTips: An error happened while installing 'onnx' in editable mode.

              ************************************************************************
              The following steps are recommended to help debugging this problem:

              - Try to install the project normally, without using the editable mode.
                Does the error still persists?
                (If it does, try fixing the problem before attempting the editable mode).
              - If you are using binary extensions, make sure you have all OS-level
                dependencies installed (e.g. compilers, toolchains, binary libraries, ...).
              - Try the latest version of setuptools (maybe the error was already fixed).
              - If you (or your project dependencies) are using any setuptools extension
                or customization, make sure they support the editable mode.

              After following the steps above, if the problem still persist and
              you think this is related to how setuptools handles editable installations,
              please submit a reproducible example
              (see https://stackoverflow.com/help/minimal-reproducible-example) to:

                  https://github.com/pypa/setuptools/issues

              More information about editable installs can be found in the docs:

                  https://setuptools.pypa.io/en/latest/userguide/development_mode.html
              ************************************************************************

        _DebuggingTips.warn(project)
      Traceback (most recent call last):
        File "/usr/local/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/usr/local/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/usr/local/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 273, in build_editable
          return hook(wheel_directory, config_settings, metadata_directory)
        File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 442, in build_editable
          return self._build_with_temp_dir(
        File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 398, in _build_with_temp_dir
          self.run_setup()
        File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 484, in run_setup
          super(_BuildMetaLegacyBackend,
        File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 335, in run_setup
          exec(code, locals())
        File "<string>", line 358, in <module>
        File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/__init__.py", line 108, in setup
          return distutils.core.setup(**attrs)
        File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup
          return run_commands(dist)
        File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
          dist.run_commands()
        File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 1221, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 147, in run
          self._create_wheel_file(bdist_wheel)
        File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 328, in _create_wheel_file
          files, mapping = self._run_build_commands(dist_name, unpacked, lib, tmp)
        File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 259, in _run_build_commands
          self._run_build_subcommands()
        File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 286, in _run_build_subcommands
          self.run_command(name)
        File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 1221, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "<string>", line 257, in run
        File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 84, in run
          _build_ext.run(self)
        File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
          self.build_extensions()
        File "<string>", line 274, in build_extensions
        File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 350, in copy_file
          return file_util.copy_file(
        File "/tmp/pip-build-env-c0d2wpmh/overlay/lib/python3.8/site-packages/setuptools/_distutils/file_util.py", line 115, in copy_file
          raise DistutilsFileError(
      setuptools._distutils.errors.DistutilsFileError: can't copy '/data/onnx-mlir/third_party/onnx/.setuptools-cmake-build/onnx_cpp2py_export.cpython-38-x86_64-linux-gnu.so': doesn't exist or not a regular file
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building editable for onnx
Failed to build onnx
ERROR: Could not build wheels for onnx, which is required to install pyproject.toml-based projects

Therefore I tried to install onnx by pip install onnx. Could you tell me how to install onnx in onnx-mlir dir?Thank you very much.

AlexandreEichenberger commented 1 year ago

We strongly recommend users to use our docker environment to build/use onnx-mlir. That avoid the issues shown in this thread. Please consider using existing and/or building your docker image using our Docker files.

chentong319 commented 1 year ago

onnx package depends on protobuf. Make sure to install the right version of protobuf. Issue #1936 may help?