Redox OS build failing for latest Rust Nightly
Created by: huntergoldstein
Reproduction:
- Update to the latest Rust Nightly release (rustc 1.19.0-nightly (14f30da61 2017-05-21) as of this writing)
- Run
make all
in a freshlybootstrap.sh
edredox
directory
Expected behavior: Build Redox as expected.
Actual behavior:
$ make
mkdir -p build/kernel
RUSTC="./krustc.sh" RUSTDOC="./krustdoc.sh" CARGO_INCREMENTAL=1 cargo rustc --manifest-path rust/src/libcollections/Cargo.toml --target x86_64-unknown-none --release -- -C soft-float -o build/kernel/libcollections.rlib
Compiling core v0.0.0 (file:///home/hunter/Documents/redox/rust/src/libcore)
error: unused macro definition
--> rust/src/libcore/num/float_macros.rs:13:1
|
13 | / macro_rules! assert_approx_eq {
14 | | ($a:expr, $b:expr) => ({
15 | | use num::Float;
16 | | let (a, b) = (&$a, &$b);
... |
19 | | })
20 | | }
| |_^
|
= note: #[deny(unused_macros)] implied by #[deny(warnings)]
note: lint level defined here
--> rust/src/libcore/lib.rs:68:9
|
68 | #![deny(warnings)]
| ^^^^^^^^
error: unused macro definition
--> rust/src/libcore/num/wrapping.rs:15:1
|
15 | / macro_rules! sh_impl_signed {
16 | | ($t:ident, $f:ident) => (
17 | | #[stable(feature = "rust1", since = "1.0.0")]
18 | | impl Shl<$f> for Wrapping<$t> {
... |
60 | | )
61 | | }
| |_^
|
= note: #[deny(unused_macros)] implied by #[deny(warnings)]
error: unused macro definition
--> rust/src/libcore/num/mod.rs:99:1
|
99 | / macro_rules! checked_op {
100 | | ($U:ty, $op:path, $x:expr, $y:expr) => {{
101 | | let (result, overflowed) = unsafe { $op($x as $U, $y as $U) };
102 | | if overflowed { None } else { Some(result as Self) }
103 | | }}
104 | | }
| |_^
|
= note: #[deny(unused_macros)] implied by #[deny(warnings)]
error: unused macro definition
--> rust/src/libcore/ops.rs:766:1
|
766 | / macro_rules! neg_impl_unsigned {
767 | | ($($t:ty)*) => {
768 | | neg_impl_core!{ x => {
769 | | !x.wrapping_add(1)
770 | | }, $($t)*} }
771 | | }
| |_^
|
= note: #[deny(unused_macros)] implied by #[deny(warnings)]
error: aborting due to 4 previous errors
error: Could not compile `core`.
To learn more, run the command again with --verbose.
make: *** [mk/kernel.mk:3: build/kernel/libcollections.rlib] Error 101
Build information:
rustc 1.19.0-nightly (14f30da61 2017-05-21)
Linux ss-arch 4.11.2-1-zen #1 ZEN SMP PREEMPT Sat May 20 14:11:18 UTC 2017 x86_64 GNU/Linux
- Git Commit:
9034701e8f5d91dc24a796192a8682c69ed42e9b
Redox release: N/A Blocking/related: N/A
Misc:
- Downgrading to the
nightly-2017-05-05
release;rustc 1.19.0-nightly (59f1a2f94 2017-05-04)
, the release listed in the Travis build; fixes above issue