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

clippy crashes #26

Closed
onsails opened this issue Apr 18, 2021 · 0 comments · Fixed by #27
Closed

clippy crashes #26

onsails opened this issue Apr 18, 2021 · 0 comments · Fixed by #27

Comments

@onsails
Copy link

onsails commented Apr 18, 2021

I am using rust-overlay on c2d1394.
Toolchain is added to my nix-shell buildInputs as rust-bin.fromRustupToolchainFile ../rust-toolchain.toml where rust-toolchain.toml is:

[toolchain]
channel = "stable"
components = [ "rustfmt" "clippy" ]
profile = "default"

cargo build works correctly but cargo clippy fails with the following error:

error: failed to run `rustc` to learn about target-specific information

Caused by:
  process didn't exit successfully: `/nix/store/5jfffagi38mwggzphsfj8vgy0vr3lxkm-rust-default-1.51.0/bin/clippy-driver rustc - --crate-name ___ --print=file-names --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=cfg` (signal: 6, SIGABRT: process abort signal)
  --- stderr
  dyld: Library not loaded: @rpath/librustc_driver-7037e29e292ceb50.dylib
    Referenced from: /nix/store/5jfffagi38mwggzphsfj8vgy0vr3lxkm-rust-default-1.51.0/bin/clippy-driver
    Reason: image not found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant