[tex-live] compiling with -j

Martin Schröder ms@artcom-gmbh.de
Tue, 12 Mar 2002 12:56:44 +0100

On 2002-03-11 20:15:55 +0100, Thomas Esser wrote:
> > Btw: Why does 
> >         make -j$JOBS pdftex 
> > fail so miserably for any $JOBS <> 1? It would be nice if make
> > would use my 2nd CPU...
> I guess that missing dependencies are the cause. Take for example the following rule
> 	a: b c
> If c depends on b, one should add a dependency for it:
> 	b: c
> If you don't do it, a parallel make might try to do the targets b and
> c simultaneously which fails if b depends on c. Since all goes well as
> long as make is not in parallel mode, such bugs are oftenly not found.

Sigh. Yes there are some missing dependencies and rules (e.g. how
is tangle.h generated?) that I have fixed.


> BTW: I don't think that I want to spend time on this parallel make
> issue. What about you? :-)

Doing it. :-)

Now I have the effect that the same target is made in parallel --
which of course doesn't work. E.g. I get

srcdir=.  /bin/sh ./web2c/convert pdftex
srcdir=.  /bin/sh ./web2c/convert pdftex
srcdir=.  /bin/sh ./web2c/convert pdftex
srcdir=.  /bin/sh ./web2c/convert pdftex
srcdir=.  /bin/sh ./web2c/convert pdftex
srcdir=.  /bin/sh ./web2c/convert pdftex
gcc -DHAVE_CONFIG_H  -I. -I. -I.. -I./..   -g -O2  -c
In file included from pdftexd.h:696,
                 from pdftexextra.c:14:
pdftexcoerce.h:449: undefined or invalid # directive
make: *** [pdftexextra.o] Error 1
make: *** Waiting for unfinished jobs....

Any idea what's causing that?

Best regards