Skip to content

ci(macos): Xcode 26.5 clang 21 libclang_rt.osx.a missing — breaks macos-check static link #57

Description

@epicsagas

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

  1. Pin macos-check to macos-14 (Xcode 15.x, which ships clang_rt) until GitHub stabilizes the 26.5 image.
  2. Resolve the clang_rt path on the 26.5 image (new location/name under clang 21) and inject it via RUSTFLAGS.
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions