Description
I'm using a stage2 build cross-compiled on a x86_64 F19 machine. I've also tried using the stage0 snapshots at
http://static.rust-lang.org/stage0-snapshots/rust-stage0-2013-11-28-859c3ba-linux-i386-072e638a6a11f7d00cf2c7b487162d0d2e3b5036.tar.bz
http://static.rust-lang.org/stage0-snapshots/rust-stage0-2013-12-07-49b751d-linux-i386-e3c11032b19a74b86b5b6f271ee7457ce0b00d48.tar.bz2
All fail with the following error:
task 'rustc' failed at 'Unhandled condition: io_error: io::IoError{kind: OtherIoError, desc: "no such file or directory", detail: None}', /home/it/projects/rust/src/libstd/condition.rs:131
error: internal compiler error: unexpected failure
I jumped ran in gdb using:
gdb --args ./glibc-2.17-4.fc19.i686/lib/ld-linux.so.2 --library-path $PWD/glibc-2.17-4.fc19.i686/lib:$PWD/stage2:$PWD/stage2/lib/rustc/i686-unknown-linux-gnu ./stage2/bin/rustc -L ./stage2/lib/ -L ./stage2/lib/rustc/ stage2/main.rs
and narrowed the error down to:
task 'rustc' failed at 'assertion failed: res as int != 0', /home/it/projects/rust/src/libextra/flate.rs:84
It's worth noting that the glibc path hack is not necessary for the snapshots, but they do require manually passing the library search flag via rustc -L.
The original error resembles that described at #10754 and potentially addressed in part by #10863.