-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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 of cargo broken: assertion failed: sentinel == STR_SENTINEL, compiler/rustc_serialize/src/opaque.rs:669:9 #91663
Comments
The output looks like nothing is getting rebuilt, but I would expect the stage1 compiler getting built if you pulled a new master. Something is caching too aggressively? |
Hmm, I wonder if it is a mix of using sccache + sharing target dir between different crates (rustc tools) that causes the problem. |
I did encounter such an issue myself while working on the PR but doing But my understanding is that this should only affect rustc developers because the rustc build version doesn't change. For CI builds the git commit should differ and thus the cached data should be discarded as coming from a different compiler version. |
I've wiped my sccache and rustc build cache and have not seen the issue since, but there seem to be a lot of other people having similar problems, hm. |
So it's probably a missing cache invalidation and my assumption that it's keyed on the compiler version is wrong. |
Just hit this issue building a personal project (it was building the derive_builder_core crate). The cause is apparently that I was building with the stable release channel and got this error:
Then I switched to the nightly channel and retried the build, got this panic. The panic went away when I removed the target/ dir and rebuilt. |
rust-lang#91407 changed the serialization format which leads to ICEs for nightly users such as rust-lang#91663 and linked issue. Bumping the metadata version should lead to the cached files being discarded instead.
I got this issue after moving my home directory to a new install. My guess is some of the permissions got messed up. I already tried What is the "sccache" and how do I clean it? |
sccache is a (distributed/local) build cache that can be used with cargo/rustc (but also clang gcc etc). If you want to purge it should be save to just remove the content of |
Oh yeah I don't use that. I just removed Any idea how to do debug or what logs to provide to this report? |
"~/.cargo" is the cargo download/source cache, should be unrelated to this issue. 😅 The issue should be fixed once #91715 is shipped in a new nightly compiler. For now you can probably pin to yesterdays nightly |
This comment has been minimized.
This comment has been minimized.
…Mark-Simulacrum Bump rmeta version to fix rustc_serialize ICE rust-lang#91407 changed the serialization format which leads to ICEs for nightly users such as rust-lang#91663 and linked issues. The issue can be solved by running `cargo clean`. But bumping the metadata version should lead to the cached files being discarded, avoiding the issue entirely.
#91715 has been merged, closing. |
There's a bug in nightly where the workaround is to run `cargo clean`: rust-lang/rust#91663
There's a bug in nightly where the workaround is to run `cargo clean`: rust-lang/rust#91663
This fixes issue caught by clippy rust-lang/rust#91663
EDIT2:
should be fixed with nightly
2021-12-11
EDIT:
FOR EVERYONE THAT IS ALSO GETTING THIS:
Try cleaning your build artifacts:
cargo clean
, in most cases the crash should go away after a rebuild.#91407 added an assertion that triggers on me doing a bootstrap and building cargo:
repo @ 11fb21f
Backtrace
I'm using sccache in case that matters.
cc @the8472
The text was updated successfully, but these errors were encountered: