mozilla/rust — Issue #1711: can't determine value for sysroot
Author: manveru
Created: 2012-01-30 23:14:48+00:00
State: open

Given the following program, or any other program:

ι ~prog/rust % cat hello.rs
use std;
fn main(args: [str]) {
std::io::println("Hello, World!");
}

I get a failure to compile on two machines running x86_64 Arch Linux with kernel 3.2.2.

ι ~prog/rust % RUST_LOG=rustc=0,::rt::backtrace rustc hello.rs
rust: upcall fail 'can't determine value for sysroot', src/comp/util/filesearch.rs:100
/home/manveru/pkgbuilds/rust-git/src/rust-build/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib/librustrt.so(_ZN9rust_task4failEv+0x25)[0x7fc49df06955]
/home/manveru/pkgbuilds/rust-git/src/rust-build/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib/librustrt.so(+0x330a9)[0x7fc49df1d0a9]
/home/manveru/pkgbuilds/rust-git/src/rust-build/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib/librustrt.so(upcall_fail+0x39)[0x7fc49df09e79]
/home/manveru/pkgbuilds/rust-git/src/rust-build/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib/librustc-4171d83aef249987-0.1.so(_ZN4util10filesearch19get_default_sysroot17_9aca4d338303d7d7E+0x14e)[0x7fc49e68284e]
/home/manveru/pkgbuilds/rust-git/src/rust-build/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib/librustc-4171d83aef249987-0.1.so(_ZN4util10filesearch13mk_filesearch17_9d6f8d069a6d4a4cE+0xcc)[0x7fc49e6800cc]
/home/manveru/pkgbuilds/rust-git/src/rust-build/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib/librustc-4171d83aef249987-0.1.so(_ZN6driver6driver13build_session17_6df81d3781e277a5E+0x6e)[0x7fc49e674a8e]
rustc[0x40422a]
rustc[0x407868]
rustc[0x4073aa]
rustc[0x406ea6]
/home/manveru/pkgbuilds/rust-git/src/rust-build/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib/libcore-14bd852465126fe7-0.1.so(+0x40182)[0x7fc49ed94182]
/home/manveru/pkgbuilds/rust-git/src/rust-build/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib/librustrt.so(task_start_wrapper+0x32)[0x7fc49df05b72]
error: internal compiler error unexpected failure
note: The compiler hit an unexpected failure path. This is a bug. Try running with RUST_LOG=rustc=0,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues
rust: upcall fail 'explicit failure', src/comp/driver/rustc.rs:175
/home/manveru/pkgbuilds/rust-git/src/rust-build/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib/librustrt.so(_ZN9rust_task4failEv+0x25)[0x7fc49df06955]
/home/manveru/pkgbuilds/rust-git/src/rust-build/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib/librustrt.so(+0x330a9)[0x7fc49df1d0a9]
/home/manveru/pkgbuilds/rust-git/src/rust-build/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib/librustrt.so(upcall_fail+0x39)[0x7fc49df09e79]
rustc[0x405422]
rustc[0x40564c]
/home/manveru/pkgbuilds/rust-git/src/rust-build/x86_64-unknown-linux-gnu/stage2/lib/rustc/x86_64-unknown-linux-gnu/lib/librustrt.so(task_start_wrapper+0x32)[0x7fc49df05b72]
rust: domain main @0x973c80 root task failed
zsh: exit 101 RUST_LOG=rustc=0,::rt::backtrace rustc hello.rs

The /proc/self/exe exists.

ι ~prog/rust % ls -l /proc/self/exe
lrwxrwxrwx 1 manveru users 0 Jan 31 00:12 /proc/self/exe -> /bin/ls*