Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 591942 - dev-util/cargo-0.12.0 - .../work/cargo_home/registry/src/github.com-88ac128001ac3a9a/curl-0.3.0/src/panic.rs:3:24: 3:40 error: unresolved import `std::panic::AssertUnwindSafe`. There is no `AssertUnwindSafe` in `std::panic`
Summary: dev-util/cargo-0.12.0 - .../work/cargo_home/registry/src/github.com-88ac12800...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Rust Project
URL: https://github.com/alexcrichton/curl-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-23 17:57 UTC by Harris Landgarten
Modified: 2016-09-30 21:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Harris Landgarten 2016-08-23 17:57:47 UTC
Compiling curl v0.3.0
     Running `rustc /var/tmp/paludis/dev-util-cargo-0.12.0/work/cargo_home/registry/src/github.com-88ac128001ac3a9a/curl-0.3.0/src/lib.rs --crate-name curl --crate-type lib -C opt-level=3 -C metadata=03671fa2ef8a3330 -C extra-filename=-03671fa2ef8a3330 --out-dir /var/tmp/paludis/dev-util-cargo-0.12.0/work/cargo-0.12.0/target/x86_64-unknown-linux-gnu/release/deps --emit=dep-info,link --target x86_64-unknown-linux-gnu -L dependency=/var/tmp/paludis/dev-util-cargo-0.12.0/work/cargo-0.12.0/target/x86_64-unknown-linux-gnu/release/deps -L dependency=/var/tmp/paludis/dev-util-cargo-0.12.0/work/cargo-0.12.0/target/x86_64-unknown-linux-gnu/release/deps --extern libc=/var/tmp/paludis/dev-util-cargo-0.12.0/work/cargo-0.12.0/target/x86_64-unknown-linux-gnu/release/deps/liblibc-036fbedefddee9e8.rlib --extern openssl_sys=/var/tmp/paludis/dev-util-cargo-0.12.0/work/cargo-0.12.0/target/x86_64-unknown-linux-gnu/release/deps/libopenssl_sys-2e99e5f7a9a32616.rlib --extern curl_sys=/var/tmp/paludis/dev-util-cargo-0.12.0/work/cargo-0.12.0/target/x86_64-unknown-linux-gnu/release/deps/libcurl_sys-1dc2ea5da01c5626.rlib --cap-lints allow -L native=/usr/lib64 -L native=/usr/lib64 -L native=/usr/lib64`
/var/tmp/paludis/dev-util-cargo-0.12.0/work/cargo_home/registry/src/github.com-88ac128001ac3a9a/curl-0.3.0/src/panic.rs:3:24: 3:40 error: unresolved import `std::panic::AssertUnwindSafe`. There is no `AssertUnwindSafe` in `std::panic` [E0432]
/var/tmp/paludis/dev-util-cargo-0.12.0/work/cargo_home/registry/src/github.com-88ac128001ac3a9a/curl-0.3.0/src/panic.rs:3 use std::panic::{self, AssertUnwindSafe};
                                                                                                                                                 ^~~~~~~~~~~~~~~~
/var/tmp/paludis/dev-util-cargo-0.12.0/work/cargo_home/registry/src/github.com-88ac128001ac3a9a/curl-0.3.0/src/panic.rs:3:24: 3:40 help: run `rustc --explain E0432` to see a detailed explanation
/var/tmp/paludis/dev-util-cargo-0.12.0/work/cargo_home/registry/src/github.com-88ac128001ac3a9a/curl-0.3.0/src/panic.rs:17:11: 17:30 error: unresolved name `panic::catch_unwind` [E0425]
/var/tmp/paludis/dev-util-cargo-0.12.0/work/cargo_home/registry/src/github.com-88ac128001ac3a9a/curl-0.3.0/src/panic.rs:17     match panic::catch_unwind(AssertUnwindSafe(f)) {
                                                                                                                                     ^~~~~~~~~~~~~~~~~~~
/var/tmp/paludis/dev-util-cargo-0.12.0/work/cargo_home/registry/src/github.com-88ac128001ac3a9a/curl-0.3.0/src/panic.rs:17:11: 17:30 help: run `rustc --explain E0425` to see a detailed explanation
/var/tmp/paludis/dev-util-cargo-0.12.0/work/cargo_home/registry/src/github.com-88ac128001ac3a9a/curl-0.3.0/src/panic.rs:28:9: 28:29 error: unresolved name `panic::resume_unwind` [E0425]
/var/tmp/paludis/dev-util-cargo-0.12.0/work/cargo_home/registry/src/github.com-88ac128001ac3a9a/curl-0.3.0/src/panic.rs:28         panic::resume_unwind(t)
                                                                                                                                   ^~~~~~~~~~~~~~~~~~~~
/var/tmp/paludis/dev-util-cargo-0.12.0/work/cargo_home/registry/src/github.com-88ac128001ac3a9a/curl-0.3.0/src/panic.rs:28:9: 28:29 help: run `rustc --explain E0425` to see a detailed explanation
Build failed, waiting for other jobs to finish...
error: aborting due to 3 previous errors

Error:
  * In program cave perform install --hooks --managed-output --output-exclusivity with-others =dev-util/cargo-0.12.0:0::gentoo --destination installed --replacing =dev-util/cargo-0.11.0:0::installed --x-of-y 3 of 3:
  * When installing 'dev-util/cargo-0.12.0:0::gentoo' replacing { 'dev-util/cargo-0.11.0:0::installed' }:
  * When running an ebuild command on 'dev-util/cargo-0.12.0:0::gentoo':
  * Install failed for 'dev-util/cargo-0.12.0:0::gentoo' (paludis::ActionFailedError)

error: Could not compile `curl`.
Comment 1 Hanno Böck gentoo-dev 2016-09-30 12:17:04 UTC
I'm getting the same error with the just committed cargo 0.13.0 and rust 0.12.0.
This surprises me a bit, because it means the rust maintainers seem to not have this problem. So it must be something on our systems that's causing this failure.
Comment 2 Dirkjan Ochtman (RETIRED) gentoo-dev 2016-09-30 18:55:25 UTC
According to upstream, this could happen when you're installing cargo-0.12.0+ with rust older than 1.9.0. cargo-0.13.0-r1 now depends on >=rust-1.9.0. Please give it a shot!
Comment 3 Harris Landgarten 2016-09-30 19:23:43 UTC
I am using dev-lang/rust-1.12.0 and still getting the same error
Comment 4 Hanno Böck gentoo-dev 2016-09-30 20:41:35 UTC
Same here (rust 12, still seeing the error), but now I know what's going on. I still had rust-bin installed and that's still at 1.8.0.

So for all people seeing this: You can fix it by uninstalling rust-bin and afterwards running "eselect rust set 1".

Still for bootstrapping reasons rust-bin should be bumped, I've created bug #595720 for that.
Comment 5 Harris Landgarten 2016-09-30 21:06:52 UTC
I can confirm uninstalling rust-bin fixes the issue