Sporadic GNU make jobserver unavailable

Dimitry Andric via Cygwin <[email protected]>
Newsgroups gmane.os.cygwin
Message-ID <[email protected]>
Hi,

We're using Cygwin make to build several projects in parallel mode, e.g.
with -j 4 or sometimes higher settings, depending on the core count of
the machine.

Sporadically, and then I'm talking about "once a week" or so, random
jobs will fail with a non-repeatable error, and in _every_ case these
failures are preceded by a warning from make:

  make[4]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.

Obviously the "Add '+' to parent rule" is nonsensical, since simply
running exactly the same job again almost always works fine. But there
is something flaky about make's jobserver under Windows.

FWIW one machine I just observed this on has the make-4.4.1-2 package,
which should use the "pipe" jobserver, if I interpret
https://cygwin.com/pipermail/cygwin-announce/2023-March/010972.html
correctly.

Does anybody know a way to further debug this issue? It must be some
rare race condition...

-Dimitry


-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.