Skip to content

lld-wrapper failed on Darwin #97755

Closed
@tschuett

Description

@tschuett

lld-wrapper is unhappy.

I tried this code:

 RUSTFLAGS='-Z gcc-ld=lld -C target-cpu=native' cargo +nightly run --release

Instead, this happened:

 = note: lld-wrapper: -rustc-lld-flavor=<flavor> is not passed
          clang: error: linker command failed with exit code 1 (use -v to see invocation)
... x86_64-apple-darwin/bin/gcc-ld" "-Wl,-rustc-lld-flavor=darwin ...

Meta

rustc --version --verbose:

rustc +nightly --version --verbose
rustc 1.63.0-nightly (e71440575 2022-06-02)
binary: rustc
commit-hash: e71440575c930dcecac288b7c3536410d688b351
commit-date: 2022-06-02
host: x86_64-apple-darwin
release: 1.63.0-nightly
LLVM version: 14.0.4
Backtrace

<backtrace>

Note that this worked for months. This is a regression for me.

Metadata

Metadata

Assignees

Labels

C-bugCategory: This is a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions