latest build fails under debug settings: libstd/unstable/intrinsics.rs:428:8: 428:53 error: intrinsic has wrong type #9164

Closed
glycerine opened this Issue Sep 13, 2013 · 3 comments

Comments

Projects
None yet
2 participants
  • master 323e8f0 auto merge of #9087 : fhahn/rust/rust_crate_map, r=brson

on ubuntu 12.04 / linux amd64

configuration :
./configure --disable-optimize --enable-debug --enable-ccache --prefix=/usr/cn/rust/debug-build/install --enable-local-rust --enable-valgrind --disable-docs --disable-optimize-cxx --disable-optimize-llvm --disable-optimize-tests

build fails half way through at:

/rust$ make
cfg: build triple x86_64-unknown-linux-gnu
cfg: host triples x86_64-unknown-linux-gnu
cfg: target triples x86_64-unknown-linux-gnu
cfg: disabling rustc optimization (CFG_DISABLE_OPTIMIZE)
cfg: enabling more debugging (CFG_ENABLE_DEBUG)
cfg: host for x86_64-unknown-linux-gnu is x86_64
cfg: os for x86_64-unknown-linux-gnu is unknown-linux-gnu
cfg: disabling C++ optimization (CFG_DISABLE_OPTIMIZE_CXX)
cfg: using ccache gcc
cfg: enabling valgrind (CFG_ENABLE_VALGRIND)
cfg: no llnextgen found, omitting grammar-verification
cfg: disabling doc build (CFG_DISABLE_DOCS)
compile_and_link: x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib/libstd.so
/rust/debug-build/rust/src/libstd/unstable/intrinsics.rs:428:8: 428:53 error: intrinsic has wrong type: expected `extern "rust-\
intrinsic" unsafe fn(*unstable::intrinsics::TyDesc, &mut unstable::intrinsics::TyVisitor<no-bounds>)`: expected trait unstable::intrin\
sics::TyVisitor but found trait unstable::intrinsics::TyVisitor
/rust/debug-build/rust/src/libstd/unstable/intrinsics.rs:428     pub fn visit_tydesc(td: *TyDesc, tv: &TyVisitor);
                                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/rust/debug-build/rust/src/libstd/rt/task.rs:431:33: 431:39 error: mismatched types: expected `*u8` but found `extern "C" exter\
n fn(*libc::types::common::c95::c_void, *libc::types::common::c95::c_void)` (expected *-ptr but found extern fn)
/usr/cn/rust/debug-build/rust/src/libstd/rt/task.rs:431             let token = rust_try(try_fn, code, env);
                                                                                         ^~~~~~
/rust/debug-build/rust/src/libstd/rt/uv/net.rs:150:56: 150:64 error: mismatched types: expected `*u8` but found `extern "C" ext\
ern fn(*libc::types::common::c95::c_void, u64) -> rt::uv::uvll::uv_buf_t` (expected *-ptr but found extern fn)
/usr/cn/rust/debug-build/rust/src/libstd/rt/uv/net.rs:150         unsafe { uvll::read_start(self.native_handle(), alloc_cb, read_cb); \
}
                                                                                                                  ^~~~~~~~
... 
Owner

huonw commented Sep 13, 2013

--enable-local-rust

I'm guessing that this is the problem: your local Rust is either too new or too old to compile stage0 of the bootstrap. Is there a particular reason you are using this? (Can you test without it?)

local rust is: rustc -v
rustc 0.8-pre (124eb21 2013-09-06 23:35:57 -0700)

I'll try without --enable-local-rust. I thought it would speed up the build.

yes, builds fine without --enable-local-rust. My bad.

@glycerine glycerine closed this Sep 13, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment