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

cargo miri setup is failing due to rustc-std-workspace-alloc #713

Closed
oli-obk opened this issue Apr 24, 2019 · 4 comments
Closed

cargo miri setup is failing due to rustc-std-workspace-alloc #713

oli-obk opened this issue Apr 24, 2019 · 4 comments
Labels
A-cargo Area: affects the cargo wrapper (cargo miri) C-bug Category: This is a bug.

Comments

@oli-obk
Copy link
Contributor

oli-obk commented Apr 24, 2019

https://travis-ci.com/rust-lang/miri/jobs/195147193

Get ourselves a MIR-full libstd for the host and a foreign architecture
    Updating crates.io index
 Downloading crates ...
  Downloaded hashbrown v0.3.0
  Downloaded rustc-std-workspace-alloc v1.0.0
   Compiling cc v1.0.35
   Compiling core v0.0.0 (/home/travis/.rustup/toolchains/master/lib/rustlib/src/rust/src/libcore)
   Compiling libc v0.2.51
   Compiling build_helper v0.1.0 (/home/travis/.rustup/toolchains/master/lib/rustlib/src/rust/src/build_helper)
   Compiling unwind v0.0.0 (/home/travis/.rustup/toolchains/master/lib/rustlib/src/rust/src/libunwind)
   Compiling rustc-std-workspace-alloc v1.0.0
error[E0463]: can't find crate for `std`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0463`.

I have no idea how to fix this right now.

@RalfJung
Copy link
Member

Just like with the rustc-std-workspace-core, this needs a xargo patch.

@RalfJung RalfJung changed the title CI is failing due to hashbrown CI is failing due to rustc-std-workspace-alloc Apr 26, 2019
@RalfJung RalfJung changed the title CI is failing due to rustc-std-workspace-alloc cargo miri setup is failing due to rustc-std-workspace-alloc Apr 26, 2019
@RalfJung
Copy link
Member

Blocked on japaric/xargo#240

@RalfJung RalfJung pinned this issue Apr 26, 2019
@RalfJung
Copy link
Member

RalfJung commented May 2, 2019

As a temporary work-around, miri now installs my fork of xargo that has this issue fixed. Still keeping the issue open though to track removing that work-around.

@RalfJung RalfJung unpinned this issue May 2, 2019
@RalfJung RalfJung added A-cargo Area: affects the cargo wrapper (cargo miri) C-bug Category: This is a bug. labels May 2, 2019
bors added a commit to rust-lang/hashbrown that referenced this issue May 6, 2019
skip Miri tests if the setup fails

Currently we are in a situation where Miri can be installed but `cargo miri setup` fails (due to rust-lang/miri#713).  That should not lead to hashbrown's CI failing.

Cc @gnzlbg
@RalfJung
Copy link
Member

This has been fixed by a new xargo release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-cargo Area: affects the cargo wrapper (cargo miri) C-bug Category: This is a bug.
Projects
None yet
Development

No branches or pull requests

2 participants