Skip to content

Rust cannot use universal LLVM on macOS #50220

Open
@MarcusCalhoun-Lopez

Description

@MarcusCalhoun-Lopez

I install Rust using MacPorts on macOS.
Rust was recently updated from 1.24.1 to 1.25.0.
For version 1.24.1, the Rust compiler did not seem to care if LLVM was built as a universal binary.
Starting with version 1.25.0, I get the error

error: failed to add native library /opt/local/libexec/llvm-6.0/lib/libLLVMX86Disassembler.a: File too small to be an archive

Rust was compiled with --llvm-root=/opt/local/libexec/llvm-6.0.
If I reinstall LLVM so it is not universal, Rust compiles correctly.
There is a MacPorts bug report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-bugCategory: This is a bug.O-macosOperating system: macOST-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions