-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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 check --stage 1 std
doesn't work
#98720
Comments
The way it works is by building all of libstd before checking the compiler: Lines 195 to 202 in 601c5a2
That works fine and makes it ok not to call add_to_sysroot in check, but the same step is missing before checking tests and examples. That would be an alternate fix; call builder.ensure(compile::Std) before --all-targets , not just before building the compiler.
|
Hmm, I wonder if we should start using |
@rustbot claim |
@jyn514 is the fix here to still only run |
@jo3bingham my second comment is a harder but more correct solution. I would accept either as PRs, neither are terribly hard. (My third comment about sysroots I think is the ideal solution, but involves several large refactors to bootstrap and isn't a good first PR.) |
Take a look at the bootstrapping section of the dev guide, especially the bit about contributing: https://rustc-dev-guide.rust-lang.org/building/bootstrapping.html#contributing-to-bootstrap |
only run --all-targets in stage0 for Std Repro'd the issue with `python3 x.py check --stage 1 library/std` and tested the fix with the same command. r? `@jyn514` I tried to implement [this solution](rust-lang#98720 (comment)), but didn't have any luck. I don't think I fully understood what needed to be done. However, I would love to be mentored on it since it would be a more correct solution, and I can learn more about how bootstrap works.
Fixed by #99293. I forgot to link the issue in the PR, but this can be closed now that it has merged. |
For me currently
x b --stage 1 library/std
works fine, whilex c --stage 1 library/std
with a lot of errors related tocore
not being found.This is the commit that I'm trying to check: c68cd2f
I had the same problem previously too, but it usually solves magically after rebase /
x clean
/ etc. However the usual "reboot router" kind of solutions doesn't seem to help this time :')Full output: log.txt
The text was updated successfully, but these errors were encountered: