[GRASS5] [compiling on two or more processors?]

I'm trying to compile Grass5 on machine with two processors:

+ /usr/bin/make -j2
test -d /home/users/ser/rpm/BUILD/grass5.0.0pre4/dist.i686-pld-linux-gnu
|| mkdir -p -m 755
/home/users/ser/rpm/BUILD/grass5.0.0pre4/dist.i686-pld-linux-gnu
GRASSSRC=/home/users/ser/rpm/BUILD/grass5.0.0pre4/src
GMAKE=/home/users/ser/rpm/BUILD/grass5.0.0pre4/src/CMD/gmake5.0
HEADER=head.i686-pld-linux-gnu MAKE=make /bin/sh
src/CMD/generic/GISGEN.sh
test -d /home/users/ser/rpm/BUILD/grass5.0.0pre4/bin.i686-pld-linux-gnu
|| mkdir -p -m 755
/home/users/ser/rpm/BUILD/grass5.0.0pre4/bin.i686-pld-linux-gnu
test -d src/CMD/next_step || mkdir -p -m 755 src/CMD/next_step
/home/users/ser/rpm/BUILD/grass5.0.0pre4/src/CMD/head/head.i686-pld-linux-gnu
- file not found (or not readable)
test ! -f src/CMD/head/head || mv src/CMD/head/head
src/CMD/head/head.i686-pld-linux-gnu
/home/users/ser/rpm/BUILD/grass5.0.0pre4/src/CMD/head/head.i686-pld-linux-gnu
- file not found (or not readable)
make: *** [do-compile] Error 1
make: *** Waiting for unfinished jobs....
GRASS_BIN=/home/users/ser/rpm/BUILD/grass5.0.0pre4/bin.i686-pld-linux-gnu
SRC=/home/users/ser/rpm/BUILD/grass5.0.0pre4 MAKE=make NAME_VER=5
GISBASE=/home/users/ser/rpm/BUILD/grass5.0.0pre4/dist.i686-pld-linux-gnu
MACHINENAME=`uname -n` /bin/sh src/CMD/generic/CREATE_GMAKE.sh
i686-pld-linux-gnu
/home/users/ser/rpm/BUILD/grass5.0.0pre4/bin.i686-pld-linux-gnu
make: *** Waiting for unfinished jobs....
/bin/sh
/home/users/ser/rpm/BUILD/grass5.0.0pre4/src/CMD/generic/is64bit.sh
i686-pld-linux-gnu
make: *** Waiting for unfinished jobs....

Why does it fail?

Sergiusz
--
      http://ibiblio.org/ser/ | http://it-zone.org/
_________________________________________________________
tldp.org|gnu.org|hyperreal.info|pld-linux.org|it-zone.org
  "The moon is made of green cheese." -- John Heywood

Sergiusz Pawlowicz wrote:

I'm trying to compile Grass5 on machine with two processors:

[snip]

Why does it fail?

The usual reason why parallel make fails is that one target depends
upon another but doesn't actually specify it as a dependency.

In this case, it looks like something is being built (from the
"do-compile" target) before src/CMD/head/head has been renamed to
src/CMD/head/head.<arch> (in the "pre-compile" target").

Try running "make pre-compile" first, without any "-j" switch, then
run the parallel make once that has completed.

If that doesn't work, it's unlikely to be fixed in 5.0.x. The build
system is intended to be replaced for 5.1.

--
Glynn Clements <glynn.clements@virgin.net>