Build failed : "use of deprecated item: gcc::Config has been renamed to gcc::Build"
Created by: sinkarharshad
Reproduction: make all
Expected behavior: build process should work fine
Actual behavior:
cook - drivers build
Updating registry `https://github.com/rust-lang/crates.io-index`
Compiling libc v0.2.30
Compiling unwind v0.0.0 (file:///home/shk4abt/devel/redoxos/redox/rust/src/libunwind)
Compiling gcc v0.3.53
Compiling libc v0.0.0 (file:///home/shk4abt/devel/redoxos/redox/rust/src/rustc/libc_shim)
Compiling core v0.0.0 (file:///home/shk4abt/devel/redoxos/redox/rust/src/libcore)
Compiling filetime v0.1.10
Compiling build_helper v0.1.0 (file:///home/shk4abt/devel/redoxos/redox/rust/src/build_helper)
Compiling compiler_builtins v0.0.0 (file:///home/shk4abt/devel/redoxos/redox/rust/src/rustc/compiler_builtins_shim)
Compiling std v0.0.0 (file:///home/shk4abt/devel/redoxos/redox/rust/src/libstd)
warning: use of deprecated item: gcc::Config has been renamed to gcc::Build
--> /home/shk4abt/devel/redoxos/redox/rust/src/rustc/compiler_builtins_shim/../../libcompiler_builtins/build.rs:4011:24
|
4011 | let cfg = &mut gcc::Config::new();
| ^^^^^^^^^^^^^^^^
|
= note: #[warn(deprecated)] on by default
error: use of deprecated item: gcc::Config has been renamed to gcc::Build
--> /home/shk4abt/devel/redoxos/redox/rust/src/libstd/build.rs:80:20
|
80 | let compiler = gcc::Config::new().get_compiler();
| ^^^^^^^^^^^^^^^^
|
note: lint level defined here
--> /home/shk4abt/devel/redoxos/redox/rust/src/libstd/build.rs:11:9
|
11 | #![deny(warnings)]
| ^^^^^^^^
= note: #[deny(deprecated)] implied by #[deny(warnings)]
error: aborting due to previous error
error: Could not compile `std`.
warning: build failed, waiting for other jobs to finish...
error: variable does not need to be mutable
--> /home/shk4abt/devel/redoxos/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/shk4abt/devel/redoxos/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/shk4abt/devel/redoxos/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/shk4abt/devel/redoxos/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.UpGlesi1s1aT/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
How to resolve this one?