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

Cargo.lock contains old versions of dependencies #8

Closed
kirch7 opened this issue Mar 20, 2018 · 1 comment
Closed

Cargo.lock contains old versions of dependencies #8

kirch7 opened this issue Mar 20, 2018 · 1 comment

Comments

@kirch7
Copy link
Contributor

kirch7 commented Mar 20, 2018

Reproduction

cd nucleon
cargo build

Errors

   --> /home/kirch/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.3.16/src/serialize.rs:145:45
    |
145 |                                             &f_name: &str,
    |                                             ^^^^^^^

   Compiling sha1 v0.1.1
error: aborting due to previous error

error: Could not compile `rustc-serialize`.
   --> /home/kirch/.cargo/registry/src/github.com-1ecc6299db9ec823/nix-0.3.9/src/sched.rs:168:20
    |
168 |         ffi::clone(mem::transmute(callback), ptr as *mut c_void, flags, &mut cb)
    |                    ^^^^^^^^^^^^^^
    |
    = note: source type: for<'r> extern "C" fn(*mut std::boxed::Box<std::ops::FnMut() -> isize + 'r>) -> i32 {sched::clone::callback}
    = note: target type: *const for<'r> extern "C" fn(*const std::boxed::Box<std::ops::FnMut() -> isize + 'r>) -> i32
    = help: cast with `as` to a pointer instead

error: aborting due to previous error

error: Could not compile `nix`.

Solution
Remove Cargo.lock file and try again.

Build information
uname -a: Linux mithrandir 4.15.9-1-ARCH #1 SMP PREEMPT Sun Mar 11 17:54:33 UTC 2018 x86_64 GNU/Linux
rustc 1.24.1 (d3ae9a9e0 2018-02-27)
cargo 0.25.0 (96d8071da 2018-02-26)
Cloned commit: daa8f74

@kirch7
Copy link
Contributor Author

kirch7 commented Mar 20, 2018

Solved by #9

@kirch7 kirch7 closed this as completed Mar 20, 2018
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

No branches or pull requests

1 participant