-
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
Unable to build nightly from tarball due to miri (git repository expected) #84182
Comments
cc @RalfJung |
This is strange -- that Miri PR you cite does not even touch the vergen code! Are you sure this worked before that PR? FWIW vergen in Miri was recently updated (not in the PR you cite though), but vergen has been used in Miri already for a long time. Why are you even trying to build Miri? Miri is a nightly-only tool, and not supposed to be built on beta/stable, so distros should not be affected. In particular, we make no guarantee that the Miri shipped in a beta/stable tarball builds at all against that rustc (and in the past indeed it has occasionally not built). Cc #74709 |
Yes it was working before: I am running a build daily, and the last successfully build version was 1.53.0-nightly (673d0db 2021-03-23). In previous days, the build failed due to some other error (if I recall correctly some unsync in nightly code between tools and rustc), and it is the first build which fail with this particular error. Thanks to note I pointed this PR because it was the latest change in miri, but I don't specifically tested the build against it. Sorry to not have mentioned that. Maybe some others commit unbreak the unsync, and the build fail later on miri. I will check that to properly identify the commit causing the problem.
I am building -nightly (from tarball) with a The purpose of the build is to catch regressions on OpenBSD platform (which is tier-3 on Rust side). So it is basically a buildbot. |
#83922 changed the version of vergen we used, so that could have caused a change in behavior. However, Miri toolstate is "green" since 2021-03-29, so there should not have been any build (or test) failures for that entire time. |
We didn't have one of those for Miri since 2021-03-29. So if builds failed in April, even before #83922, something else seems to have gone wrong. (Some other tools could have failed, like rustfmt, but Miri should not.) |
Between the two rustc build, src/tools/miri passed from 12dac5c to b9b2af9, and it includes the vergen update Still investigating |
In particular it would be good to figure out what caused the Miri build to fail e.g. on 2021-04-01. That was before the vergen update but the toolstate was green so everything should have built. |
if the build failed previously due to rustfmt, depending the build order, it could don't have tested miri at all. |
The latest update of miri (#84050) makes build from tarball to fail. In nigthly, it isn't really a big problem (as tarball is unusual build method), but when it would reach stable (1.53.0), it will hurt downstream distributions.
If I correctly understood the problem, miri tries to extract informations at build time from expected git repository (sha + timestamp). See src/tools/miri/cargo-miri/build.rs. But when the build is from tarball, such git repository doesn't exist, and the build fails with
Unable to generate vergen keys!
.The full error when building 1.53.0-nightly (a866124 2021-04-11) is the following:
The text was updated successfully, but these errors were encountered: