You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
XCode 14 and older rustup installed rustc versions are incompatible #105167
With the update to xcode 14 older rustc versions installed from rustup are failing with an error that looks like this:
= note: ld: in /Users/mitsuhiko/.rustup/toolchains/1.51.0-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-68aa428439efc3d3.rlib(lib.rmeta),
archive member 'lib.rmeta' with length 33472 is not mach-o or llvm bitcode file
'/Users/mitsuhiko/.rustup/toolchains/1.51.0-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_unwind-68aa428439efc3d3.rlib' for architecture arm64
From testing 1.54.0 and 1.56.0 and latest is fine, 1.51 and 1.53 are not.
Since those are rather old Rust versions I assume there is not a lot of reason to do something about it, but I figured I report it because I wasn't sure if this was supposed to happen and maybe someone else will also stumble upon it. I noticed it because I had an override set to my MSRV on a library.
I believe this is a known issue. It was fixed by #84449. I think the only workaround is to use an older xcode, or to use another linker. Rumors are that mold doesn't complain, though that might just be by luck.
For users hitting the "not mach-o or llvm bitcode file" error in GitHub Actions, the solution is to use runs-on: macos-11 on Rust versions below 1.54, rather than runs-on: macos-latest.
Activity
ehuss commentedon Dec 2, 2022
I believe this is a known issue. It was fixed by #84449. I think the only workaround is to use an older xcode, or to use another linker. Rumors are that mold doesn't complain, though that might just be by luck.
bjorn3 commentedon Dec 12, 2022
That might be that mold is based on an older version of apple's ld from before this breaking change.
Skip MSRV test for macOS
Skip MSRV test for macOS
Skip MSRV test for macOS
Skip MSRV test for macOS
Fix macos CI builds (#15)
dtolnay commentedon Sep 19, 2023
I don't expect this is actionable in rustc.
For users hitting the "not mach-o or llvm bitcode file" error in GitHub Actions, the solution is to use
runs-on: macos-11on Rust versions below 1.54, rather thanruns-on: macos-latest.bump rust-toolchain to 1.54 for aarch64-apple-darwin