Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Build] Unable to build the source distribution #18036

Open
kishorekaruppusamy opened this issue Oct 20, 2023 · 11 comments
Open

[Build] Unable to build the source distribution #18036

kishorekaruppusamy opened this issue Oct 20, 2023 · 11 comments
Labels
build build issues; typically submitted using template contributions welcome lower priority issues for the core ORT teams feature request request for unsupported feature or enhancement

Comments

@kishorekaruppusamy
Copy link

kishorekaruppusamy commented Oct 20, 2023

Describe the issue

there is no source distribution in pypi and unable to build the source distribution tried to build using python -m build --sdist

Necessity : Trying to build the emscripten package for onnxruntime to use this onnxruntime inside pyodide environment kindly do the needful

To Reproduce : clone the repo and execute the build command

Urgency

URGENT unable to build the emscripten package for the onnxruntime package inside pyodide build.

Target platform

MAC M1

Build script

python -m build --wheel

Error / output

* Creating virtualenv isolated environment...
* Installing packages in isolated environment... (setuptools >= 40.8.0, wheel)
* Getting dependencies for sdist...
Traceback (most recent call last):
  File "/Users/kishore-17103/.local/lib/python3.11/site-packages/pep517/in_process/_in_process.py", line 351, in <module>
    main()
  File "/Users/kishore-17103/.local/lib/python3.11/site-packages/pep517/in_process/_in_process.py", line 333, in main
    json_out['return_val'] = hook(**hook_input['kwargs'])
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/kishore-17103/.local/lib/python3.11/site-packages/pep517/in_process/_in_process.py", line 285, in get_requires_for_build_sdist
    return hook(config_settings)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/private/var/folders/q9/ms4_8l4970q525dlsjp_b9n0x6l4j9/T/build-env-gfmk7js3/lib/python3.11/site-packages/setuptools/build_meta.py", line 358, in get_requires_for_build_sdist
    return self._get_build_requires(config_settings, requirements=[])
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/private/var/folders/q9/ms4_8l4970q525dlsjp_b9n0x6l4j9/T/build-env-gfmk7js3/lib/python3.11/site-packages/setuptools/build_meta.py", line 325, in _get_build_requires
    self.run_setup()
  File "/private/var/folders/q9/ms4_8l4970q525dlsjp_b9n0x6l4j9/T/build-env-gfmk7js3/lib/python3.11/site-packages/setuptools/build_meta.py", line 507, in run_setup
    super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
  File "/private/var/folders/q9/ms4_8l4970q525dlsjp_b9n0x6l4j9/T/build-env-gfmk7js3/lib/python3.11/site-packages/setuptools/build_meta.py", line 341, in run_setup
    exec(code, locals())
  File "<string>", line 18, in <module>
ModuleNotFoundError: No module named 'packaging'

ERROR Backend subproccess exited when trying to invoke get_requires_for_build_sdist

Visual Studio Version

No response

GCC / Compiler Version

No response

@kishorekaruppusamy kishorekaruppusamy added the build build issues; typically submitted using template label Oct 20, 2023
@kishorekaruppusamy
Copy link
Author

By using this command ./build.sh --build_wheel --parallel --skip_tests --build_shared_lib --config=Release

2023-10-20 14:22:18,713 build [DEBUG] - Command line arguments:
  --build_dir /Users/raj/Documents/onnxruntime/build/MacOS --build_wheel --parallel --skip_tests --build_shared_lib --config=Release
