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
Fresh-clone builds fail with "No rule to make target gen/nqp-version', needed by
blib/Perl6/ModuleLoader.moarvm'."
#1654
Comments
Oooooooh..... it's the -j24 on the make. tools/build/check-nqp-version.pl does run and produces a correct nqp-version file, but at that point it's already too late, because while it was running, make tried to check the dependency for other parts. Just running make again will therefore succeed. I didn't notice before because I never run make for rakudo with multiple jobs as it doesn't make a difference anyway. The following patch could fix that, but then it could miss the need for a rebuild as it's updating gen/nqp-version after checking that dependency for other targets. I think, there's some special make target for forcing non-parallel build of some targets. That's gonna be the real solution.
|
Confirming that getting rid of |
tools/build/check-nqp-version.pl did run and produced a correct nqp-version file, but at that point it was already too late. While it was running, make tried to check the dependency for other parts and gen/nqp-version was not available yet and there was no explicit recipe for creating it either. Mark the Makefile as .NOTPARALLEL, which gets rid of the whole issue. This is a GNU extension however, so the issue may still remain for other makes. Fix GH #1654
Works without issues for me using:
System info:
|
After changes done in the past 24 hours—possibly the build chain work performed by @niner —the clean rebuild (or fresh clone) of rakudo fails with:
The above is the output from Z-Script's
z z
command that pulls and does clean rebuild of MoarVM/nqp/rakudo. The same problem occurs withz init ~/Dir
that does a clean clone and build of the three products.I could NOT reproduce the issue with just a rakudo clone+ build:
However, the problem does appear (without Z-Script involvement) if the three products are cloned
and built separately with this set of commands:
It's worth noting that running
make clean
after the build failure and re-running rakudo's make/make install avoids the problem.After a successful build, there is an un-tracked
gen/nqp-version
file created in rakudo's directory with some sha hash in it. As long as that file exists, rebuilding everything withz z
command works, but if I delete that file, the issue comes back again.Just a thought: is it possible whatever creates that file assumes the
./rakudo/nqp/MoarVM
nested checkout of repos that you get if you let rakudo's build auto-clone nqp and MoarVM?The text was updated successfully, but these errors were encountered: