Skip to content

Unexpected internal compiler error using incompatible rlib #12297

Closed
@milibopp

Description

@milibopp

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions