-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[Build] Build script for MacOS fails for targets older than 13.4 because tests can not be built #24277
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
Comments
Oh well. x86_64 build fails with Xcode 16.3 because of this too:
|
Please use an older version of ONNX Runtime, or increase the target OS version. |
Our packaging pipeline set MACOSX_DEPLOYMENT_TARGET to be 13.3 and it works well: But you were saying 13.4 . Probably it is an SDK issue? Our pipelines use XCode 15.3.0. Yours are newer. |
It is related to PR #17361 , which increased the min MacOS version to 13.3. |
I doubt that Apple has retroactively removed |
I can confirm increasing (And btw. |
The mlas issue is the same as #23180 |
Describe the issue
According to https://onnxruntime.ai/docs/build/inferencing.html, "By default, ONNX Runtime is configured to be built for a minimum target macOS version of 10.12." In practice, when the runtime is built without specifying a target OS it is built for the major OS version the build machine is running (15.0 when building on 15.4 in my case). When the
--apple_deploy_target
argument is set to anything less than 13.4, the build fails because the tests are using functionality that is not available on older MacOS versions. The runtime itself is compiled, but I couldn't find an option to disable building the tests.Urgency
No response
Target platform
MacOS
Build script
./build.sh --cmake_generator Ninja --config Release --skip_submodule_sync --skip_tests --build_shared_lib --apple_deploy_target 10.15 --minimal_build --cmake_extra_defines CMAKE_OSX_ARCHITECTURES="x86_64;arm64" CMAKE_IGNORE_PATH=/opt/homebrew
Error / output
The first error is
Visual Studio Version
No response
GCC / Compiler Version
Xcode 15.4 and 16.3, SDK 16.3
The text was updated successfully, but these errors were encountered: