Skip to content

Internal Compiler Error during operating system (redox) build #31636

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
skylerberg opened this issue Feb 13, 2016 · 4 comments
Closed

Internal Compiler Error during operating system (redox) build #31636

skylerberg opened this issue Feb 13, 2016 · 4 comments

Comments

@skylerberg
Copy link

I am working building the redox operating system, which is built in rust and I got an ICE. I don't have any understanding of why this happened, so I will just try to give as much meta information as possible.

Subsequent builds also resulted in the same ICE.

Meta

Version:

skyler@sib5:~/Desktop/redox|master⚡→  rustc --version --verbose
rustc 1.8.0-nightly (ce4b75f25 2016-02-12)
binary: rustc
commit-hash: ce4b75f25662cb9facafc4bef368410a2979b936
commit-date: 2016-02-12
host: x86_64-unknown-linux-gnu
release: 1.8.0-nightly

Redox commit 31bf5ab19e1222739f30ec5c7535cf4c0fccad09

Operating system: Ubuntu 14.04, Linux kernel 4.2.3-040203-generic

Compile messages and backtrace:

skyler@sib5:~/Desktop/redox|master⚡→  make qemu 
mkdir -p build/i386-unknown-redox/debug
RUST_BACKTRACE=1 rustc --target=i386-unknown-redox.json -L build/i386-unknown-redox/debug -C no-prepopulate-passes -C no-stack-check -C opt-level=2 -Z no-landing-pads -A dead_code -o build/i386-unknown-redox/debug/libcore.rlib rust/src/libcore/lib.rs
RUST_BACKTRACE=1 rustc --target=i386-unknown-redox.json -L build/i386-unknown-redox/debug -C no-prepopulate-passes -C no-stack-check -C opt-level=2 -Z no-landing-pads -A dead_code -o build/i386-unknown-redox/debug/liballoc_system.rlib liballoc_system/lib.rs
RUST_BACKTRACE=1 rustc --target=i386-unknown-redox.json -L build/i386-unknown-redox/debug -C no-prepopulate-passes -C no-stack-check -C opt-level=2 -Z no-landing-pads -A dead_code -o build/i386-unknown-redox/debug/liballoc.rlib rust/src/liballoc/lib.rs
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
thread 'rustc' panicked at 'box_free language item is missing', ../src/libcore/option.rs:704
stack backtrace:
   1:     0x2b26f9e9e010 - sys::backtrace::tracing::imp::write::h777bcf35f5f62316pru
   2:     0x2b26f9ea6fcb - panicking::default_handler::_$u7b$$u7b$closure$u7d$$u7d$::closure.43419
   3:     0x2b26f9ea6b23 - panicking::default_handler::he9bc2fc9631cb5acdZy
   4:     0x2b26f9e6f94c - sys_common::unwind::begin_unwind_inner::h180f7a790497cb1fegt
   5:     0x2b26f9e703e8 - sys_common::unwind::begin_unwind_fmt::h293e42c26c2fd043kft
   6:     0x2b26f9e9b9b1 - rust_begin_unwind
   7:     0x2b26f9eee5af - panicking::panic_fmt::hee4e2b1476c2eccf6YL
   8:     0x2b26f9f0e0b4 - option::expect_failed::hce1006b9d4043994ftO
   9:     0x2b26fbe9fdd9 - build::scope::build_free::h501022c79a0fdff4zqd
  10:     0x2b26fbe8e927 - build::scope::Builder<'a, 'tcx>::diverge_cleanup::hc72134fb37e8959bjbd
  11:     0x2b26fbe6dde0 - build::scope::Builder<'a, 'tcx>::pop_scope::hd63ebd3c98058027e0c
  12:     0x2b26fbe89191 - build::expr::into::Builder<'a, 'tcx>::into_expr::hb4b0c19007b154ce57a
  13:     0x2b26fbe8341c - build::expr::as_rvalue::Builder<'a, 'tcx>::expr_as_rvalue::_$u7b$$u7b$closure$u7d$$u7d$::closure.19151
  14:     0x2b26fbe7a8e2 - build::expr::as_rvalue::Builder<'a, 'tcx>::expr_as_rvalue::ha903ae1a48151764oCa
  15:     0x2b26fbe889a3 - build::expr::into::Builder<'a, 'tcx>::into_expr::hb4b0c19007b154ce57a
  16:     0x2b26fbe715be - build::into::ExprRef<'tcx>.EvalInto<'tcx>::eval_into::h806853e711724ce88pb
  17:     0x2b26fbe89180 - build::expr::into::Builder<'a, 'tcx>::into_expr::hb4b0c19007b154ce57a
  18:     0x2b26fbe715be - build::into::ExprRef<'tcx>.EvalInto<'tcx>::eval_into::h806853e711724ce88pb
  19:     0x2b26fbe6ef86 - build::block::Builder<'a, 'tcx>::ast_block::h776aa108c21dd891Cka
  20:     0x2b26fbe6a778 - build::construct::h9e27b909af9c7721dca
  21:     0x2b26fbeb4874 - mir_map::InnerDump<'a, 'm, 'tcx>.Visitor<'tcx>::visit_fn::hadb08d20689e4c98Mqg
  22:     0x2b26fbebc2b7 - mir_map::OuterDump<'a, 'tcx>.Visitor<'tcx>::visit_impl_item::hdd236982e1900f99epg
  23:     0x2b26fbeb2ca1 - mir_map::OuterDump<'a, 'tcx>.Visitor<'tcx>::visit_item::h7c6ad5aea2034cd5Xng
  24:     0x2b26fbeb1d0b - mir_map::build_mir_for_crate::hbc4f773985024b826lg
  25:     0x2b26f9a9e0ed - driver::phase_3_run_analysis_passes::_$u7b$$u7b$closure$u7d$$u7d$::closure.28028
  26:     0x2b26f9a99fd4 - middle::ty::context::ctxt<'tcx>::create_and_enter::h9052857365067484405
  27:     0x2b26f9a96131 - driver::phase_3_run_analysis_passes::h16529546982204799597
  28:     0x2b26f9a67aba - driver::compile_input::ha4fd080cbc61cb8eBca
  29:     0x2b26f9a579d2 - run_compiler::h784c0b63acee3c98bHc
  30:     0x2b26f9a54e91 - sys_common::unwind::try::try_fn::h12199866095266630469
  31:     0x2b26f9e9b93b - __rust_try
  32:     0x2b26f9e93f6d - sys_common::unwind::inner_try::h6356de3d206e2a61gdt
  33:     0x2b26f9a556e0 - boxed::F.FnBox<A>::call_box::h13644564803090113305
  34:     0x2b26f9ea5590 - sys::thread::Thread::new::thread_start::ha3fa12507cdb7617xWx
  35:     0x2b27018cc181 - start_thread
  36:     0x2b26fa44d47c - __clone
  37:                0x0 - <unknown>

make: *** [build/i386-unknown-redox/debug/liballoc.rlib] Error 101
@jonas-schievink
Copy link
Contributor

Should've been fixed by #31564

@skylerberg
Copy link
Author

@jonas-schievink So that should hit in tomorrow's nightly?

@jonas-schievink
Copy link
Contributor

Yeah, I think so

@skylerberg
Copy link
Author

Thanks, closing.

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

No branches or pull requests

2 participants