Skip to content

ICE when linking to old libcore #14748

@mvdnes

Description

@mvdnes

Description

I am writing an x86 kernel in rust for my own fun. I am using an myself-compiled libcore to use with this, as the host is x86_64 and I need an i386 lib. This is done with rustc -O --target=i386-unknown-linux ../rust/src/libcore/lib.rs. Sometimes (not always) when I update my host version of rust (using the thestinger Arch repo), I get an ICE. They differ each time, but the latest was:

rustc -L. -O --target i386-unknown-linux --crate-type lib -o main.o --emit obj main_x86.rs
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' failed at 'assertion failed: start <= end', /build/rust-git/src/rust/src/libcore/slice.rs:540

This is resolved by updating the rust repo, and recompiling the libcore crate. Maybe the failure could give of a more useful error-message?

Version

[mvdnes@vm-arch rust-kernel]$ rustc -v
rustc 0.11.0-pre (fa18328 2014-06-07 15:31:44 -0700)
host: x86_64-unknown-linux-gnu

[mvdnes@vm-arch rust-kernel]$ uname -a
Linux vm-arch 3.14.5-1-ARCH #1 SMP PREEMPT Sun Jun 1 07:36:23 CEST 2014 x86_64 GNU/Linux

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