bug-bash
[Top][All Lists]
Advanced

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

Re: bash parallel build: make[1]: warning: -j16 forced in submake: reset


From: Chet Ramey
Subject: Re: bash parallel build: make[1]: warning: -j16 forced in submake: resetting jobserver mode.
Date: Mon, 22 Apr 2024 16:54:17 -0400
User-agent: Mozilla Thunderbird

On 4/22/24 11:58 AM, Chet Ramey wrote:
On 4/20/24 2:02 AM, Cedric Blancher wrote:

You can check what env the submake in question has and which recipe
runs it and see where this setting comes from.

We were only using
make -j16 all
at the bash base dir. That should NOT trigger this warning.

Bash passes ${MFLAGS} to makes in subdirectories; that variable gets
whatever make puts in it, which includes the -jN option. It's that
submake that decides to print that warning. Bash could mark some
subdirectory targets as not parallel, but why would we do that?

Everyone seems to support MAKEFLAGS by now, and it's part of POSIX, so
maybe we delete $(MFLAGS) and rely on make to pass MAKEFLAGS to submakes
in the environment.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

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