Namespace(build_dir='/Users/raj/Documents/onnxruntime/build/MacOS', config=['Release'], update=False, build=False, clean=False, parallel=0, nvcc_threads=-1, test=False, skip_tests=True, compile_no_warning_as_error=False, enable_nvtx_profile=False, enable_memory_profile=False, enable_training=False, enable_training_apis=False, enable_training_ops=False, enable_nccl=False, mpi_home=None, nccl_home=None, use_mpi=False, enable_onnx_tests=False, path_to_protoc_exe=None, fuzz_testing=False, enable_symbolic_shape_infer_tests=False, gen_doc=None, gen_api_doc=False, use_cuda=False, cuda_version=None, cuda_home=None, cudnn_home=None, enable_cuda_line_info=False, enable_cuda_nhwc_ops=False, enable_pybind=False, build_wheel=True, wheel_name_suffix=None, numpy_version=None, skip_keras_test=False, build_csharp=False, build_nuget=False, msbuild_extra_options=None, build_java=False, build_nodejs=False, build_objc=False, build_shared_lib=True, build_apple_framework=False, cmake_extra_defines=None, target=None, x86=False, arm=False, arm64=False, arm64ec=False, msvc_toolset=None, windows_sdk_version=None, android=False, android_abi='arm64-v8a', android_api=27, android_sdk_path='', android_ndk_path='', android_cpp_shared=False, android_run_emulator=False, use_gdk=False, gdk_edition='.', gdk_platform='Scarlett', ios=False, ios_sysroot='', ios_toolchain_file='', xcode_code_signing_team_id='', xcode_code_signing_identity='', cmake_generator=None, osx_arch='arm64', apple_deploy_target=None, disable_memleak_checker=False, build_wasm=False, build_wasm_static_lib=False, emsdk_version='3.1.44', enable_wasm_simd=False, enable_wasm_threads=False, disable_wasm_exception_catching=False, enable_wasm_api_exception_catching=False, enable_wasm_exception_throwing_override=True, wasm_run_tests_in_browser=False, enable_wasm_profiling=False, enable_wasm_debug_info=False, wasm_malloc=None, emscripten_settings=None, use_extensions=False, extensions_overridden_path=None, cmake_path='cmake', ctest_path='ctest', skip_submodule_sync=False, use_mimalloc=False, use_dnnl=False, dnnl_gpu_runtime='', dnnl_opencl_root='', use_openvino=None, use_coreml=False, use_webnn=False, use_snpe=False, snpe_root=None, use_nnapi=False, nnapi_min_api=None, use_jsep=False, use_qnn=False, qnn_home=None, use_rknpu=False, use_preinstalled_eigen=False, eigen_path=None, enable_msinternal=False, llvm_path=None, use_vitisai=False, use_tvm=False, tvm_cuda_runtime=False, use_tvm_hash=False, use_tensorrt=False, use_tensorrt_builtin_parser=True, use_tensorrt_oss_parser=False, tensorrt_home=None, test_all_timeout='10800', use_migraphx=False, migraphx_home=None, use_full_protobuf=False, llvm_config='', skip_onnx_tests=False, skip_winml_tests=False, skip_nodejs_tests=False, enable_msvc_static_runtime=False, enable_language_interop_ops=False, use_dml=False, dml_path='', use_winml=False, winml_root_namespace_override=None, dml_external_project=False, use_telemetry=False, enable_wcos=False, enable_lto=False, enable_transformers_tool_test=False, use_acl=None, acl_home=None, acl_libs=None, use_armnn=False, armnn_relu=False, armnn_bn=False, armnn_home=None, armnn_libs=None, build_micro_benchmarks=False, minimal_build=None, include_ops_by_config=None, enable_reduced_operator_type_support=False, disable_contrib_ops=False, disable_ml_ops=False, disable_rtti=False, disable_types=[], disable_exceptions=False, rocm_version=None, use_rocm=False, rocm_home=None, code_coverage=False, enable_lazy_tensor=False, ms_experimental=False, enable_external_custom_op_schemas=False, external_graph_transformer_path=None, enable_cuda_profiling=False, use_cann=False, cann_home=None, enable_rocm_profiling=False, use_xnnpack=False, use_azure=False, use_cache=False, use_triton_kernel=False, use_lock_free_queue=False, allow_running_as_root=False)
2023-10-20 14:22:18,715 build [DEBUG] - Defaulting to running update, build [and test for native builds].
2023-10-20 14:22:18,719 build [INFO] - Build started
Submodule 'cmake/external/emsdk' (https://github.com/emscripten-core/emsdk.git) registered for path 'cmake/external/emsdk'
Submodule 'cmake/external/libprotobuf-mutator' (https://github.com/google/libprotobuf-mutator.git) registered for path 'cmake/external/libprotobuf-mutator'
Submodule 'cmake/external/onnx' (https://github.com/onnx/onnx.git) registered for path 'cmake/external/onnx'
Cloning into '/Users/raj/Documents/onnxruntime/cmake/external/emsdk'...
Cloning into '/Users/raj/Documents/onnxruntime/cmake/external/libprotobuf-mutator'...
Cloning into '/Users/raj/Documents/onnxruntime/cmake/external/onnx'...
Submodule path 'cmake/external/emsdk': checked out 'a896e3d066448b3530dbcaa48869fafefd738f57'
Submodule path 'cmake/external/libprotobuf-mutator': checked out '7a2ed51a6b682a83e345ff49fc4cfd7ca47550db'
Submodule path 'cmake/external/onnx': checked out 'e2525550194ce3d8a2c4a3af451c9d9b3ae6650e'
Submodule 'third_party/benchmark' (https://github.com/google/benchmark.git) registered for path 'cmake/external/onnx/third_party/benchmark'
Submodule 'third_party/pybind11' (https://github.com/pybind/pybind11.git) registered for path 'cmake/external/onnx/third_party/pybind11'
Cloning into '/Users/raj/Documents/onnxruntime/cmake/external/onnx/third_party/benchmark'...
Cloning into '/Users/raj/Documents/onnxruntime/cmake/external/onnx/third_party/pybind11'...
Submodule path 'cmake/external/onnx/third_party/benchmark': checked out '0d98dba29d66e93259db7daa53a9327df767a415'
Submodule path 'cmake/external/onnx/third_party/pybind11': checked out '0bd8896a4010f2d91b2340570c24fa08606ec406'
2023-10-20 14:22:31,806 build [INFO] - Generating CMake build tree
CMake Deprecation Warning at CMakeLists.txt:14 (cmake_policy):
  The OLD behavior for policy CMP0104 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


-- The C compiler identification is AppleClang 15.0.0.15000040
-- The CXX compiler identification is AppleClang 15.0.0.15000040
-- The ASM compiler identification is AppleClang
-- Found assembler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning (dev) at CMakeLists.txt:55 (include):
  Policy CMP0145 is not set: The Dart and FindDart modules are removed.  Run
  "cmake --help-policy CMP0145" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

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

CMake Warning (dev) at /opt/homebrew/Cellar/cmake/3.27.4/share/cmake/Modules/Dart.cmake:47 (message):
  Policy CMP0145 is not set: The Dart and FindDart modules are removed.  Run
  "cmake --help-policy CMP0145" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.
Call Stack (most recent call first):
  CMakeLists.txt:55 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Performing Test COMPILER_SUPPORT_MF16C
-- Performing Test COMPILER_SUPPORT_MF16C - Success
-- Performing Test COMPILER_SUPPORT_FMA
-- Performing Test COMPILER_SUPPORT_FMA - Success
-- Performing Test COMPILER_SUPPORT_AVX
-- Performing Test COMPILER_SUPPORT_AVX - Success
Adding flags for Mac builds
-- Performing Test onnxruntime_HAVE_BUILTIN_ATOMICS
-- Performing Test onnxruntime_HAVE_BUILTIN_ATOMICS - Success
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Performing Test Iconv_IS_BUILT_IN
-- Performing Test Iconv_IS_BUILT_IN - Failed
-- Found Iconv: /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/lib/libiconv.tbd  
-- Found Patch: /Users/kishore-17103/anaconda3/bin/patch  
Patch found: /Users/kishore-17103/anaconda3/bin/patch
-- Found Python: /Users/kishore-17103/anaconda3/bin/python3 (found suitable version "3.11.4", minimum required is "3.8") found components: Interpreter Development.Module NumPy 
Loading Dependencies URLs ...
Loading Dependencies ...
-- Abseil source dir:
-- Populating date
-- Configuring done (0.1s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/date-subbuild
[ 11%] Creating directories for 'date-populate'
[ 22%] Performing download step (download, verify and extract) for 'date-populate'
-- Downloading...
   dst='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/date-subbuild/date-populate-prefix/src/v3.0.1.zip'
   timeout='none'
   inactivity timeout='none'
-- Using src='https://github.com/HowardHinnant/date/archive/refs/tags/v3.0.1.zip'
-- [download 1% complete]
-- [download 4% complete]
-- [download 10% complete]
-- [download 22% complete]
-- [download 45% complete]
-- [download 92% complete]
-- [download 93% complete]
-- [download 100% complete]
-- verifying file...
       file='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/date-subbuild/date-populate-prefix/src/v3.0.1.zip'
-- Downloading... done
-- extracting...
     src='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/date-subbuild/date-populate-prefix/src/v3.0.1.zip'
     dst='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/date-src'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 33%] No update step for 'date-populate'
[ 44%] No patch step for 'date-populate'
[ 55%] No configure step for 'date-populate'
[ 66%] No build step for 'date-populate'
[ 77%] No install step for 'date-populate'
[ 88%] No test step for 'date-populate'
[100%] Completed 'date-populate'
[100%] Built target date-populate
# date: USE_SYSTEM_TZ_DB ON
# date: MANUAL_TZ_DB OFF
# date: USE_TZ_DB_IN_DOT OFF
# date: BUILD_SHARED_LIBS OFF
# date: ENABLE_DATE_TESTING OFF
# date: DISABLE_STRING_VIEW OFF
-- Populating google_nsync
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/google_nsync-subbuild
[ 11%] Creating directories for 'google_nsync-populate'
[ 22%] Performing download step (download, verify and extract) for 'google_nsync-populate'
-- Downloading...
   dst='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/google_nsync-subbuild/google_nsync-populate-prefix/src/1.26.0.zip'
   timeout='none'
   inactivity timeout='none'
-- Using src='https://github.com/google/nsync/archive/refs/tags/1.26.0.zip'
-- verifying file...
       file='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/google_nsync-subbuild/google_nsync-populate-prefix/src/1.26.0.zip'
-- Downloading... done
-- extracting...
     src='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/google_nsync-subbuild/google_nsync-populate-prefix/src/1.26.0.zip'
     dst='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/google_nsync-src'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 33%] No update step for 'google_nsync-populate'
[ 44%] No patch step for 'google_nsync-populate'
[ 55%] No configure step for 'google_nsync-populate'
[ 66%] No build step for 'google_nsync-populate'
[ 77%] No install step for 'google_nsync-populate'
[ 88%] No test step for 'google_nsync-populate'
[100%] Completed 'google_nsync-populate'
[100%] Built target google_nsync-populate
CMake Deprecation Warning at /Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/google_nsync-src/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

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


-- Populating safeint
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/safeint-subbuild
[ 11%] Creating directories for 'safeint-populate'
[ 22%] Performing download step (download, verify and extract) for 'safeint-populate'
-- Downloading...
   dst='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/safeint-subbuild/safeint-populate-prefix/src/3.0.28.zip'
   timeout='none'
   inactivity timeout='none'
-- Using src='https://github.com/dcleblanc/SafeInt/archive/refs/tags/3.0.28.zip'
-- [download 2% complete]
-- [download 6% complete]
-- [download 15% complete]
-- [download 27% complete]
-- [download 32% complete]
-- [download 33% complete]
-- [download 69% complete]
-- [download 100% complete]
-- verifying file...
       file='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/safeint-subbuild/safeint-populate-prefix/src/3.0.28.zip'
-- Downloading... done
-- extracting...
     src='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/safeint-subbuild/safeint-populate-prefix/src/3.0.28.zip'
     dst='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/safeint-src'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 33%] No update step for 'safeint-populate'
[ 44%] No patch step for 'safeint-populate'
[ 55%] No configure step for 'safeint-populate'
[ 66%] No build step for 'safeint-populate'
[ 77%] No install step for 'safeint-populate'
[ 88%] No test step for 'safeint-populate'
[100%] Completed 'safeint-populate'
[100%] Built target safeint-populate
-- Populating protobuf
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/protobuf-subbuild
[ 11%] Creating directories for 'protobuf-populate'
[ 22%] Performing download step (download, verify and extract) for 'protobuf-populate'
-- Downloading...
   dst='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/protobuf-subbuild/protobuf-populate-prefix/src/v21.12.zip'
   timeout='none'
   inactivity timeout='none'
-- Using src='https://github.com/protocolbuffers/protobuf/archive/refs/tags/v21.12.zip'
-- [download 0% complete]
-- [download 1% complete]
-- [download 3% complete]
-- [download 6% complete]
-- [download 12% complete]
-- [download 14% complete]
-- [download 24% complete]
-- [download 25% complete]
-- [download 28% complete]
-- [download 37% complete]
-- [download 45% complete]
-- [download 59% complete]
-- [download 77% complete]
-- [download 78% complete]
-- [download 91% complete]
-- [download 100% complete]
-- verifying file...
       file='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/protobuf-subbuild/protobuf-populate-prefix/src/v21.12.zip'
-- Downloading... done
-- extracting...
     src='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/protobuf-subbuild/protobuf-populate-prefix/src/v21.12.zip'
     dst='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/protobuf-src'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 33%] No update step for 'protobuf-populate'
[ 44%] Performing patch step for 'protobuf-populate'
patching file CMakeLists.txt
[ 55%] No configure step for 'protobuf-populate'
[ 66%] No build step for 'protobuf-populate'
[ 77%] No install step for 'protobuf-populate'
[ 88%] No test step for 'protobuf-populate'
[100%] Completed 'protobuf-populate'
[100%] Built target protobuf-populate
-- 
-- 3.21.12.0
-- Performing Test protobuf_HAVE_LD_VERSION_SCRIPT
-- Performing Test protobuf_HAVE_LD_VERSION_SCRIPT - Failed
-- Found ZLIB: /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/lib/libz.tbd (found version "1.2.12")  
-- Performing Test protobuf_HAVE_BUILTIN_ATOMICS
-- Performing Test protobuf_HAVE_BUILTIN_ATOMICS - Success
-- Populating nlohmann_json
-- Configuring done (0.1s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/nlohmann_json-subbuild
[ 11%] Creating directories for 'nlohmann_json-populate'
[ 22%] Performing download step (download, verify and extract) for 'nlohmann_json-populate'
-- Downloading...
   dst='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/nlohmann_json-subbuild/nlohmann_json-populate-prefix/src/v3.10.5.zip'
   timeout='none'
   inactivity timeout='none'
-- Using src='https://github.com/nlohmann/json/archive/refs/tags/v3.10.5.zip'
-- [download 0% complete]
-- [download 1% complete]
-- [download 2% complete]
-- [download 3% complete]
-- [download 6% complete]
-- [download 12% complete]
-- [download 17% complete]
-- [download 32% complete]
-- [download 41% complete]
-- [download 48% complete]
-- [download 50% complete]
-- [download 56% complete]
-- [download 62% complete]
-- [download 68% complete]
-- [download 74% complete]
-- [download 81% complete]
-- [download 87% complete]
-- [download 93% complete]
-- [download 99% complete]
-- [download 100% complete]
-- verifying file...
       file='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/nlohmann_json-subbuild/nlohmann_json-populate-prefix/src/v3.10.5.zip'
-- Downloading... done
-- extracting...
     src='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/nlohmann_json-subbuild/nlohmann_json-populate-prefix/src/v3.10.5.zip'
     dst='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/nlohmann_json-src'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 33%] No update step for 'nlohmann_json-populate'
[ 44%] No patch step for 'nlohmann_json-populate'
[ 55%] No configure step for 'nlohmann_json-populate'
[ 66%] No build step for 'nlohmann_json-populate'
[ 77%] No install step for 'nlohmann_json-populate'
[ 88%] No test step for 'nlohmann_json-populate'
[100%] Completed 'nlohmann_json-populate'
[100%] Built target nlohmann_json-populate
CMake Deprecation Warning at /Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/nlohmann_json-src/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

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


-- Using the single-header code from /Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/nlohmann_json-src/single_include/
-- Populating mp11
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/mp11-subbuild
[ 11%] Creating directories for 'mp11-populate'
[ 22%] Performing download step (download, verify and extract) for 'mp11-populate'
-- Downloading...
   dst='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/mp11-subbuild/mp11-populate-prefix/src/boost-1.82.0.zip'
   timeout='none'
   inactivity timeout='none'
-- Using src='https://github.com/boostorg/mp11/archive/refs/tags/boost-1.82.0.zip'
-- verifying file...
       file='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/mp11-subbuild/mp11-populate-prefix/src/boost-1.82.0.zip'
-- Downloading... done
-- extracting...
     src='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/mp11-subbuild/mp11-populate-prefix/src/boost-1.82.0.zip'
     dst='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/mp11-src'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 33%] No update step for 'mp11-populate'
[ 44%] No patch step for 'mp11-populate'
[ 55%] No configure step for 'mp11-populate'
[ 66%] No build step for 'mp11-populate'
[ 77%] No install step for 'mp11-populate'
[ 88%] No test step for 'mp11-populate'
[100%] Completed 'mp11-populate'
[100%] Built target mp11-populate
-- Populating gsl
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/gsl-subbuild
[ 11%] Creating directories for 'gsl-populate'
[ 22%] Performing download step (download, verify and extract) for 'gsl-populate'
-- Downloading...
   dst='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/gsl-subbuild/gsl-populate-prefix/src/v4.0.0.zip'
   timeout='none'
   inactivity timeout='none'
-- Using src='https://github.com/microsoft/GSL/archive/refs/tags/v4.0.0.zip'
-- [download 17% complete]
-- [download 51% complete]
-- [download 100% complete]
-- verifying file...
       file='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/gsl-subbuild/gsl-populate-prefix/src/v4.0.0.zip'
-- Downloading... done
-- extracting...
     src='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/gsl-subbuild/gsl-populate-prefix/src/v4.0.0.zip'
     dst='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/gsl-src'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 33%] No update step for 'gsl-populate'
