-
Notifications
You must be signed in to change notification settings - Fork 13.3k
1.31.0 source dist fails to build miri #56576
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
Comments
cc @RalfJung you added vergen to miri, do you have any idea what kind of file it tries to read and consequently fails due to "No such file or directory"? |
Yes, it tries to determine the current git version. It reads Maybe this does not work for detached branches, like you often have with submodules? |
Oh, this is from a source dist. I am not sure how the tarball is created, but it likely contains the miri sources but without the |
Jup. |
so... easy fix for now is to run |
Hm, I locally tried just not having a |
A .git dir in |
Ah the problem is that locally I use vergen 3.0.4 but rustc still has vergen 3.0.3. I think a vergen update should do it. |
@rust-lang/release -- if we end up doing a patch release I would like to propose pulling in this fix. It seems bad that we can't build Cargo etc from a clean rustc source dist. |
If you do upgrade vergen, you'll probably encounter another issue in the source tarball version of miri like I did. The commit cbe6b22 removed the |
Miri fails, yes, but that's not a blocker for everything else:
As I recall, it's been this way for some time in Fedora builds, but it's fine because we don't ship miri. |
@cuviper: are you saying that extended builds from the souce tarball don't require miri to build successfully? |
@zachreizner correct. |
@zachreizner right, you can see this in Fedora's ... |
I am seeing the following failure in what should be a clean build.
Mentioning @oli-obk in case you know of an easy fix.
Mentioning @zachreizner who hit this upgrading Chrome OS to Rust 1.31.
The text was updated successfully, but these errors were encountered: