Opened 9 years ago

Closed 9 years ago

#49084 closed defect (fixed)

cargo @0.5.0: error: internal compiler error: unexpected panic

Reported by: steven.charles.davis@… Owned by: seanfarley (Sean Farley)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc:
Port: cargo

Description (last modified by ryandesign (Ryan Carsten Schmidt))

From main.log saw a compiler panic including the message:

:info:build note: the compiler unexpectedly panicked. this is a bug.

Fuller detail:

:info:build      Running `rustc /opt/local/var/macports/build/_opt_local_var_macports_so
urces_rsync.macports.org_release_tarballs_ports_devel_cargo/cargo/work/.home/.cargo/regi
stry/src/github.com-1ecc6299db9ec823/libgit2-sys-0.2.20/lib.rs --crate-name libgit2_sys 
--crate-type lib -g -C metadata=3e683d02bb9a177d -C extra-filename=-3e683d02bb9a177d --o
ut-dir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_
release_tarballs_ports_devel_cargo/cargo/work/cargo-0.5.0/target/x86_64-apple-darwin/deb
ug/deps --emit=dep-info,link --target x86_64-apple-darwin -L dependency=/opt/local/var/m
acports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_
devel_cargo/cargo/work/cargo-0.5.0/target/x86_64-apple-darwin/debug/deps -L dependency=/
opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_
tarballs_ports_devel_cargo/cargo/work/cargo-0.5.0/target/x86_64-apple-darwin/debug/deps 
--extern libz_sys=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.ma
cports.org_release_tarballs_ports_devel_cargo/cargo/work/cargo-0.5.0/target/x86_64-apple
-darwin/debug/deps/liblibz_sys-b78e148f2a091772.rlib --extern libc=/opt/local/var/macpor
ts/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel
_cargo/cargo/work/cargo-0.5.0/target/x86_64-apple-darwin/debug/deps/liblibc-2eda841eb12a
3090.rlib --extern openssl_sys=/opt/local/var/macports/build/_opt_local_var_macports_sou
rces_rsync.macports.org_release_tarballs_ports_devel_cargo/cargo/work/cargo-0.5.0/target
/x86_64-apple-darwin/debug/deps/libopenssl_sys-149f6ef08ad7404d.rlib --extern libssh2_sy
s=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_relea
se_tarballs_ports_devel_cargo/cargo/work/cargo-0.5.0/target/x86_64-apple-darwin/debug/de
ps/liblibssh2_sys-1237e3d685ab0978.rlib -Awarnings -L native=/opt/local/lib -L native=/o
pt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_t
arballs_ports_devel_cargo/cargo/work/cargo-0.5.0/target/x86_64-apple-darwin/debug/build/
libgit2-sys-3e683d02bb9a177d/out/lib -L native=/opt/local/var/macports/build/_opt_local_
var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cargo/cargo/work/ca
rgo-0.5.0/target/x86_64-apple-darwin/debug/build/libssh2-sys-1237e3d685ab0978/out/lib -L
 native=/opt/local/lib -l static=z -l static=iconv -l static=git2 -l static=ssh2 -l stat
ic=ssl -l static=z -l static=crypto -l static=z -L native=/opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cargo/ca
rgo/work/cargo-0.5.0/target/x86_64-apple-darwin/debug/build/libssh2-sys-1237e3d685ab0978
/out/lib -L native=/opt/local/lib -L native=/opt/local/lib -L native=/opt/local/var/macp
orts/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_dev
el_cargo/cargo/work/cargo-0.5.0/target/x86_64-apple-darwin/debug/build/openssl-sys-149f6
ef08ad7404d/out`
:info:build error: internal compiler error: unexpected panic
:info:build note: the compiler unexpectedly panicked. this is a bug.
:info:build note: we would appreciate a bug report: https://github.com/rust-lang/rust/bl
ob/master/CONTRIBUTING.md#bug-reports
:info:build note: run with `RUST_BACKTRACE=1` for a backtrace
:info:build thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: Err
or { repr: Custom(Custom { kind: Other, error: StringError("failed to open archive") }) 
}', src/libcore/result.rs:731
:info:build 
:info:build 
:info:build Could not compile `libgit2-sys`.
:info:build 
:info:build Caused by:
:info:build   Process didn't exit successfully: `rustc /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cargo/cargo/work/.home/.cargo/registry/src/github.com-1ecc6299db9ec823/libgit2-sys-0.2.20/lib.rs --crate-name libgit2_sys --crate-type lib -g -C metadata=3e683d02bb9a177d -C extra-filename=-3e683d02bb9a177d --out-dir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cargo/cargo/work/cargo-0.5.0/target/x86_64-apple-darwin/debug/deps --emit=dep-info,link --target x86_64-apple-darwin -L dependency=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cargo/cargo/work/cargo-0.5.0/target/x86_64-apple-darwin/debug/deps -L dependency=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cargo/cargo/work/cargo-0.5.0/target/x86_64-apple-darwin/debug/deps --extern libz_sys=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cargo/cargo/work/cargo-0.5.0/target/x86_64-apple-darwin/debug/deps/liblibz_sys-b78e148f2a091772.rlib --extern libc=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cargo/cargo/work/cargo-0.5.0/target/x86_64-apple-darwin/debug/deps/liblibc-2eda841eb12a3090.rlib --extern openssl_sys=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cargo/cargo/work/cargo-0.5.0/target/x86_64-apple-darwin/debug/deps/libopenssl_sys-149f6ef08ad7404d.rlib --extern libssh2_sys=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cargo/cargo/work/cargo-0.5.0/target/x86_64-apple-darwin/debug/deps/liblibssh2_sys-1237e3d685ab0978.rlib -Awarnings -L native=/opt/local/lib -L native=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cargo/cargo/work/cargo-0.5.0/target/x86_64-apple-darwin/debug/build/libgit2-sys-3e683d02bb9a177d/out/lib -L native=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cargo/cargo/work/cargo-0.5.0/target/x86_64-apple-darwin/debug/build/libssh2-sys-1237e3d685ab0978/out/lib -L native=/opt/local/lib -l static=z -l static=iconv -l static=git2 -l static=ssh2 -l static=ssl -l static=z -l static=crypto -l static=z -L native=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cargo/cargo/work/cargo-0.5.0/target/x86_64-apple-darwin/debug/build/libssh2-sys-1237e3d685ab0978/out/lib -L native=/opt/local/lib -L native=/opt/local/lib -L native=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cargo/cargo/work/cargo-0.5.0/target/x86_64-apple-darwin/debug/build/openssl-sys-149f6ef08ad7404d/out` (exit code: 101)
:info:build gnumake: *** [cargo-x86_64-apple-darwin] Error 101
:info:build gnumake: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cargo/cargo/work/cargo-0.5.0'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cargo/cargo/work/cargo-0.5.0" && /usr/bin/gnumake -j4 -w all VERBOSE=1 CC=/usr/bin/clang CXX=/usr/bin/clang++ CPP="/usr/bin/clang -E" DYLD_FALLBACK_LIBRARY_PATH="/opt/local/lib" 
:info:build Exit code: 2
:error:build org.macports.build for port cargo returned: command execution failed
:debug:build Error code: CHILDSTATUS 13216 2
:debug:build Backtrace: command execution failed
    while executing
    "system -nice 0 $fullcmdstring"
        ("eval" body line 1)
        invoked from within
    "eval system $notty $nice \$fullcmdstring"
        invoked from within
    "command_exec build"
        (procedure "portbuild::build_main" line 8)
        invoked from within
    "portbuild::build_main org.macports.build"
        ("eval" body line 1)
        invoked from within
    "eval $procedure $targetname"
    :info:build Warning: targets not executed for cargo: org.macports.activate org.macports.build org.macports.destroot org.macports.install
    :notice:build Please see the log file for port cargo for details:
        /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cargo/cargo/main.log

Change History (3)

comment:1 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: cargo rust removed
Owner: changed from macports-tickets@… to sean@…
Summary: Cargo install on El Capitan -cargo @0.5.0: error: internal compiler error: unexpected panic

Remember to use WikiFormatting when writing in Trac.

comment:2 in reply to:  description Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to steven.charles.davis@…:

:info:build note: we would appreciate a bug report: https://github.com/rust-lang/rust/bl
ob/master/CONTRIBUTING.md#bug-reports

Perhaps you should read this file.

comment:3 Changed 9 years ago by seanfarley (Sean Farley)

Resolution: fixed
Status: newclosed

rust and cargo have both been updated, so I hope that fixed this error.

Note: See TracTickets for help on using tickets.