Summary
Since the macos-latest runner image moved to Xcode 26.5 / clang 21, macos-check's cargo test --features full fails at the link step:
ld: library 'clang_rt.osx' not found
The cc link line already contains -L /Applications/Xcode_26.5.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/21/lib/darwin and -lclang_rt.osx, but libclang_rt.osx.a is not present in that directory on the 26.5 image. The Xcode 26.5/clang 21 toolchain appears to have relocated or renamed the macOS clang_rt bundle.
Scope
Options to consider
- Pin
macos-check to macos-14 (Xcode 15.x, which ships clang_rt) until GitHub stabilizes the 26.5 image.
- Resolve the clang_rt path on the 26.5 image (new location/name under clang 21) and inject it via
RUSTFLAGS.
- Keep
macos-check non-blocking and rely on release-link-check (Linux/Windows static + ubuntu-22.04 dynamic) for the ort link regression guard, since macOS is the only target with this environment breakage.
Environment
Summary
Since the
macos-latestrunner image moved to Xcode 26.5 / clang 21,macos-check'scargo test --features fullfails at the link step:The cc link line already contains
-L /Applications/Xcode_26.5.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/21/lib/darwinand-lclang_rt.osx, butlibclang_rt.osx.ais not present in that directory on the 26.5 image. The Xcode 26.5/clang 21 toolchain appears to have relocated or renamed the macOS clang_rt bundle.Scope
-lclang_rt.osx); the runtime provider is Xcode.--all-features→--features fullmade the static ort link real on macOS (previously--all-featuresenabled the brokenembedding-fastembed-dynamic-linking, which skipped the static link entirely — somacos-checkpassed without ever linking the ONNX archive).macos-check; rerunning on the 26.5 image fails deterministically.Options to consider
macos-checktomacos-14(Xcode 15.x, which ships clang_rt) until GitHub stabilizes the 26.5 image.RUSTFLAGS.macos-checknon-blocking and rely onrelease-link-check(Linux/Windows static + ubuntu-22.04 dynamic) for the ort link regression guard, since macOS is the only target with this environment breakage.Environment
macos-latestrunner, Xcode 26.5, clang 21=2.0.0-rc.12(static archive), fastembed 5