[ 44%] No patch step for 'gsl-populate'
[ 55%] No configure step for 'gsl-populate'
[ 66%] No build step for 'gsl-populate'
[ 77%] No install step for 'gsl-populate'
[ 88%] No test step for 'gsl-populate'
[100%] Completed 'gsl-populate'
[100%] Built target gsl-populate
-- Populating flatbuffers
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/flatbuffers-subbuild
[ 11%] Creating directories for 'flatbuffers-populate'
[ 22%] Performing download step (download, verify and extract) for 'flatbuffers-populate'
-- Downloading...
   dst='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/flatbuffers-subbuild/flatbuffers-populate-prefix/src/v1.12.0.zip'
   timeout='none'
   inactivity timeout='none'
-- Using src='https://github.com/google/flatbuffers/archive/refs/tags/v1.12.0.zip'
-- [download 1% complete]
-- [download 3% complete]
-- [download 6% complete]
-- [download 11% complete]
-- [download 14% complete]
-- [download 24% complete]
-- [download 29% complete]
-- [download 47% complete]
-- [download 59% complete]
-- [download 100% complete]
-- verifying file...
       file='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/flatbuffers-subbuild/flatbuffers-populate-prefix/src/v1.12.0.zip'
-- Downloading... done
-- extracting...
     src='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/flatbuffers-subbuild/flatbuffers-populate-prefix/src/v1.12.0.zip'
     dst='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/flatbuffers-src'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 33%] No update step for 'flatbuffers-populate'
[ 44%] Performing patch step for 'flatbuffers-populate'
patching file CMakeLists.txt
patching file src/idl_gen_rust.cpp
[ 55%] No configure step for 'flatbuffers-populate'
[ 66%] No build step for 'flatbuffers-populate'
[ 77%] No install step for 'flatbuffers-populate'
[ 88%] No test step for 'flatbuffers-populate'
[100%] Completed 'flatbuffers-populate'
[100%] Built target flatbuffers-populate
CMake Deprecation Warning at /Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/flatbuffers-src/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

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


-- Looking for strtof_l
-- Looking for strtof_l - not found
-- Looking for strtoull_l
-- Looking for strtoull_l - not found
-- Populating pytorch_cpuinfo
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/pytorch_cpuinfo-subbuild
[ 11%] Creating directories for 'pytorch_cpuinfo-populate'
[ 22%] Performing download step (download, verify and extract) for 'pytorch_cpuinfo-populate'
-- Downloading...
   dst='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/pytorch_cpuinfo-subbuild/pytorch_cpuinfo-populate-prefix/src/959002f82d7962a473d8bf301845f2af720e0aa4.zip'
   timeout='none'
   inactivity timeout='none'
-- Using src='https://github.com/pytorch/cpuinfo/archive/959002f82d7962a473d8bf301845f2af720e0aa4.zip'
-- [download 0% complete]
-- [download 1% complete]
-- [download 3% complete]
-- [download 5% complete]
-- [download 11% complete]
-- [download 23% complete]
-- [download 24% complete]
-- [download 46% complete]
-- [download 47% complete]
-- [download 48% complete]
-- [download 62% complete]
-- [download 89% complete]
-- [download 100% complete]
-- verifying file...
       file='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/pytorch_cpuinfo-subbuild/pytorch_cpuinfo-populate-prefix/src/959002f82d7962a473d8bf301845f2af720e0aa4.zip'
-- Downloading... done
-- extracting...
     src='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/pytorch_cpuinfo-subbuild/pytorch_cpuinfo-populate-prefix/src/959002f82d7962a473d8bf301845f2af720e0aa4.zip'
     dst='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/pytorch_cpuinfo-src'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 33%] No update step for 'pytorch_cpuinfo-populate'
[ 44%] No patch step for 'pytorch_cpuinfo-populate'
[ 55%] No configure step for 'pytorch_cpuinfo-populate'
[ 66%] No build step for 'pytorch_cpuinfo-populate'
[ 77%] No install step for 'pytorch_cpuinfo-populate'
[ 88%] No test step for 'pytorch_cpuinfo-populate'
[100%] Completed 'pytorch_cpuinfo-populate'
[100%] Built target pytorch_cpuinfo-populate
-- Populating pytorch_clog
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/pytorch_clog-subbuild
[ 11%] Creating directories for 'pytorch_clog-populate'
[ 22%] Performing download step (download, verify and extract) for 'pytorch_clog-populate'
-- Downloading...
   dst='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/pytorch_clog-subbuild/pytorch_clog-populate-prefix/src/959002f82d7962a473d8bf301845f2af720e0aa4.zip'
   timeout='none'
   inactivity timeout='none'
