Build failed : (Ubuntu 17.04) : "error: Could not compile `core`."
Created by: sinkarharshad
Reproduction: make all
Expected behavior: build should get completed successfully
Actual behavior: stuck with: "error: Could not compile core
."
Build information:
make
cd kernel && xargo clean
rm -rf build/initfs
cargo run --manifest-path installer/Cargo.toml -- --cookbook=cookbook initfs.toml
Finished dev [unoptimized + debuginfo] target(s) in 0.2 secs
Running `installer/target/debug/redox_installer --cookbook=cookbook initfs.toml`
Install Config {
general: GeneralConfig {
prompt: false,
sysroot: Some(
"build/initfs"
)
},
packages: {
"drivers": PackageConfig {
version: None,
git: None,
path: None
},
"init": PackageConfig {
version: None,
git: None,
path: None
},
"redoxfs": PackageConfig {
version: None,
git: None,
path: None
}
},
files: [
FileConfig {
path: "/etc/init.rc",
data: "export PATH /bin\nexport TMPDIR /tmp\nvesad T T G\nstdio display:1\nps2d\npcid /etc/pcid/initfs.toml\nredoxfs disk:0 file\ncd file:\nrun.d /etc/init.d\n"
}
],
users: {}
}
Create directory /home/harshads/devel/redox/build/initfs/
repo - building drivers
cook - drivers build
Updating registry `https://github.com/rust-lang/crates.io-index`
Compiling libc v0.0.0 (file:///home/harshads/devel/redox/rust/src/rustc/libc_shim)
Compiling gcc v0.3.51
Compiling core v0.0.0 (file:///home/harshads/devel/redox/rust/src/libcore)
Compiling libc v0.2.29
Compiling unwind v0.0.0 (file:///home/harshads/devel/redox/rust/src/libunwind)
Compiling filetime v0.1.10
Compiling build_helper v0.1.0 (file:///home/harshads/devel/redox/rust/src/build_helper)
Compiling compiler_builtins v0.0.0 (file:///home/harshads/devel/redox/rust/src/rustc/compiler_builtins_shim)
Compiling std v0.0.0 (file:///home/harshads/devel/redox/rust/src/libstd)
error: variable does not need to be mutable
--> /home/harshads/devel/redox/rust/src/libcore/ops/function.rs:190:41
|
190 | extern "rust-call" fn call_once(mut self, args: A) -> F::Output {
| ^^^^^^^^
|
note: lint level defined here
--> /home/harshads/devel/redox/rust/src/libcore/lib.rs:68:9
|
68 | #![deny(warnings)]
| ^^^^^^^^
= note: #[deny(unused_mut)] implied by #[deny(warnings)]
error: variable does not need to be mutable
--> /home/harshads/devel/redox/rust/src/libcore/option.rs:875:18
|
875 | fn into_iter(mut self) -> IterMut<'a, T> {
| ^^^^^^^^
error: variable does not need to be mutable
--> /home/harshads/devel/redox/rust/src/libcore/result.rs:912:18
|
912 | fn into_iter(mut self) -> IterMut<'a, T> {
| ^^^^^^^^
error: aborting due to 3 previous errors
error: Could not compile `core`.
To learn more, run the command again with --verbose.
error: `"cargo" "build" "--release" "--manifest-path" "/tmp/xargo.iu4N7cH6a68m/Cargo.toml" "--target" "x86_64-unknown-redox" "-p" "std"` failed with exit code: Some(101)
note: run with `RUST_BACKTRACE=1` for a backtrace
./repo.sh failed.mk/initfs.mk:2: recipe for target 'build/initfs.tag' failed
make: *** [build/initfs.tag] Error 1
Help is appreciated, thank you in advance! Tried: