-
Notifications
You must be signed in to change notification settings - Fork 552
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
error[E0514]: found crate cfg_if
compiled by an incompatible version of rustc
#560
Comments
Maybe a duplicate of #454? |
@SimonSapin this is most likely #554, moving between projects using different rustc's would be particularly difficult due to that, unfortunately. |
Closing in favor of #87 |
(For the benefit of people like me who end up here from a Google search:) There's another way to hit errors like these with distributed sccache: When distributing compilations from a Windows or macOS client with an explicit toolchain archive that gets distributed to the Linux builders, the rust versions in the toolchain archive must match the rust version of the host compiler. If not, sccache does not detect the version mismatch and you run into errors like the one in this issue. See also bug 1664963. |
After successfully trying distributed compilation of Firefox with the Mozilla Paris office’s scheduler, I tried it in Servo with:
RUSTC_WRAPPER=sccache ./mach build
. I got this error:Unfortunately, I did not manage to find reliable steps to reproduce.
Are there known situations where sccache could re-use a cached output file that was built by a different version of rustc?
The text was updated successfully, but these errors were encountered: