Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Rustc compile fails #36

Closed
BenMorganIO opened this issue Jan 24, 2015 · 3 comments
Closed

Rustc compile fails #36

BenMorganIO opened this issue Jan 24, 2015 · 3 comments

Comments

@BenMorganIO
Copy link

While following the Nickel demo, I received some errors while compiling. You'll notice there's two of them, I believe one of the errors was coming from this project:

nickel-demo $ cargo build --verbose
       Fresh groupable v0.1.0 (https://github.com/nickel-org/groupable-rs#efc8d769)
       Fresh phantom v0.0.3
   Compiling rust-mustache v0.3.0 (https://github.com/nickel-org/rust-mustache.git#fd5d0e1c)
     Running `rustc /Users/benmorgan/.cargo/git/checkouts/rust-mustache-b850d4795ca6321d/master/src/lib.rs --crate-name mustache --crate-type lib -g -C metadata=48f7150e9c575dbb -C extra-filename=-48f7150e9c575dbb --out-dir /Users/benmorgan/Sites/sandbox/rust/nickel-demo/target/deps --emit=dep-info,link -L dependency=/Users/benmorgan/Sites/sandbox/rust/nickel-demo/target/deps -L dependency=/Users/benmorgan/Sites/sandbox/rust/nickel-demo/target/deps -Awarnings`
   Compiling rustc-serialize v0.2.9
     Running `rustc /Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/lib.rs --crate-name rustc-serialize --crate-type lib -g -C metadata=8214bc2e838e96ca -C extra-filename=-8214bc2e838e96ca --out-dir /Users/benmorgan/Sites/sandbox/rust/nickel-demo/target/deps --emit=dep-info,link -L dependency=/Users/benmorgan/Sites/sandbox/rust/nickel-demo/target/deps -L dependency=/Users/benmorgan/Sites/sandbox/rust/nickel-demo/target/deps -Awarnings`
   Compiling pkg-config v0.1.6
     Running `rustc /Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.1.6/src/lib.rs --crate-name pkg-config --crate-type lib -g -C metadata=582ce12f7a395fbc -C extra-filename=-582ce12f7a395fbc --out-dir /Users/benmorgan/Sites/sandbox/rust/nickel-demo/target/deps --emit=dep-info,link -L dependency=/Users/benmorgan/Sites/sandbox/rust/nickel-demo/target/deps -L dependency=/Users/benmorgan/Sites/sandbox/rust/nickel-demo/target/deps -Awarnings`
   Compiling gcc v0.1.6
     Running `rustc /Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.6/src/lib.rs --crate-name gcc --crate-type lib -g -C metadata=46e0c3c1c2bb4e55 -C extra-filename=-46e0c3c1c2bb4e55 --out-dir /Users/benmorgan/Sites/sandbox/rust/nickel-demo/target/deps --emit=dep-info,link -L dependency=/Users/benmorgan/Sites/sandbox/rust/nickel-demo/target/deps -L dependency=/Users/benmorgan/Sites/sandbox/rust/nickel-demo/target/deps -Awarnings`
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/base64.rs:189:6: 189:16 error: attempt to implement a nonexistent trait `fmt::Debug`
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/base64.rs:189 impl fmt::Debug for FromBase64Error {
                                                                                                              ^~~~~~~~~~
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/base64.rs:208:6: 208:18 error: attempt to implement a nonexistent trait `fmt::Display`
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/base64.rs:208 impl fmt::Display for FromBase64Error {
                                                                                                              ^~~~~~~~~~~~
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/base64.rs:210:9: 210:24 error: failed to resolve. Could not find `Debug` in `std::fmt`
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/base64.rs:210         fmt::Debug::fmt(&self, f)
                                                                                                                 ^~~~~~~~~~~~~~~
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/base64.rs:210:9: 210:24 error: unresolved name `fmt::Debug::fmt`
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/base64.rs:210         fmt::Debug::fmt(&self, f)
                                                                                                                 ^~~~~~~~~~~~~~~
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/hex.rs:73:6: 73:16 error: attempt to implement a nonexistent trait `fmt::Debug`
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/hex.rs:73 impl fmt::Debug for FromHexError {
                                                                                                          ^~~~~~~~~~
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/hex.rs:92:6: 92:18 error: attempt to implement a nonexistent trait `fmt::Display`
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/hex.rs:92 impl fmt::Display for FromHexError {
                                                                                                          ^~~~~~~~~~~~
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/hex.rs:94:9: 94:24 error: failed to resolve. Could not find `Debug` in `std::fmt`
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/hex.rs:94         fmt::Debug::fmt(&self, f)
                                                                                                             ^~~~~~~~~~~~~~~
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/hex.rs:94:9: 94:24 error: unresolved name `fmt::Debug::fmt`
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/hex.rs:94         fmt::Debug::fmt(&self, f)
                                                                                                             ^~~~~~~~~~~~~~~
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/json.rs:336:6: 336:16 error: attempt to implement a nonexistent trait `fmt::Debug`
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/json.rs:336 impl fmt::Debug for ErrorCode {
                                                                                                            ^~~~~~~~~~
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/json.rs:356:6: 356:18 error: attempt to implement a nonexistent trait `fmt::Display`
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/json.rs:356 impl fmt::Display for DecoderError {
                                                                                                            ^~~~~~~~~~~~
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/json.rs:358:9: 358:24 error: failed to resolve. Could not find `Debug` in `std::fmt`
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/json.rs:358         fmt::Debug::fmt(&self, f)
                                                                                                               ^~~~~~~~~~~~~~~
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/json.rs:358:9: 358:24 error: unresolved name `fmt::Debug::fmt`
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/json.rs:358         fmt::Debug::fmt(&self, f)
                                                                                                               ^~~~~~~~~~~~~~~
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/json.rs:366:6: 366:18 error: attempt to implement a nonexistent trait `fmt::Display`
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/json.rs:366 impl fmt::Display for ParserError {
                                                                                                            ^~~~~~~~~~~~
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/json.rs:368:9: 368:24 error: failed to resolve. Could not find `Debug` in `std::fmt`
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/json.rs:368         fmt::Debug::fmt(&self, f)
                                                                                                               ^~~~~~~~~~~~~~~
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/json.rs:368:9: 368:24 error: unresolved name `fmt::Debug::fmt`
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/json.rs:368         fmt::Debug::fmt(&self, f)
                                                                                                               ^~~~~~~~~~~~~~~
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/json.rs:376:6: 376:18 error: attempt to implement a nonexistent trait `fmt::Display`
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/json.rs:376 impl fmt::Display for EncoderError {
                                                                                                            ^~~~~~~~~~~~
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/json.rs:378:9: 378:24 error: failed to resolve. Could not find `Debug` in `std::fmt`
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/json.rs:378         fmt::Debug::fmt(&self, f)
                                                                                                               ^~~~~~~~~~~~~~~
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/json.rs:378:9: 378:24 error: unresolved name `fmt::Debug::fmt`
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/json.rs:378         fmt::Debug::fmt(&self, f)
                                                                                                               ^~~~~~~~~~~~~~~
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/json.rs:2556:6: 2556:18 error: attempt to implement a nonexistent trait `fmt::Display`
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/json.rs:2556 impl fmt::Display for Json {
                                                                                                             ^~~~~~~~~~~~
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/json.rs:2568:10: 2568:22 error: attempt to implement a nonexistent trait `fmt::Display`
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/json.rs:2568 impl<'a> fmt::Display for PrettyJson<'a> {
                                                                                                                 ^~~~~~~~~~~~
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/json.rs:2580:24: 2580:36 error: attempt to implement a nonexistent trait `fmt::Display`
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/json.rs:2580 impl<'a, T: Encodable> fmt::Display for AsJson<'a, T> {
                                                                                                                               ^~~~~~~~~~~~
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/json.rs:2600:24: 2600:36 error: attempt to implement a nonexistent trait `fmt::Display`
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/json.rs:2600 impl<'a, T: Encodable> fmt::Display for AsPrettyJson<'a, T> {
                                                                                                                               ^~~~~~~~~~~~
error: aborting due to 22 previous errors
       Fresh unsafe-any v0.2.1
       Fresh nickel_macros v0.0.1 (https://github.com/nickel-org/nickel.rs.git#4e7b5dda)
       Fresh libc v0.1.0
   Compiling anymap v0.9.9 (https://github.com/nickel-org/anymap.git#26ca5678)
     Running `rustc /Users/benmorgan/.cargo/git/checkouts/anymap-b244d42fb4bc5d28/master/src/lib.rs --crate-name anymap --crate-type lib -g -C metadata=bc8106039bccd388 -C extra-filename=-bc8106039bccd388 --out-dir /Users/benmorgan/Sites/sandbox/rust/nickel-demo/target/deps --emit=dep-info,link -L dependency=/Users/benmorgan/Sites/sandbox/rust/nickel-demo/target/deps -L dependency=/Users/benmorgan/Sites/sandbox/rust/nickel-demo/target/deps -Awarnings`
/Users/benmorgan/.cargo/git/checkouts/anymap-b244d42fb4bc5d28/master/src/lib.rs:11:21: 11:27 error: unresolved import `std::any::TypeId`. There is no `TypeId` in `std::any`
/Users/benmorgan/.cargo/git/checkouts/anymap-b244d42fb4bc5d28/master/src/lib.rs:11 use std::any::{Any, TypeId};
                                                                                                       ^~~~~~
error: aborting due to previous error
       Fresh matches v0.1.2
Build failed, waiting for other jobs to finish...
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.1.6/src/lib.rs:40:45: 40:48 error: the trait `core::fmt::Show` is not implemented for the type `std::io::process::Command`
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.1.6/src/lib.rs:40         format!("failed to run `{:?}`: {}", cmd, e)
                                                                                                                                            ^~~
note: in expansion of format_args!
<std macros>:2:28: 2:61 note: expansion site
<std macros>:1:1: 2:63 note: in expansion of format!
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.1.6/src/lib.rs:40:9: 41:6 note: expansion site
<std macros>:1:1: 6:60 note: in expansion of try!
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.1.6/src/lib.rs:39:15: 41:9 note: expansion site
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.1.6/src/lib.rs:45:71: 45:74 error: the trait `core::fmt::Show` is not implemented for the type `std::io::process::Command`
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.1.6/src/lib.rs:45         let mut msg = format!("`{:?}` did not exit successfully: {}", cmd,
                                                                                                                                                                      ^~~
note: in expansion of format_args!
<std macros>:2:28: 2:61 note: expansion site
<std macros>:1:1: 2:63 note: in expansion of format!
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.1.6/src/lib.rs:45:23: 46:43 note: expansion site
/Users/benmorgan/.cargo/git/checkouts/rust-mustache-b850d4795ca6321d/master/src/builder.rs:137:53: 137:78 error: mismatched types: expected `core::cell::RefCell<Box<core::ops::FnMut(collections::string::String) -> collections::string::String + Send>>`, found `core::cell::RefCell<Box<F>>` (expected trait core::ops::FnMut, found type parameter)
/Users/benmorgan/.cargo/git/checkouts/rust-mustache-b850d4795ca6321d/master/src/builder.rs:137         data.insert(key.as_slice().to_string(), Fun(RefCell::new(Box::new(f))));
                                                                                                                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.6/src/lib.rs:119:31: 119:34 error: the trait `core::fmt::Show` is not implemented for the type `std::io::process::Command`
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.6/src/lib.rs:119     println!("running: {:?}", cmd);
                                                                                                                        ^~~
note: in expansion of format_args!
<std macros>:2:42: 2:75 note: expansion site
<std macros>:1:1: 2:77 note: in expansion of println!
/Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.6/src/lib.rs:119:5: 119:36 note: expansion site
/Users/benmorgan/.cargo/git/checkouts/rust-mustache-b850d4795ca6321d/master/src/builder.rs:273:23: 273:48 error: mismatched types: expected `core::cell::RefCell<Box<core::ops::FnMut(collections::string::String) -> collections::string::String + Send>>`, found `core::cell::RefCell<Box<F>>` (expected trait core::ops::FnMut, found type parameter)
/Users/benmorgan/.cargo/git/checkouts/rust-mustache-b850d4795ca6321d/master/src/builder.rs:273         data.push(Fun(RefCell::new(Box::new(f))));
                                                                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~
error: aborting due to 2 previous errors
error: aborting due to previous error
error: aborting due to 2 previous errors
Could not compile `rustc-serialize`.

Caused by:
  Process didn't exit successfully: `rustc /Users/benmorgan/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.2.9/src/lib.rs --crate-name rustc-serialize --crate-type lib -g -C metadata=8214bc2e838e96ca -C extra-filename=-8214bc2e838e96ca --out-dir /Users/benmorgan/Sites/sandbox/rust/nickel-demo/target/deps --emit=dep-info,link -L dependency=/Users/benmorgan/Sites/sandbox/rust/nickel-demo/target/deps -L dependency=/Users/benmorgan/Sites/sandbox/rust/nickel-demo/target/deps -Awarnings` (status=101)
@BurntSushi
Copy link

This repo tracks the latest Rust nightlies. It looks like you're using an older nightly. If you can, you should update. :-)

@alexcrichton
Copy link
Contributor

Indeed, what @BurntSushi said!

@BenMorganIO
Copy link
Author

Thanks :D

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants