[PATCH v2 0/6] Improve make and make check parallelism
Sam James
sam@gentoo.org
Wed Jun 17 02:28:42 GMT 2026
Adhemerval Zanella Netto <adhemerval.zanella@linaro.org> writes:
> On 16/06/26 17:06, DJ Delorie wrote:
> The flock *might* be a interesting approach because during trying to parallelize
> the build I hit two issues where shared file is produced lazily by a non-csu
> subdir (csu gen-as-const headers and the catgets locales, handled in the third
> patch - and I am continuously running multiple parallel builds to if I missed
> something).
Let's try avoid that for now though I appreciate it's attractive because
of the subdirs. libgomp does do this outside of Makefiles
(https://gcc.gnu.org/PR66005) and they use a Perl fallback.
But I've not seen it done elsewhere and any solution where Make is not
aware of the depgraph is likely to cause more problems later (even if
just lost parallelisation).
>
> It would allow parallelize the 'csu' subfolder itself, and start the subfolders
> in parallel.
>
> But I think flock has two main extra complications: it is not POSIX (so Linux
> specific, not sure if this is properly support by Hurd), and it leaves the make
> graph (the dependencies is defined by writing access). I this the later might
> be source of potential issues, I never saw Makefile actively using it.
>
> [...]
sam
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 418 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20260617/fda7604e/attachment-0001.sig>
More information about the Libc-alpha
mailing list