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

Internal compiler error when bootstrapping in Ubuntu Oneiric #2126

Closed
ghost opened this issue Apr 4, 2012 · 6 comments
Closed

Internal compiler error when bootstrapping in Ubuntu Oneiric #2126

ghost opened this issue Apr 4, 2012 · 6 comments

Comments

@ghost
Copy link

ghost commented Apr 4, 2012

I am using Ubuntu Oneiric (11.10) 32-bit with the requisite packages from standard repositories installed for configuring and building rust 0.2. I am using gcc and not clang. My only option for configure is a custom prefix for the directory to which I wish to install the binaries.

Most of the build process completes normally, but when compiling and linking librustc.so the compiler displays an error message about an internal compiler error. After the first attempt to make the rust compiler failed with the same error message as shown below, I set the environment variable for producing a backtrace and the second make resulted in this print-out (copied and pasted from terminal):

pekka@tykky:~/installed/languages/rust-0.2$ make
cfg: shell host triple i686-unknown-linux-gnu
cfg: host for i686-unknown-linux-gnu is i386
cfg: unix-y environment
cfg: using gcc
cfg: no node found, omitting doc/tutorial.html
cfg: no node found, omitting doc/tutorial.html
cfg: no llnextgen found, omitting grammar-verification
compile_and_link: i686-unknown-linux-gnu/stage0/lib/rustc/i686-unknown-linux-gnu/lib/librustc.so
rust: upcall fail 'explicit failure', /home/rustbuild/src/rustbot/workspace-snap-stage3-x86_64-unknown-linux-gnu/src/src/libcore/run.rs:195
/home/pekka/installed/languages/rust-0.2/i686-unknown-linux-gnu/stage0/bin/../lib/librustrt.so(_ZN9rust_task4failEv+0x39)[0x40fce919]
/home/pekka/installed/languages/rust-0.2/i686-unknown-linux-gnu/stage0/bin/../lib/librustrt.so(upcall_s_fail+0x7f)[0x40fd10bf]
/home/pekka/installed/languages/rust-0.2/i686-unknown-linux-gnu/stage0/bin/../lib/librustrt.so(+0x263bf)[0x40fe23bf]
/home/pekka/installed/languages/rust-0.2/i686-unknown-linux-gnu/stage0/bin/../lib/librustrt.so(upcall_fail+0x11c)[0x40fd24cc]
/home/pekka/installed/languages/rust-0.2/i686-unknown-linux-gnu/stage0/bin/../lib/libcore-14bd852465126fe7-0.2.so(_ZN3run13start_program17_55d381c56ef476a9E+0x207)[0x4005e8e7]
/home/pekka/installed/languages/rust-0.2/i686-unknown-linux-gnu/stage0/bin/../lib/libcore-14bd852465126fe7-0.2.so(_ZN3run14program_output17_ccbd99aa2cad80d2E+0x49)[0x4005f2c9]
/home/pekka/installed/languages/rust-0.2/i686-unknown-linux-gnu/stage0/bin/../lib/librustc-2384c9e5928f8c53-0.2.so(_ZN4back4link11link_binary17_92870fd7dd67fabaE+0x34a7)[0x406cd0c7]
/home/pekka/installed/languages/rust-0.2/i686-unknown-linux-gnu/stage0/bin/../lib/librustc-2384c9e5928f8c53-0.2.so(+0x49be91)[0x407b1e91]
/home/pekka/installed/languages/rust-0.2/i686-unknown-linux-gnu/stage0/bin/../lib/librustc-2384c9e5928f8c53-0.2.so(+0x4b8d38)[0x407ced38]
/home/pekka/installed/languages/rust-0.2/i686-unknown-linux-gnu/stage0/bin/../lib/librustc-2384c9e5928f8c53-0.2.so(+0x4998f9)[0x407af8f9]
/home/pekka/installed/languages/rust-0.2/i686-unknown-linux-gnu/stage0/bin/../lib/librustc-2384c9e5928f8c53-0.2.so(_ZN6driver6driver12compile_upto17_9fed196d814be3e7E+0x4501)[0x407ae8d1]
/home/pekka/installed/languages/rust-0.2/i686-unknown-linux-gnu/stage0/bin/../lib/librustc-2384c9e5928f8c53-0.2.so(_ZN6driver6driver13compile_input17_18e4a638ff9f17daE+0xc3)[0x407b1f63]
/home/pekka/installed/languages/rust-0.2/i686-unknown-linux-gnu/stage0/bin/../lib/librustc-2384c9e5928f8c53-0.2.so(+0x4b8d38)[0x407ced38]
i686-unknown-linux-gnu/stage0/bin/rustc[0x804bd34]
i686-unknown-linux-gnu/stage0/bin/rustc[0x804f646]
i686-unknown-linux-gnu/stage0/bin/rustc[0x804ee92]
i686-unknown-linux-gnu/stage0/bin/rustc[0x804ea3f]
/home/pekka/installed/languages/rust-0.2/i686-unknown-linux-gnu/stage0/bin/../lib/libcore-14bd852465126fe7-0.2.so(+0x467e6)[0x400697e6]
/home/pekka/installed/languages/rust-0.2/i686-unknown-linux-gnu/stage0/bin/../lib/librustrt.so(_Z18task_start_wrapperP10spawn_args+0x31)[0x40fcf701]
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', /home/rustbuild/src/rustbot/workspace-snap-stage3-x86_64-unknown-linux-gnu/src/src/rustc/driver/rustc.rs:182
/home/pekka/installed/languages/rust-0.2/i686-unknown-linux-gnu/stage0/bin/../lib/librustrt.so(_ZN9rust_task4failEv+0x39)[0x40fce919]
/home/pekka/installed/languages/rust-0.2/i686-unknown-linux-gnu/stage0/bin/../lib/librustrt.so(upcall_s_fail+0x7f)[0x40fd10bf]
/home/pekka/installed/languages/rust-0.2/i686-unknown-linux-gnu/stage0/bin/../lib/librustrt.so(+0x263bf)[0x40fe23bf]
/home/pekka/installed/languages/rust-0.2/i686-unknown-linux-gnu/stage0/bin/../lib/librustrt.so(upcall_fail+0x11c)[0x40fd24cc]
i686-unknown-linux-gnu/stage0/bin/rustc[0x804e29c]
i686-unknown-linux-gnu/stage0/bin/rustc[0x804fb24]
i686-unknown-linux-gnu/stage0/bin/rustc[0x804f52d]
i686-unknown-linux-gnu/stage0/bin/rustc(_rust_main+0x38)[0x804f598]
/home/pekka/installed/languages/rust-0.2/i686-unknown-linux-gnu/stage0/bin/../lib/librustrt.so(_Z18task_start_wrapperP10spawn_args+0x31)[0x40fcf701]
rust: domain main @0x9647dd8 root task failed
make: *** [i686-unknown-linux-gnu/stage0/lib/rustc/i686-unknown-linux-gnu/lib/librustc.so] Error 101
@brson
Copy link
Contributor

