Unity-Technologies / ml-agents

The Unity Machine Learning Agents Toolkit (ML-Agents) is an open-source project that enables games and simulations to serve as environments for training intelligent agents using deep reinforcement learning and imitation learning.
https://unity.com/products/machine-learning-agents
Other
16.98k stars 4.14k forks source link

Error "C++ versions less than C++14 are not supported" #6025

Closed danganhhao closed 10 months ago

danganhhao commented 10 months ago

Python: 3.10.12 Ml-Agents: Release 21

Building wheels for collected packages: onnx Building wheel for onnx (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [675 lines of output] fatal: not a git repository (or any of the parent directories): .git /Users/anhhao/miniconda3/envs/mlagents/lib/python3.10/site-packages/setuptools/init.py:80: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. !!

          ********************************************************************************
          Requirements should be satisfied by a PEP 517 installer.
          If you are using pip, you can try `pip install --use-pep517`.
          ********************************************************************************

  !!
    dist.fetch_build_eggs(dist.setup_requires)
  running bdist_wheel
  running build
  running build_py
  running create_version
  running cmake_build
  Using cmake args: ['/Users/anhhao/miniconda3/envs/mlagents/bin/cmake', '-DPYTHON_INCLUDE_DIR=/Users/anhhao/miniconda3/envs/mlagents/include/python3.10', '-DPYTHON_EXECUTABLE=/Users/anhhao/miniconda3/envs/mlagents/bin/python', '-DBUILD_ONNX_PYTHON=ON', '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON', '-DONNX_NAMESPACE=onnx', '-DPY_EXT_SUFFIX=.cpython-310-darwin.so', '-DCMAKE_BUILD_TYPE=Release', '-DONNX_ML=1', '/private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de']
  CMake Deprecation Warning at CMakeLists.txt:2 (cmake_minimum_required):
    Compatibility with CMake < 3.5 will be removed from a future version of
    CMake.

    Update the VERSION argument <min> value or use a ...<max> suffix to tell
    CMake that the project does not need compatibility with older versions.

  -- The C compiler identification is AppleClang 14.0.3.14030022
  -- The CXX compiler identification is AppleClang 14.0.3.14030022
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: /Library/Developer/CommandLineTools/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: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  CMake Warning (dev) at CMakeLists.txt:117 (find_package):
    Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
    are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
    the cmake_policy command to set the policy and suppress this warning.

  This warning is for project developers.  Use -Wno-dev to suppress it.

  -- Found PythonInterp: /Users/anhhao/miniconda3/envs/mlagents/bin/python (found version "3.10.12")
  CMake Warning (dev) at CMakeLists.txt:118 (find_package):
    Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
    are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
    the cmake_policy command to set the policy and suppress this warning.

  This warning is for project developers.  Use -Wno-dev to suppress it.

  -- Found PythonLibs: /Users/anhhao/miniconda3/envs/mlagents/lib/libpython3.10.dylib (found version "3.10.12")
  -- Found Protobuf: /opt/homebrew/lib/libprotobuf.dylib (found version "4.25.1")
  Generated: /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-ml.proto
  Generated: /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-operators-ml.proto
  Generated: /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-data.proto
  -- Could NOT find pybind11 (missing: pybind11_DIR)
  CMake Deprecation Warning at third_party/pybind11/CMakeLists.txt:8 (cmake_minimum_required):
    Compatibility with CMake < 3.5 will be removed from a future version of
    CMake.

    Update the VERSION argument <min> value or use a ...<max> suffix to tell
    CMake that the project does not need compatibility with older versions.

  -- pybind11 v2.9.1
  CMake Warning (dev) at third_party/pybind11/tools/FindPythonLibsNew.cmake:98 (find_package):
    Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
    are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
    the cmake_policy command to set the policy and suppress this warning.

  Call Stack (most recent call first):
    third_party/pybind11/tools/pybind11Tools.cmake:50 (find_package)
    third_party/pybind11/tools/pybind11Common.cmake:206 (include)
    third_party/pybind11/CMakeLists.txt:200 (include)
  This warning is for project developers.  Use -Wno-dev to suppress it.

  -- Found PythonLibs: /Users/anhhao/miniconda3/envs/mlagents/lib/libpython3.10.dylib
  -- Performing Test HAS_FLTO
  -- Performing Test HAS_FLTO - Success
  -- Performing Test HAS_FLTO_THIN
  -- Performing Test HAS_FLTO_THIN - Success
  --
  -- ******** Summary ********
  --   CMake version             : 3.27.7
  --   CMake command             : /Users/anhhao/miniconda3/envs/mlagents/lib/python3.10/site-packages/cmake/data/bin/cmake
  --   System                    : Darwin
  --   C++ compiler              : /Library/Developer/CommandLineTools/usr/bin/c++
  --   C++ compiler version      : 14.0.3.14030022
  --   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.12.0
  --   ONNX NAMESPACE            : onnx
  --   ONNX_USE_LITE_PROTO       : OFF
  --   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
  --   ONNXIFI_DUMMY_BACKEND     : OFF
  --   ONNXIFI_ENABLE_EXT        : OFF
  --
  --   Protobuf compiler         : /opt/homebrew/bin/protoc
  --   Protobuf includes         : /opt/homebrew/include
  --   Protobuf libraries        : /opt/homebrew/lib/libprotobuf.dylib
  --   BUILD_ONNX_PYTHON         : ON
  --     Python version        :
  --     Python executable     : /Users/anhhao/miniconda3/envs/mlagents/bin/python
  --     Python includes       : /Users/anhhao/miniconda3/envs/mlagents/include/python3.10
  -- Configuring done (1.0s)
  -- Generating done (0.0s)
  -- Build files have been written to: /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build
  [  2%] Building C object CMakeFiles/onnxifi_dummy.dir/onnx/onnxifi_dummy.c.o
  [  2%] Running gen_proto.py on onnx/onnx.in.proto
  [  4%] Building C object CMakeFiles/onnxifi_loader.dir/onnx/onnxifi_loader.c.o
  Processing /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/onnx/onnx.in.proto
  Writing /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-ml.proto
  Writing /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-ml.proto3
  generating /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx_pb.py
  [  8%] Linking C static library libonnxifi_loader.a
  [  8%] Linking C shared library libonnxifi_dummy.dylib
  [  8%] Running C++ protocol buffer compiler on /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-ml.proto
  [  8%] Built target onnxifi_loader
  [  9%] Building C object CMakeFiles/onnxifi_wrapper.dir/onnx/onnxifi_wrapper.c.o
  [  9%] Built target onnxifi_dummy
  Writing mypy to onnx/onnx_ml_pb2.pyi
  [ 11%] Linking C shared module libonnxifi.dylib
  [ 11%] Built target gen_onnx_proto
  [ 14%] Running gen_proto.py on onnx/onnx-operators.in.proto
  [ 14%] Running gen_proto.py on onnx/onnx-data.in.proto
  [ 14%] Built target onnxifi_wrapper
  Processing /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/onnx/onnx-data.in.proto
  Writing /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-data.proto
  Writing /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-data.proto3
  generating /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx_data_pb.py
  Processing /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/onnx/onnx-operators.in.proto
  Writing /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-operators-ml.proto
  Writing /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-operators-ml.proto3
  generating /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx_operators_pb.py
  [ 15%] Running C++ protocol buffer compiler on /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-data.proto
  [ 16%] Running C++ protocol buffer compiler on /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-operators-ml.proto
  Writing mypy to onnx/onnx_operators_ml_pb2.pyi
  Writing mypy to onnx/onnx_data_pb2.pyi
  [ 16%] Built target gen_onnx_operators_proto
  [ 16%] Built target gen_onnx_data_proto
  [ 21%] Building CXX object CMakeFiles/onnx_proto.dir/onnx/onnx-ml.pb.cc.o
  [ 21%] Building CXX object CMakeFiles/onnx_proto.dir/onnx/onnx-data.pb.cc.o
  [ 21%] Building CXX object CMakeFiles/onnx_proto.dir/onnx/onnx-operators-ml.pb.cc.o
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-data.pb.cc:4:
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-data.pb.h:13:
  In file included from /opt/homebrew/include/google/protobuf/port_def.inc:33:
  In file included from /opt/homebrew/include/absl/base/attributes.h:37:
  In file included from /opt/homebrew/include/absl/base/config.h:86:
  /opt/homebrew/include/absl/base/policy_checks.h:79:2In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-ml.pb.cc:4: error: "C++ versions less than C++14 are not supported.":

  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-ml.pb.h:13:
  In file included from /opt/homebrew/include/google/protobuf/port_def.inc:33:
  In file included from /opt/homebrew/include/absl/base/attributes.h:#error "C++ versions less than C++14 are not supported."37
  :
   ^In file included from
  /opt/homebrew/include/absl/base/config.h:86:
  /opt/homebrew/include/absl/base/policy_checks.h:79:2: error: "C++ versions less than C++14 are not supported."
  #error "C++ versions less than C++14 are not supported."
   ^
  In file included from In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-ml.pb.cc/private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-data.pb.cc::44:
  :
  In file included from In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-ml.pb.h/private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-data.pb.h::1313:
  :
  /opt/homebrew/include/google/protobuf/port_def.inc/opt/homebrew/include/google/protobuf/port_def.inc::159159::11::  error: error: static_assert failed due to requirement '201103L >= 201402L' "Protobuf only supports C++14 and newer."static_assert failed due to requirement '201103L >= 201402L' "Protobuf only supports C++14 and newer."

  static_assert(PROTOBUF_CPLUSPLUS_MIN(201402L), "Protobuf only supports C++14 and newer.");
  ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  static_assert(PROTOBUF_CPLUSPLUS_MIN(201402L), "Protobuf only supports C++14 and newer.");
  ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.cc:4:
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.h:13:
  In file included from /opt/homebrew/include/google/protobuf/port_def.inc:33:
  In file included from /opt/homebrew/include/absl/base/attributes.h:37:
  In file included from /opt/homebrew/include/absl/base/config.h:86:
  /opt/homebrew/include/absl/base/policy_checks.h:79:2: error: "C++ versions less than C++14 are not supported."
  #error "C++ versions less than C++14 are not supported."
   ^
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.cc:4:
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.h:13:
  /opt/homebrew/include/google/protobuf/port_def.inc:159:1: error: static_assert failed due to requirement '201103L >= 201402L' "Protobuf only supports C++14 and newer."
  static_assert(PROTOBUF_CPLUSPLUS_MIN(201402L), "Protobuf only supports C++14 and newer.");
  ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-ml.pb.cc:4:
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-ml.pb.h:26:
  In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h:107:
  In file included from /opt/homebrew/include/google/protobuf/stubs/common.h:22:
  In file included from /opt/homebrew/include/google/protobuf/stubs/port.h:22:
  /opt/homebrew/include/google/protobuf/port_def.inc:159:1: error: static_assert failed due to requirement '201103L >= 201402L' "Protobuf only supports C++14 and newer."
  static_assert(PROTOBUF_CPLUSPLUS_MIN(201402L), "Protobuf only supports C++14 and newer.");
  ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-data.pb.cc:4:
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-data.pb.h:26:
  In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h:107:
  In file included from /opt/homebrew/include/google/protobuf/stubs/common.h:22:
  In file included from /opt/homebrew/include/google/protobuf/stubs/port.h:22:
  /opt/homebrew/include/google/protobuf/port_def.inc:159:1: error: static_assert failed due to requirement '201103L >= 201402L' "Protobuf only supports C++14 and newer."
  static_assert(PROTOBUF_CPLUSPLUS_MIN(201402L), "Protobuf only supports C++14 and newer.");
  ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.cc:4:
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.h:26:
  In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h:107:
  In file included from /opt/homebrew/include/google/protobuf/stubs/common.h:22:
  In file included from /opt/homebrew/include/google/protobuf/stubs/port.h:22:
  /opt/homebrew/include/google/protobuf/port_def.inc:159:1: error: static_assert failed due to requirement '201103L >= 201402L' "Protobuf only supports C++14 and newer."
  static_assert(PROTOBUF_CPLUSPLUS_MIN(201402L), "Protobuf only supports C++14 and newer.");
  ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-ml.pb.cc:4:
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-ml.pb.h:26:
  In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h:107:
  In file included from /opt/homebrew/include/google/protobuf/stubs/common.h:34:
  /opt/homebrew/include/google/protobuf/port_def.inc:159:1: error: static_assert failed due to requirement '201103L >= 201402L' "Protobuf only supports C++14 and newer."
  static_assert(PROTOBUF_CPLUSPLUS_MIN(201402L), "Protobuf only supports C++14 and newer.");
  ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-data.pb.cc:4:
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-data.pb.h:26:
  In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h:107:
  In file included from /opt/homebrew/include/google/protobuf/stubs/common.h:34:
  /opt/homebrew/include/google/protobuf/port_def.inc:159:1: error: static_assert failed due to requirement '201103L >= 201402L' "Protobuf only supports C++14 and newer."
  static_assert(PROTOBUF_CPLUSPLUS_MIN(201402L), "Protobuf only supports C++14 and newer.");
  ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.cc:4:
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.h:26:
  In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h:107:
  In file included from /opt/homebrew/include/google/protobuf/stubs/common.h:34:
  /opt/homebrew/include/google/protobuf/port_def.inc:159:1: error: static_assert failed due to requirement '201103L >= 201402L' "Protobuf only supports C++14 and newer."
  static_assert(PROTOBUF_CPLUSPLUS_MIN(201402L), "Protobuf only supports C++14 and newer.");
  ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-data.pb.cc:4:
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-data.pb.h:26:
  In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h:109:
  In file included from /opt/homebrew/include/absl/log/absl_check.h:38:
  In file included from /opt/homebrew/include/absl/log/internal/check_impl.h:19:
  In file included from /opt/homebrew/include/absl/log/internal/check_op.h:37:
  In file included from /opt/homebrew/include/absl/log/internal/strip.h:24:
  In file included from /opt/homebrew/include/absl/log/internal/log_message.h:41:
  In file included from /opt/homebrew/include/absl/log/log_entry.h:35:
  /opt/homebrew/include/absl/time/time.h:284:11: error: cannot assign to non-static data member within const member function 'operator='
        hi_ = static_cast<uint32_t>(unsigned_value >> 32);
        ~~~ ^
  /opt/homebrew/include/absl/time/time.h:278:22: note: member function 'absl::Duration::HiRep::operator=' is declared const here
      constexpr HiRep& operator=(const int64_t value) {
      ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /opt/homebrew/include/absl/time/time.h:285:11: error: cannot assign to non-static data member within const member function 'operator='
        lo_ = static_cast<uint32_t>(unsigned_value);
        ~~~ ^
  /opt/homebrew/include/absl/time/time.h:278:22: note: member function 'absl::Duration::HiRep::operator=' is declared const here
      constexpr HiRep& operator=(const int64_t value) {
      ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /opt/homebrew/include/absl/time/time.h:286:14: error: binding reference of type 'absl::Duration::HiRep' to value of type 'const absl::Duration::HiRep' drops 'const' qualifier
        return *this;
               ^~~~~
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-ml.pb.cc:4:
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-ml.pb.h:26:
  In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h:109:
  In file included from /opt/homebrew/include/absl/log/absl_check.h:38:
  In file included from /opt/homebrew/include/absl/log/internal/check_impl.h:19:
  In file included from /opt/homebrew/include/absl/log/internal/check_op.h:37:
  In file included from /opt/homebrew/include/absl/log/internal/strip.h:24:
  In file included from /opt/homebrew/include/absl/log/internal/log_message.h:41:
  In file included from /opt/homebrew/include/absl/log/log_entry.h:35:
  /opt/homebrew/include/absl/time/time.h:284:11: error: cannot assign to non-static data member within const member function 'operator='
        hi_ = static_cast<uint32_t>(unsigned_value >> 32);
        ~~~ ^
  /opt/homebrew/include/absl/time/time.h:278:22: note: member function 'absl::Duration::HiRep::operator=' is declared const here
      constexpr HiRep& operator=(const int64_t value) {
      ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /opt/homebrew/include/absl/time/time.h:285:11: error: cannot assign to non-static data member within const member function 'operator='
        lo_ = static_cast<uint32_t>(unsigned_value);
        ~~~ ^
  /opt/homebrew/include/absl/time/time.h:278:22: note: member function 'absl::Duration::HiRep::operator=' is declared const here
      constexpr HiRep& operator=(const int64_t value) {
      ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /opt/homebrew/include/absl/time/time.h:286:14: error: binding reference of type 'absl::Duration::HiRep' to value of type 'const absl::Duration::HiRep' drops 'const' qualifier
        return *this;
               ^~~~~
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.cc:4:
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.h:26:
  In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h:109:
  In file included from /opt/homebrew/include/absl/log/absl_check.h:38:
  In file included from /opt/homebrew/include/absl/log/internal/check_impl.h:19:
  In file included from /opt/homebrew/include/absl/log/internal/check_op.h:37:
  In file included from /opt/homebrew/include/absl/log/internal/strip.h:24:
  In file included from /opt/homebrew/include/absl/log/internal/log_message.h:41:
  In file included from /opt/homebrew/include/absl/log/log_entry.h:35:
  /opt/homebrew/include/absl/time/time.h:284:11: error: cannot assign to non-static data member within const member function 'operator='
        hi_ = static_cast<uint32_t>(unsigned_value >> 32);
        ~~~ ^
  /opt/homebrew/include/absl/time/time.h:278:22: note: member function 'absl::Duration::HiRep::operator=' is declared const here
      constexpr HiRep& operator=(const int64_t value) {
      ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /opt/homebrew/include/absl/time/time.h:285:11: error: cannot assign to non-static data member within const member function 'operator='
        lo_ = static_cast<uint32_t>(unsigned_value);
        ~~~ ^
  /opt/homebrew/include/absl/time/time.h:278:22: note: member function 'absl::Duration::HiRep::operator=' is declared const here
      constexpr HiRep& operator=(const int64_t value) {
      ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /opt/homebrew/include/absl/time/time.h:286:14: error: binding reference of type 'absl::Duration::HiRep' to value of type 'const absl::Duration::HiRep' drops 'const' qualifier
        return *this;
               ^~~~~
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-data.pb.cc:4:
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-data.pb.h:26:
  In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h:109:
  In file included from /opt/homebrew/include/absl/log/absl_check.hIn file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-ml.pb.cc:4:
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-ml.pb.h::2638:
  :
  In file included from In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h/opt/homebrew/include/absl/log/internal/check_impl.h::10919:
  :
  In file included from In file included from /opt/homebrew/include/absl/log/absl_check.h/opt/homebrew/include/absl/log/internal/check_op.h::3837:
  :
  In file included from In file included from /opt/homebrew/include/absl/log/internal/check_impl.h/opt/homebrew/include/absl/log/internal/strip.h::1924:
  :
  In file included from In file included from /opt/homebrew/include/absl/log/internal/check_op.h/opt/homebrew/include/absl/log/internal/log_message.h::3741:
  :
  In file included from In file included from /opt/homebrew/include/absl/log/internal/strip.h/opt/homebrew/include/absl/log/log_entry.h::2436:
  :
  In file included from In file included from /opt/homebrew/include/absl/log/internal/log_message.h/opt/homebrew/include/absl/types/span.h::4169:
  :
  In file included from /opt/homebrew/include/absl/types/internal/span.h/opt/homebrew/include/absl/log/log_entry.h::11936::
  21In file included from :/opt/homebrew/include/absl/types/span.h :69:
  /opt/homebrew/include/absl/types/internal/span.h:119:21: error: error: no template named 'remove_const_t' in namespace 'std'; did you mean simply 'remove_const_t'?no template named 'remove_const_t' in namespace 'std'; did you mean simply 'remove_const_t'?

    using Container = std::remove_const_t<T>;
                      ^~~~~  using Container = std::remove_const_t<T>;

                      ^~~~~
  /opt/homebrew/include/absl/meta/type_traits.h/opt/homebrew/include/absl/meta/type_traits.h::241241::11::  note: note: 'remove_const_t' declared here'remove_const_t' declared here

  using remove_const_t = typename std::remove_const<T>::type;using remove_const_t = typename std::remove_const<T>::type;

  ^^

  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.cc:4:
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.h:26:
  In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h:109:
  In file included from /opt/homebrew/include/absl/log/absl_check.h:38:
  In file included from /opt/homebrew/include/absl/log/internal/check_impl.h:19:
  In file included from /opt/homebrew/include/absl/log/internal/check_op.h:37:
  In file included from /opt/homebrew/include/absl/log/internal/strip.h:24:
  In file included from /opt/homebrew/include/absl/log/internal/log_message.h:41:
  In file included from /opt/homebrew/include/absl/log/log_entry.h:36:
  In file included from /opt/homebrew/include/absl/types/span.h:69:
  /opt/homebrew/include/absl/types/internal/span.h:119:21: error: no template named 'remove_const_t' in namespace 'std'; did you mean simply 'remove_const_t'?
    using Container = std::remove_const_t<T>;
                      ^~~~~
  /opt/homebrew/include/absl/meta/type_traits.h:241:1: note: 'remove_const_t' declared here
  using remove_const_t = typename std::remove_const<T>::type;
  ^
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-data.pb.cc:4:
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-data.pb.h:26:
  In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h:109:
  In file included from /opt/homebrew/include/absl/log/absl_check.h:38:
  In file included from /opt/homebrew/include/absl/log/internal/check_impl.h:19:
  In file included from /opt/homebrew/include/absl/log/internal/check_op.h:37:
  In file included from /opt/homebrew/include/absl/log/internal/strip.h:24:
  In file included from /opt/homebrew/include/absl/log/internal/log_message.h:41:
  In file included from /opt/homebrew/include/absl/log/log_entry.h:36:
  In file included from /opt/homebrew/include/absl/types/span.h:69:
  /opt/homebrew/include/absl/types/internal/span.h:130:24: error: no template named 'enable_if_t' in namespace 'std'; did you mean simply 'enable_if_t'?
  using EnableIfIsView = std::enable_if_t<IsView<T>::value, int>;
                         ^~~~~
  /opt/homebrew/include/absl/meta/type_traits.h:307:1: note: 'enable_if_t' declared here
  using enable_if_t = typename std::enable_if<B, T>::type;
  ^
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-ml.pb.cc:4:
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-ml.pb.h:26:
  In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h:109:
  In file included from /opt/homebrew/include/absl/log/absl_check.h:38:
  In file included from /opt/homebrew/include/absl/log/internal/check_impl.h:19:
  In file included from /opt/homebrew/include/absl/log/internal/check_op.h:37:
  In file included from /opt/homebrew/include/absl/log/internal/strip.h:24:
  In file included from /opt/homebrew/include/absl/log/internal/log_message.h:41:
  In file included from /opt/homebrew/include/absl/log/log_entry.h:36:
  In file included from /opt/homebrew/include/absl/types/span.h:69:
  /opt/homebrew/include/absl/types/internal/span.h:130:24: error: no template named 'enable_if_t' in namespace 'std'; did you mean simply 'enable_if_t'?
  using EnableIfIsView = std::enable_if_t<IsView<T>::value, int>;
                         ^~~~~
  /opt/homebrew/include/absl/meta/type_traits.h:307:1: note: 'enable_if_t' declared here
  using enable_if_t = typename std::enable_if<B, T>::type;
  ^
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.cc:4:
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.h:26:
  In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h:109:
  In file included from /opt/homebrew/include/absl/log/absl_check.h:38:
  In file included from /opt/homebrew/include/absl/log/internal/check_impl.h:19:
  In file included from /opt/homebrew/include/absl/log/internal/check_op.h:37:
  In file included from /opt/homebrew/include/absl/log/internal/strip.h:24:
  In file included from /opt/homebrew/include/absl/log/internal/log_message.h:41:
  In file included from /opt/homebrew/include/absl/log/log_entry.h:36:
  In file included from /opt/homebrew/include/absl/types/span.h:69:
  /opt/homebrew/include/absl/types/internal/span.h:130:24: error: no template named 'enable_if_t' in namespace 'std'; did you mean simply 'enable_if_t'?
  using EnableIfIsView = std::enable_if_t<IsView<T>::value, int>;
                         ^~~~~
  /opt/homebrew/include/absl/meta/type_traits.h:307:1: note: 'enable_if_t' declared here
  using enable_if_t = typename std::enable_if<B, T>::type;
  ^
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-data.pb.cc:4:
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-data.pb.h:26:
  In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h:109:
  In file included from /opt/homebrew/include/absl/log/absl_check.h:38:
  In file included from /opt/homebrew/include/absl/log/internal/check_impl.h:19:
  In file included from /opt/homebrew/include/absl/log/internal/check_op.h:37:
  In file included from /opt/homebrew/include/absl/log/internal/strip.h:24:
  In file included from /opt/homebrew/include/absl/log/internal/log_message.h:41:
  In file included from /opt/homebrew/include/absl/log/log_entry.h:36:
  In file included from /opt/homebrew/include/absl/types/span.h:69:
  /opt/homebrew/include/absl/types/internal/span.h:133:27: error: no template named 'enable_if_t' in namespace 'std'; did you mean simply 'enable_if_t'?
  using EnableIfNotIsView = std::enable_if_t<!IsView<T>::value, int>;
                            ^~~~~
  /opt/homebrew/include/absl/meta/type_traits.h:307:1: note: 'enable_if_t' declared here
  using enable_if_t = typename std::enable_if<B, T>::type;
  ^
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-ml.pb.cc:4:
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-ml.pb.h:26:
  In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h:109:
  In file included from /opt/homebrew/include/absl/log/absl_check.h:38:
  In file included from /opt/homebrew/include/absl/log/internal/check_impl.h:19:
  In file included from /opt/homebrew/include/absl/log/internal/check_op.h:37:
  In file included from /opt/homebrew/include/absl/log/internal/strip.h:24:
  In file included from /opt/homebrew/include/absl/log/internal/log_message.h:41:
  In file included from /opt/homebrew/include/absl/log/log_entry.h:36:
  In file included from /opt/homebrew/include/absl/types/span.h:69:
  /opt/homebrew/include/absl/types/internal/span.h:133:27: error: no template named 'enable_if_t' in namespace 'std'; did you mean simply 'enable_if_t'?
  using EnableIfNotIsView = std::enable_if_t<!IsView<T>::value, int>;
                            ^~~~~
  /opt/homebrew/include/absl/meta/type_traits.h:307:1: note: 'enable_if_t' declared here
  using enable_if_t = typename std::enable_if<B, T>::type;
  ^
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.cc:4:
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.h:26:
  In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h:109:
  In file included from /opt/homebrew/include/absl/log/absl_check.h:38:
  In file included from /opt/homebrew/include/absl/log/internal/check_impl.h:19:
  In file included from /opt/homebrew/include/absl/log/internal/check_op.h:37:
  In file included from /opt/homebrew/include/absl/log/internal/strip.h:24:
  In file included from /opt/homebrew/include/absl/log/internal/log_message.h:41:
  In file included from /opt/homebrew/include/absl/log/log_entry.h:36:
  In file included from /opt/homebrew/include/absl/types/span.h:69:
  /opt/homebrew/include/absl/types/internal/span.h:133:27: error: no template named 'enable_if_t' in namespace 'std'; did you mean simply 'enable_if_t'?
  using EnableIfNotIsView = std::enable_if_t<!IsView<T>::value, int>;
                            ^~~~~
  /opt/homebrew/include/absl/meta/type_traits.h:307:1: note: 'enable_if_t' declared here
  using enable_if_t = typename std::enable_if<B, T>::type;
  ^
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-data.pb.cc:4:
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-data.pb.h:26:
  In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h:109:
  In file included from /opt/homebrew/include/absl/log/absl_check.h:38:
  In file included from /opt/homebrew/include/absl/log/internal/check_impl.h:19:
  In file included from /opt/homebrew/include/absl/log/internal/check_op.h:37:
  In file included from /opt/homebrew/include/absl/log/internal/strip.h:24:
  In file included from /opt/homebrew/include/absl/log/internal/log_message.h:43:
  /opt/homebrew/include/absl/strings/internal/has_absl_stringify.h:46:8: error: no template named 'enable_if_t' in namespace 'std'; did you mean simply 'enable_if_t'?
      T, std::enable_if_t<std::is_void<decltype(AbslStringify(
         ^~~~~
  /opt/homebrew/include/absl/meta/type_traits.h:307:1: note: 'enable_if_t' declared here
  using enable_if_t = typename std::enable_if<B, T>::type;
  ^
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-ml.pb.cc:4:
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-ml.pb.h:26:
  In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h:109:
  In file included from /opt/homebrew/include/absl/log/absl_check.h:38:
  In file included from /opt/homebrew/include/absl/log/internal/check_impl.h:19:
  In file included from /opt/homebrew/include/absl/log/internal/check_op.h:37:
  In file included from /opt/homebrew/include/absl/log/internal/strip.h:24:
  In file included from /opt/homebrew/include/absl/log/internal/log_message.h:43:
  /opt/homebrew/include/absl/strings/internal/has_absl_stringify.h:46:8: error: no template named 'enable_if_t' in namespace 'std'; did you mean simply 'enable_if_t'?
      T, std::enable_if_t<std::is_void<decltype(AbslStringify(
         ^~~~~
  /opt/homebrew/include/absl/meta/type_traits.h:307:1: note: 'enable_if_t' declared here
  using enable_if_t = typename std::enable_if<B, T>::type;
  ^
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.cc:4:
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.h:26:
  In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h:109:
  In file included from /opt/homebrew/include/absl/log/absl_check.h:38:
  In file included from /opt/homebrew/include/absl/log/internal/check_impl.h:19:
  In file included from /opt/homebrew/include/absl/log/internal/check_op.h:37:
  In file included from /opt/homebrew/include/absl/log/internal/strip.h:24:
  In file included from /opt/homebrew/include/absl/log/internal/log_message.h:43:
  /opt/homebrew/include/absl/strings/internal/has_absl_stringify.h:46:8: error: no template named 'enable_if_t' in namespace 'std'; did you mean simply 'enable_if_t'?
      T, std::enable_if_t<std::is_void<decltype(AbslStringify(
         ^~~~~
  /opt/homebrew/include/absl/meta/type_traits.h:307:1: note: 'enable_if_t' declared here
  using enable_if_t = typename std::enable_if<B, T>::type;
  ^
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-ml.pb.cc:4:
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-ml.pb.h:26:
  In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h:111:
  In file included from /opt/homebrew/include/absl/strings/cord.h:78:
  In file included from /opt/homebrew/include/absl/container/inlined_vector.h:53:
  In file included from /opt/homebrew/include/absl/container/internal/inlined_vector.h:30:
  In file included from /opt/homebrew/include/absl/container/internal/compressed_tuple.h:40:
  /opt/homebrew/include/absl/utility/utility.h:164:12: error: no member named 'in_place_t' in namespace 'std'
  using std::in_place_t;
        ~~~~~^
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.cc:4:
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.h:26:
  In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h:111:
  In file included from /opt/homebrew/include/absl/strings/cord.h:78:
  In file included from /opt/homebrew/include/absl/container/inlined_vector.h:53:
  In file included from /opt/homebrew/include/absl/container/internal/inlined_vector.h:30:
  In file included from /opt/homebrew/include/absl/container/internal/compressed_tuple.h:40:
  /opt/homebrew/include/absl/utility/utility.h:164:12: error: no member named 'in_place_t' in namespace 'std'
  using std::in_place_t;
        ~~~~~^
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-data.pb.cc:4:
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-data.pb.h:26:
  In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h:111:
  In file included from /opt/homebrew/include/absl/strings/cord.h:78:
  In file included from /opt/homebrew/include/absl/container/inlined_vector.h:53:
  In file included from /opt/homebrew/include/absl/container/internal/inlined_vector.h:30:
  In file included from /opt/homebrew/include/absl/container/internal/compressed_tuple.h:40:
  /opt/homebrew/include/absl/utility/utility.h:164:12: error: no member named 'in_place_t' in namespace 'std'
  using std::in_place_t;
        ~~~~~^
  /opt/homebrew/include/absl/utility/utility.h:165:12: error: no member named 'in_place' in namespace 'std'
  using std::in_place;
        ~~~~~^
  /opt/homebrew/include/absl/utility/utility.h:165:12: error: no member named 'in_place' in namespace 'std'
  using std::in_place;
        ~~~~~^
  /opt/homebrew/include/absl/utility/utility.h:165:12: error: no member named 'in_place' in namespace 'std'
  using std::in_place;
        ~~~~~^
  /opt/homebrew/include/absl/utility/utility.h:181:12: error: no member named 'in_place_type' in namespace 'std'
  using std::in_place_type;
        ~~~~~^
  /opt/homebrew/include/absl/utility/utility.h:181:12: error: no member named 'in_place_type' in namespace 'std'
  using std::in_place_type;
        ~~~~~^
  /opt/homebrew/include/absl/utility/utility.h:181:12: error: no member named 'in_place_type' in namespace 'std'
  using std::in_place_type;
        ~~~~~^
  /opt/homebrew/include/absl/utility/utility.h:182:12: error: no member named 'in_place_type_t' in namespace 'std'
  using std::in_place_type_t;
        ~~~~~^
  /opt/homebrew/include/absl/utility/utility.h:182:12: error: no member named 'in_place_type_t' in namespace 'std'
  using std::in_place_type_t;
        ~~~~~^
  /opt/homebrew/include/absl/utility/utility.h:182:12: error: no member named 'in_place_type_t' in namespace 'std'
  using std::in_place_type_t;
        ~~~~~^
  /opt/homebrew/include/absl/utility/utility.h:198:12: error: no member named 'in_place_index' in namespace 'std'
  using std::in_place_index;
        ~~~~~^
  /opt/homebrew/include/absl/utility/utility.h:198:12: error: no member named 'in_place_index' in namespace 'std'
  using std::in_place_index;
        ~~~~~^
  /opt/homebrew/include/absl/utility/utility.h:198:12: error: no member named 'in_place_index' in namespace 'std'
  using std::in_place_index;
        ~~~~~^
  /opt/homebrew/include/absl/utility/utility.h:199:12: error: no member named 'in_place_index_t' in namespace 'std'
  using std::in_place_index_t;
        ~~~~~^
  /opt/homebrew/include/absl/utility/utility.h:199:12: error: no member named 'in_place_index_t' in namespace 'std'
  using std::in_place_index_t;
        ~~~~~^
  /opt/homebrew/include/absl/utility/utility.h:199:12: error: no member named 'in_place_index_t' in namespace 'std'
  using std::in_place_index_t;
        ~~~~~^
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.cc:4:
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.h:26:
  In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h:111:
  In file included from /opt/homebrew/include/absl/strings/cord.h:78:
  In file included from /opt/homebrew/include/absl/container/inlined_vector.h:53:
  In file included from /opt/homebrew/include/absl/container/internal/inlined_vector.h:30:
  /opt/homebrew/include/absl/container/internal/compressed_tuple.h:77:16: error: no member named 'is_final' in namespace 'std'
           !std::is_final<T>::value &&
            ~~~~~^
  /opt/homebrew/include/absl/container/internal/compressed_tuple.h:77:25: error: 'T' does not refer to a value
           !std::is_final<T>::value &&
                          ^
  /opt/homebrew/include/absl/container/internal/compressed_tuple.h:74:20: note: declared here
  template <typename T>
                     ^
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-data.pb.cc:4:
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-data.pb.h:26:
  In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h:111:
  In file included from /opt/homebrew/include/absl/strings/cord.h:78:
  In file included from /opt/homebrew/include/absl/container/inlined_vector.h:53:
  In file included from /opt/homebrew/include/absl/container/internal/inlined_vector.h:30:
  /opt/homebrew/include/absl/container/internal/compressed_tuple.h:77:16: error: no member named 'is_final' in namespace 'std'
           !std::is_final<T>::value &&
            ~~~~~^
  /opt/homebrew/include/absl/container/internal/compressed_tuple.h:77:25: error: 'T' does not refer to a value
           !std::is_final<T>::value &&
                          ^
  /opt/homebrew/include/absl/container/internal/compressed_tuple.h:74:20: note: declared here
  template <typename T>
                     ^
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-ml.pb.cc:4:
  In file included from /private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/.setuptools-cmake-build/onnx/onnx-ml.pb.h:26:
  In file included from /opt/homebrew/include/google/protobuf/io/coded_stream.h:111:
  In file included from /opt/homebrew/include/absl/strings/cord.h:78:
  In file included from /opt/homebrew/include/absl/container/inlined_vector.h:53:
  In file included from /opt/homebrew/include/absl/container/internal/inlined_vector.h:30:
  /opt/homebrew/include/absl/container/internal/compressed_tuple.h:77:16: error: no member named 'is_final' in namespace 'std'
           !std::is_final<T>::value &&
            ~~~~~^
  /opt/homebrew/include/absl/container/internal/compressed_tuple.h:77:25: error: 'T' does not refer to a value
           !std::is_final<T>::value &&
                          ^
  /opt/homebrew/include/absl/container/internal/compressed_tuple.h:74:20: note: declared here
  template <typename T>
                     ^
  fatal error: too many errors emitted, stopping now [-ferror-limit=]
  fatal error: too many errors emitted, stopping now [-ferror-limit=]
  fatal error: too many errors emitted, stopping now [-ferror-limit=]
  20 errors generated.
  20 errors generated.
  make[2]: *** [CMakeFiles/onnx_proto.dir/onnx/onnx-operators-ml.pb.cc.o] Error 1
  make[2]: *** Waiting for unfinished jobs....
  make[2]: *** [CMakeFiles/onnx_proto.dir/onnx/onnx-data.pb.cc.o] Error 1
  20 errors generated.
  make[2]: *** [CMakeFiles/onnx_proto.dir/onnx/onnx-ml.pb.cc.o] Error 1
  make[1]: *** [CMakeFiles/onnx_proto.dir/all] Error 2
  make: *** [all] Error 2
  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "/private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/setup.py", line 332, in <module>
      setuptools.setup(
    File "/Users/anhhao/miniconda3/envs/mlagents/lib/python3.10/site-packages/setuptools/__init__.py", line 103, in setup
      return distutils.core.setup(**attrs)
    File "/Users/anhhao/miniconda3/envs/mlagents/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup
      return run_commands(dist)
    File "/Users/anhhao/miniconda3/envs/mlagents/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
      dist.run_commands()
    File "/Users/anhhao/miniconda3/envs/mlagents/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
      self.run_command(cmd)
    File "/Users/anhhao/miniconda3/envs/mlagents/lib/python3.10/site-packages/setuptools/dist.py", line 963, in run_command
      super().run_command(command)
    File "/Users/anhhao/miniconda3/envs/mlagents/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/Users/anhhao/miniconda3/envs/mlagents/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 368, in run
      self.run_command("build")
    File "/Users/anhhao/miniconda3/envs/mlagents/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "/Users/anhhao/miniconda3/envs/mlagents/lib/python3.10/site-packages/setuptools/dist.py", line 963, in run_command
      super().run_command(command)
    File "/Users/anhhao/miniconda3/envs/mlagents/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/Users/anhhao/miniconda3/envs/mlagents/lib/python3.10/site-packages/setuptools/_distutils/command/build.py", line 131, in run
      self.run_command(cmd_name)
    File "/Users/anhhao/miniconda3/envs/mlagents/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "/Users/anhhao/miniconda3/envs/mlagents/lib/python3.10/site-packages/setuptools/dist.py", line 963, in run_command
      super().run_command(command)
    File "/Users/anhhao/miniconda3/envs/mlagents/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/setup.py", line 223, in run
      self.run_command("cmake_build")
    File "/Users/anhhao/miniconda3/envs/mlagents/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "/Users/anhhao/miniconda3/envs/mlagents/lib/python3.10/site-packages/setuptools/dist.py", line 963, in run_command
      super().run_command(command)
    File "/Users/anhhao/miniconda3/envs/mlagents/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/private/var/folders/73/0jqbf74d4wn241cb4p0z0x600000gn/T/pip-install-a8to6edz/onnx_e87e9139cd0e471c9765746f6eb813de/setup.py", line 217, in run
      subprocess.check_call(build_args)
    File "/Users/anhhao/miniconda3/envs/mlagents/lib/python3.10/subprocess.py", line 369, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['/Users/anhhao/miniconda3/envs/mlagents/bin/cmake', '--build', '.', '--', '-j', '8']' 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 Running setup.py clean for onnx Failed to build onnx ERROR: Could not build wheels for onnx, which is required to install pyproject.toml-based projects

danganhhao commented 10 months ago

Duplicate https://github.com/Unity-Technologies/ml-agents/issues/6019 #6019