-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Various things are failing to build properly (ICE from metadata::loader::Context<'a>::extract_one) #19768
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
Comments
@alexcrichton As I said, it’s not just rustc itself that’s failing, other things are failing too, for which (Nor for that matter do I consider requiring |
I'm running into the same issue with a completely fresh project. This is definitely a reproducible bug in the compiler. My [package]
name = "rust-ice-19768"
version = "0.0.1"
authors = ["Eduard Bopp <[email protected]>"]
[dependencies.nalgebra]
git = "https://github.com/sebcrozet/nalgebra"
[dependencies.acacia]
git = "https://github.com/aepsil0n/acacia" and extern crate acacia;
extern crate nalgebra; Note that extern crate nalgebra;
extern crate acacia; it magically works again. This may point to a workaround. The backtrace is similar to the one posted by @cmr:
|
I'll reopen this for now to track this, but I am unable to reproduce this with @aepsil0n's bug and I can't build rust-http right now due to it's master not compiling. @aepsil0n are you sure you don't have stale libraries lying around elsewhere on the system? @chris-morgan same question for you here. @chris-morgan do you have a reproducible example that I could test out on? |
Was seeing this last night with the 12-10 nightly on OS X 10.10. This was failing on any input, including a fresh "hello, world" project generated by Cargo. Once I rolled back to the 12-08 nightly everything worked fine.
|
@alexcrichton I am sure, that I have not installed any library that is not distributed with the compiler system-wide and afaik cargo does not look into random folders in my workspace hunting for them. So, I ran I updated Rust and tried it with dea7143 and c38e73f. There's a gist with the project that fails for me. In any case, as @cmr pointed out, the compiler shouldn't ICE, even if there are stale libraries hanging around, should it? |
Can you try running with |
Turns out I was wrong. There was indeed an old version of nalgebra dated 2014/2/15 from some pre-cargo workaround. Sorry, I had totally forgotten about that.
|
@chris-morgan can you try running with that same command? |
Here’s an example from rust-http, where it fails in openssl-sys. The command was got from
Incidentally, since Cargo shifted to using the 2014-12-12 nightly I can’t build Cargo, it fails in libz-sys as well as openssl-sys. |
Fixed by #19799 |
Current master (da83ad8) is not working happily for me.
Firstly when building rustc itself I hit such an ICE on stage1 rustc_typeck;
make clean
fixed that.Then building rust-http was failing on its openssl-sys dependency, and
cargo clean
doesn’t fix anything.Here’s a log:
The text was updated successfully, but these errors were encountered: