Repository: pytorch
Issue: Compilation from source fails
Labels: module: build,module: protobuf,module: abi,triaged

I'm trying to compile pytorch from source. I needed to compile it myself because I an ARM version of libtorch is required by the tch-rs rust crate, and after the method suggested there failed, I tried using the method in the `from source` section of the pytorch github page. I basically got a huge error log, that I'm not sure which parts to look up and as a result wasn't able to find any relevant information. Here are my system specs and the error log itself.

 - macOS v11.5.2 (M1 mac)
 - python v3.9.7
 - pytorch v1.8.2

Error:

```
Building wheel torch-1.10.0a0+git72274e2
-- Building version 1.10.0a0+git72274e2
cmake --build . --target install --config Release -- -j 8
[1/2562] Building CXX object third_par...nnx.dir/onnx/defs/controlflow/old.cc.o
FAILED: third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/controlflow/old.cc.o 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -DONNXIFI_ENABLE_EXT=1 -DONNX_ML=1 -DONNX_NAMESPACE=onnx_torch -I/Users/ilya/Documents/pytorch/cmake/../third_party/benchmark/include -I/Users/ilya/Documents/pytorch/build/caffe2/contrib/aten -I/Users/ilya/Documents/pytorch/third_party/onnx -I/Users/ilya/Documents/pytorch/build/third_party/onnx -isystem /Users/ilya/Documents/pytorch/cmake/../third_party/googletest/googlemock/include -isystem /Users/ilya/Documents/pytorch/cmake/../third_party/googletest/googletest/include -isystem /Users/ilya/Documents/pytorch/third_party/protobuf/src -isystem /Users/ilya/Documents/pytorch/third_party/XNNPACK/include -isystem /Users/ilya/Documents/pytorch/cmake/../third_party/eigen -isystem /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -isystem /opt/homebrew/lib/python3.9/site-packages/numpy/core/include -isystem /Users/ilya/Documents/pytorch/cmake/../third_party/pybind11/include -Wno-deprecated -fvisibility-inlines-hidden -Wno-deprecated-declarations -DUSE_PTHREADPOOL -Xpreprocessor -fopenmp -I/opt/homebrew/include -Wnon-virtual-dtor -O3 -DNDEBUG -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk -mmacosx-version-min=10.9 -fPIC -Wno-deprecated-declarations -std=gnu++11 -MD -MT third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/controlflow/old.cc.o -MF third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/controlflow/old.cc.o.d -o third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/controlflow/old.cc.o -c /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/controlflow/old.cc
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/controlflow/old.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:17:2: error: This file was generated by an older version of protoc which is
#error This file was generated by an older version of protoc which is
 ^
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:18:2: error: incompatible with your Protocol Buffer headers. Please
#error incompatible with your Protocol Buffer headers. Please
 ^
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:19:2: error: regenerate this file with a newer version of protoc.
#error regenerate this file with a newer version of protoc.
 ^
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5012:22: error: too many arguments to function call, expected 0, have 2
  name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/controlflow/old.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5056:16: error: no matching member function for call to 'Mutable'
  return name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/controlflow/old.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5086:31: error: too many arguments to function call, expected 0, have 2
  ref_attr_name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/controlflow/old.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5130:25: error: no matching member function for call to 'Mutable'
  return ref_attr_name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~~~~~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/controlflow/old.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5160:28: error: too many arguments to function call, expected 0, have 2
  doc_string_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/controlflow/old.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5204:22: error: no matching member function for call to 'Mutable'
  return doc_string_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/controlflow/old.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5291:8: error: use of undeclared identifier 'PROTOBUF_LONGLONG'
  i_ = PROTOBUF_LONGLONG(0);
       ^
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5319:19: error: too many arguments to function call, expected 0, have 2
  s_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/controlflow/old.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5363:13: error: no matching member function for call to 'Mutable'
  return s_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/controlflow/old.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5931:22: error: too many arguments to function call, expected 0, have 2
  name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/controlflow/old.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5975:16: error: no matching member function for call to 'Mutable'
  return name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/controlflow/old.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:6088:28: error: too many arguments to function call, expected 0, have 2
  doc_string_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/controlflow/old.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:6132:22: error: no matching member function for call to 'Mutable'
  return doc_string_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/controlflow/old.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:6314:22: error: too many arguments to function call, expected 0, have 2
  name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/controlflow/old.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:6358:16: error: no matching member function for call to 'Mutable'
  return name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/controlflow/old.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:6388:25: error: too many arguments to function call, expected 0, have 2
  op_type_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[2/2562] Building CXX object third_par.../__/__/caffe2/onnx/torch_ops/defs.cc.o
FAILED: third_party/onnx/CMakeFiles/onnx.dir/__/__/caffe2/onnx/torch_ops/defs.cc.o 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -DONNXIFI_ENABLE_EXT=1 -DONNX_ML=1 -DONNX_NAMESPACE=onnx_torch -I/Users/ilya/Documents/pytorch/cmake/../third_party/benchmark/include -I/Users/ilya/Documents/pytorch/build/caffe2/contrib/aten -I/Users/ilya/Documents/pytorch/third_party/onnx -I/Users/ilya/Documents/pytorch/build/third_party/onnx -isystem /Users/ilya/Documents/pytorch/cmake/../third_party/googletest/googlemock/include -isystem /Users/ilya/Documents/pytorch/cmake/../third_party/googletest/googletest/include -isystem /Users/ilya/Documents/pytorch/third_party/protobuf/src -isystem /Users/ilya/Documents/pytorch/third_party/XNNPACK/include -isystem /Users/ilya/Documents/pytorch/cmake/../third_party/eigen -isystem /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -isystem /opt/homebrew/lib/python3.9/site-packages/numpy/core/include -isystem /Users/ilya/Documents/pytorch/cmake/../third_party/pybind11/include -Wno-deprecated -fvisibility-inlines-hidden -Wno-deprecated-declarations -DUSE_PTHREADPOOL -Xpreprocessor -fopenmp -I/opt/homebrew/include -Wnon-virtual-dtor -O3 -DNDEBUG -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk -mmacosx-version-min=10.9 -fPIC -Wno-deprecated-declarations -std=gnu++11 -MD -MT third_party/onnx/CMakeFiles/onnx.dir/__/__/caffe2/onnx/torch_ops/defs.cc.o -MF third_party/onnx/CMakeFiles/onnx.dir/__/__/caffe2/onnx/torch_ops/defs.cc.o.d -o third_party/onnx/CMakeFiles/onnx.dir/__/__/caffe2/onnx/torch_ops/defs.cc.o -c /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/defs.cc
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/defs.cc:4:
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/./schema.h:4:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:17:2: error: This file was generated by an older version of protoc which is
#error This file was generated by an older version of protoc which is
 ^
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:18:2: error: incompatible with your Protocol Buffer headers. Please
#error incompatible with your Protocol Buffer headers. Please
 ^
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:19:2: error: regenerate this file with a newer version of protoc.
#error regenerate this file with a newer version of protoc.
 ^
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5012:22: error: too many arguments to function call, expected 0, have 2
  name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/defs.cc:4:
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/./schema.h:4:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5056:16: error: no matching member function for call to 'Mutable'
  return name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/defs.cc:4:
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/./schema.h:4:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5086:31: error: too many arguments to function call, expected 0, have 2
  ref_attr_name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/defs.cc:4:
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/./schema.h:4:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5130:25: error: no matching member function for call to 'Mutable'
  return ref_attr_name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~~~~~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/defs.cc:4:
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/./schema.h:4:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5160:28: error: too many arguments to function call, expected 0, have 2
  doc_string_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/defs.cc:4:
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/./schema.h:4:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5204:22: error: no matching member function for call to 'Mutable'
  return doc_string_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/defs.cc:4:
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/./schema.h:4:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5291:8: error: use of undeclared identifier 'PROTOBUF_LONGLONG'
  i_ = PROTOBUF_LONGLONG(0);
       ^
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5319:19: error: too many arguments to function call, expected 0, have 2
  s_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/defs.cc:4:
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/./schema.h:4:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5363:13: error: no matching member function for call to 'Mutable'
  return s_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/defs.cc:4:
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/./schema.h:4:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5931:22: error: too many arguments to function call, expected 0, have 2
  name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/defs.cc:4:
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/./schema.h:4:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5975:16: error: no matching member function for call to 'Mutable'
  return name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/defs.cc:4:
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/./schema.h:4:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:6088:28: error: too many arguments to function call, expected 0, have 2
  doc_string_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/defs.cc:4:
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/./schema.h:4:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:6132:22: error: no matching member function for call to 'Mutable'
  return doc_string_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/defs.cc:4:
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/./schema.h:4:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:6314:22: error: too many arguments to function call, expected 0, have 2
  name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/defs.cc:4:
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/./schema.h:4:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:6358:16: error: no matching member function for call to 'Mutable'
  return name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/defs.cc:4:
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/./schema.h:4:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:6388:25: error: too many arguments to function call, expected 0, have 2
  op_type_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[3/2562] Building CXX object third_par...nnx.dir/onnx/defs/attr_proto_util.cc.o
FAILED: third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/attr_proto_util.cc.o 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -DONNXIFI_ENABLE_EXT=1 -DONNX_ML=1 -DONNX_NAMESPACE=onnx_torch -I/Users/ilya/Documents/pytorch/cmake/../third_party/benchmark/include -I/Users/ilya/Documents/pytorch/build/caffe2/contrib/aten -I/Users/ilya/Documents/pytorch/third_party/onnx -I/Users/ilya/Documents/pytorch/build/third_party/onnx -isystem /Users/ilya/Documents/pytorch/cmake/../third_party/googletest/googlemock/include -isystem /Users/ilya/Documents/pytorch/cmake/../third_party/googletest/googletest/include -isystem /Users/ilya/Documents/pytorch/third_party/protobuf/src -isystem /Users/ilya/Documents/pytorch/third_party/XNNPACK/include -isystem /Users/ilya/Documents/pytorch/cmake/../third_party/eigen -isystem /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -isystem /opt/homebrew/lib/python3.9/site-packages/numpy/core/include -isystem /Users/ilya/Documents/pytorch/cmake/../third_party/pybind11/include -Wno-deprecated -fvisibility-inlines-hidden -Wno-deprecated-declarations -DUSE_PTHREADPOOL -Xpreprocessor -fopenmp -I/opt/homebrew/include -Wnon-virtual-dtor -O3 -DNDEBUG -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk -mmacosx-version-min=10.9 -fPIC -Wno-deprecated-declarations -std=gnu++11 -MD -MT third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/attr_proto_util.cc.o -MF third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/attr_proto_util.cc.o.d -o third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/attr_proto_util.cc.o -c /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.cc
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:17:2: error: This file was generated by an older version of protoc which is
#error This file was generated by an older version of protoc which is
 ^
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:18:2: error: incompatible with your Protocol Buffer headers. Please
#error incompatible with your Protocol Buffer headers. Please
 ^
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:19:2: error: regenerate this file with a newer version of protoc.
#error regenerate this file with a newer version of protoc.
 ^
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5012:22: error: too many arguments to function call, expected 0, have 2
  name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5056:16: error: no matching member function for call to 'Mutable'
  return name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5086:31: error: too many arguments to function call, expected 0, have 2
  ref_attr_name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5130:25: error: no matching member function for call to 'Mutable'
  return ref_attr_name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~~~~~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5160:28: error: too many arguments to function call, expected 0, have 2
  doc_string_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5204:22: error: no matching member function for call to 'Mutable'
  return doc_string_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5291:8: error: use of undeclared identifier 'PROTOBUF_LONGLONG'
  i_ = PROTOBUF_LONGLONG(0);
       ^
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5319:19: error: too many arguments to function call, expected 0, have 2
  s_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5363:13: error: no matching member function for call to 'Mutable'
  return s_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5931:22: error: too many arguments to function call, expected 0, have 2
  name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5975:16: error: no matching member function for call to 'Mutable'
  return name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:6088:28: error: too many arguments to function call, expected 0, have 2
  doc_string_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:6132:22: error: no matching member function for call to 'Mutable'
  return doc_string_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:6314:22: error: too many arguments to function call, expected 0, have 2
  name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:6358:16: error: no matching member function for call to 'Mutable'
  return name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:6388:25: error: too many arguments to function call, expected 0, have 2
  op_type_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[4/2562] Building CXX object third_par...nnx.dir/onnx/common/model_helpers.cc.o
FAILED: third_party/onnx/CMakeFiles/onnx.dir/onnx/common/model_helpers.cc.o 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -DONNXIFI_ENABLE_EXT=1 -DONNX_ML=1 -DONNX_NAMESPACE=onnx_torch -I/Users/ilya/Documents/pytorch/cmake/../third_party/benchmark/include -I/Users/ilya/Documents/pytorch/build/caffe2/contrib/aten -I/Users/ilya/Documents/pytorch/third_party/onnx -I/Users/ilya/Documents/pytorch/build/third_party/onnx -isystem /Users/ilya/Documents/pytorch/cmake/../third_party/googletest/googlemock/include -isystem /Users/ilya/Documents/pytorch/cmake/../third_party/googletest/googletest/include -isystem /Users/ilya/Documents/pytorch/third_party/protobuf/src -isystem /Users/ilya/Documents/pytorch/third_party/XNNPACK/include -isystem /Users/ilya/Documents/pytorch/cmake/../third_party/eigen -isystem /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -isystem /opt/homebrew/lib/python3.9/site-packages/numpy/core/include -isystem /Users/ilya/Documents/pytorch/cmake/../third_party/pybind11/include -Wno-deprecated -fvisibility-inlines-hidden -Wno-deprecated-declarations -DUSE_PTHREADPOOL -Xpreprocessor -fopenmp -I/opt/homebrew/include -Wnon-virtual-dtor -O3 -DNDEBUG -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk -mmacosx-version-min=10.9 -fPIC -Wno-deprecated-declarations -std=gnu++11 -MD -MT third_party/onnx/CMakeFiles/onnx.dir/onnx/common/model_helpers.cc.o -MF third_party/onnx/CMakeFiles/onnx.dir/onnx/common/model_helpers.cc.o.d -o third_party/onnx/CMakeFiles/onnx.dir/onnx/common/model_helpers.cc.o -c /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/model_helpers.cc
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/model_helpers.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/model_helpers.h:11:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:17:2: error: This file was generated by an older version of protoc which is
#error This file was generated by an older version of protoc which is
 ^
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:18:2: error: incompatible with your Protocol Buffer headers. Please
#error incompatible with your Protocol Buffer headers. Please
 ^
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:19:2: error: regenerate this file with a newer version of protoc.
#error regenerate this file with a newer version of protoc.
 ^
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5012:22: error: too many arguments to function call, expected 0, have 2
  name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/model_helpers.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/model_helpers.h:11:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5056:16: error: no matching member function for call to 'Mutable'
  return name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/model_helpers.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/model_helpers.h:11:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5086:31: error: too many arguments to function call, expected 0, have 2
  ref_attr_name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/model_helpers.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/model_helpers.h:11:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5130:25: error: no matching member function for call to 'Mutable'
  return ref_attr_name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~~~~~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/model_helpers.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/model_helpers.h:11:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5160:28: error: too many arguments to function call, expected 0, have 2
  doc_string_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/model_helpers.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/model_helpers.h:11:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5204:22: error: no matching member function for call to 'Mutable'
  return doc_string_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/model_helpers.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/model_helpers.h:11:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5291:8: error: use of undeclared identifier 'PROTOBUF_LONGLONG'
  i_ = PROTOBUF_LONGLONG(0);
       ^
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5319:19: error: too many arguments to function call, expected 0, have 2
  s_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/model_helpers.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/model_helpers.h:11:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5363:13: error: no matching member function for call to 'Mutable'
  return s_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/model_helpers.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/model_helpers.h:11:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5931:22: error: too many arguments to function call, expected 0, have 2
  name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/model_helpers.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/model_helpers.h:11:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5975:16: error: no matching member function for call to 'Mutable'
  return name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/model_helpers.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/model_helpers.h:11:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:6088:28: error: too many arguments to function call, expected 0, have 2
  doc_string_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/model_helpers.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/model_helpers.h:11:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:6132:22: error: no matching member function for call to 'Mutable'
  return doc_string_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/model_helpers.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/model_helpers.h:11:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:6314:22: error: too many arguments to function call, expected 0, have 2
  name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/model_helpers.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/model_helpers.h:11:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:6358:16: error: no matching member function for call to 'Mutable'
  return name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/model_helpers.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/model_helpers.h:11:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:6388:25: error: too many arguments to function call, expected 0, have 2
  op_type_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[5/2562] Building CXX object third_par...nx.dir/onnx/defs/controlflow/defs.cc.o
FAILED: third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/controlflow/defs.cc.o 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -DONNXIFI_ENABLE_EXT=1 -DONNX_ML=1 -DONNX_NAMESPACE=onnx_torch -I/Users/ilya/Documents/pytorch/cmake/../third_party/benchmark/include -I/Users/ilya/Documents/pytorch/build/caffe2/contrib/aten -I/Users/ilya/Documents/pytorch/third_party/onnx -I/Users/ilya/Documents/pytorch/build/third_party/onnx -isystem /Users/ilya/Documents/pytorch/cmake/../third_party/googletest/googlemock/include -isystem /Users/ilya/Documents/pytorch/cmake/../third_party/googletest/googletest/include -isystem /Users/ilya/Documents/pytorch/third_party/protobuf/src -isystem /Users/ilya/Documents/pytorch/third_party/XNNPACK/include -isystem /Users/ilya/Documents/pytorch/cmake/../third_party/eigen -isystem /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -isystem /opt/homebrew/lib/python3.9/site-packages/numpy/core/include -isystem /Users/ilya/Documents/pytorch/cmake/../third_party/pybind11/include -Wno-deprecated -fvisibility-inlines-hidden -Wno-deprecated-declarations -DUSE_PTHREADPOOL -Xpreprocessor -fopenmp -I/opt/homebrew/include -Wnon-virtual-dtor -O3 -DNDEBUG -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk -mmacosx-version-min=10.9 -fPIC -Wno-deprecated-declarations -std=gnu++11 -MD -MT third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/controlflow/defs.cc.o -MF third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/controlflow/defs.cc.o.d -o third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/controlflow/defs.cc.o -c /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/controlflow/defs.cc
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/controlflow/defs.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:17:2: error: This file was generated by an older version of protoc which is
#error This file was generated by an older version of protoc which is
 ^
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:18:2: error: incompatible with your Protocol Buffer headers. Please
#error incompatible with your Protocol Buffer headers. Please
 ^
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:19:2: error: regenerate this file with a newer version of protoc.
#error regenerate this file with a newer version of protoc.
 ^
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5012:22: error: too many arguments to function call, expected 0, have 2
  name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/controlflow/defs.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5056:16: error: no matching member function for call to 'Mutable'
  return name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/controlflow/defs.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5086:31: error: too many arguments to function call, expected 0, have 2
  ref_attr_name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/controlflow/defs.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5130:25: error: no matching member function for call to 'Mutable'
  return ref_attr_name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~~~~~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/controlflow/defs.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5160:28: error: too many arguments to function call, expected 0, have 2
  doc_string_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/controlflow/defs.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5204:22: error: no matching member function for call to 'Mutable'
  return doc_string_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/controlflow/defs.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5291:8: error: use of undeclared identifier 'PROTOBUF_LONGLONG'
  i_ = PROTOBUF_LONGLONG(0);
       ^
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5319:19: error: too many arguments to function call, expected 0, have 2
  s_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/controlflow/defs.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5363:13: error: no matching member function for call to 'Mutable'
  return s_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/controlflow/defs.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5931:22: error: too many arguments to function call, expected 0, have 2
  name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/controlflow/defs.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5975:16: error: no matching member function for call to 'Mutable'
  return name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/controlflow/defs.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:6088:28: error: too many arguments to function call, expected 0, have 2
  doc_string_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/controlflow/defs.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:6132:22: error: no matching member function for call to 'Mutable'
  return doc_string_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/controlflow/defs.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:6314:22: error: too many arguments to function call, expected 0, have 2
  name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/controlflow/defs.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:6358:16: error: no matching member function for call to 'Mutable'
  return name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/controlflow/defs.cc:6:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:6388:25: error: too many arguments to function call, expected 0, have 2
  op_type_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[6/2562] Building CXX object third_par..._/__/caffe2/onnx/torch_ops/schema.cc.o
FAILED: third_party/onnx/CMakeFiles/onnx.dir/__/__/caffe2/onnx/torch_ops/schema.cc.o 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -DONNXIFI_ENABLE_EXT=1 -DONNX_ML=1 -DONNX_NAMESPACE=onnx_torch -I/Users/ilya/Documents/pytorch/cmake/../third_party/benchmark/include -I/Users/ilya/Documents/pytorch/build/caffe2/contrib/aten -I/Users/ilya/Documents/pytorch/third_party/onnx -I/Users/ilya/Documents/pytorch/build/third_party/onnx -isystem /Users/ilya/Documents/pytorch/cmake/../third_party/googletest/googlemock/include -isystem /Users/ilya/Documents/pytorch/cmake/../third_party/googletest/googletest/include -isystem /Users/ilya/Documents/pytorch/third_party/protobuf/src -isystem /Users/ilya/Documents/pytorch/third_party/XNNPACK/include -isystem /Users/ilya/Documents/pytorch/cmake/../third_party/eigen -isystem /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -isystem /opt/homebrew/lib/python3.9/site-packages/numpy/core/include -isystem /Users/ilya/Documents/pytorch/cmake/../third_party/pybind11/include -Wno-deprecated -fvisibility-inlines-hidden -Wno-deprecated-declarations -DUSE_PTHREADPOOL -Xpreprocessor -fopenmp -I/opt/homebrew/include -Wnon-virtual-dtor -O3 -DNDEBUG -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk -mmacosx-version-min=10.9 -fPIC -Wno-deprecated-declarations -std=gnu++11 -MD -MT third_party/onnx/CMakeFiles/onnx.dir/__/__/caffe2/onnx/torch_ops/schema.cc.o -MF third_party/onnx/CMakeFiles/onnx.dir/__/__/caffe2/onnx/torch_ops/schema.cc.o.d -o third_party/onnx/CMakeFiles/onnx.dir/__/__/caffe2/onnx/torch_ops/schema.cc.o -c /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/schema.cc
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/schema.cc:1:
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/./schema.h:4:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:17:2: error: This file was generated by an older version of protoc which is
#error This file was generated by an older version of protoc which is
 ^
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:18:2: error: incompatible with your Protocol Buffer headers. Please
#error incompatible with your Protocol Buffer headers. Please
 ^
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:19:2: error: regenerate this file with a newer version of protoc.
#error regenerate this file with a newer version of protoc.
 ^
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5012:22: error: too many arguments to function call, expected 0, have 2
  name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/schema.cc:1:
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/./schema.h:4:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5056:16: error: no matching member function for call to 'Mutable'
  return name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/schema.cc:1:
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/./schema.h:4:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5086:31: error: too many arguments to function call, expected 0, have 2
  ref_attr_name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/schema.cc:1:
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/./schema.h:4:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5130:25: error: no matching member function for call to 'Mutable'
  return ref_attr_name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~~~~~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/schema.cc:1:
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/./schema.h:4:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5160:28: error: too many arguments to function call, expected 0, have 2
  doc_string_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/schema.cc:1:
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/./schema.h:4:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5204:22: error: no matching member function for call to 'Mutable'
  return doc_string_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/schema.cc:1:
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/./schema.h:4:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5291:8: error: use of undeclared identifier 'PROTOBUF_LONGLONG'
  i_ = PROTOBUF_LONGLONG(0);
       ^
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5319:19: error: too many arguments to function call, expected 0, have 2
  s_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/schema.cc:1:
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/./schema.h:4:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5363:13: error: no matching member function for call to 'Mutable'
  return s_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/schema.cc:1:
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/./schema.h:4:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5931:22: error: too many arguments to function call, expected 0, have 2
  name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/schema.cc:1:
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/./schema.h:4:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5975:16: error: no matching member function for call to 'Mutable'
  return name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/schema.cc:1:
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/./schema.h:4:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:6088:28: error: too many arguments to function call, expected 0, have 2
  doc_string_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/schema.cc:1:
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/./schema.h:4:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:6132:22: error: no matching member function for call to 'Mutable'
  return doc_string_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/schema.cc:1:
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/./schema.h:4:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:6314:22: error: too many arguments to function call, expected 0, have 2
  name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/schema.cc:1:
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/./schema.h:4:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:6358:16: error: no matching member function for call to 'Mutable'
  return name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/schema.cc:1:
In file included from /Users/ilya/Documents/pytorch/caffe2/onnx/torch_ops/./schema.h:4:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/schema.h:23:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/data_type_utils.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:6388:25: error: too many arguments to function call, expected 0, have 2
  op_type_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[7/2562] Building CXX object third_par...x.dir/onnx/common/ir_pb_converter.cc.o
FAILED: third_party/onnx/CMakeFiles/onnx.dir/onnx/common/ir_pb_converter.cc.o 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -DONNXIFI_ENABLE_EXT=1 -DONNX_ML=1 -DONNX_NAMESPACE=onnx_torch -I/Users/ilya/Documents/pytorch/cmake/../third_party/benchmark/include -I/Users/ilya/Documents/pytorch/build/caffe2/contrib/aten -I/Users/ilya/Documents/pytorch/third_party/onnx -I/Users/ilya/Documents/pytorch/build/third_party/onnx -isystem /Users/ilya/Documents/pytorch/cmake/../third_party/googletest/googlemock/include -isystem /Users/ilya/Documents/pytorch/cmake/../third_party/googletest/googletest/include -isystem /Users/ilya/Documents/pytorch/third_party/protobuf/src -isystem /Users/ilya/Documents/pytorch/third_party/XNNPACK/include -isystem /Users/ilya/Documents/pytorch/cmake/../third_party/eigen -isystem /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -isystem /opt/homebrew/lib/python3.9/site-packages/numpy/core/include -isystem /Users/ilya/Documents/pytorch/cmake/../third_party/pybind11/include -Wno-deprecated -fvisibility-inlines-hidden -Wno-deprecated-declarations -DUSE_PTHREADPOOL -Xpreprocessor -fopenmp -I/opt/homebrew/include -Wnon-virtual-dtor -O3 -DNDEBUG -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk -mmacosx-version-min=10.9 -fPIC -Wno-deprecated-declarations -std=gnu++11 -MD -MT third_party/onnx/CMakeFiles/onnx.dir/onnx/common/ir_pb_converter.cc.o -MF third_party/onnx/CMakeFiles/onnx.dir/onnx/common/ir_pb_converter.cc.o.d -o third_party/onnx/CMakeFiles/onnx.dir/onnx/common/ir_pb_converter.cc.o -c /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir_pb_converter.cc
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir_pb_converter.cc:9:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir_pb_converter.h:10:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir.h:27:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/tensor.h:14:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:17:2: error: This file was generated by an older version of protoc which is
#error This file was generated by an older version of protoc which is
 ^
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:18:2: error: incompatible with your Protocol Buffer headers. Please
#error incompatible with your Protocol Buffer headers. Please
 ^
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:19:2: error: regenerate this file with a newer version of protoc.
#error regenerate this file with a newer version of protoc.
 ^
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5012:22: error: too many arguments to function call, expected 0, have 2
  name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir_pb_converter.cc:9:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir_pb_converter.h:10:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir.h:27:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/tensor.h:14:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5056:16: error: no matching member function for call to 'Mutable'
  return name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir_pb_converter.cc:9:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir_pb_converter.h:10:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir.h:27:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/tensor.h:14:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5086:31: error: too many arguments to function call, expected 0, have 2
  ref_attr_name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir_pb_converter.cc:9:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir_pb_converter.h:10:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir.h:27:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/tensor.h:14:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5130:25: error: no matching member function for call to 'Mutable'
  return ref_attr_name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~~~~~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir_pb_converter.cc:9:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir_pb_converter.h:10:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir.h:27:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/tensor.h:14:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5160:28: error: too many arguments to function call, expected 0, have 2
  doc_string_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir_pb_converter.cc:9:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir_pb_converter.h:10:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir.h:27:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/tensor.h:14:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5204:22: error: no matching member function for call to 'Mutable'
  return doc_string_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir_pb_converter.cc:9:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir_pb_converter.h:10:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir.h:27:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/tensor.h:14:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5291:8: error: use of undeclared identifier 'PROTOBUF_LONGLONG'
  i_ = PROTOBUF_LONGLONG(0);
       ^
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5319:19: error: too many arguments to function call, expected 0, have 2
  s_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir_pb_converter.cc:9:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir_pb_converter.h:10:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir.h:27:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/tensor.h:14:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5363:13: error: no matching member function for call to 'Mutable'
  return s_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir_pb_converter.cc:9:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir_pb_converter.h:10:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir.h:27:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/tensor.h:14:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5931:22: error: too many arguments to function call, expected 0, have 2
  name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir_pb_converter.cc:9:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir_pb_converter.h:10:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir.h:27:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/tensor.h:14:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5975:16: error: no matching member function for call to 'Mutable'
  return name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir_pb_converter.cc:9:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir_pb_converter.h:10:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir.h:27:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/tensor.h:14:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:6088:28: error: too many arguments to function call, expected 0, have 2
  doc_string_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir_pb_converter.cc:9:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir_pb_converter.h:10:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir.h:27:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/tensor.h:14:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:6132:22: error: no matching member function for call to 'Mutable'
  return doc_string_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir_pb_converter.cc:9:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir_pb_converter.h:10:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir.h:27:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/tensor.h:14:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:6314:22: error: too many arguments to function call, expected 0, have 2
  name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir_pb_converter.cc:9:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir_pb_converter.h:10:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir.h:27:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/tensor.h:14:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:6358:16: error: no matching member function for call to 'Mutable'
  return name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir_pb_converter.cc:9:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir_pb_converter.h:10:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/ir.h:27:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/common/tensor.h:14:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:6388:25: error: too many arguments to function call, expected 0, have 2
  op_type_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[8/2562] Building CXX object third_par.../CMakeFiles/onnx.dir/onnx/checker.cc.o
FAILED: third_party/onnx/CMakeFiles/onnx.dir/onnx/checker.cc.o 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -DONNXIFI_ENABLE_EXT=1 -DONNX_ML=1 -DONNX_NAMESPACE=onnx_torch -I/Users/ilya/Documents/pytorch/cmake/../third_party/benchmark/include -I/Users/ilya/Documents/pytorch/build/caffe2/contrib/aten -I/Users/ilya/Documents/pytorch/third_party/onnx -I/Users/ilya/Documents/pytorch/build/third_party/onnx -isystem /Users/ilya/Documents/pytorch/cmake/../third_party/googletest/googlemock/include -isystem /Users/ilya/Documents/pytorch/cmake/../third_party/googletest/googletest/include -isystem /Users/ilya/Documents/pytorch/third_party/protobuf/src -isystem /Users/ilya/Documents/pytorch/third_party/XNNPACK/include -isystem /Users/ilya/Documents/pytorch/cmake/../third_party/eigen -isystem /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -isystem /opt/homebrew/lib/python3.9/site-packages/numpy/core/include -isystem /Users/ilya/Documents/pytorch/cmake/../third_party/pybind11/include -Wno-deprecated -fvisibility-inlines-hidden -Wno-deprecated-declarations -DUSE_PTHREADPOOL -Xpreprocessor -fopenmp -I/opt/homebrew/include -Wnon-virtual-dtor -O3 -DNDEBUG -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk -mmacosx-version-min=10.9 -fPIC -Wno-deprecated-declarations -std=gnu++11 -MD -MT third_party/onnx/CMakeFiles/onnx.dir/onnx/checker.cc.o -MF third_party/onnx/CMakeFiles/onnx.dir/onnx/checker.cc.o.d -o third_party/onnx/CMakeFiles/onnx.dir/onnx/checker.cc.o -c /Users/ilya/Documents/pytorch/third_party/onnx/onnx/checker.cc
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/checker.cc:5:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/checker.h:10:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/function.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:17:2: error: This file was generated by an older version of protoc which is
#error This file was generated by an older version of protoc which is
 ^
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:18:2: error: incompatible with your Protocol Buffer headers. Please
#error incompatible with your Protocol Buffer headers. Please
 ^
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:19:2: error: regenerate this file with a newer version of protoc.
#error regenerate this file with a newer version of protoc.
 ^
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5012:22: error: too many arguments to function call, expected 0, have 2
  name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/checker.cc:5:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/checker.h:10:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/function.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5056:16: error: no matching member function for call to 'Mutable'
  return name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/checker.cc:5:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/checker.h:10:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/function.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5086:31: error: too many arguments to function call, expected 0, have 2
  ref_attr_name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/checker.cc:5:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/checker.h:10:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/function.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5130:25: error: no matching member function for call to 'Mutable'
  return ref_attr_name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~~~~~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/checker.cc:5:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/checker.h:10:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/function.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5160:28: error: too many arguments to function call, expected 0, have 2
  doc_string_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/checker.cc:5:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/checker.h:10:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/function.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5204:22: error: no matching member function for call to 'Mutable'
  return doc_string_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/checker.cc:5:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/checker.h:10:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/function.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5291:8: error: use of undeclared identifier 'PROTOBUF_LONGLONG'
  i_ = PROTOBUF_LONGLONG(0);
       ^
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5319:19: error: too many arguments to function call, expected 0, have 2
  s_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/checker.cc:5:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/checker.h:10:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/function.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5363:13: error: no matching member function for call to 'Mutable'
  return s_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/checker.cc:5:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/checker.h:10:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/function.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5931:22: error: too many arguments to function call, expected 0, have 2
  name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/checker.cc:5:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/checker.h:10:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/function.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:5975:16: error: no matching member function for call to 'Mutable'
  return name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/checker.cc:5:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/checker.h:10:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/function.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:6088:28: error: too many arguments to function call, expected 0, have 2
  doc_string_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/checker.cc:5:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/checker.h:10:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/function.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:6132:22: error: no matching member function for call to 'Mutable'
  return doc_string_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/checker.cc:5:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/checker.h:10:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/function.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:6314:22: error: too many arguments to function call, expected 0, have 2
  name_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/checker.cc:5:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/checker.h:10:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/function.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:6358:16: error: no matching member function for call to 'Mutable'
  return name_.Mutable(&GetEmptyStringAlreadyInited(), GetArena());
         ~~~~~~^~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:238:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'google::protobuf::internal::ArenaStringPtr::EmptyDefault' for 1st argument
  std::string* Mutable(EmptyDefault, ::google::protobuf::Arena* arena);
               ^
/opt/homebrew/include/google/protobuf/arenastring.h:240:16: note: candidate function not viable: no known conversion from 'const ::std::string *' (aka 'const basic_string<char> *') to 'const google::protobuf::internal::LazyString' for 1st argument
  std::string* Mutable(const LazyString& default_value, ::google::protobuf::Arena* arena);
               ^
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/checker.cc:5:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/checker.h:10:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/function.h:13:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/defs/attr_proto_util.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx-operators_pb.h:8:
In file included from /Users/ilya/Documents/pytorch/third_party/onnx/onnx/onnx_pb.h:52:
In file included from /Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx-ml.pb.h:2:
/Users/ilya/Documents/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.pb.h:6388:25: error: too many arguments to function call, expected 0, have 2
  op_type_.ClearToEmpty(&GetEmptyStringAlreadyInited(), GetArena());
  ~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/google/protobuf/arenastring.h:273:8: note: 'ClearToEmpty' declared here
  void ClearToEmpty();
       ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
ninja: build stopped: subcommand failed.
```



cc @malfet @seemethere @albanD