{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/21620","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/21620/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/21620/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/21620/events","html_url":"https://github.com/rust-lang/rust/issues/21620","id":55409518,"number":21620,"title":"ICE compiling stage2 libcore, when building with LLVM-3.5","user":{"login":"lucab","id":98086,"avatar_url":"https://avatars.githubusercontent.com/u/98086?v=3","gravatar_id":"","url":"https://api.github.com/users/lucab","html_url":"https://github.com/lucab","followers_url":"https://api.github.com/users/lucab/followers","following_url":"https://api.github.com/users/lucab/following{/other_user}","gists_url":"https://api.github.com/users/lucab/gists{/gist_id}","starred_url":"https://api.github.com/users/lucab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucab/subscriptions","organizations_url":"https://api.github.com/users/lucab/orgs","repos_url":"https://api.github.com/users/lucab/repos","events_url":"https://api.github.com/users/lucab/events{/privacy}","received_events_url":"https://api.github.com/users/lucab/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/rust/labels/A-llvm","name":"A-llvm","color":"d7e102"},{"url":"https://api.github.com/repos/rust-lang/rust/labels/I-ICE","name":"I-ICE","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-25T10:39:00Z","updated_at":"2015-01-26T21:01:05Z","closed_at":null,"body":"When building with (system-installed) LLVM 3.5, the following assertion is triggered in `libstd/hash`.\r\nThis ICE recently surfaced after PR #21588. However, it looks like somebody already experienced it in #2235.\r\n\r\n```\r\n$ make\r\ncfg: build triple x86_64-unknown-linux-gnu\r\ncfg: host triples x86_64-unknown-linux-gnu\r\ncfg: target triples x86_64-unknown-linux-gnu\r\ncfg: enabling more debugging (CFG_ENABLE_DEBUG)\r\ncfg: host for x86_64-unknown-linux-gnu is x86_64\r\ncfg: os for x86_64-unknown-linux-gnu is unknown-linux-gnu\r\ncfg: good valgrind for x86_64-unknown-linux-gnu is 1\r\ncfg: using CC=gcc (CFG_CC)\r\ncfg: enabling valgrind run-pass tests (CFG_ENABLE_VALGRIND_RPASS)\r\nrustc: x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/bin/rustdoc\r\ncp: x86_64-unknown-linux-gnu/stage2/lib/librustdoc\r\ncp: x86_64-unknown-linux-gnu/stage2/bin/rustdoc\r\nrustc: x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore\r\n/home/lbruno/src/upstream/rust/src/libcore/lib.rs:67:12: 67:26 warning: feature is deprecated and will only be available for a limited time, please rewrite code that relies on it\r\n/home/lbruno/src/upstream/rust/src/libcore/lib.rs:67 #![feature(old_impl_check)]\r\n                                                                ^~~~~~~~~~~~~~\r\n/home/lbruno/src/upstream/rust/src/libcore/lib.rs:67:12: 67:26 warning: feature is deprecated and will only be available for a limited time, please rewrite code that relies on it\r\n/home/lbruno/src/upstream/rust/src/libcore/lib.rs:67 #![feature(old_impl_check)]\r\n                                                                ^~~~~~~~~~~~~~\r\nerror: internal compiler error: unexpected panic\r\nnote: the compiler unexpectedly panicked. this is a bug.\r\nnote: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html\r\nnote: run with `RUST_BACKTRACE=1` for a backtrace\r\nthread 'rustc' panicked at 'assertion failed: self.raw.hash != self.hashes_end', /home/lbruno/src/upstream/rust/src/libstd/collections/hash/table.rs:773\r\n\r\nstack backtrace:\r\n   1:     0x7f08410b10d0 - sys::backtrace::write::h7de15137e855e83cSZt\r\n   2:     0x7f08410d46d0 - failure::on_fail::h4da67e6a3668b239LdA\r\n   3:     0x7f084103f250 - rt::unwind::begin_unwind_inner::h4bd6f5432ad47c00MSz\r\n   4:     0x7f08404aa060 - rt::unwind::begin_unwind::h2320400940752561500\r\n   5:     0x7f08404d15d0 - std..collections..hash..table..RawTable<syntax..ast..Name, (*>::glue_drop.15213::h030c3ec61502adc2\r\n   6:     0x7f08404e4de0 - std..collections..hash..table..RawTable<u32, std..collections..hash..set..HashSet<u32, std..collections..hash..state..DefaultState<rustc..util..nodemap..FnvHasher>>>::glue_drop.15492::h6fcebb91da1f811c\r\n   7:     0x7f084051d520 - Resolver::glue_drop.16400::h8fc30f1baa57af04                                                                                    \r\n   8:     0x7f084051cdf0 - resolve_crate::hbba1f75a4c654450sDi                                                                                             \r\n   9:     0x7f0841623cd0 - driver::phase_3_run_analysis_passes::hdbd523b0dece3c48VFa                                                                       \r\n  10:     0x7f084160bcf0 - driver::compile_input::h36e27867556156cbBba                                                                                     \r\n  11:     0x7f08416d4c80 - run_compiler::hd967642577394639R8b                                                                                              \r\n  12:     0x7f08416d33f0 - thunk::F.Invoke<A, R>::invoke::h4176026213811984                                                                                \r\n  13:     0x7f08416d22f0 - rt::unwind::try::try_fn::h12294395349683804038\r\n  14:     0x7f0841149850 - rust_try_inner\r\n  15:     0x7f0841149840 - rust_try\r\n  16:     0x7f08416d25a0 - thunk::F.Invoke<A, R>::invoke::h18028537340176081056\r\n  17:     0x7f08410c20f0 - sys::thread::thread_start::h9e40879762be7137aPw\r\n  18:     0x7f083bd3cfe0 - start_thread\r\n  19:     0x7f0840ccac99 - __clone\r\n  20:                0x0 - <unknown>\r\n\r\n/home/lbruno/src/upstream/rust/mk/target.mk:165: recipe for target 'x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/stamp.core' failed\r\nmake: *** [x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/stamp.core] Error 101\r\n```"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/71537328","html_url":"https://github.com/rust-lang/rust/issues/21620#issuecomment-71537328","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/21620","id":71537328,"user":{"login":"lucab","id":98086,"avatar_url":"https://avatars.githubusercontent.com/u/98086?v=3","gravatar_id":"","url":"https://api.github.com/users/lucab","html_url":"https://github.com/lucab","followers_url":"https://api.github.com/users/lucab/followers","following_url":"https://api.github.com/users/lucab/following{/other_user}","gists_url":"https://api.github.com/users/lucab/gists{/gist_id}","starred_url":"https://api.github.com/users/lucab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucab/subscriptions","organizations_url":"https://api.github.com/users/lucab/orgs","repos_url":"https://api.github.com/users/lucab/repos","events_url":"https://api.github.com/users/lucab/events{/privacy}","received_events_url":"https://api.github.com/users/lucab/received_events","type":"User","site_admin":false},"created_at":"2015-01-26T21:01:05Z","updated_at":"2015-01-26T21:01:05Z","body":"This seems related to how your LLVM is compiled (thanks @FlaPer87 and @sylvestre for testing).\r\nIn brief, we found that the following combinations work:\r\n * LLVM 3.5.x without `--enable-optimized`\r\n * LLVM 3.5.x with `--enable-optimized` and [this lifetime patch](http://reviews.llvm.org/D4699)\r\n\r\nThis means both that rust should work with a vanilla LLVM 3.5.x, but that it doesn't work with debian one (as it is compiled with the switch and without that patch)."}}