-- Using src='https://github.com/pytorch/cpuinfo/archive/959002f82d7962a473d8bf301845f2af720e0aa4.zip'
-- [download 0% complete]
-- [download 1% complete]
-- [download 3% complete]
-- [download 4% complete]
-- [download 5% complete]
-- [download 6% complete]
-- [download 15% complete]
-- [download 18% complete]
-- [download 19% complete]
-- [download 20% complete]
-- [download 25% complete]
-- [download 29% complete]
-- [download 30% complete]
-- [download 35% complete]
-- [download 39% complete]
-- [download 40% complete]
-- [download 45% complete]
-- [download 49% complete]
-- [download 50% complete]
-- [download 54% complete]
-- [download 55% complete]
-- [download 59% complete]
-- [download 60% complete]
-- [download 64% complete]
-- [download 65% complete]
-- [download 70% complete]
-- [download 74% complete]
-- [download 75% complete]
-- [download 81% complete]
-- [download 85% complete]
-- [download 86% complete]
-- [download 91% complete]
-- [download 96% complete]
-- [download 100% complete]
-- verifying file...
       file='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/pytorch_clog-subbuild/pytorch_clog-populate-prefix/src/959002f82d7962a473d8bf301845f2af720e0aa4.zip'
-- Downloading... done
-- extracting...
     src='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/pytorch_clog-subbuild/pytorch_clog-populate-prefix/src/959002f82d7962a473d8bf301845f2af720e0aa4.zip'
     dst='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/pytorch_clog-src'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 33%] No update step for 'pytorch_clog-populate'
[ 44%] No patch step for 'pytorch_clog-populate'
[ 55%] No configure step for 'pytorch_clog-populate'
[ 66%] No build step for 'pytorch_clog-populate'
[ 77%] No install step for 'pytorch_clog-populate'
[ 88%] No test step for 'pytorch_clog-populate'
[100%] Completed 'pytorch_clog-populate'
[100%] Built target pytorch_clog-populate
CMake Deprecation Warning at /Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/pytorch_clog-src/deps/clog/CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

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


-- Populating googletest
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/googletest-subbuild
[ 11%] Creating directories for 'googletest-populate'
[ 22%] Performing download step (download, verify and extract) for 'googletest-populate'
-- Downloading...
   dst='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/googletest-subbuild/googletest-populate-prefix/src/v1.14.0.zip'
   timeout='none'
   inactivity timeout='none'
-- Using src='https://github.com/google/googletest/archive/refs/tags/v1.14.0.zip'
-- [download 1% complete]
-- [download 4% complete]
-- [download 9% complete]
-- [download 15% complete]
-- [download 19% complete]
-- [download 32% complete]
-- [download 37% complete]
-- [download 87% complete]
-- [download 100% complete]
-- Downloading... done
-- extracting...
     src='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/googletest-subbuild/googletest-populate-prefix/src/v1.14.0.zip'
     dst='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/googletest-src'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 33%] No update step for 'googletest-populate'
[ 44%] No patch step for 'googletest-populate'
[ 55%] No configure step for 'googletest-populate'
[ 66%] No build step for 'googletest-populate'
[ 77%] No install step for 'googletest-populate'
[ 88%] No test step for 'googletest-populate'
[100%] Completed 'googletest-populate'
[100%] Built target googletest-populate
-- Found Python3: /Users/kishore-17103/anaconda3/bin/python3.11 (found version "3.11.4") found components: Interpreter 
protoc can run
-- Populating eigen
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/eigen-subbuild
[ 11%] Creating directories for 'eigen-populate'
[ 22%] Performing download step (download, verify and extract) for 'eigen-populate'
-- Downloading...
   dst='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/eigen-subbuild/eigen-populate-prefix/src/eigen-3.4.zip'
   timeout='none'
   inactivity timeout='none'
-- Using src='https://gitlab.com/libeigen/eigen/-/archive/3.4/eigen-3.4.zip'
-- verifying file...
       file='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/eigen-subbuild/eigen-populate-prefix/src/eigen-3.4.zip'
-- Downloading... done
-- extracting...
     src='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/eigen-subbuild/eigen-populate-prefix/src/eigen-3.4.zip'
     dst='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/eigen-src'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 33%] No update step for 'eigen-populate'
[ 44%] No patch step for 'eigen-populate'
[ 55%] No configure step for 'eigen-populate'
[ 66%] No build step for 'eigen-populate'
[ 77%] No install step for 'eigen-populate'
[ 88%] No test step for 'eigen-populate'
[100%] Completed 'eigen-populate'
[100%] Built target eigen-populate
-- Populating onnx
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/onnx-subbuild
[ 11%] Creating directories for 'onnx-populate'
[ 22%] Performing download step (download, verify and extract) for 'onnx-populate'
-- Downloading...
   dst='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/onnx-subbuild/onnx-populate-prefix/src/14303de049144035dfd94ace5f7a3b44773b1aad.zip'
   timeout='none'
   inactivity timeout='none'
-- Using src='https://github.com/onnx/onnx/archive/14303de049144035dfd94ace5f7a3b44773b1aad.zip'
-- [download 0% complete]
-- [download 1% complete]
-- [download 2% complete]
-- [download 3% complete]
-- [download 5% complete]
-- [download 11% complete]
-- [download 12% complete]
-- [download 16% complete]
-- [download 17% complete]
-- [download 22% complete]
-- [download 25% complete]
-- [download 35% complete]
-- [download 36% complete]
-- [download 37% complete]
-- [download 42% complete]
-- [download 46% complete]
-- [download 47% complete]
-- [download 50% complete]
-- [download 51% complete]
-- [download 52% complete]
-- [download 53% complete]
-- [download 54% complete]
-- [download 55% complete]
-- [download 56% complete]
-- [download 57% complete]
-- [download 58% complete]
-- [download 59% complete]
-- [download 60% complete]
-- [download 61% complete]
-- [download 63% complete]
-- [download 64% complete]
-- [download 65% complete]
-- [download 66% complete]
-- [download 67% complete]
-- [download 68% complete]
-- [download 70% complete]
-- [download 71% complete]
-- [download 72% complete]
-- [download 73% complete]
-- [download 75% complete]
-- [download 76% complete]
-- [download 78% complete]
-- [download 80% complete]
-- [download 81% complete]
-- [download 83% complete]
-- [download 84% complete]
-- [download 85% complete]
-- [download 86% complete]
-- [download 88% complete]
-- [download 89% complete]
-- [download 91% complete]
-- [download 93% complete]
-- [download 94% complete]
-- [download 96% complete]
-- [download 99% complete]
-- [download 100% complete]
-- verifying file...
       file='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/onnx-subbuild/onnx-populate-prefix/src/14303de049144035dfd94ace5f7a3b44773b1aad.zip'
-- Downloading... done
-- extracting...
     src='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/onnx-subbuild/onnx-populate-prefix/src/14303de049144035dfd94ace5f7a3b44773b1aad.zip'
     dst='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/onnx-src'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 33%] No update step for 'onnx-populate'
[ 44%] Performing patch step for 'onnx-populate'
patching file CMakeLists.txt
Hunk #1 succeeded at 495 (offset 98 lines).
Hunk #2 succeeded at 647 (offset 98 lines).
patching file onnx/onnx_pb.h
[ 55%] No configure step for 'onnx-populate'
[ 66%] No build step for 'onnx-populate'
[ 77%] No install step for 'onnx-populate'
[ 88%] No test step for 'onnx-populate'
[100%] Completed 'onnx-populate'
[100%] Built target onnx-populate
CMake Deprecation Warning at /Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/onnx-src/CMakeLists.txt:2 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

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


CMake Warning (dev) at /Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/onnx-src/CMakeLists.txt:112 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

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

