Skip to content

-Z build-std broken on latest nightly: could not read vendor path #80148

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

Closed
phil-opp opened this issue Dec 18, 2020 · 2 comments · Fixed by #80081
Closed

-Z build-std broken on latest nightly: could not read vendor path #80148

phil-opp opened this issue Dec 18, 2020 · 2 comments · Fixed by #80081
Labels
C-bug Category: This is a bug. requires-nightly This issue requires a nightly compiler in some way. T-cargo Relevant to the cargo team, which will review and decide on the PR/issue.

Comments

@phil-opp
Copy link
Contributor

Steps to reproduce

  1. cargo new --lib example && cd example
  2. echo "#![no_std]" > src/lib.rs
  3. cargo +nightly check --target x86_64-unknown-linux-gnu -Z build-std=core

(The actual target doesn't seem to matter, the build-std feature just requires that we pass a --target argument.)

The following error occurs:

error: could not read vendor path /home/philipp/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/vendor

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

Cause

I think this issue occurs because #80082 already landed, while the cargo-side revert in #80081 did not. So this issue will likely go away after the next cargo update. I still decided to open this issue in case other people encounter the same problem.

Meta

rustc --version --verbose:

rustc 1.47.0 (18bf6b4f0 2020-10-07)
binary: rustc
commit-hash: 18bf6b4f01a6feaf7259ba7cdae58031af1b7b39
commit-date: 2020-10-07
host: x86_64-unknown-linux-gnu
release: 1.47.0
LLVM version: 11.0
@phil-opp phil-opp added the C-bug Category: This is a bug. label Dec 18, 2020
@tesuji
Copy link
Contributor

tesuji commented Dec 18, 2020

Cc @ehuss for #80082

@ehuss
Copy link
Contributor

ehuss commented Dec 18, 2020

This will be fixed by #80081.

@camelid camelid linked a pull request Dec 18, 2020 that will close this issue
@camelid camelid added requires-nightly This issue requires a nightly compiler in some way. T-cargo Relevant to the cargo team, which will review and decide on the PR/issue. labels Dec 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. requires-nightly This issue requires a nightly compiler in some way. T-cargo Relevant to the cargo team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants