-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
./x.py test
deletes rustc_private
artifacts from the sysroot
#53650
Comments
@RalfJung are you still running into this issue? |
Looking back, I'm not really surprised this could happen, I've seen worse. |
As of a few weeks ago, definitely. I am not sure if this is truly related to keep-stage -- the issue is that |
Indeed the issue reproduces without keep-stage:
Now the stage 2 rustc toolchain is broken:
|
I've seen running tests result in |
That sounds like #76661. |
@RalfJung are you still running into this issue now that bootstrap locks the build directory? |
Yes, this has nothing to do with concurrency. |
Ok, I was able to reproduce this - the issue is that the sysroot is losing .rlibs somehow. Here is the crate that's loaded after
and here is the sysroot after running tests:
I think what's going on is that x.py deletes everything in |
./x.py test
breaks the compiled toolchain./x.py test
deletes rustc_private
artifacts from the sysroot
This is unrelated to |
You need There's a discussion somewhere about this (can't find it now) but the short is that I feel this is better than maybe-stale artifacts and don't trust us to not miss deleting a stale artifact. |
@Mark-Simulacrum unfortunately that fails due to #90244
|
That thread has "Yeah, the error is just annoying; it doesn't actually break anything." -- is that wrong? i.e., that this fails but actually still copies things appropriately. That's primarily why it's not been prioritized in my eyes. |
I think in this case it means x.py stops after the rustc build step, which means it never gets to the rustdoc build step. So, it doesn't break anything for single-build-step |
I'm going to close this as a duplicate of #34279, which has some more discussion. |
After doing
./x.py --keep-stage 0 build src/rustc
, I can usebuild/$ARCH/stage2
as Rust toolchain through rustup, and it works just fine. However, if I now do./x.py --keep-stage 0 test ...
, the toolchain breaks -- for example, compiling miri fails witherror[E0463]: can't find crate for `rustc`
. I have to do./x.py --keep-stage 0 build src/rustc
again (which finishes pretty quickly) to fix this -- but that should not be necessary.The text was updated successfully, but these errors were encountered: