automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: parallel build issues


From: Jacob Bachmeyer
Subject: Re: parallel build issues
Date: Tue, 22 Jun 2021 21:06:45 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.22) Gecko/20090807 MultiZilla/1.8.3.4e SeaMonkey/1.1.17 Mnenhy/0.7.6.0

Bob Friesenhahn wrote:
It is possible to insert additional dependency lines in Makefile.am so software is always built in the desired order, but this approach might only work if you always build using the top level Makefile.

This should actually work here: the problem is that a target in doc/ also depends on a target in frontend/ and uses recursive make to build that target. When the top-level Makefile is used in parallel mode, sub-makes are concurrently run in both doc/ and frontend/ but the doc/ sub-make invokes another make in frontend/ leading to a race and failure.

If only doc/Makefile is used, it will spawn a sub-make in frontend/ that will be the only make running there and will succeed. If only frontend/Makefile is used, everything works similarly. Since the problem can only occur when building with the top-level Makefile, adding a dependency in the top-level Makefile should prevent it.


-- Jacob




reply via email to

[Prev in Thread] Current Thread [Next in Thread]