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

build-std: the build is broken after rust-lang/rust#73265 #8557

Closed
JohnTitor opened this issue Jul 29, 2020 · 1 comment · Fixed by #8558
Closed

build-std: the build is broken after rust-lang/rust#73265 #8557

JohnTitor opened this issue Jul 29, 2020 · 1 comment · Fixed by #8558
Labels
C-bug Category: bug

Comments

@JohnTitor
Copy link
Member

JohnTitor commented Jul 29, 2020

Problem

Cargo now says when I use build-std feature with today(2020-07-29)'s nightly:

error: failed to read `/home/me/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libstd/Cargo.toml`

Caused by:
  No such file or directory (os error 2)

This assumes there're libstd and other paths but it has been changed in rust-lang/rust#73265:

String::from("src/libstd"),
String::from("src/libcore"),
String::from("src/liballoc"),
String::from("src/libtest"),

I think this should be also updated.

Steps

e.g. cargo build --target hexagon-unknown-linux-musl -Z build-std=core,alloc

Output of cargo version:

cargo 1.47.0-nightly (aa68721 2020-07-23)

@HarshitRuwali
Copy link

Facing the same error while pushing to Github, triggered by Actions. But works fine in my local machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants