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

ERROR:rbml::reader: failed to find block with tag 258 while compiling 1.2 for arm-unknown-linux-gnueabi #27645

Closed
Phyllostachys opened this issue Aug 10, 2015 · 5 comments
Labels
A-metadata Area: Crate metadata I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@Phyllostachys
Copy link

While compiling rust 1.2.0 on a Ubuntu 15.04 virtualbox VM for arm-unknown-linux-gnueabi, I ran into a panic compiling src/librbml/libs.rs at line 395.

My configuration and build commands:

./configure --target=arm-unknown-linux-gnueabi
make -j4

My rustc --version --verbose output:

rustc 1.2.0 (082e47636 2015-08-03)
binary: rustc
commit-hash: 082e4763615bdbe7b4dd3dfd6fc2210b7773edf5
commit-date: 2015-08-03
host: i686-unknown-linux-gnu
release: 1.2.0

My backtrace (with some context):

...
rustc: i686-unknown-linux-gnu/stage0/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_borrowck
ERROR:rbml::reader: failed to find block with tag 258
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'explicit panic', /home/rustbuild/src/rust-buildbot/slave/snap3-linux/build/src/librbml/lib.rs:395

stack backtrace:
   1: 0xb6ec2b02 - sys::backtrace::write::he3b50ffa93e66db3y6r
   2: 0xb6ec7503 - panicking::on_panic::ha14323fb995878d9JMw
   3: 0xb6e9f941 - rt::unwind::begin_unwind_inner::h6792445ed6162316Trw
   4: 0xb5a52592 - rt::unwind::begin_unwind::h2091379484899282860
   5: 0xb5a51167 - reader::get_doc::h47a4bbc19d18a7d4Uxa
   6: 0xb59b9b2c - metadata::decoder::get_crate_deps::h5a46707396db73b9Gtl
   7: 0xb59cc574 - metadata::creader::CrateReader<'a>::register_crate::h4663e36cd14bd9238rm
   8: 0xb59cadbc - metadata::creader::CrateReader<'a>::resolve_crate::habc4ea13f42e50b5Aum
   9: 0xb59c645d - metadata::creader::CrateReader<'a>.visit..Visitor<'v>::visit_item::h6836dc1aa3e3a5baMZl
  10: 0xb59c9d40 - metadata::creader::CrateReader<'a>::read_crates::h927d1f291dff20f33dm
  11: 0xb5181c4c - driver::phase_3_run_analysis_passes::h84379ac2cda63543GGa
  12: 0xb51651c6 - driver::compile_input::h57c7922222e482fcQba
  13: 0xb522d61d - run_compiler::hbeaaa17f1cef5e78o6b
  14: 0xb522a96e - boxed::F.FnBox<A>::call_box::h11989744525548034558
  15: 0xb522a141 - rt::unwind::try::try_fn::h10106055873462282994
  16: 0xb6ecce5a - rust_try_inner
  17: 0xb6ecce33 - rust_try
  18: 0xb6eba84c - rt::unwind::try::inner_try::hebc238d1b3890071Mnw
  19: 0xb522a368 - boxed::F.FnBox<A>::call_box::h14253436629357441387
  20: 0xb6ec62a4 - sys::thread::Thread::new::thread_start::h87fdae7c6e8012132xv
  21: 0xb507c1a9 - start_thread
  22: 0xb4f2bfdd - clone
  23:        0x0 - <unknown>

/home/jps/compiling-stuff/rustc-1.2.0/mk/target.mk:171: recipe for target 'i686-unknown-linux-gnu/stage0/lib/rustlib/i686-unknown-linux-gnu/lib/stamp.rustc_borrowck' failed
make: *** [i686-unknown-linux-gnu/stage0/lib/rustlib/i686-unknown-linux-gnu/lib/stamp.rustc_borrowck] Error 101
@Phyllostachys Phyllostachys changed the title internal compiler error while compiling 1.2 for arm-unknown-linux-gnueabi ERROR:rbml::reader: failed to find block with tag 258 while compiling 1.2 for arm-unknown-linux-gnueabi Aug 10, 2015
@jdm jdm added the I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ label Aug 10, 2015
@jroesch jroesch added the A-metadata Area: Crate metadata label Aug 11, 2015
@Passw
Copy link

Passw commented Aug 11, 2015

have similar problem when build rust

...
rustc: i686-unknown-linux-gnu/stage1/lib/rustlib/i686-unknown-linux-gnu/lib/librustc
rustc: i686-unknown-linux-gnu/stage1/lib/rustlib/i686-unknown-linux-gnu/lib/librustc_borrowck
ERROR:rbml::reader: failed to find block with tag 258
fatal runtime error: Could not unwind stack, error = 5
Illegal instruction (core dumped)
/home/sun/rust/mk/target.mk:171: recipe for target 'i686-unknown-linux-gnu/stage1/lib/rustlib/i686-unknown-linux-gnu/lib/stamp.rustc_borrowck' failed
make: *** [i686-unknown-linux-gnu/stage1/lib/rustlib/i686-unknown-linux-gnu/lib/stamp.rustc_borrowck] Error 132

$ uname -a
Linux sun 3.19.0-25-generic #26-Ubuntu SMP Fri Jul 24 21:16:27 UTC 2015 i686 i686 i686 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 15.04
Release:        15.04
Codename:       vivid
$ gcc --version
gcc (Ubuntu 4.9.2-10ubuntu13) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

@Passw
Copy link

Passw commented Aug 15, 2015

It seems that this issue has gone with the latest code

@Phyllostachys
Copy link
Author

Excellent, I'll test to make sure next time I'm able.

@steveklabnik
Copy link
Member

I'm going to give this a close. @Phyllostachys let me know if this still happens for you.

@Phyllostachys
Copy link
Author

Will do, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-metadata Area: Crate metadata I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

5 participants