gcc 0.0.2

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 #8351 2016-08-05 14:47:41

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` Documenting gcc v0.0.2 Running `rustdoc .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.0.2/src/lib.rs --crate-name gcc -o /home/cratesfyi/gcc-0.0.2/doc -L dependency=/home/cratesfyi/gcc-0.0.2/debug -L dependency=/home/cratesfyi/gcc-0.0.2/debug/deps` .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.0.2/src/lib.rs:4:5: 4:21 error: unresolved import `std::io::Command`. There is no `Command` in `std::io` [E0432] .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.0.2/src/lib.rs:4 use std::io::Command; ^~~~~~~~~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.0.2/src/lib.rs:5:5: 5:32 error: unresolved import `std::io::process::InheritFd`. Could not find `process` in `std::io` [E0432] .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.0.2/src/lib.rs:5 use std::io::process::InheritFd; ^~~~~~~~~~~~~~~~~~~~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.0.2/src/lib.rs:11:34: 11:38 error: type name `Path` is undefined or not in scope [E0412] .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.0.2/src/lib.rs:11 pub include_directories: Vec<Path>, ^~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.0.2/src/lib.rs:11:34: 11:38 help: you can import it into scope: `use std::path::Path;`. .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.0.2/src/lib.rs:15:22: 15:26 error: type name `Path` is undefined or not in scope [E0412] .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.0.2/src/lib.rs:15 pub objects: Vec<Path>, ^~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.0.2/src/lib.rs:15:22: 15:26 help: you can import it into scope: `use std::path::Path;`. .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.0.2/src/lib.rs:47:18: 47:28 error: unresolved name `os::getenv` [E0425] .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.0.2/src/lib.rs:47 let target = os::getenv("TARGET").unwrap(); ^~~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.0.2/src/lib.rs:48:21: 48:31 error: unresolved name `os::getenv` [E0425] .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.0.2/src/lib.rs:48 let opt_level = os::getenv("OPT_LEVEL").unwrap(); ^~~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.0.2/src/lib.rs:82:25: 82:35 error: unresolved name `os::getenv` [E0425] .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.0.2/src/lib.rs:82 let src = Path::new(os::getenv("CARGO_MANIFEST_DIR").unwrap()); ^~~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.0.2/src/lib.rs:82:15: 82:24 error: failed to resolve. Use of undeclared type or module `Path` [E0433] .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.0.2/src/lib.rs:82 let src = Path::new(os::getenv("CARGO_MANIFEST_DIR").unwrap()); ^~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.0.2/src/lib.rs:83:25: 83:35 error: unresolved name `os::getenv` [E0425] .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.0.2/src/lib.rs:83 let dst = Path::new(os::getenv("OUT_DIR").unwrap()); ^~~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.0.2/src/lib.rs:83:15: 83:24 error: failed to resolve. Use of undeclared type or module `Path` [E0433] .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.0.2/src/lib.rs:83 let dst = Path::new(os::getenv("OUT_DIR").unwrap()); ^~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.0.2/src/lib.rs:87:55: 87:72 error: unresolved name `std::io::USER_RWX` [E0425] .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.0.2/src/lib.rs:87 std::io::fs::mkdir_recursive(&obj.dir_path(), std::io::USER_RWX).unwrap(); ^~~~~~~~~~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.0.2/src/lib.rs:87:9: 87:37 error: failed to resolve. Could not find `fs` in `std::io` [E0433] .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.0.2/src/lib.rs:87 std::io::fs::mkdir_recursive(&obj.dir_path(), std::io::USER_RWX).unwrap(); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.0.2/src/lib.rs:112:5: 112:15 error: unresolved name `os::getenv` [E0425] .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.0.2/src/lib.rs:112 os::getenv("CC").unwrap_or(if cfg!(windows) { ^~~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.0.2/src/lib.rs:120:5: 120:15 error: unresolved name `os::getenv` [E0425] .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.0.2/src/lib.rs:120 os::getenv("AR").unwrap_or("ar".to_string()) ^~~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.0.2/src/lib.rs:124:5: 124:15 error: unresolved name `os::getenv` [E0425] .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.0.2/src/lib.rs:124 os::getenv("CFLAGS").unwrap_or(String::new()) ^~~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.0.2/src/lib.rs:98:36: 98:41 error: no method named `slice` found for type `&str` in the current scope .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.0.2/src/lib.rs:98 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.0.2/src/lib.rs:97:5: 98:64 note: in this expansion of println! (defined in <std macros>) .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.0.2/src/lib.rs:162:23: 162: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.0.2/src/lib.rs:162 res.push(sdk_path.as_slice().trim()); ^~~~~~~~ error: Compilation failed, aborting rustdoc thread 'main' panicked at 'ChainedError { error: failed to compile `gcc v0.0.2`, intermediate artifacts can be found at `/home/cratesfyi/gcc-0.0.2`, cause: ChainedError { error: Could not document `gcc`., cause: Process didn't exit successfully: `rustdoc .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.0.2/src/lib.rs --crate-name gcc -o /home/cratesfyi/gcc-0.0.2/doc -L dependency=/home/cratesfyi/gcc-0.0.2/debug -L dependency=/home/cratesfyi/gcc-0.0.2/debug/deps` (exit code: 101) } }', src/bin/cratesfyi.rs:119 note: Run with `RUST_BACKTRACE=1` for a backtrace.