-- Found PythonInterp: /Users/kishore-17103/anaconda3/bin/python3 (found version "3.11.4") 
Generated: /Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/onnx-build/onnx/onnx-ml.proto
Generated: /Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/onnx-build/onnx/onnx-operators-ml.proto
Generated: /Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/onnx-build/onnx/onnx-data.proto
-- 
-- ******** Summary ********
--   CMake version                     : 3.27.4
--   CMake command                     : /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake
--   System                            : Darwin
--   C++ compiler                      : /Library/Developer/CommandLineTools/usr/bin/c++
--   C++ compiler version              : 15.0.0.15000040
--   CXX flags                         :  -ffunction-sections -fdata-sections -fvisibility=hidden -fvisibility-inlines-hidden -fstack-protector-strong -DCPUINFO_SUPPORTED -Wnon-virtual-dtor
--   Build type                        : Release
--   Compile definitions               : ORT_ENABLE_STREAM;EIGEN_MPL2_ONLY;__STDC_FORMAT_MACROS
--   CMAKE_PREFIX_PATH                 : /Users/raj/Documents/onnxruntime/build/MacOS/Release/installed
--   CMAKE_INSTALL_PREFIX              : /usr/local
--   CMAKE_MODULE_PATH                 : /Users/raj/Documents/onnxruntime/cmake/external
-- 
--   ONNX version                      : 1.15.0rc1
--   ONNX NAMESPACE                    : onnx
--   ONNX_USE_LITE_PROTO               : ON
--   USE_PROTOBUF_SHARED_LIBS          : OFF
--   Protobuf_USE_STATIC_LIBS          : ON
--   ONNX_DISABLE_EXCEPTIONS           : OFF
--   ONNX_DISABLE_STATIC_REGISTRATION  : OFF
--   ONNX_WERROR                       : OFF
--   ONNX_BUILD_TESTS                  : OFF
--   ONNX_BUILD_BENCHMARKS             : OFF
-- 
--   Protobuf compiler                 : 
--   Protobuf includes                 : 
--   Protobuf libraries                : 
--   BUILD_ONNX_PYTHON                 : OFF
Finished fetching external dependencies
-- Performing Test HAS_AMBIGUOUS_REVERSED_OPERATOR
-- Performing Test HAS_AMBIGUOUS_REVERSED_OPERATOR - Success
-- Performing Test HAS_BITWISE_INSTEAD_OF_LOGICAL
-- Performing Test HAS_BITWISE_INSTEAD_OF_LOGICAL - Success
-- Performing Test HAS_CAST_FUNCTION_TYPE
-- Performing Test HAS_CAST_FUNCTION_TYPE - Success
-- Performing Test HAS_CATCH_VALUE
-- Performing Test HAS_CATCH_VALUE - Failed
-- Performing Test HAS_CLASS_MEMACCESS
-- Performing Test HAS_CLASS_MEMACCESS - Failed
-- Performing Test HAS_DEPRECATED_ANON_ENUM_ENUM_CONVERSION
-- Performing Test HAS_DEPRECATED_ANON_ENUM_ENUM_CONVERSION - Success
-- Performing Test HAS_DEPRECATED_BUILTINS
-- Performing Test HAS_DEPRECATED_BUILTINS - Success
-- Performing Test HAS_DEPRECATED_COPY
-- Performing Test HAS_DEPRECATED_COPY - Success
-- Performing Test HAS_DEPRECATED_DECLARATIONS
-- Performing Test HAS_DEPRECATED_DECLARATIONS - Success
-- Performing Test HAS_ENUM_CONSTEXPR_CONVERSION
-- Performing Test HAS_ENUM_CONSTEXPR_CONVERSION - Success
-- Performing Test HAS_FORMAT_TRUNCATION
-- Performing Test HAS_FORMAT_TRUNCATION - Failed
-- Performing Test HAS_IGNORED_ATTRIBUTES
-- Performing Test HAS_IGNORED_ATTRIBUTES - Success
-- Performing Test HAS_MAYBE_UNINITIALIZED
-- Performing Test HAS_MAYBE_UNINITIALIZED - Failed
-- Performing Test HAS_MISSING_BRACES
-- Performing Test HAS_MISSING_BRACES - Success
-- Performing Test HAS_NONNULL_COMPARE
-- Performing Test HAS_NONNULL_COMPARE - Failed
-- Performing Test HAS_PARENTHESES
-- Performing Test HAS_PARENTHESES - Success
-- Performing Test HAS_SHORTEN_64_TO_32
-- Performing Test HAS_SHORTEN_64_TO_32 - Success
-- Performing Test HAS_STRICT_ALIASING
-- Performing Test HAS_STRICT_ALIASING - Success
NVCC_ERROR = 
NVCC_OUT = No such file or directory
-- Performing Test HAS_TAUTOLOGICAL_POINTER_COMPARE
-- Performing Test HAS_TAUTOLOGICAL_POINTER_COMPARE - Success
-- Performing Test HAS_UNDEFINED_VAR_TEMPLATE
-- Performing Test HAS_UNDEFINED_VAR_TEMPLATE - Success
-- Performing Test HAS_UNUSED_BUT_SET_PARAMETER
-- Performing Test HAS_UNUSED_BUT_SET_PARAMETER - Success
-- Performing Test HAS_UNUSED_BUT_SET_VARIABLE
-- Performing Test HAS_UNUSED_BUT_SET_VARIABLE - Success
-- Performing Test HAS_UNUSED_VARIABLE
-- Performing Test HAS_UNUSED_VARIABLE - Success
-- Performing Test HAS_USELESS_CAST
-- Performing Test HAS_USELESS_CAST - Failed
-- Looking for reallocarray
-- Looking for reallocarray - not found
-- Found Git: /usr/bin/git (found version "2.39.3 (Apple Git-145)") 
CMake Warning at CMakeLists.txt:1577 (message):
  MPI and NCCL disabled on Win build.


-- Python Build is enabled
-- Populating pybind11_project
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/pybind11_project-subbuild
[ 11%] Creating directories for 'pybind11_project-populate'
[ 22%] Performing download step (download, verify and extract) for 'pybind11_project-populate'
-- Downloading...
   dst='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/pybind11_project-subbuild/pybind11_project-populate-prefix/src/v2.10.1.zip'
   timeout='none'
   inactivity timeout='none'
-- Using src='https://github.com/pybind/pybind11/archive/refs/tags/v2.10.1.zip'
-- [download 1% complete]
-- [download 5% complete]
-- [download 12% complete]
-- [download 20% complete]
-- [download 24% complete]
-- [download 25% complete]
-- [download 52% complete]
-- [download 85% complete]
-- [download 100% complete]
-- verifying file...
       file='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/pybind11_project-subbuild/pybind11_project-populate-prefix/src/v2.10.1.zip'
-- Downloading... done
-- extracting...
     src='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/pybind11_project-subbuild/pybind11_project-populate-prefix/src/v2.10.1.zip'
     dst='/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/pybind11_project-src'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 33%] No update step for 'pybind11_project-populate'
[ 44%] No patch step for 'pybind11_project-populate'
[ 55%] No configure step for 'pybind11_project-populate'
[ 66%] No build step for 'pybind11_project-populate'
[ 77%] No install step for 'pybind11_project-populate'
[ 88%] No test step for 'pybind11_project-populate'
[100%] Completed 'pybind11_project-populate'
[100%] Built target pybind11_project-populate
CMake Deprecation Warning at /Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/pybind11_project-src/CMakeLists.txt:8 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

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


