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: unexpected failure" compiling rust-glut by latest rust git revision #2950

Closed
kolosov opened this issue Jul 18, 2012 · 1 comment

Comments

@kolosov
Copy link

kolosov commented Jul 18, 2012

"internal compiler error: unexpected failure" by compiling rust-glut.

I am trying compile rust-glut project by latest rust revision.

sk@numa:/tmp/rust-glut$ RUST_LOG=rustc=0,::rt::backtrace make
rustc  glut.rc -o librustglut.dummy
./glut.rs:121:0: 124:1 warning: unused variable: `window`
./glut.rs:121 fn reshape_func(window: Window, callback: fn@(++c_int, ++c_int)) unsafe {
./glut.rs:122     local_data_set(reshape_callback_tls_key, @callback);
./glut.rs:123     glutReshapeFunc(reshape_callback);
./glut.rs:124 }
./glut.rs:121:0: 124:1 warning: unused variable: `window`
./glut.rs:121 fn reshape_func(window: Window, callback: fn@(++c_int, ++c_int)) unsafe {
./glut.rs:122     local_data_set(reshape_callback_tls_key, @callback);
./glut.rs:123     glutReshapeFunc(reshape_callback);
./glut.rs:124 }
rust: task failed at 'lookup_item: id not found: 91351', /home/sk/work/mozilla/rust-git/rust/src/rustc/metadata/decoder.rs:105
/home/sk/usr/bin/../lib/librustrt.so(_ZN9rust_task13begin_failureEPKcS1_m+0x5d)[0x2b877cca970d]
/home/sk/usr/bin/../lib/librustrt.so(+0x2eced)[0x2b877ccbcced]
/home/sk/usr/bin/../lib/librustrt.so(upcall_fail+0x1a8)[0x2b877ccac238]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(+0x54b46f)[0x2b877c70b46f]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN8metadata7csearch13get_item_path17_9ad5f01ebeb621413_03E+0x90)[0x2b877c4394c0]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle2ty9item_path17_9ad5f01ebeb621413_03E+0xcc)[0x2b877c370edc]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN4util5ppaux9ty_to_str17_c98546f177ec3cd43_03E+0xbc0)[0x2b877c2aa9f0]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN4util5ppaux9ty_to_str17_c98546f177ec3cd43_03E+0xcfc)[0x2b877c2aab2c]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(+0x1660d5)[0x2b877c3260d5]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN4util5ppaux13parameterized17_52cdbe944b7e675a3_03E+0x26c)[0x2b877c32374c]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN4util5ppaux9ty_to_str17_c98546f177ec3cd43_03E+0x330)[0x2b877c2aa160]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(+0x1660d5)[0x2b877c3260d5]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN4util5ppaux13parameterized17_52cdbe944b7e675a3_03E+0x26c)[0x2b877c32374c]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(+0x16223d)[0x2b877c32223d]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans7type_of7type_of17_8c7a3a8ee88ea1f73_03E+0x724)[0x2b877c31d284]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans7type_of7type_of17_8c7a3a8ee88ea1f73_03E+0x90b)[0x2b877c31d46b]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base8alloc_ty17_16a16bb1a59427d23_03E+0x94)[0x2b877c358024]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base11alloc_local17_17d6b089d8ad73ea3_03E+0xd8)[0x2b877c3929e8]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base11trans_block17_d9aebb1398a05e9b3_03E+0x12f)[0x2b877c35cf2f]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base13trans_closure17_ca58b438ef8b10a33_03E+0x519)[0x2b877c3985f9]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base8trans_fn17_84c3944bfbfd51d43_03E+0x15c)[0x2b877c36644c]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base14monomorphic_fn17_98105af869f14f553_03E+0x29e9)[0x2b877c347939]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(+0x598370)[0x2b877c758370]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base20lval_static_fn_inner17_1975e9bc6ec8c7443_03E+0x16e)[0x2b877c37291e]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base14lval_static_fn17_21975f3893d4d8583_03E+0x13d)[0x2b877c37226d]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base9trans_var17_f015dfda9d2605b63_03E+0x256)[0x2b877c3758e6]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base10trans_path17_8e6c2a54263aa2f63_03E+0xdc)[0x2b877c3747bc]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base12trans_callee17_83456355f11bfb793_03E+0x126)[0x2b877c377696]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(+0x1c4caa)[0x2b877c384caa]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base10with_scope17_cc551c6ea70c88633_03E+0xa9)[0x2b877c384ab9]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base10trans_call17_97ff417b6513fb913_03E+0x316)[0x2b877c37df76]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(+0x1c8c2f)[0x2b877c388c2f]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base10trans_expr17_81df8f84438f5c733_03E+0x5d1)[0x2b877c354bc1]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base11trans_block17_d9aebb1398a05e9b3_03E+0x35e)[0x2b877c35d15e]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base13trans_closure17_ca58b438ef8b10a33_03E+0x519)[0x2b877c3985f9]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base8trans_fn17_84c3944bfbfd51d43_03E+0x15c)[0x2b877c36644c]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base14monomorphic_fn17_98105af869f14f553_03E+0x29e9)[0x2b877c347939]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base20lval_static_fn_inner17_1975e9bc6ec8c7443_03E+0x16e)[0x2b877c37291e]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base14lval_static_fn17_21975f3893d4d8583_03E+0x13d)[0x2b877c37226d]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base9trans_var17_f015dfda9d2605b63_03E+0x256)[0x2b877c3758e6]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base10trans_path17_8e6c2a54263aa2f63_03E+0xdc)[0x2b877c3747bc]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base12trans_callee17_83456355f11bfb793_03E+0x126)[0x2b877c377696]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(+0x1c4caa)[0x2b877c384caa]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base10with_scope17_cc551c6ea70c88633_03E+0xa9)[0x2b877c384ab9]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base10trans_call17_97ff417b6513fb913_03E+0x316)[0x2b877c37df76]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(+0x1c8c2f)[0x2b877c388c2f]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base10trans_expr17_81df8f84438f5c733_03E+0x5d1)[0x2b877c354bc1]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base11trans_block17_d9aebb1398a05e9b3_03E+0x35e)[0x2b877c35d15e]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base13trans_closure17_ca58b438ef8b10a33_03E+0x519)[0x2b877c3985f9]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base8trans_fn17_84c3944bfbfd51d43_03E+0x15c)[0x2b877c36644c]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base14monomorphic_fn17_98105af869f14f553_03E+0x29e9)[0x2b877c347939]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base20lval_static_fn_inner17_1975e9bc6ec8c7443_03E+0x16e)[0x2b877c37291e]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base14lval_static_fn17_21975f3893d4d8583_03E+0x13d)[0x2b877c37226d]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base9trans_var17_f015dfda9d2605b63_03E+0x256)[0x2b877c3758e6]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base10trans_path17_8e6c2a54263aa2f63_03E+0xdc)[0x2b877c3747bc]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base12trans_callee17_83456355f11bfb793_03E+0x126)[0x2b877c377696]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(+0x1c4caa)[0x2b877c384caa]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(+0x598370)[0x2b877c758370]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base10with_scope17_cc551c6ea70c88633_03E+0xa9)[0x2b877c384ab9]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base10trans_call17_97ff417b6513fb913_03E+0x316)[0x2b877c37df76]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(+0x1c8c2f)[0x2b877c388c2f]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base10trans_expr17_81df8f84438f5c733_03E+0x5d1)[0x2b877c354bc1]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base18trans_expr_save_in17_d2d5eb4d385e5eed3_03E+0x162)[0x2b877c352b22]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base15trans_temp_lval17_6437cc1e973014e13_03E+0x439)[0x2b877c355519]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base14trans_arg_expr17_9f5411b0e3ed373d3_03E+0x34b)[0x2b877c37a82b]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4impl14trans_self_arg17_6d746acd5d76df0d3_03E+0x1d0)[0x2b877c3dc000]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4impl19trans_method_callee17_e2f91d29cdf9a2713_03E+0x9b)[0x2b877c35433b]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base12trans_callee17_83456355f11bfb793_03E+0x10f)[0x2b877c37767f]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(+0x1c4caa)[0x2b877c384caa]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base10with_scope17_cc551c6ea70c88633_03E+0xa9)[0x2b877c384ab9]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base10trans_call17_97ff417b6513fb913_03E+0x316)[0x2b877c37df76]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(+0x1c8c2f)[0x2b877c388c2f]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base10trans_expr17_81df8f84438f5c733_03E+0x5d1)[0x2b877c354bc1]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base18trans_expr_save_in17_d2d5eb4d385e5eed3_03E+0x162)[0x2b877c352b22]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(+0x598370)[0x2b877c758370]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base10init_local17_17d6b089d8ad73ea3_03E+0x1e7)[0x2b877c390787]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(+0x1d1882)[0x2b877c391882]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base10trans_stmt17_5bc83ccb7b66511c3_03E+0x317)[0x2b877c391727]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base11trans_block17_d9aebb1398a05e9b3_03E+0x1c1)[0x2b877c35cfc1]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base13trans_closure17_ca58b438ef8b10a33_03E+0x4e0)[0x2b877c3985c0]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base8trans_fn17_84c3944bfbfd51d43_03E+0x15c)[0x2b877c36644c]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans7foreign16trans_foreign_fn17_7fc392df81d7f5db3_03E+0x4e3)[0x2b877c39e273]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base10trans_item17_4992cee3f3bf6c903_03E+0xe46)[0x2b877c370846]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base9trans_mod17_d53c75919a181b153_03E+0xa8)[0x2b877c39eed8]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base10trans_item17_4992cee3f3bf6c903_03E+0x4d8)[0x2b877c36fed8]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base9trans_mod17_d53c75919a181b153_03E+0xa8)[0x2b877c39eed8]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6middle5trans4base11trans_crate17_b5aa61f4c2f667823_03E+0x100b)[0x2b877c3b5c1b]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(+0x5775d1)[0x2b877c7375d1]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(+0x598370)[0x2b877c758370]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6driver6driver12compile_upto17_72edd05480e097483_03E+0x19e0)[0x2b877c7356c0]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(+0x598370)[0x2b877c758370]
/home/sk/usr/bin/../lib/librustc-73389320c1332876-0.3.so(_ZN6driver6driver13compile_input17_dc2f7342b6a0a3fe3_03E+0xbb)[0x2b877c7378eb]
rustc[0x4068ca]
rustc[0x40ca6e]
rustc[0x40bf38]
/home/sk/usr/bin/../lib/libcore-d27e4777a53c3e50-0.3.so(+0x58849)[0x2b877ac7e849]
/home/sk/usr/bin/../lib/libcore-d27e4777a53c3e50-0.3.so(+0x86dd4)[0x2b877acacdd4]
/home/sk/usr/bin/../lib/librustrt.so(_Z18task_start_wrapperP10spawn_args+0x24)[0x2b877ccaa094]
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug
note: try running with RUST_LOG=rustc=0,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues
rust: task failed at 'explicit failure', /home/sk/work/mozilla/rust-git/rust/src/rustc/driver/rustc.rs:256
/home/sk/usr/bin/../lib/librustrt.so(_ZN9rust_task13begin_failureEPKcS1_m+0x5d)[0x2b877cca970d]
/home/sk/usr/bin/../lib/librustrt.so(+0x2eced)[0x2b877ccbcced]
/home/sk/usr/bin/../lib/librustrt.so(upcall_fail+0x1a8)[0x2b877ccac238]
rustc[0x40b3bc]
rustc[0x410294]
rustc[0x40fe18]
/home/sk/usr/bin/../lib/librustrt.so(_Z18task_start_wrapperP10spawn_args+0x24)[0x2b877ccaa094]
rust: domain main @0x1efaec0 root task failed
rust: task failed at 'killed', /home/sk/work/mozilla/rust-git/rust/src/libcore/task.rs:523
/home/sk/usr/bin/../lib/librustrt.so(_ZN9rust_task13begin_failureEPKcS1_m+0x5d)[0x2b877cca970d]
/home/sk/usr/bin/../lib/librustrt.so(+0x2eced)[0x2b877ccbcced]
/home/sk/usr/bin/../lib/librustrt.so(upcall_fail+0x1a8)[0x2b877ccac238]
/home/sk/usr/bin/../lib/libcore-d27e4777a53c3e50-0.3.so(_ZN4task5yield17_8bfde8cf2fff81633_03E+0xa6)[0x2b877ac6d996]
/home/sk/usr/bin/../lib/libcore-d27e4777a53c3e50-0.3.so(+0x6d2a4)[0x2b877ac932a4]
/home/sk/usr/bin/../lib/libcore-d27e4777a53c3e50-0.3.so(+0x86dd4)[0x2b877acacdd4]
/home/sk/usr/bin/../lib/libcore-d27e4777a53c3e50-0.3.so(_ZN4priv11weaken_task17_2b14e75713b55a573_03E+0xff)[0x2b877ac9311f]
/home/sk/usr/bin/../lib/libcore-d27e4777a53c3e50-0.3.so(+0x6cfb5)[0x2b877ac92fb5]
/home/sk/usr/bin/../lib/libcore-d27e4777a53c3e50-0.3.so(+0x6c1a4)[0x2b877ac921a4]
/home/sk/usr/bin/../lib/libcore-d27e4777a53c3e50-0.3.so(+0x6b50a)[0x2b877ac9150a]
/home/sk/usr/bin/../lib/libcore-d27e4777a53c3e50-0.3.so(+0x58849)[0x2b877ac7e849]
/home/sk/usr/bin/../lib/libcore-d27e4777a53c3e50-0.3.so(+0x86dd4)[0x2b877acacdd4]
/home/sk/usr/bin/../lib/librustrt.so(_Z18task_start_wrapperP10spawn_args+0x24)[0x2b877ccaa094]
make: *** [librustglut.dummy] Error 101
sk@numa:/tmp/rust-glut$ 
sk@numa:/tmp/rust-glut$ rustc --version
rustc 0.3 (6081eb7 2012-07-15 05:41:24 -0700)
host: x86_64-unknown-linux-gnu
sk@numa:/tmp/rust-glut$ uname -a
Linux numa 3.4-trunk-amd64 #1 SMP Wed Jun 6 10:34:53 CEST 2012 x86_64 GNU/Linux
sk@numa:/tmp/rust-glut$
@kolosov
Copy link
Author

kolosov commented Jul 18, 2012

Sorry, it is duplicate of bug #2945

@kolosov kolosov closed this as completed Jul 18, 2012
RalfJung pushed a commit to RalfJung/rust that referenced this issue Jul 8, 2023
…RalfJung

cargo-miri: better error message when RUSTC is not set

Currently, when running `cargo-miri` instead of `cargo miri` you get a very confusing.

```
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: NotPresent', src/tools/miri/cargo-miri/src/main.rs:83:41
```

error. This replaces that with a message telling them to use `cargo miri`
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

1 participant