On Wed, Jun 16, 1999 at 15:57:00 -0400, Kirstin S. Reese wrote:
when building ghc on an smp machine, gmake arguments of -j ?? are
overridden by -rj 1, in an unneccesary fashion. However, I cannot find
where this is defined for MFLAGS.
Any one know about this?
Hi!
Actually, this is normal behaviour of make (see: make.info: "Communicating
Options to a Sub-`make'"). If you call the toplevel make with option
"-jval", all sub-make's get "-rj 1", only.
You could try just "-j", this is passed along to all sub-makes without
change, but the number of parallel jobs isn't limited... useless, unless you
do have a *really* big machine with lots of processors and mem :-)
BTW:
(1) you could also try to use "-j -lmax-load", which limits the number of
jobs according to the load value specified, but this isn't a real solution,
try and you'll see why...
(2) I modified ghc/Makefile to add "-j2" explicitly to MFLAGS, but then,
after some time, the ghc's turned into zombies... (same with (1))...
strange... I didn't figure out why this happened, can somebody test this?
Cheers,
Michael
--
XXXVII:
Ninety percent of the time things will turn out worse than you expect.
The other 10 percent of the time you had no right to expect so much.