brson commented Apr 5, 2012

This looks familiar. Could be related to #1879 or #2078. There seem to be issues with the 32-bit stage0 snapshots.

@ghost
Copy link
Author

ghost commented Apr 5, 2012

I didn't say anything about the CPU because I didn't think it might be relevant. So just in case it matters, here are two relevant lines from /proc/cpuinfo. This machine is an old laptop, and despite being able to install a 64-bit Ubuntu on it I do indeed use the 32-bit version. I broke the last line into two so it displays in a nicer way.

model name      : AMD Turion(tm) 64 Mobile Technology ML-30
flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush
     mmx fxsr sse sse2 syscall nx mmxext fxsr_opt lm 3dnowext 3dnow up pni lahf_lm

@ghost ghost assigned graydon Apr 5, 2012
@catamorphism
Copy link
Contributor

Assigning to @graydon since it looks related to 2078.

@graydon
Copy link
Contributor

graydon commented Apr 6, 2012

Turions are pretty new but it's possible. I'll dig in when I'm back in arch-specific mode.

@ghost
Copy link
Author

ghost commented May 26, 2012

I upgraded my Ubuntu installation to Precise (12.04) soon after it came out. I got around to trying to install Rust from scratch today, and it worked. I used the Latest Release link from Rust-lang.org (last updated Mar 29 2012) and changed the configuration only in one way, to use a directory in my /home dir as the installation target.

During the upgrade from Oneiric, I upgraded llvm from 2.9 to 3.0. Other than making this explicit upgrade all the programs in my toolchain are those that Ubuntu repositories offer by default, and for example gcc has the same major version number as previously, 4.6. (I could dig up all the exact version numbers if you really want to know.) My hardware is the same too.

By Rust working I mean I could compile and run some of the example programs from the tutorial after completing the installation. I cannot reproduce the original bug anymore with my current set-up.

@pcwalton
Copy link
Contributor

pcwalton commented Aug 7, 2012

Closing then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants