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

"dyld: Library not loaded" on macOS in crate with rust-toolchain file #47

Open
jbg opened this issue Jan 29, 2019 · 2 comments
Open

"dyld: Library not loaded" on macOS in crate with rust-toolchain file #47

jbg opened this issue Jan 29, 2019 · 2 comments
Labels
environment good first issue Good for newcomers help wanted Extra attention is needed

Comments

@jbg
Copy link

jbg commented Jan 29, 2019

After cargo install cargo-geiger on macOS, trying to run it against a crate with a rust-toolchain file (info) in its root fails with a dynamic linking error:

$ cargo geiger
dyld: Library not loaded: @rpath/libproc_macro-4f1d545c303aa6cd.dylib
  Referenced from: /Users/.../.cargo/bin/cargo-geiger
  Reason: image not found
Abort trap: 6
@anderejd
Copy link
Contributor

Interesting! Thanks for the report.

I've seen similar errors after running rustup update and I think it could have something to do with cargo linking to some dynamic library that is part of the Rust tools installation, but I'm just guessing now.

Do you have a theory on why this error occurs?

@anderejd anderejd added enhancement New feature or request help wanted Extra attention is needed labels Mar 16, 2019
@pinkforest
Copy link
Collaborator

We've had bunch of updates to cargo over the .. two years

And rust has had a lot of updates..

I have no way to replicate this issue at the moment -

@jbg mind sharing the crate as repro if it's public?

This seems to be very environment related issue that will be hard to tackle without repro

It seems to be some dynamic linking messing things

https://stackoverflow.com/a/17704255

@pinkforest pinkforest added environment question Further information is requested help wanted Extra attention is needed good first issue Good for newcomers and removed enhancement New feature or request help wanted Extra attention is needed question Further information is requested labels Jan 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
environment good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants