-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Regular incremental (?) build failures during stage 0 build #99538
Comments
Bump to latest beta bootstrap compiler Hopefully this will address rust-lang#99538, but I'm not sure we can confirm that without rolling it out. Should be safe in general, so likely little risk to just landing this.
Can you share your config.toml? I tried building every commit with incremental for the last 3 weeks in sequence and randomly, and it didn't seem to have any issues. The particular error you posted seems to imply that it is loading an outdated rmeta or rlib file when running the second cargo with |
Here re the non-comment non-empty lines of my config.toml:
|
Now that the bootstrap compiler was bumped, I am getting new exciting errors:
|
I don't suppose you could look back through your history just before the error to see what steps you took? Like did you run commands A, B, C, switch from commit X to commit Y, and then run D and immediately there was an error? Also, it can be helpful to post the entire output from Is this reproducible? Like, if you run Are you using something like I tried for a while with your config to reproduce what you are seeing, but I haven't been able to. I'm having a hard time imagining how that could happen. For example, the second error:
Normally, when the compiler version changes, cargo detects the fingerprint change from a hash of Perhaps it is possible that the crate loader is rejecting the correct |
Here is the full output that
Yes. But I have no idea how to get my checkout into that state. (And this checkout has been
I am increasingly suspecting that this might be the case. That would explain why it never happens when I just chain some commands on the terminal. rust-analyzer does some weird things for its proc-macro support ( My config pretty much matches the rustc-dev-guide recommendations, I think:
Today I also globally disabled build scrips and proc macros, but it is possible that I did that after I got the error mentioned above.
What I did today in that checkout is to switch from some old branch (forgot which one) to latest master, open vscode, and I also ran |
I had the same issue for cg_clif in rust-lang/rust-analyzer#12845 |
OK, I think this almost certainly an issue with rust-analyzer. Here are some reproduction steps using the config you posted:
|
I have not seen this problem for a while, since I disabled proc macro and build script support in RA. |
The upstream issue has been closed; I think this particular bug is no longer a problem. Thank you for reporting incremental bugs ❤️ I know it's easy to dismiss them as "rust-lang/rust has a weird build system" but the reports really are helpful. |
Regularly, when I do a
git pull
that skips over a few days worth of commits, or switch between branches based on different master commits, a./x.py check
fails afterwards. It fails with errors like "lifetime may not live long enough" or "this associated function takes 2 generic arguments but 1 generic argument was supplied" -- regular build errors, not ICEs. The errors are completely bogus though. Here's an example of the most recent one that I experienced today:These always go away when I do
./x.py clean
. This started some time not too long before Jun 28 and has been going on since then.The text was updated successfully, but these errors were encountered: