Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

@glycerine
Copy link

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); \
}
                                                                                                                  ^~~~~~~~
... 
@huonw
Copy link
Member

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?)

@glycerine
Copy link
Author

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.

@glycerine
Copy link
Author

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

Jarcho pushed a commit to Jarcho/rust that referenced this issue Aug 29, 2022
Ignore `match_like_matches_macro` when there is comment

Closes rust-lang#9164

changelog: [`match_like_matches_macro`] is ignored when there is some comment inside the match block.

Also add `span_contains_comment` util to check if given span contains comments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants