gcc 0.1.1

A build-time dependency for Cargo build scripts to assist in invoking the native C compiler to compile native C code into a static archive to be linked into Rust code.

Build #8349 2016-08-05 14:47:30

Build failed. If you want to re-trigger a documentation build, you can do it here. You can find more information on docs.rs builds documentation on the builds page.

# rustc version rustc 1.12.0-nightly (54c0dcfd6 2016-07-28)

# docs.rs version cratesfyi 0.2.0 (5dbd676 2016-07-30)

# build log Updating registry `https://github.com/rust-lang/crates.io-index` Downloading gcc v0.1.1 Documenting gcc v0.1.1 Running `rustdoc .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs --crate-name gcc -o /home/cratesfyi/gcc-0.1.1/doc -L dependency=/home/cratesfyi/gcc-0.1.1/debug -L dependency=/home/cratesfyi/gcc-0.1.1/debug/deps` .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:1:5: 1:21 error: unresolved import `std::io::Command`. There is no `Command` in `std::io` [E0432] .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:1 use std::io::Command; ^~~~~~~~~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:2:5: 2:32 error: unresolved import `std::io::process::InheritFd`. Could not find `process` in `std::io` [E0432] .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:2 use std::io::process::InheritFd; ^~~~~~~~~~~~~~~~~~~~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:26:9: 26:24 error: unresolved import `std::os::getenv`. There is no `getenv` in `std::os` [E0432] .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:26 use std::os::getenv; ^~~~~~~~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:8:34: 8:38 error: type name `Path` is undefined or not in scope [E0412] .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:8 pub include_directories: Vec<Path>, ^~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:8:34: 8:38 help: you can import it into scope: `use std::path::Path;`. .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:12:22: 12:26 error: type name `Path` is undefined or not in scope [E0412] .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:12 pub objects: Vec<Path>, ^~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:12:22: 12:26 help: you can import it into scope: `use std::path::Path;`. .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:86:15: 86:24 error: failed to resolve. Use of undeclared type or module `Path` [E0433] .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:86 let src = Path::new(getenv("CARGO_MANIFEST_DIR").unwrap()); ^~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:87:15: 87:24 error: failed to resolve. Use of undeclared type or module `Path` [E0433] .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:87 let dst = Path::new(getenv("OUT_DIR").unwrap()); ^~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:91:55: 91:72 error: unresolved name `std::io::USER_RWX` [E0425] .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:91 std::io::fs::mkdir_recursive(&obj.dir_path(), std::io::USER_RWX).unwrap(); ^~~~~~~~~~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:91:9: 91:37 error: failed to resolve. Could not find `fs` in `std::io` [E0433] .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:91 std::io::fs::mkdir_recursive(&obj.dir_path(), std::io::USER_RWX).unwrap(); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:28:28: 28:29 error: the trait bound `std::option::Option<std::string::String>: std::fmt::Display` is not satisfied [E0277] .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:28 println!("{} = {}", v, r); ^ <std macros>:2:27: 2:58 note: in this expansion of format_args! <std macros>:3:1: 3:54 note: in this expansion of print! (defined in <std macros>) .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:28:5: 28:31 note: in this expansion of println! (defined in <std macros>) .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:28:28: 28:29 note: `std::option::Option<std::string::String>` cannot be formatted with the default formatter; try using `:?` instead if you are using a format string .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:28:28: 28:29 note: required by `std::fmt::Display::fmt` .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:60:15: 60:23 error: no method named `as_slice` found for type `std::string::String` in the current scope .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:60 if target.as_slice().contains("-ios") { ^~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:61:35: 61:43 error: no method named `as_slice` found for type `std::string::String` in the current scope .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:61 cmd.args(ios_flags(target.as_slice()).as_slice()); ^~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:63:19: 63:27 error: no method named `as_slice` found for type `std::string::String` in the current scope .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:63 if target.as_slice().contains("i686") { ^~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:65:26: 65:34 error: no method named `as_slice` found for type `std::string::String` in the current scope .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:65 } else if target.as_slice().contains("x86_64") { ^~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:69:20: 69:28 error: no method named `as_slice` found for type `std::string::String` in the current scope .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:69 if !target.as_slice().contains("i686") { ^~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:102:36: 102:41 error: no method named `slice` found for type `&str` in the current scope .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:102 dst.display(), output.slice(3, output.len() - 2)); ^~~~~ <std macros>:2:27: 2:58 note: in this expansion of format_args! <std macros>:3:1: 3:54 note: in this expansion of print! (defined in <std macros>) .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:101:5: 102:64 note: in this expansion of println! (defined in <std macros>) .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:127:57: 127:65 error: no method named `as_slice` found for type `std::string::String` in the current scope .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:127 let res = getenv(format!("{}_{}", var_base, target).as_slice()) ^~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:128:65: 128:73 error: no method named `as_slice` found for type `std::string::String` in the current scope .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:128 .or_else(|| getenv(format!("{}_{}", var_base, target_u).as_slice())) ^~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:129:61: 129:69 error: no method named `as_slice` found for type `std::string::String` in the current scope .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:129 .or_else(|| getenv(format!("{}_{}", kind, var_base).as_slice())) ^~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:152:9: 152:17 error: no method named `as_slice` found for type `std::string::String` in the current scope .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:152 .as_slice().words().map(|s| s.to_string()) ^~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:189:23: 189:31 error: no method named `as_slice` found for type `std::string::String` in the current scope .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs:189 res.push(sdk_path.as_slice().trim()); ^~~~~~~~ error: Compilation failed, aborting rustdoc thread 'main' panicked at 'ChainedError { error: failed to compile `gcc v0.1.1`, intermediate artifacts can be found at `/home/cratesfyi/gcc-0.1.1`, cause: ChainedError { error: Could not document `gcc`., cause: Process didn't exit successfully: `rustdoc .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.1.1/src/lib.rs --crate-name gcc -o /home/cratesfyi/gcc-0.1.1/doc -L dependency=/home/cratesfyi/gcc-0.1.1/debug -L dependency=/home/cratesfyi/gcc-0.1.1/debug/deps` (exit code: 101) } }', src/bin/cratesfyi.rs:119 note: Run with `RUST_BACKTRACE=1` for a backtrace.