compile error when running 'make all'
Created by: albertschulz
Reproduction: [describe how you are able to reproduce ("trigger") this bug/issue.] I followed the guide and ran 'make all', but i get
➜ redox git:(master) ✗ make all
mkdir -p build/i386-unknown-redox/debug
RUST_BACKTRACE=1 rustc --target=i386-unknown-redox.json -L build/i386-unknown-redox/debug -C no-prepopulate-passes -C no-stack-check -C opt-level=2 -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
rust/src/libcore/intrinsics.rs:56:5: 56:62 error: intrinsic has wrong type: expected `unsafe extern "rust-intrinsic" fn(*mut P0, P0, P0) -> (P0, bool) {intrinsics::atomic_cxchg::<T>}`: expected tuple, found type parameter [E0211]
rust/src/libcore/intrinsics.rs:56 pub fn atomic_cxchg<T>(dst: *mut T, old: T, src: T) -> T;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rust/src/libcore/intrinsics.rs:56:5: 56:62 help: run `rustc --explain E0211` to see a detailed explanation
rust/src/libcore/intrinsics.rs:57:5: 57:66 error: intrinsic has wrong type: expected `unsafe extern "rust-intrinsic" fn(*mut P0, P0, P0) -> (P0, bool) {intrinsics::atomic_cxchg_acq::<T>}`: expected tuple, found type parameter [E0211]
rust/src/libcore/intrinsics.rs:57 pub fn atomic_cxchg_acq<T>(dst: *mut T, old: T, src: T) -> T;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rust/src/libcore/intrinsics.rs:57:5: 57:66 help: run `rustc --explain E0211` to see a detailed explanation
rust/src/libcore/intrinsics.rs:58:5: 58:66 error: intrinsic has wrong type: expected `unsafe extern "rust-intrinsic" fn(*mut P0, P0, P0) -> (P0, bool) {intrinsics::atomic_cxchg_rel::<T>}`: expected tuple, found type parameter [E0211]
rust/src/libcore/intrinsics.rs:58 pub fn atomic_cxchg_rel<T>(dst: *mut T, old: T, src: T) -> T;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rust/src/libcore/intrinsics.rs:58:5: 58:66 help: run `rustc --explain E0211` to see a detailed explanation
rust/src/libcore/intrinsics.rs:59:5: 59:69 error: intrinsic has wrong type: expected `unsafe extern "rust-intrinsic" fn(*mut P0, P0, P0) -> (P0, bool) {intrinsics::atomic_cxchg_acqrel::<T>}`: expected tuple, found type parameter [E0211]
rust/src/libcore/intrinsics.rs:59 pub fn atomic_cxchg_acqrel<T>(dst: *mut T, old: T, src: T) -> T;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rust/src/libcore/intrinsics.rs:59:5: 59:69 help: run `rustc --explain E0211` to see a detailed explanation
rust/src/libcore/intrinsics.rs:60:5: 60:70 error: intrinsic has wrong type: expected `unsafe extern "rust-intrinsic" fn(*mut P0, P0, P0) -> (P0, bool) {intrinsics::atomic_cxchg_relaxed::<T>}`: expected tuple, found type parameter [E0211]
rust/src/libcore/intrinsics.rs:60 pub fn atomic_cxchg_relaxed<T>(dst: *mut T, old: T, src: T) -> T;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rust/src/libcore/intrinsics.rs:60:5: 60:70 help: run `rustc --explain E0211` to see a detailed explanation
rust/src/libcore/intrinsics.rs:62:5: 62:74 error: intrinsic has wrong type: expected `unsafe extern "rust-intrinsic" fn(*mut P0, P0, P0) -> (P0, bool) {intrinsics::atomic_cxchg_failrelaxed::<T>}`: expected tuple, found type parameter [E0211]
rust/src/libcore/intrinsics.rs:62 pub fn atomic_cxchg_failrelaxed<T>(dst: *mut T, old: T, src: T) -> T;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rust/src/libcore/intrinsics.rs:62:5: 62:74 help: run `rustc --explain E0211` to see a detailed explanation
rust/src/libcore/intrinsics.rs:64:5: 64:70 error: intrinsic has wrong type: expected `unsafe extern "rust-intrinsic" fn(*mut P0, P0, P0) -> (P0, bool) {intrinsics::atomic_cxchg_failacq::<T>}`: expected tuple, found type parameter [E0211]
rust/src/libcore/intrinsics.rs:64 pub fn atomic_cxchg_failacq<T>(dst: *mut T, old: T, src: T) -> T;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rust/src/libcore/intrinsics.rs:64:5: 64:70 help: run `rustc --explain E0211` to see a detailed explanation
rust/src/libcore/intrinsics.rs:66:5: 66:78 error: intrinsic has wrong type: expected `unsafe extern "rust-intrinsic" fn(*mut P0, P0, P0) -> (P0, bool) {intrinsics::atomic_cxchg_acq_failrelaxed::<T>}`: expected tuple, found type parameter [E0211]
rust/src/libcore/intrinsics.rs:66 pub fn atomic_cxchg_acq_failrelaxed<T>(dst: *mut T, old: T, src: T) -> T;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rust/src/libcore/intrinsics.rs:66:5: 66:78 help: run `rustc --explain E0211` to see a detailed explanation
rust/src/libcore/intrinsics.rs:68:5: 68:81 error: intrinsic has wrong type: expected `unsafe extern "rust-intrinsic" fn(*mut P0, P0, P0) -> (P0, bool) {intrinsics::atomic_cxchg_acqrel_failrelaxed::<T>}`: expected tuple, found type parameter [E0211]
rust/src/libcore/intrinsics.rs:68 pub fn atomic_cxchg_acqrel_failrelaxed<T>(dst: *mut T, old: T, src: T) -> T;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rust/src/libcore/intrinsics.rs:68:5: 68:81 help: run `rustc --explain E0211` to see a detailed explanation
error: aborting due to 9 previous errors
make: *** [build/i386-unknown-redox/debug/libcore.rlib] Error 101
Expected behavior: [describe the behavior you would expect the repro to yield.] It should compile without errors
Build information: [output of rustc -V
, git rev-parse HEAD
, qemu-i386 -version
, uname -a
, etc.]
rust version:
rustc 1.9.0-nightly (21922e1f4 2016-03-21)
uname: Darwin aloha.local 15.3.0 Darwin Kernel Version 15.3.0: Thu Dec 10 18:40:58 PST 2015; root:xnu-3248.30.4~1/RELEASE_X86_64 x86_64
git: 46ff17ab