Parallel builds are broken in the ocamldoc/ subdirectory [was: lex/ directory] #7587
Original bug ID: 7587
Parallel builds (make -j 16) are broken in the lex/ subdirectory. See the attached build log.
Steps to reproduce
make -j 16 world.opt
This working (perhaps by luck) in OCaml 4.04.x.
Comment author: @gasche
Thanks for the report.
I have the impression from your log that the issue is actually in ocamldoc/ rather than lex/. There were various changes to the ocamldoc build system recently.
What is the way you rely on parallel builds / how can a fix reach you? If the issue exists with the 4.05.0 release but is fixed in the 4.05 branch, is it good for you? If it exists in 4.05 but is fixed in trunk, is that an issue?
Comment author: Richard Jones
Yes, looking more closely at the log I think you are correct that the problem lies in ocamldoc.
We can cherry-pick fixes for Fedora from anywhere. We have a downstream repo containing various changes on top of (currently) 4.05 which we ship to Fedora end-users and RHEL customers.
Comment author: @xavierleroy
I can reproduce the "make -j16" problem in ocamlopt with 4.05 but not with 4.06 after many runs. The problem in 4.05, as far as I can see, is the lack of dependencies for the "generators/*.cmxs" targets. Those were added by commits d377bce (fixes the Makefile) then f6736c1 (updates the .depend).