Build Error: AssertParamIsEq and AssertParamIsClone are 'undefined or not in scope'
Created by: jeromefroe
Hello, I'm having difficulties building redox. I pulled from master today and am using the nightly version of Rust but am getting an error when compiling rust/src/libcore/lib.rs as described below. I think the error may be related to my linker not being able to find AssertParamIsEq
and AssertParamIsClone
in libcore. Has anyone seen an error like this before by chance? Thanks.
Reproduction: make all
, more specifically the following command:
RUST_BACKTRACE=1 rustc --target=i386-unknown-redox.json --cfg redox -L \
build/i386-unknown-redox/debug -C no-prepopulate-passes -C no-stack-check -C \
opt-level=3 -Z no-landing-pads -A dead_code -C ar=i386-elf-ar -C linker=i386-elf-gcc \
-o build/i386-unknown-redox/debug/libcore.rlib rust/src/libcore/lib.rs
Expected behavior: redox is built successfully
Actual behavior: I see the following errors related to AssertParamIsEq
and AssertParamIsClone
being undefined or not in scope
. From what I can tell both AssertParamIsEq
and AssertParamIsClone
are defined in libcore so I believe this may be a problem with my linker. A sample of the output is as follows:
error[E0412]: type name `cmp::AssertParamIsEq` is undefined or not in scope
--> rust/src/libcore/num/mod.rs:46:70
|
46 | pub struct Wrapping<T>(#[stable(feature = "rust1", since = "1.0.0")] pub T);
| ^^^^^^ undefined or not in scope
|
= help: no candidates by the name of `AssertParamIsEq` found in your project; maybe you misspelled the name or forgot to import an external crate?
error[E0412]: type name `clone::AssertParamIsClone` is undefined or not in scope
--> rust/src/libcore/num/flt2dec/decoder.rs:27:5
|
27 | pub mant: u64,
| ^^^^^^^^^^^^^ undefined or not in scope
|
= help: no candidates by the name of `AssertParamIsClone` found in your project; maybe you misspelled the name or forgot to import an external crate?
error[E0412]: type name `clone::AssertParamIsClone` is undefined or not in scope
--> rust/src/libcore/num/flt2dec/decoder.rs:29:5
|
29 | pub minus: u64,
| ^^^^^^^^^^^^^^ undefined or not in scope
|
= help: no candidates by the name of `AssertParamIsClone` found in your project; maybe you misspelled the name or forgot to import an external crate?
error[E0412]: type name `clone::AssertParamIsClone` is undefined or not in scope
--> rust/src/libcore/num/flt2dec/decoder.rs:31:5
|
31 | pub plus: u64,
| ^^^^^^^^^^^^^ undefined or not in scope
|
= help: no candidates by the name of `AssertParamIsClone` found in your project; maybe you misspelled the name or forgot to import an external crate?
The same type of errors appears about forty or so more times.
Build information:
rustc -V
: rustc 1.13.0-nightly (55bf6a4f8 2016-09-18)
git rev-parse HEAD
: fdfa2585
qemu-system-i386 -version
: QEMU emulator version 2.7.0, Copyright (c) 2003-2016 Fabrice Bellard and the QEMU Project developers
uname -a
: Darwin jeromefroe-C02RN36CFVH8 15.6.0 Darwin Kernel Version 15.6.0: Mon Aug 29 20:21:34 PDT 2016; root:xnu-3248.60.11~1/RELEASE_X86_64 x86_64
Blocking/related: N/A
Misc: N/A