-- pybind11 v2.10.1 
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- Performing Test HAS_FLTO_THIN
-- Performing Test HAS_FLTO_THIN - Success
-- Configuring done (37.3s)
-- Generating done (0.8s)
-- Build files have been written to: /Users/raj/Documents/onnxruntime/build/MacOS/Release
2023-10-20 14:23:10,401 build [INFO] - Building targets for Release configuration
[  0%] Generating cpp/platform/posix/src/per_thread_waiter.c
[  1%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/any_lite.cc.o
[  1%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf-lite.dir/src/google/protobuf/any_lite.cc.o
[  1%] Building CXX object _deps/flatbuffers-build/CMakeFiles/flatbuffers.dir/src/idl_parser.cpp.o
[  1%] Generating onnxruntime.lds, generated_source.c
[  1%] Building C object _deps/pytorch_cpuinfo-build/CMakeFiles/cpuinfo.dir/src/api.c.o
[  1%] Building CXX object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/platform.cpp.o
[  1%] Building CXX object _deps/flatbuffers-build/CMakeFiles/flatc.dir/src/idl_parser.cpp.o
[  1%] Generating cpp/internal/common.c
Generating symbol file for ['cpu']
VERSION:1.17.0
[  1%] Generating cpp/internal/counter.c
[  1%] Built target onnxruntime_generate_def
[  1%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/arena.cc.o
[  1%] Generating cpp/internal/cv.c
[  1%] Building C object _deps/pytorch_cpuinfo-build/CMakeFiles/cpuinfo.dir/src/cache.c.o
[  1%] Generating cpp/internal/debug.c
[  1%] Generating cpp/internal/dll.c
[  1%] Building C object _deps/pytorch_cpuinfo-build/CMakeFiles/cpuinfo.dir/src/init.c.o
[  1%] Generating cpp/internal/mu.c
[  1%] Building C object _deps/pytorch_cpuinfo-build/CMakeFiles/cpuinfo.dir/src/log.c.o
[  1%] Generating cpp/internal/mu_wait.c
[  2%] Generating cpp/internal/note.c
[  2%] Generating cpp/internal/once.c
[  2%] Building C object _deps/pytorch_cpuinfo-build/CMakeFiles/cpuinfo.dir/src/arm/uarch.c.o
[  2%] Generating cpp/internal/sem_wait.c
[  2%] Generating cpp/internal/time_internal.c
[  2%] Building C object _deps/pytorch_cpuinfo-build/CMakeFiles/cpuinfo.dir/src/arm/cache.c.o
[  2%] Generating cpp/internal/wait.c
[  2%] Generating cpp/platform/c++11/src/nsync_panic.cc
[  2%] Generating cpp/platform/c++11/src/nsync_semaphore_mutex.cc
[  2%] Building C object _deps/pytorch_cpuinfo-build/CMakeFiles/cpuinfo.dir/src/arm/mach/init.c.o
[  2%] Generating cpp/platform/c++11/src/time_rep_timespec.cc
[  2%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/arenastring.cc.o
[  2%] Generating cpp/platform/c++11/src/yield.cc
[  2%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf-lite.dir/src/google/protobuf/arena.cc.o
[  2%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/arenaz_sampler.cc.o
[  2%] Generating cpp/platform/posix/src/clock_gettime.c
[  2%] Generating cpp/platform/posix/src/nsync_semaphore_mutex.c
[  2%] Building C object _deps/pytorch_cpuinfo-build/CMakeFiles/cpuinfo.dir/src/mach/topology.c.o
[  2%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/extension_set.cc.o
[  2%] Building CXX object _deps/google_nsync-build/CMakeFiles/nsync_cpp.dir/cpp/internal/common.c.o
[  2%] Building CXX object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/threading.cpp.o
[  2%] Linking C static library libcpuinfo.a
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
[  2%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf-lite.dir/src/google/protobuf/arenastring.cc.o
[  2%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/generated_enum_util.cc.o
[  3%] Building CXX object _deps/google_nsync-build/CMakeFiles/nsync_cpp.dir/cpp/internal/counter.c.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
[  3%] Built target cpuinfo
[  3%] Building CXX object _deps/google_nsync-build/CMakeFiles/nsync_cpp.dir/cpp/internal/cv.c.o
[  3%] Building CXX object _deps/flatbuffers-build/CMakeFiles/flatbuffers.dir/src/idl_gen_text.cpp.o
[  3%] Building CXX object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/sgemm.cpp.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
[  4%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf-lite.dir/src/google/protobuf/arenaz_sampler.cc.o
[  4%] Building C object _deps/pytorch_clog-build/CMakeFiles/clog.dir/src/clog.c.o
[  4%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf-lite.dir/src/google/protobuf/extension_set.cc.o
[  4%] Linking C static library libclog.a
[  4%] Building CXX object _deps/google_nsync-build/CMakeFiles/nsync_cpp.dir/cpp/internal/debug.c.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
[  4%] Built target clog
[  4%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/generated_message_tctable_lite.cc.o
[  4%] Building CXX object _deps/flatbuffers-build/CMakeFiles/flatc.dir/src/idl_gen_text.cpp.o
[  4%] Building CXX object _deps/google_nsync-build/CMakeFiles/nsync_cpp.dir/cpp/internal/dll.c.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
[  4%] Building CXX object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/halfgemm.cpp.o
[  4%] Building CXX object _deps/google_nsync-build/CMakeFiles/nsync_cpp.dir/cpp/internal/mu.c.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
[  4%] Building CXX object _deps/flatbuffers-build/CMakeFiles/flatbuffers.dir/src/reflection.cpp.o
[  4%] Building CXX object _deps/google_nsync-build/CMakeFiles/nsync_cpp.dir/cpp/internal/mu_wait.c.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
[  4%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/generated_message_util.cc.o
[  4%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf-lite.dir/src/google/protobuf/generated_enum_util.cc.o
[  4%] Building CXX object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/qgemm.cpp.o
[  4%] Building CXX object _deps/flatbuffers-build/CMakeFiles/flatc.dir/src/reflection.cpp.o
[  4%] Building CXX object _deps/google_nsync-build/CMakeFiles/nsync_cpp.dir/cpp/internal/note.c.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
[  4%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/implicit_weak_message.cc.o
[  4%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf-lite.dir/src/google/protobuf/generated_message_tctable_lite.cc.o
[  4%] Building CXX object _deps/google_nsync-build/CMakeFiles/nsync_cpp.dir/cpp/internal/once.c.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
[  4%] Building CXX object _deps/flatbuffers-build/CMakeFiles/flatbuffers.dir/src/util.cpp.o
[  4%] Building CXX object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/qdwconv.cpp.o
[  4%] Building CXX object _deps/google_nsync-build/CMakeFiles/nsync_cpp.dir/cpp/internal/sem_wait.c.o
[  4%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/inlined_string_field.cc.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
[  4%] Building CXX object _deps/google_nsync-build/CMakeFiles/nsync_cpp.dir/cpp/internal/time_internal.c.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
[  4%] Building CXX object _deps/googletest-build/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
[  4%] Building CXX object _deps/flatbuffers-build/CMakeFiles/flatc.dir/src/util.cpp.o
[  4%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/io/coded_stream.cc.o
[  4%] Building CXX object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/convolve.cpp.o
[  4%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf-lite.dir/src/google/protobuf/generated_message_util.cc.o
[  4%] Building CXX object _deps/google_nsync-build/CMakeFiles/nsync_cpp.dir/cpp/internal/wait.c.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
[  4%] Building CXX object _deps/google_nsync-build/CMakeFiles/nsync_cpp.dir/cpp/platform/posix/src/per_thread_waiter.c.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
[  4%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/io/io_win32.cc.o
[  4%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf-lite.dir/src/google/protobuf/implicit_weak_message.cc.o
[  5%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/io/strtod.cc.o
[  5%] Building CXX object _deps/flatbuffers-build/CMakeFiles/flatc.dir/src/idl_gen_cpp.cpp.o
In file included from /Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/googletest-src/googletest/src/gtest-all.cc:38:
In file included from /Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/googletest-src/googletest/include/gtest/gtest.h:64:
In file included from /Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/googletest-src/googletest/include/gtest/gtest-assertion-result.h:46:
/Users/raj/Documents/onnxruntime/build/MacOS/Release/_deps/googletest-src/googletest/include/gtest/gtest-message.h:62:10: fatal error: 'absl/strings/internal/has_absl_stringify.h' file not found
#include "absl/strings/internal/has_absl_stringify.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[  6%] Building CXX object _deps/google_nsync-build/CMakeFiles/nsync_cpp.dir/cpp/platform/c++11/src/yield.cc.o
[  6%] Building CXX object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/convsym.cpp.o
[  6%] Linking CXX static library libflatbuffers.a
[  7%] Building CXX object _deps/flatbuffers-build/CMakeFiles/flatc.dir/src/idl_gen_csharp.cpp.o
[  7%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/io/zero_copy_stream.cc.o
1 error generated.
[  7%] Built target flatbuffers
make[2]: *** [_deps/googletest-build/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o] Error 1
make[1]: *** [_deps/googletest-build/googletest/CMakeFiles/gtest.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[  7%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf-lite.dir/src/google/protobuf/inlined_string_field.cc.o
[  7%] Building CXX object CMakeFiles/onnxruntime_mocked_allocator.dir/Users/raj/Documents/onnxruntime/onnxruntime/test/util/test_allocator.cc.o
[  7%] Building CXX object _deps/google_nsync-build/CMakeFiles/nsync_cpp.dir/cpp/platform/c++11/src/time_rep_timespec.cc.o
[  7%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf-lite.dir/src/google/protobuf/io/coded_stream.cc.o
[  7%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/io/zero_copy_stream_impl.cc.o
[  7%] Building CXX object _deps/google_nsync-build/CMakeFiles/nsync_cpp.dir/cpp/platform/c++11/src/nsync_panic.cc.o
[  7%] Building CXX object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/pooling.cpp.o
[  7%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf-lite.dir/src/google/protobuf/io/io_win32.cc.o
[  7%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf-lite.dir/src/google/protobuf/io/strtod.cc.o
[  7%] Building CXX object _deps/flatbuffers-build/CMakeFiles/flatc.dir/src/idl_gen_dart.cpp.o
[  7%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/io/zero_copy_stream_impl_lite.cc.o
[  7%] Building CXX object _deps/google_nsync-build/CMakeFiles/nsync_cpp.dir/cpp/platform/c++11/src/nsync_semaphore_mutex.cc.o
[  7%] Linking CXX static library libonnxruntime_mocked_allocator.a
[  7%] Built target onnxruntime_mocked_allocator
[  7%] Building CXX object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/transpose.cpp.o
[  7%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf-lite.dir/src/google/protobuf/io/zero_copy_stream.cc.o
[  7%] Building CXX object _deps/google_nsync-build/CMakeFiles/nsync_cpp.dir/cpp/platform/posix/src/clock_gettime.c.o
[  7%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/map.cc.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
[  7%] Building CXX object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/reorder.cpp.o
[  7%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf-lite.dir/src/google/protobuf/io/zero_copy_stream_impl.cc.o
[  7%] Building CXX object _deps/google_nsync-build/CMakeFiles/nsync_cpp.dir/cpp/platform/posix/src/nsync_semaphore_mutex.c.o
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
[  8%] Building CXX object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/snchwc.cpp.o
[  8%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf-lite.dir/src/google/protobuf/io/zero_copy_stream_impl_lite.cc.o
[  8%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/message_lite.cc.o
[  8%] Linking CXX static library libnsync_cpp.a
[  8%] Built target nsync_cpp
[  8%] Building CXX object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/activate.cpp.o
[  8%] Building CXX object _deps/flatbuffers-build/CMakeFiles/flatc.dir/src/idl_gen_kotlin.cpp.o
[  8%] Building CXX object _deps/flatbuffers-build/CMakeFiles/flatc.dir/src/idl_gen_go.cpp.o
[  9%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf-lite.dir/src/google/protobuf/map.cc.o
[  9%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/parse_context.cc.o
[  9%] Building CXX object _deps/flatbuffers-build/CMakeFiles/flatc.dir/src/idl_gen_java.cpp.o
[  9%] Building CXX object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/logistic.cpp.o
[  9%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf-lite.dir/src/google/protobuf/message_lite.cc.o
[  9%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/repeated_field.cc.o
[  9%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf-lite.dir/src/google/protobuf/parse_context.cc.o
[  9%] Building CXX object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/tanh.cpp.o
[  9%] Building CXX object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/erf.cpp.o
[  9%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf-lite.dir/src/google/protobuf/repeated_field.cc.o
[  9%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/repeated_ptr_field.cc.o
[  9%] Building CXX object _deps/flatbuffers-build/CMakeFiles/flatc.dir/src/idl_gen_js_ts.cpp.o
[  9%] Building CXX object _deps/flatbuffers-build/CMakeFiles/flatc.dir/src/idl_gen_php.cpp.o
[  9%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/bytestream.cc.o
[  9%] Building CXX object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/compute.cpp.o
[  9%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf-lite.dir/src/google/protobuf/repeated_ptr_field.cc.o
[  9%] Building CXX object _deps/flatbuffers-build/CMakeFiles/flatc.dir/src/idl_gen_python.cpp.o
[  9%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf-lite.dir/src/google/protobuf/stubs/bytestream.cc.o
[  9%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/common.cc.o
[  9%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf-lite.dir/src/google/protobuf/stubs/common.cc.o
[  9%] Building CXX object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/quantize.cpp.o
[  9%] Building CXX object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/qgemm_kernel_default.cpp.o
[  9%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/int128.cc.o
[  9%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf-lite.dir/src/google/protobuf/stubs/int128.cc.o
[  9%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/status.cc.o
[  9%] Building CXX object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/qladd.cpp.o
[  9%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf-lite.dir/src/google/protobuf/stubs/status.cc.o
[ 10%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/statusor.cc.o
[ 10%] Building CXX object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/qlmul.cpp.o
[ 10%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf-lite.dir/src/google/protobuf/stubs/statusor.cc.o
[ 10%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/stringpiece.cc.o
[ 10%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/stringprintf.cc.o
[ 10%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf-lite.dir/src/google/protobuf/stubs/stringpiece.cc.o
[ 10%] Building CXX object _deps/flatbuffers-build/CMakeFiles/flatc.dir/src/idl_gen_lobster.cpp.o
[ 10%] Building CXX object _deps/flatbuffers-build/CMakeFiles/flatc.dir/src/idl_gen_lua.cpp.o
[ 10%] Building CXX object _deps/flatbuffers-build/CMakeFiles/flatc.dir/src/idl_gen_rust.cpp.o
[ 10%] Building CXX object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/qpostprocessor.cpp.o
[ 10%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf-lite.dir/src/google/protobuf/stubs/stringprintf.cc.o
[ 10%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/structurally_valid.cc.o
[ 10%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/strutil.cc.o
[ 10%] Building CXX object _deps/flatbuffers-build/CMakeFiles/flatc.dir/src/idl_gen_fbs.cpp.o
[ 10%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf-lite.dir/src/google/protobuf/stubs/structurally_valid.cc.o
[ 11%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf-lite.dir/src/google/protobuf/stubs/strutil.cc.o
[ 11%] Building CXX object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/qlgavgpool.cpp.o
[ 11%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/time.cc.o
[ 11%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf-lite.dir/src/google/protobuf/stubs/time.cc.o
[ 11%] Building CXX object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/qdwconv_kernelsize.cpp.o
[ 12%] Building CXX object _deps/flatbuffers-build/CMakeFiles/flatc.dir/src/idl_gen_grpc.cpp.o
[ 12%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/wire_format_lite.cc.o
[ 12%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/any.cc.o
[ 13%] Building CXX object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/q4_dq.cpp.o
[ 13%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf-lite.dir/src/google/protobuf/wire_format_lite.cc.o
[ 13%] Building CXX object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/q4gemm.cpp.o
[ 13%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/any.pb.cc.o
[ 13%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/api.pb.cc.o
[ 13%] Building CXX object _deps/flatbuffers-build/CMakeFiles/flatc.dir/src/idl_gen_json_schema.cpp.o
[ 13%] Building CXX object _deps/flatbuffers-build/CMakeFiles/flatc.dir/src/idl_gen_swift.cpp.o
[ 13%] Building ASM object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/aarch64/ConvSymS8KernelDot.S.o
[ 13%] Building ASM object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/aarch64/ConvSymS8KernelDotLd64.S.o
[ 13%] Linking CXX static library libprotobuf-lite.a
[ 13%] Building ASM object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/aarch64/ConvSymU8KernelDot.S.o
[ 13%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/compiler/importer.cc.o
[ 13%] Building ASM object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/aarch64/ConvSymS8KernelNeon.S.o
[ 13%] Built target libprotobuf-lite
[ 13%] Building CXX object _deps/flatbuffers-build/CMakeFiles/flatc.dir/src/flatc.cpp.o
[ 13%] Building CXX object _deps/flatbuffers-build/CMakeFiles/flatc.dir/src/flatc_main.cpp.o
[ 13%] Building ASM object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/aarch64/ConvSymU8KernelNeon.S.o
[ 13%] Building ASM object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/aarch64/DepthwiseQConvSymS8KernelNeon.S.o
[ 13%] Building ASM object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/aarch64/DepthwiseQConvSymU8KernelNeon.S.o
[ 13%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/compiler/parser.cc.o
[ 13%] Building ASM object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/aarch64/DepthwiseQConvKernelSize9Neon.S.o
[ 13%] Building ASM object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/aarch64/QgemmU8X8KernelNeon.S.o
[ 13%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/descriptor.cc.o
[ 13%] Building ASM object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/aarch64/QgemmS8S8KernelNeon.S.o
[ 14%] Building ASM object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/aarch64/QgemmU8X8KernelUdot.S.o
[ 14%] Building ASM object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/aarch64/QgemmS8S8KernelSdot.S.o
[ 15%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/descriptor.pb.cc.o
[ 15%] Building ASM object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/aarch64/SgemmKernelNeon.S.o
[ 15%] Building ASM object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/aarch64/SgemvKernelNeon.S.o
[ 15%] Building CXX object _deps/flatbuffers-build/CMakeFiles/flatc.dir/src/code_generators.cpp.o
[ 15%] Building CXX object _deps/flatbuffers-build/CMakeFiles/flatc.dir/grpc/src/compiler/cpp_generator.cc.o
[ 15%] Building ASM object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/aarch64/SymQgemmS8KernelNeon.S.o
[ 15%] Building ASM object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/aarch64/SymQgemmS8KernelSdot.S.o
[ 15%] Building ASM object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/aarch64/SymQgemmS8KernelSdotLd64.S.o
[ 15%] Building CXX object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/qgemm_kernel_neon.cpp.o
[ 15%] Building CXX object _deps/flatbuffers-build/CMakeFiles/flatc.dir/grpc/src/compiler/go_generator.cc.o
[ 15%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/descriptor_database.cc.o
[ 15%] Building CXX object _deps/flatbuffers-build/CMakeFiles/flatc.dir/grpc/src/compiler/java_generator.cc.o
[ 15%] Building CXX object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/qgemm_kernel_udot.cpp.o
[ 15%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/duration.pb.cc.o
[ 15%] Building CXX object _deps/flatbuffers-build/CMakeFiles/flatc.dir/grpc/src/compiler/python_generator.cc.o
[ 15%] Building CXX object CMakeFiles/onnxruntime_mlas.dir/Users/raj/Documents/onnxruntime/onnxruntime/core/mlas/lib/qgemm_kernel_sdot.cpp.o
[ 15%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/dynamic_message.cc.o
[ 15%] Building CXX object _deps/flatbuffers-build/CMakeFiles/flatc.dir/grpc/src/compiler/swift_generator.cc.o
[ 15%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/empty.pb.cc.o
[ 15%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/extension_set_heavy.cc.o
[ 15%] Linking CXX static library libonnxruntime_mlas.a
[ 15%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/field_mask.pb.cc.o
[ 15%] Built target onnxruntime_mlas
[ 15%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/generated_message_bases.cc.o
[ 15%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/generated_message_reflection.cc.o
[ 15%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/generated_message_tctable_full.cc.o
[ 15%] Linking CXX executable flatc
[ 15%] Built target flatc
[ 15%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/io/gzip_stream.cc.o
[ 15%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/io/printer.cc.o
[ 16%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/io/tokenizer.cc.o
[ 16%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/map_field.cc.o
[ 16%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/message.cc.o
[ 16%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/reflection_ops.cc.o
[ 16%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/service.cc.o
[ 16%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/source_context.pb.cc.o
[ 16%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/struct.pb.cc.o
[ 16%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/substitute.cc.o
[ 16%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/text_format.cc.o
[ 16%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/timestamp.pb.cc.o
[ 16%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/type.pb.cc.o
[ 16%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/unknown_field_set.cc.o
[ 16%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/delimited_message_util.cc.o
[ 17%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/field_comparator.cc.o
[ 17%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/field_mask_util.cc.o
[ 17%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/datapiece.cc.o
[ 17%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/default_value_objectwriter.cc.o
[ 17%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/error_listener.cc.o
[ 17%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/field_mask_utility.cc.o
[ 17%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/json_escaping.cc.o
[ 17%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/json_objectwriter.cc.o
[ 17%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/json_stream_parser.cc.o
[ 17%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/object_writer.cc.o
[ 17%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/proto_writer.cc.o
[ 17%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/protostream_objectsource.cc.o
[ 17%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/protostream_objectwriter.cc.o
[ 18%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/type_info.cc.o
[ 18%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/utility.cc.o
[ 18%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/json_util.cc.o
[ 18%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/message_differencer.cc.o
[ 18%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/time_util.cc.o
[ 18%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/type_resolver_util.cc.o
[ 18%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/wire_format.cc.o
[ 18%] Building CXX object _deps/protobuf-build/CMakeFiles/libprotobuf.dir/src/google/protobuf/wrappers.pb.cc.o
[ 18%] Linking CXX static library libprotobuf.a
[ 18%] Built target libprotobuf
make: *** [all] Error 2
Traceback (most recent call last):
  File "/Users/raj/Documents/onnxruntime/tools/ci_build/build.py", line 2699, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Users/raj/Documents/onnxruntime/tools/ci_build/build.py", line 2592, in main
    build_targets(args, cmake_path, build_dir, configs, num_parallel_jobs, args.target)
  File "/Users/raj/Documents/onnxruntime/tools/ci_build/build.py", line 1496, in build_targets
    run_subprocess(cmd_args, env=env)
  File "/Users/raj/Documents/onnxruntime/tools/ci_build/build.py", line 801, in run_subprocess
    return run(*args, cwd=cwd, capture_stdout=capture_stdout, shell=shell, env=my_env)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/raj/Documents/onnxruntime/tools/python/util/run.py", line 49, in run
    completed_process = subprocess.run(
                        ^^^^^^^^^^^^^^^
  File "/Users/kishore-17103/anaconda3/lib/python3.11/subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/opt/homebrew/bin/cmake', '--build', '/Users/raj/Documents/onnxruntime/build/MacOS/Release', '--config', 'Release', '--', '-j8']' returned non-zero exit status 2.

@snnn snnn added contributions welcome lower priority issues for the core ORT teams feature request request for unsupported feature or enhancement labels Oct 20, 2023
@intcreator
Copy link

intcreator commented Nov 23, 2023

were you able to figure out a solution? I got this same error and I'm not even sure what the issue is even after looking at the code referenced in the stack trace

Intel MacBook Pro Mid-2014
MacOS 10.14.4
Python 3.11.6

@kishorekaruppusamy
Copy link
Author

i am too even not sure what is issue with the build and i didn't get any solution to build source distribution till now ..

@Craigacp
Copy link
Contributor

I've hit the same build issue on an M1 when trying to build the Java API, the fix for me was to apply this patch:

diff --git a/cmake/external/onnxruntime_external_deps.cmake b/cmake/external/onnxruntime_external_deps.cmake
index 78f63227c8..58317a59a5 100644
--- a/cmake/external/onnxruntime_external_deps.cmake
+++ b/cmake/external/onnxruntime_external_deps.cmake
@@ -37,7 +37,7 @@ if (onnxruntime_BUILD_UNIT_TESTS)
     set(gtest_disable_pthreads ON)
   endif()
   set(INSTALL_GTEST OFF CACHE BOOL "" FORCE)
-  if (CMAKE_SYSTEM_NAME STREQUAL "iOS")
+  if (CMAKE_SYSTEM_NAME STREQUAL "iOS" OR CMAKE_SYSTEM_NAME STREQUAL "Darwin")
     # Needs to update onnxruntime/test/xctest/xcgtest.mm
     set(GTEST_HAS_ABSL OFF CACHE BOOL "" FORCE)
   else()

Not sure why googletest & absl don't play together nicely on macOS/ARM64, maybe something has gone wrong in the platform detection?

@moondayyy
Copy link

moondayyy commented Jan 12, 2024

I am getting the same error on Linux Ubuntu x86_64. is there a solution?

@TheGoszki
Copy link

I've hit the same build issue on an M1 when trying to build the Java API, the fix for me was to apply this patch:

diff --git a/cmake/external/onnxruntime_external_deps.cmake b/cmake/external/onnxruntime_external_deps.cmake
index 78f63227c8..58317a59a5 100644
--- a/cmake/external/onnxruntime_external_deps.cmake
+++ b/cmake/external/onnxruntime_external_deps.cmake
@@ -37,7 +37,7 @@ if (onnxruntime_BUILD_UNIT_TESTS)
     set(gtest_disable_pthreads ON)
   endif()
   set(INSTALL_GTEST OFF CACHE BOOL "" FORCE)
-  if (CMAKE_SYSTEM_NAME STREQUAL "iOS")
+  if (CMAKE_SYSTEM_NAME STREQUAL "iOS" OR CMAKE_SYSTEM_NAME STREQUAL "Darwin")
     # Needs to update onnxruntime/test/xctest/xcgtest.mm
     set(GTEST_HAS_ABSL OFF CACHE BOOL "" FORCE)
   else()

Not sure why googletest & absl don't play together nicely on macOS/ARM64, maybe something has gone wrong in the platform detection?

I have the same issue on Mac M1 max. The suggested patch didn't fix the issue for me unfortunately :(

@BowenBao
Copy link
Contributor

BowenBao commented Feb 8, 2024

Also getting this error when building from acpt docker image.

fatal error: 'absl/strings/internal/has_absl_stringify.h' file not found
#include "absl/strings/internal/has_absl_stringify.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@pranavsharma, @thiagocrepaldi

@thiagocrepaldi
Copy link
Contributor

@snnn maybe you could help with this? This is important for us to be work on llama v2 optimization

@BowenBao
Copy link
Contributor

BowenBao commented Feb 9, 2024

fatal error: 'absl/strings/internal/has_absl_stringify.h' file not found
#include "absl/strings/internal/has_absl_stringify.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Adding --cmake_extra_defines FETCHCONTENT_TRY_FIND_PACKAGE_MODE=NEVER to build command fixed the issue for me.

@titaiwangms
Copy link
Contributor

fatal error: 'absl/strings/internal/has_absl_stringify.h' file not found
#include "absl/strings/internal/has_absl_stringify.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Adding --cmake_extra_defines FETCHCONTENT_TRY_FIND_PACKAGE_MODE=NEVER to build command fixed the issue for me.

This works for me too

@kishorekaruppusamy
Copy link
Author

@titaiwangms great !!!

@BowenBao can you able to share the steps here right from cloning the repo for building this ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build build issues; typically submitted using template contributions welcome lower priority issues for the core ORT teams feature request request for unsupported feature or enhancement
Projects
None yet
Development

No branches or pull requests

9 participants