I just figured out the issue I was having with doing recursive gmake and
specifying the -jN option at the same time.  I was using tcsh by setting
$(SHELL) variable, and it seems tcsh isn't POSIX compliant.  Linking that
information with following entry within the gmake history document gave me
the solution:

>* A "job server" feature, suggested by Howard Chu <[EMAIL PROTECTED]>.
>  On systems that support POSIX pipe(2) semantics, GNU make can now pass
>  -jN options to submakes rather than forcing them all to use -j1.  The
>  top make and all its sub-make processes use a pipe to communicate with
>  each other to ensure that no more than N jobs are started across all
>  makes.  To get the old behavior of -j back, you can configure make
>  with the --disable-job-server option.

Because tcsh wasn't fully POSIX compliant, it could not properly establish a
pipe for communication between the sub-make processes leading to gmake
complaining that the "job sever" wasn't available.

Now the question is which shell would be best to use?  I'd preferrably like
to use bash because of the additional features it has over sh, but I'm not
too sure about how POSIX compliant it is.

Thanks,
Milan

-----Original Message-----
From: Paul D. Smith [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 29, 2001 12:06 PM
To: Bhatt, Milan C
Cc: '[EMAIL PROTECTED]'
Subject: Re: Recursive GMAKE with -j option 


%% "Bhatt, Milan C" <[EMAIL PROTECTED]> writes:
 
  bmc> I get the following message:
    
  bmc> warning: jobserver unavailable: using -j1. Add `+' to parent make
rule

See the GNU make manual section on parallel builds and the section
on error messages for a description of what this means.

If that doesn't answer your questions, re-post with appropriate
information: what version of GNU make you're using, what host/OS/version
you're using it on, and show an example of the rule you use to invoke a
sub-make.

-- 
----------------------------------------------------------------------------
---
 Paul D. Smith <[EMAIL PROTECTED]>          Find some GNU make tips at:
 http://www.gnu.org                      http://www.paulandlesley.org/gmake/
 "Please remain calm...I may be mad, but I am a professional." --Mad
Scientist


_______________________________________________
Bug-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-make

Reply via email to