Skip to content
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

rust-lld broken on latest x86_64-apple-darwin nightly #76698

Closed
phil-opp opened this issue Sep 14, 2020 · 9 comments · Fixed by #76708 or #76810
Closed

rust-lld broken on latest x86_64-apple-darwin nightly #76698

phil-opp opened this issue Sep 14, 2020 · 9 comments · Fixed by #76708 or #76810
Labels
C-bug Category: This is a bug. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.

Comments

@phil-opp
Copy link
Contributor

The bundled rust-lld linker seems to be broken on macOS on the latest nightly (2020-09-13). The following error occurs:

error: linking with `rust-lld` failed: signal: 6
  |
  = note: "rust-lld" "-flavor" "gnu" "--eh-frame-hdr" […]
  = note: dyld: Library not loaded: @rpath/libLLVM.dylib
            Referenced from: /Users/runner/work/x86_64/x86_64/testing/target/sysroot/lib/rustlib/x86_64-apple-darwin/bin/rust-lld
            Reason: image not found

It worked fine with yesterdays nightly (2020-09-12). The exact version numbers are listed below.

Judging from the diff between these two nightlies, this might be caused by #76349. cc @Mark-Simulacrum

Meta

Failed on:

rustc 1.48.0-nightly (7402a39 2020-09-13)
binary: rustc
commit-hash: 7402a39
commit-date: 2020-09-13
host: x86_64-apple-darwin
release: 1.48.0-nightly
LLVM version: 11.0
cargo 1.48.0-nightly (875e01232 2020-09-08)
release: 1.48.0
commit-hash: 875e0123259b0b6299903fe4aea0a12ecde9324f
commit-date: 2020-09-08

Worked on:

rustc 1.48.0-nightly (dbb73f8 2020-09-12)
binary: rustc
commit-hash: dbb73f8
commit-date: 2020-09-12
host: x86_64-apple-darwin
release: 1.48.0-nightly
LLVM version: 11.0
cargo 1.48.0-nightly (875e01232 2020-09-08)
release: 1.48.0
commit-hash: 875e0123259b0b6299903fe4aea0a12ecde9324f
commit-date: 2020-09-08

@phil-opp phil-opp added the C-bug Category: This is a bug. label Sep 14, 2020
@jonas-schievink jonas-schievink added the T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. label Sep 14, 2020
@Mark-Simulacrum
Copy link
Member

I'm testing a possible fix in #76708.

@phil-opp
Copy link
Contributor Author

Unfortunately I'm still getting the same rust-lld error on nightly 2020-09-16 (285fc7d):

error: linking with rust-lld failed: signal: 6
[…]
= note: dyld: Library not loaded: @rpath/libLLVM.dylib
Referenced from: /Users/runner/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/bin/rust-lld
Reason: image not found

@Mark-Simulacrum
Copy link
Member

Yeah, it turned out that due to a bash bug the PR that landed didn't actually have any effect, I'm working on a better fix in #76810.

@berkus
Copy link
Contributor

berkus commented Sep 20, 2020

Hi, any news on this?

berkus added a commit to metta-systems/vesper that referenced this issue Sep 20, 2020
@Mark-Simulacrum
Copy link
Member

The state as of 3 days ago (#76698 (comment)) reported in this thread is still accurate.

berkus added a commit to metta-systems/vesper that referenced this issue Sep 21, 2020
Until macOS build is fixed, see
rust-lang/rust#76698

Explain rust version requirements in README.
@bors bors closed this as completed in 0da5800 Sep 22, 2020
@brightzheng100
Copy link

I tried the nightly-2020-09-12 but this build doesn't exist so I switched to nightly-2020-09-11 and it worked.

Interestingly, while I retried it today, as of 23 Sept 2020 SGT, it also worked perfectly fine so I believe the latest nightly builds have fixed this issue.

@berkus
Copy link
Contributor

berkus commented Oct 5, 2020

Well well well, lets see.

Seems to work indeed!

@badkk
Copy link

badkk commented Nov 16, 2020

I pretty much sure this bug turns back on nightly-2020-10-06

rustc 1.49.0-nightly (a1dfd2490 2020-10-05)
binary: rustc
commit-hash: a1dfd2490a6cb456b92e469fa550dc217e20ad6d
commit-date: 2020-10-05
host: x86_64-apple-darwin
release: 1.49.0-nightly
LLVM version: 11.0

@Mark-Simulacrum
Copy link
Member

That nightly is pretty old, could you test with a more recent nightly and file a new issue if you can reproduce?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.
Projects
None yet
6 participants