Skip to content

Compiling to Apple's arm64e got linking error! #138481

Open
@Wyvern

Description

@Wyvern

When compiling to Apple's arm64e targets arm64e-apple-ios arm64e-apple-tvos arm64e-apple-darwin using -Zbuild-stdgot linking error:

linking with `cc` failed: exit status: 1
          rust-lld: error: INVALID relocation has width 8 bytes, but must be 0 bytes at offset 128 of __DATA,__data in /var/folders/r4/ph658m2d3vs0vj00g75q0zyr0000gn/T/rustcj3lmdR/symbols.o
          rust-lld: error: INVALID relocation has width 8 bytes, but must be 0 bytes at offset 0 of __DATA,__data in /var/folders/r4/ph658m2d3vs0vj00g75q0zyr0000gn/T/rustcj3lmdR/symbols.o
          clang: error: linker command failed with exit code 1 (use -v to see invocation)

Rust: 1.87.0-nightly (cbfdf0b 2025-03-13)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.A-linkageArea: linking into static, shared libraries and binariesO-macosOperating system: macOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions