-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Invalid metadata for arm64e due to Xcode 15+ on ARM64e macOS #130834
Comments
Hi @bjorn3, Could you please share your thoughts about this issue? |
It seems that Apple has changed the Mach-O machine identifier for arm64e with the latest XCode version: #130085 Rustc still uses the old machine identifier for the metadata object file, which would cause the linker to ignore it with the latest XCode version. What is surprising to me however if you are using the latest XCode version is that linking would succeed at all as LLVM also uses the old machine identifier. |
Thank you so much! It seems you are right. I forgot about it because we didn't get linker errors.
I have two builds. One of them has config.toml
Building stage2 library artifacts (x86_64-apple-darwin -> arm64e-apple-darwin)
[TIMING] core::build_steps::compile::Std { target: arm64e-apple-darwin, compiler: Compiler { stage: 2, host: x86_64-apple-darwin }, crates: [], force_recompile: false, extra_rust_args: [], is_for_mir_opt_tests: false } -- 0.362 But if we build the target with this configuration on Building compiler artifacts (stage1 -> stage2, aarch64-apple-darwin)
error[E0786]: found invalid metadata files for crate `zerocopy_derive` So, we have to use Would it be a good idea to add some checks to |
WG-prioritization assigning priority (Zulip discussion). cc @rust-lang/bootstrap about the suggestion to forcing using @rustbot label -I-prioritize +P-high |
I tried to compile
arm64e-apple-darwin
onaarch64
(ARM-based CPU)macOS
. So, I got the following errorerror[E0786]: found invalid metadata files for crate `zerocopy_derive`
This issue can be reproduced only on aarch64 (ARM-based CPU)
macOS
.See google/zerocopy#1739
See llvm/llvm-project#79543
Blocked by llvm/llvm-project#80200
Relates to #130085
The text was updated successfully, but these errors were encountered: