Created
March 5, 2015 06:00
-
-
Save schavery/1910aaaac59107824d98 to your computer and use it in GitHub Desktop.
Trying to build the rand library with no success
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cargo build --verbose | |
Fresh log v0.2.5 | |
Fresh libc v0.1.2 | |
Compiling rand v0.1.4 (file:///Users/savery/Documents/networks%20152a/ecs152-project/rust/lib/rand) | |
Running `rustc src/lib.rs --crate-name rand --crate-type lib -g -C metadata=eac54f9484448b08 -C extra-filename=-eac54f9484448b08 --out-dir /Users/savery/Documents/networks 152a/ecs152-project/rust/lib/rand/target --emit=dep-info,link -L dependency=/Users/savery/Documents/networks 152a/ecs152-project/rust/lib/rand/target -L dependency=/Users/savery/Documents/networks 152a/ecs152-project/rust/lib/rand/target/deps --extern libc=/Users/savery/Documents/networks 152a/ecs152-project/rust/lib/rand/target/deps/liblibc-8d21de95f4de7169.rlib --extern log=/Users/savery/Documents/networks 152a/ecs152-project/rust/lib/rand/target/deps/liblog-045aab9d45b4c031.rlib` | |
src/lib.rs:236:5: 236:38 error: unresolved import `std::num::wrapping::Wrapping`. Could not find `wrapping` in `std::num` | |
src/lib.rs:236 use std::num::wrapping::Wrapping as w; | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
src/isaac.rs:18:5: 18:39 error: unresolved import `core::num::wrapping::Wrapping`. Could not find `wrapping` in `core::num` | |
src/isaac.rs:18 use core::num::wrapping::Wrapping as w; | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
src/chacha.rs:16:5: 16:39 error: unresolved import `core::num::wrapping::Wrapping`. Could not find `wrapping` in `core::num` | |
src/chacha.rs:16 use core::num::wrapping::Wrapping as w; | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
src/distributions/range.rs:17:5: 17:39 error: unresolved import `core::num::wrapping::Wrapping`. Could not find `wrapping` in `core::num` | |
src/distributions/range.rs:17 use core::num::wrapping::Wrapping as w; | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
error: aborting due to 4 previous errors | |
Could not compile `rand`. | |
Caused by: | |
Process didn't exit successfully: `rustc src/lib.rs --crate-name rand --crate-type lib -g -C metadata=eac54f9484448b08 -C extra-filename=-eac54f9484448b08 --out-dir /Users/savery/Documents/networks 152a/ecs152-project/rust/lib/rand/target --emit=dep-info,link -L dependency=/Users/savery/Documents/networks 152a/ecs152-project/rust/lib/rand/target -L dependency=/Users/savery/Documents/networks 152a/ecs152-project/rust/lib/rand/target/deps --extern libc=/Users/savery/Documents/networks 152a/ecs152-project/rust/lib/rand/target/deps/liblibc-8d21de95f4de7169.rlib --extern log=/Users/savery/Documents/networks 152a/ecs152-project/rust/lib/rand/target/deps/liblog-045aab9d45b4c031.rlib` (exit code: 101) |
I found the error. You need to update to the latest Nightly
Thanks, this also helped me. Is there a version constraint on rand
that makes it compile under a2?
@pgonda: you can tell cargo which version your cargo project depends on in the cargo.toml file. but version 0.1.4 fails with the same error here.. would be interested in a way to build with v1.0.0.a2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am having the exact same issue. Do you know if there is a way to force cargo to build with rand v0.1.2?