Skip to content

Confusing error message when using --keep-stage-std after cleaning #107392

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
Noratrieb opened this issue Jan 27, 2023 · 2 comments · Fixed by #107397
Closed

Confusing error message when using --keep-stage-std after cleaning #107392

Noratrieb opened this issue Jan 27, 2023 · 2 comments · Fixed by #107397
Assignees
Labels
C-bug Category: This is a bug. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Comments

@Noratrieb
Copy link
Member

Noratrieb commented Jan 27, 2023

./x.py clean
./x.py build --keep-stage-std 0

This of course doesn't work, as there is no stage to keep.

but the error message is less than ideal

arning: Using a potentially old libstd. This may not behave well.
Copying stage0 library from stage0 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
thread 'main' panicked at 'fs::read(stamp) failed with No such file or directory (os error 2) ("/home/nilsh/projects/rust/build/x86_64-unknown-linux-gnu/stage0-std/x86_64-unknown-linux-gnu/release/.libstd.stamp")', lib.rs:1435:24
note: run with `RUST_BACKTRACE=1 environment variable to display a backtrace
Build completed unsuccessfully in 0:00:00

Since the keep-stage was behind an alias that I forgot I used I was quite confused with this, since this seemed like an internal bootstrap error and not a user error on my side.

@Noratrieb Noratrieb added C-bug Category: This is a bug. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Jan 27, 2023
@Teapot4195
Copy link
Contributor

@rustbot claim

@jyn514
Copy link
Member

jyn514 commented Jan 28, 2023

cc #107019

@bors bors closed this as completed in 40b63d0 Jan 29, 2023
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. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants