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 fails with "dyld: Library not loaded: @rpath/libLLVM.dylib" on rustc 1.48.0-nightly (bbc677480 2020-09-18) #76921

Closed
ssundarr3 opened this issue Sep 19, 2020 · 1 comment
Labels
C-bug Category: This is a bug.

Comments

@ssundarr3
Copy link

rust-lld --help fails on rustc 1.48 nightly (it seems libLLVM.dylib is not included in this nightly version):

➜  ~ rustc --version
rustc 1.48.0-nightly (bbc677480 2020-09-18)
➜  ~ $(rustc --print sysroot)/lib/rustlib/x86_64-apple-darwin/bin/rust-lld --help
dyld: Library not loaded: @rpath/libLLVM.dylib
  Referenced from: /Users/shridhar/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/bin/rust-lld
  Reason: image not found
[1]    1641 abort      $(rustc --print sysroot)/lib/rustlib/x86_64-apple-darwin/bin/rust-lld --help

It works on rustc 1.46.0 (04488afe3 2020-08-24):

➜  ~ rustc --version
rustc 1.46.0 (04488afe3 2020-08-24)
➜  ~ $(rustc --print sysroot)/lib/rustlib/x86_64-apple-darwin/bin/rust-lld --help
lld is a generic driver.
Invoke ld.lld (Unix), ld64.lld (macOS), lld-link (Windows), wasm-ld (WebAssembly) instead

This issue was fixed in rustc 1.30.0-nightly here. And it also works for me on rustc 1.30.0-nightly:

➜  ~ rustc --version
rustc 1.30.0-nightly (2f1547c0a 2018-09-11)
➜  ~ $(rustc --print sysroot)/lib/rustlib/x86_64-apple-darwin/bin/rust-lld --help
lld is a generic driver.
Invoke ld.lld (Unix), ld64.lld (macOS), lld-link (Windows), wasm-lld (WebAssembly) instead

I am on MacOS Catalina version 10.15.16.

@ssundarr3 ssundarr3 added the C-bug Category: This is a bug. label Sep 19, 2020
@jyn514
Copy link
Member

jyn514 commented Sep 19, 2020

Duplicate of #76698

@jyn514 jyn514 marked this as a duplicate of #76698 Sep 19, 2020
@jyn514 jyn514 closed this as completed Sep 19, 2020
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.
Projects
None yet
Development

No branches or pull requests

2 participants