help-make
[Top][All Lists]
Advanced

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

Re: How to order make do the parallel job?


From: Paul Smith
Subject: Re: How to order make do the parallel job?
Date: Fri, 18 Dec 2015 10:22:40 -0500

On Fri, 2015-12-18 at 16:39 +0200, Eli Zaretskii wrote:
> > From: Igor Sobinov <address@hidden>
> > Date: Fri, 18 Dec 2015 10:11:32 +0300
> > 
> > make build_release -j10 
> > 
> > I get the following error:
> > 
> > make[4]: warning: jobserver unavailable: using -j1.  Add `+' to parent make 
> > rule.
> 
> On what OS?  What does "make --version" display?

Also, it's highly likely that you haven't provided the necessary parts
of the makefile.  The "make[4]" in the error message above means that
this message is being printed from the 4-th level of make recursion. 
 That means that the simple target you provide is almost certainly NOT
where the problem is.

You need to go find the recipe that invokes the sub-make at this level.
 You can use the "-d" flag or, if you have a new-enough version of
make, you can use the "--trace" flag.  Or just examine the output and
trace it by hand.

There are two likely reasons for this error: first, that you have a
recipe that invokes this sub-make using a simple "make" command rather
than using the variable "$(MAKE)".  Or second, that you've overridden
your SHELL variable to something which breaks make's jobserver
facility; the most common culprit is trying to use csh as SHELL instead
of some POSIX shell such as sh, bash, ksh, etc.



reply via email to

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