Skip to content

rustc panic trying to unwrap error "failed to open archive" #26774

Closed
@lambda

Description

@lambda

I was trying to build cargo using the latest rustc nightly, and encountered the following error while building libgit2-sys:

rust:cargo lambda$ RUST_BACKTRACE=1 make
"/usr/local/bin/rustc" -V
rustc 1.3.0-nightly (bf3c979ec 2015-06-30)
"/usr/local/bin/cargo" --version
cargo 0.4.0-nightly (89435c4 2015-07-01) (built 2015-06-30)
/usr/local/bin/cargo build --target x86_64-apple-darwin
   Compiling libgit2-sys v0.2.17
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 'called `Result::unwrap()` on an `Err` value: Error { repr: Custom(Custom { kind: Other, error: StringError("failed to open archive") }) }', ../src/libcore/result.rs:731

stack backtrace:
   1:        0x1106b2485 - sys::backtrace::write::ha69861d01c280e10Vns
   2:        0x1106babe3 - panicking::on_panic::he1db6e7d5ec9c9022Fw
   3:        0x110676af2 - rt::unwind::begin_unwind_inner::h9f73b873795fcd2deow
   4:        0x110677849 - rt::unwind::begin_unwind_fmt::h3999b4670fb43708knw
   5:        0x1106ba76c - rust_begin_unwind
   6:        0x11070ee35 - panicking::panic_fmt::he89ea3094b3178e919B
   7:        0x10ccbb860 - back::link::link_rlib::h611249dbfbbcf54b0Za
   8:        0x10ccb8dd1 - back::link::link_binary::hfbe12607c4d9f35erOa
   9:        0x10cb690b7 - driver::phase_6_link_output::h89621b9463393a31fRa
  10:        0x10cb3c8d1 - driver::compile_input::hb76410fc800a2a41Tba
  11:        0x10cc153af - run_compiler::hd724b5fef3441688y7b
  12:        0x10cc12c63 - boxed::F.FnBox<A>::call_box::h16633087113713113418
  13:        0x10cc12427 - rt::unwind::try::try_fn::h14742554275296927735
  14:        0x1107470f8 - rust_try_inner
  15:        0x1107470e5 - rust_try
  16:        0x1106a49a5 - rt::unwind::try::inner_try::h2041d75ee62fcacd7jw
  17:        0x10cc12658 - boxed::F.FnBox<A>::call_box::h11995599304104652074
  18:        0x1106b966d - sys::thread::Thread::new::thread_start::hb06fec4578e7b89frIv
  19:     0x7fff8a8bc267 - _pthread_body
  20:     0x7fff8a8bc1e4 - _pthread_start

Could not compile `libgit2-sys`.

To learn more, run the command again with --verbose.
make: *** [cargo-x86_64-apple-darwin] Error 101

I had configured Cargo using ./configure --local-cargo=/usr/local/bin/cargo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions