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

Can't -Zbuild-std in rustc 1.82.0-nightly (8b3870784 2024-08-07). #128808

Closed
Wyvern opened this issue Aug 8, 2024 · 5 comments · Fixed by rust-lang/cargo#14370
Closed

Can't -Zbuild-std in rustc 1.82.0-nightly (8b3870784 2024-08-07). #128808

Wyvern opened this issue Aug 8, 2024 · 5 comments · Fixed by rust-lang/cargo#14370
Labels
-Zbuild-std Unstable Cargo option: Compile the standard library yourself. C-bug Category: This is a bug. T-cargo Relevant to the cargo team, which will review and decide on the PR/issue.

Comments

@Wyvern
Copy link

Wyvern commented Aug 8, 2024

Update to latest rustc 1.82.0-nightly (8b3870784 2024-08-07), get error when using -Zbuild-std:

error: "/Users/runner/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/Cargo.lock" does not exist, unable to build with the standard library, try:
        rustup component add rust-src --toolchain nightly-aarch64-apple-darwin

but rust-src component already installed.

@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Aug 8, 2024
@jieyouxu jieyouxu added the -Zbuild-std Unstable Cargo option: Compile the standard library yourself. label Aug 8, 2024
@saethlin saethlin added the C-bug Category: This is a bug. label Aug 8, 2024
@saethlin
Copy link
Member

saethlin commented Aug 8, 2024

There's no need to comment any more targets, or that you are also running into this. It applies to all targets, and we already know this is happening.

@saethlin saethlin removed the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Aug 8, 2024
@weihanglo
Copy link
Member

This semes to be a Cargo bug (or something need to be adjust accordingly)

  • Before nightly-aarch64-apple-darwin/lib/rustlib/src/rust/Cargo.lock
  • After nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/Cargo.lock

@weihanglo
Copy link
Member

A PR is up: rust-lang/cargo#14370

KKRainbow added a commit to EasyTier/EasyTier that referenced this issue Aug 8, 2024
@jieyouxu jieyouxu added the T-cargo Relevant to the cargo team, which will review and decide on the PR/issue. label Aug 8, 2024
andelf added a commit to ch32-rs/ch32-hal that referenced this issue Aug 9, 2024
andelf added a commit to ch32-rs/ch32-hal that referenced this issue Aug 9, 2024
andelf added a commit to ch32-rs/ch32-hal that referenced this issue Aug 9, 2024
@robertbastian
Copy link
Contributor

robertbastian commented Aug 9, 2024

When will the cargo change be picked up by nightly?

$ rustc +nightly --version
rustc 1.82.0-nightly (3e9bd8b56 2024-08-08)
$ cargo +nightly --version
cargo 1.82.0-nightly (94977cb1f 2024-08-06)

Edit: it's in #128827, so presumably tomorrow

@weihanglo
Copy link
Member

Yes, tomorrow. We missed yesterday's window for just a few minutes 😞.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
-Zbuild-std Unstable Cargo option: Compile the standard library yourself. C-bug Category: This is a bug. 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.

6 participants