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

Bootstrap deletes the sysroot directory when alternating between check and build, breaking --keep-stage #52565

Closed
davidtwco opened this issue Jul 20, 2018 · 1 comment
Labels
T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Comments

@davidtwco
Copy link
Member

If I run x.py build without --keep-stage or --stage and then in subsequent builds use only --keep-stage 0 then bootstrap runs as expected.

However, it seems though that if I switch to using x.py check (still with --keep-stage 0) then any subsequent x.py builds with --keep-stage 0 will fail with the below error unless I do a full build without --keep-stage 0 again.

thread 'main' panicked at 'File::open(stamp) failed with No such file or directory (os error 2)', bootstrap/lib.rs:1109:12
note: Run with `RUST_BACKTRACE=1` for a backtrace.
@Mark-Simulacrum Mark-Simulacrum added the T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) label Jul 20, 2018
@jyn514 jyn514 changed the title Bootstrap does not keep stage when alternating between check and build Bootstrap deletes the sysroot directory when alternating between check and build, breaking --keep-stage Feb 3, 2023
@jyn514
Copy link
Member

jyn514 commented May 24, 2023

I'm going to close this as a duplicate of #34279, which has some more discussion.

@jyn514 jyn514 closed this as not planned Won't fix, can't repro, duplicate, stale May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

No branches or pull requests

3 participants