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

Unexpected internal compiler error using incompatible rlib #12297

Closed
milibopp opened this issue Feb 15, 2014 · 1 comment · Fixed by #12164
Closed

Unexpected internal compiler error using incompatible rlib #12297

milibopp opened this issue Feb 15, 2014 · 1 comment · Fixed by #12164
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@milibopp
Copy link
Contributor

I accidentally tried to link a library (rlib from current master of nalgebra) that I had compiled earlier with a slightly older version of rustc (not entirely sure which though...) than the current one that I used for linking and ran into this error:

error: internal compiler error: unexpected failure
This message reflects a bug in the Rust compiler. 
We would appreciate a bug report: http://static.rust-lang.org/doc/master/complement-bugreport.html
note: the compiler hit an unexpected failure path. this is a bug
Ok(task 'rustc' failed at 'assertion failed: lib.dylib.is_none()', /tmp/yaourt-tmp-eduard/aur-rust-git/src/rust/src/librustc/metadata/loader.rs:210
)

Minimal source code:

extern mod nalgebra;
fn main() {}

My mistake is obvious but this still appears to be a bug in error detection.

@alexcrichton
Copy link
Member

This should be closed by #12164, I need to figure out why it's failing on android...

The gist of the problem is that you probably have multiple copies of libnalgebra and the compiler doesn't like multiple copies lying around.

@huonw huonw added the I-ICE label Feb 18, 2014
@bors bors closed this as completed in d70f909 Feb 21, 2014
bors added a commit to rust-lang-ci/rust that referenced this issue Jun 5, 2023
Compute closure captures

This PR:
* Computes closure captures and the trait it implements (Fn, FnMut or FnOnce)
* Computes data layout of closures
* Adds support for closure MIR lowering
* Changes the closure type display from `|arg1: ty1, arg2: ty| -> ret` to `impl FnX(arg1: ty1, arg2: ty2) -> ret`

fix rust-lang#12297
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants