[GRASS-dev] [bug #4519] (grass) errors in Grass 55 build

paul-grass@stjohnspoint.co.uk wrote (Mon, Jul 24 2006 10:32:58):

Ah you must be using the new "alternative" build system then - Hamish's
instructions were for the old system. You need to find the script gmake55
which will be in the root of your build directory (this directory should
be outside of the source tree structure) and run it from there as follows:

./gmake55 src/imagery/i.cca

This method failed too. Finally I found gmake55 executable in
bin.i686-pc-linux-gnu dir, copied it to a dir included in my PATH and it
works. Details:

$ gmake55 src/imagery/i.cca/
  SRC = /home/shoofi/src/straight/grass/src
  CMD = /home/shoofi/src/straight/grass/src/CMD
  UNUSED = /home/shoofi/src/straight/grass/unused
  HEADER = head.i686-pc-linux-gnu
  ARCH = i686-pc-linux-gnu
  GISBASE = /home/shoofi/src/straight/grass/dist.i686-pc-linux-gnu
  VERSION = 5.5-cvs 2004
#################################################################
/home/shoofi/src/straight/grass/src/imagery/i.cca
  make -f OBJ.i686-pc-linux-gnu/make.rules

/home/shoofi/bin/gmake55 -all
  SRC = /home/shoofi/src/straight/grass/src
  CMD = /home/shoofi/src/straight/grass/src/CMD
  UNUSED = /home/shoofi/src/straight/grass/unused
  HEADER = head.i686-pc-linux-gnu
  ARCH = i686-pc-linux-gnu
  GISBASE = /home/shoofi/src/straight/grass/dist.i686-pc-linux-gnu
  VERSION = 5.5-cvs 2004
#################################################################
/home/shoofi/src/straight/grass/src/imagery/i.cca/cmd
  make -f OBJ.i686-pc-linux-gnu/make.rules

make[1]: Entering directory
`/home/shoofi/src/straight/grass/src/imagery/i.cca/cmd'
gcc -I/home/shoofi/src/straight/grass/src/include -g -O2 -c matrix.c -o
OBJ.i686-pc-linux-gnu/matrix.o
In file included from matrix.c:3:
globals.h:12: error: array type has incomplete element type
make[1]: *** [OBJ.i686-pc-linux-gnu/matrix.o] Error 1
make[1]: Leaving directory `/home/shoofi/src/straight/grass/src/imagery/i.cca/cmd'
make: *** [all] Error 1

$ gmake55 src/raster/r.grow2
  SRC = /home/shoofi/src/straight/grass/src
  CMD = /home/shoofi/src/straight/grass/src/CMD
  UNUSED = /home/shoofi/src/straight/grass/unused
  HEADER = head.i686-pc-linux-gnu
  ARCH = i686-pc-linux-gnu
  GISBASE = /home/shoofi/src/straight/grass/dist.i686-pc-linux-gnu
  VERSION = 5.5-cvs 2004
#################################################################
/home/shoofi/src/straight/grass/src/raster/r.grow2
  make -f OBJ.i686-pc-linux-gnu/make.rules

gcc -I/home/shoofi/src/straight/grass/src/include -g -O2 -c main.c -o
OBJ.i686-pc-linux-gnu/main.o
main.c:13: error: static declaration of 'abs' follows non-static declaration
make: *** [OBJ.i686-pc-linux-gnu/main.o] Error 1

$ gmake55 src/sites/s.in.ascii
  SRC = /home/shoofi/src/straight/grass/src
  CMD = /home/shoofi/src/straight/grass/src/CMD
  UNUSED = /home/shoofi/src/straight/grass/unused
  HEADER = head.i686-pc-linux-gnu
  ARCH = i686-pc-linux-gnu
  GISBASE = /home/shoofi/src/straight/grass/dist.i686-pc-linux-gnu
  VERSION = 5.5-cvs 2004
#################################################################
/home/shoofi/src/straight/grass/src/sites/s.in.ascii
  make -f OBJ.i686-pc-linux-gnu/make.rules

gcc -I/home/shoofi/src/straight/grass/src/include -g -O2 -c main.c -o
OBJ.i686-pc-linux-gnu/main.o
main.c: In function 'G_site_put_new':
main.c:184: error: invalid storage class for function 'format_double'
make: *** [OBJ.i686-pc-linux-gnu/main.o] Error 1

$ gmake55 src.contrib/SDTS
  SRC = /home/shoofi/src/straight/grass/src
  CMD = /home/shoofi/src/straight/grass/src/CMD
  UNUSED = /home/shoofi/src/straight/grass/unused
  HEADER = head.i686-pc-linux-gnu
  ARCH = i686-pc-linux-gnu
  GISBASE = /home/shoofi/src/straight/grass/dist.i686-pc-linux-gnu
  VERSION = 5.5-cvs 2004
#################################################################
/home/shoofi/src/straight/grass/src.contrib/SDTS
  make -f OBJ.i686-pc-linux-gnu/make.rules

/home/shoofi/bin/gmake55 ./libes/fips123
  SRC = /home/shoofi/src/straight/grass/src
  CMD = /home/shoofi/src/straight/grass/src/CMD
  UNUSED = /home/shoofi/src/straight/grass/unused
  HEADER = head.i686-pc-linux-gnu
  ARCH = i686-pc-linux-gnu
  GISBASE = /home/shoofi/src/straight/grass/dist.i686-pc-linux-gnu
  VERSION = 5.5-cvs 2004
#################################################################
/home/shoofi/src/straight/grass/src.contrib/SDTS/libes/fips123
  make -f OBJ.i686-pc-linux-gnu/make.rules

make[1]: Entering directory
`/home/shoofi/src/straight/grass/src.contrib/SDTS/libes/fips123'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/home/shoofi/src/straight/grass/src.contrib/SDTS/libes/fips123'
/home/shoofi/bin/gmake55 ./mapdev/v.out.sdts
  SRC = /home/shoofi/src/straight/grass/src
  CMD = /home/shoofi/src/straight/grass/src/CMD
  UNUSED = /home/shoofi/src/straight/grass/unused
  HEADER = head.i686-pc-linux-gnu
  ARCH = i686-pc-linux-gnu
  GISBASE = /home/shoofi/src/straight/grass/dist.i686-pc-linux-gnu
  VERSION = 5.5-cvs 2004
#################################################################
/home/shoofi/src/straight/grass/src.contrib/SDTS/mapdev/v.out.sdts
  make -f OBJ.i686-pc-linux-gnu/make.rules

make[1]: Entering directory
`/home/shoofi/src/straight/grass/src.contrib/SDTS/mapdev/v.out.sdts'
gcc -I/home/shoofi/src/straight/grass/src/include
-I../../libes/fips123/f123inc -g -O2 -c v.out.sdts.c -o
OBJ.i686-pc-linux-gnu/v.out.sdts.o
In file included from v.out.sdts.c:29:
externs.h:29: error: array type has incomplete element type
externs.h:30: error: array type has incomplete element type
externs.h:31: error: array type has incomplete element type
externs.h:32: error: array type has incomplete element type
externs.h:33: error: array type has incomplete element type
make[1]: *** [OBJ.i686-pc-linux-gnu/v.out.sdts.o] Error 1
make[1]: Leaving directory
`/home/shoofi/src/straight/grass/src.contrib/SDTS/mapdev/v.out.sdts'
make: *** [all] Error 2

$ gmake55 src.garden/grass.postgresql
  SRC = /home/shoofi/src/straight/grass/src
  CMD = /home/shoofi/src/straight/grass/src/CMD
  UNUSED = /home/shoofi/src/straight/grass/unused
  HEADER = head.i686-pc-linux-gnu
  ARCH = i686-pc-linux-gnu
  GISBASE = /home/shoofi/src/straight/grass/dist.i686-pc-linux-gnu
  VERSION = 5.5-cvs 2004
#################################################################
/home/shoofi/src/straight/grass/src.garden/grass.postgresql
  make -f OBJ.i686-pc-linux-gnu/make.rules

/home/shoofi/bin/gmake55 d.rast.pg
  SRC = /home/shoofi/src/straight/grass/src
  CMD = /home/shoofi/src/straight/grass/src/CMD
  UNUSED = /home/shoofi/src/straight/grass/unused
  HEADER = head.i686-pc-linux-gnu
  ARCH = i686-pc-linux-gnu
  GISBASE = /home/shoofi/src/straight/grass/dist.i686-pc-linux-gnu
  VERSION = 5.5-cvs 2004
#################################################################
/home/shoofi/src/straight/grass/src.garden/grass.postgresql/d.rast.pg
  make -f OBJ.i686-pc-linux-gnu/make.rules

make[1]: Entering directory
`/home/shoofi/src/straight/grass/src.garden/grass.postgresql/d.rast.pg'
make[1]:
`/home/shoofi/src/straight/grass/dist.i686-pc-linux-gnu/etc/bin/cmd/d.rast.pg'
is up to date.
make[1]: Leaving directory
`/home/shoofi/src/straight/grass/src.garden/grass.postgresql/d.rast.pg'
/home/shoofi/bin/gmake55 d.site.pg
  SRC = /home/shoofi/src/straight/grass/src
  CMD = /home/shoofi/src/straight/grass/src/CMD
  UNUSED = /home/shoofi/src/straight/grass/unused
  HEADER = head.i686-pc-linux-gnu
  ARCH = i686-pc-linux-gnu
  GISBASE = /home/shoofi/src/straight/grass/dist.i686-pc-linux-gnu
  VERSION = 5.5-cvs 2004
#################################################################
/home/shoofi/src/straight/grass/src.garden/grass.postgresql/d.site.pg
  make -f OBJ.i686-pc-linux-gnu/make.rules

make[1]: Entering directory
`/home/shoofi/src/straight/grass/src.garden/grass.postgresql/d.site.pg'
make[1]:
`/home/shoofi/src/straight/grass/dist.i686-pc-linux-gnu/etc/bin/cmd/d.site.pg'
is up to date.
make[1]: Leaving directory
`/home/shoofi/src/straight/grass/src.garden/grass.postgresql/d.site.pg'
/home/shoofi/bin/gmake55 d.vect.pg
  SRC = /home/shoofi/src/straight/grass/src
  CMD = /home/shoofi/src/straight/grass/src/CMD
  UNUSED = /home/shoofi/src/straight/grass/unused
  HEADER = head.i686-pc-linux-gnu
  ARCH = i686-pc-linux-gnu
  GISBASE = /home/shoofi/src/straight/grass/dist.i686-pc-linux-gnu
  VERSION = 5.5-cvs 2004
#################################################################
/home/shoofi/src/straight/grass/src.garden/grass.postgresql/d.vect.pg
  make -f OBJ.i686-pc-linux-gnu/make.rules

make[1]: Entering directory
`/home/shoofi/src/straight/grass/src.garden/grass.postgresql/d.vect.pg'
make[1]:
`/home/shoofi/src/straight/grass/dist.i686-pc-linux-gnu/etc/bin/cmd/d.vect.pg'
is up to date.
make[1]: Leaving directory
`/home/shoofi/src/straight/grass/src.garden/grass.postgresql/d.vect.pg'
/home/shoofi/bin/gmake55 d.what.s.pg
  SRC = /home/shoofi/src/straight/grass/src
  CMD = /home/shoofi/src/straight/grass/src/CMD
  UNUSED = /home/shoofi/src/straight/grass/unused
  HEADER = head.i686-pc-linux-gnu
  ARCH = i686-pc-linux-gnu
  GISBASE = /home/shoofi/src/straight/grass/dist.i686-pc-linux-gnu
  VERSION = 5.5-cvs 2004
#################################################################
/home/shoofi/src/straight/grass/src.garden/grass.postgresql/d.what.s.pg
  make -f OBJ.i686-pc-linux-gnu/make.rules

make[1]: Entering directory
`/home/shoofi/src/straight/grass/src.garden/grass.postgresql/d.what.s.pg'
gcc -I/home/shoofi/src/straight/grass/src/include -I/usr/include/postgresql/
-Wall -DPACKAGE=\""d.what.s.pg"\" -g -O2 -c runPg.c -o
OBJ.i686-pc-linux-gnu/runPg.o
runPg.c: In function 'runPg':
runPg.c:122: error: invalid lvalue in assignment
make[1]: *** [OBJ.i686-pc-linux-gnu/runPg.o] Error 1
make[1]: Leaving directory
`/home/shoofi/src/straight/grass/src.garden/grass.postgresql/d.what.s.pg'
make: *** [all] Error 2

$ gmake55 src.contrib/DUKE/r.terraflow
  SRC = /home/shoofi/src/straight/grass/src
  CMD = /home/shoofi/src/straight/grass/src/CMD
  UNUSED = /home/shoofi/src/straight/grass/unused
  HEADER = head.i686-pc-linux-gnu
  ARCH = i686-pc-linux-gnu
  GISBASE = /home/shoofi/src/straight/grass/dist.i686-pc-linux-gnu
  VERSION = 5.5-cvs 2004
#################################################################
/home/shoofi/src/straight/grass/src.contrib/DUKE/r.terraflow
  make -f OBJ.i686-pc-linux-gnu/make.rules

/home/shoofi/bin/gmake55 IOStream/lib
  SRC = /home/shoofi/src/straight/grass/src
  CMD = /home/shoofi/src/straight/grass/src/CMD
  UNUSED = /home/shoofi/src/straight/grass/unused
  HEADER = head.i686-pc-linux-gnu
  ARCH = i686-pc-linux-gnu
  GISBASE = /home/shoofi/src/straight/grass/dist.i686-pc-linux-gnu
  VERSION = 5.5-cvs 2004
#################################################################
/home/shoofi/src/straight/grass/src.contrib/DUKE/r.terraflow/IOStream/lib
  make -f OBJ.i686-pc-linux-gnu/make.rules

make[1]: Entering directory
`/home/shoofi/src/straight/grass/src.contrib/DUKE/r.terraflow/IOStream/lib'
c++ -I/home/shoofi/src/straight/grass/src/include -I../include -g -O2 -c
minmaxheap_test.cc -o OBJ.i686-pc-linux-gnu/minmaxheap_test.o
../include/replacementHeap.h:155: error: invalid use of constructor as a template
../include/replacementHeap.h:155: note: use 'ReplacementHeap<T,
Compare>::ReplacementHeap' instead of 'ReplacementHeap<T, Compare>::class
ReplacementHeap<T, Compare>' to name the constructor in a qualified name
../include/replacementHeapBlock.h:161: error: invalid use of constructor as a
template
../include/replacementHeapBlock.h:161: note: use 'ReplacementHeapBlock<T,
Compare>::ReplacementHeapBlock' instead of 'ReplacementHeapBlock<T,
Compare>::class ReplacementHeapBlock<T, Compare>' to name the constructor in a
qualified name
make[1]: *** [OBJ.i686-pc-linux-gnu/minmaxheap_test.o] Error 1
make[1]: Leaving directory
`/home/shoofi/src/straight/grass/src.contrib/DUKE/r.terraflow/IOStream/lib'
make: *** [IOStream/lib/LIB.i686-pc-linux-gnu/libiostream.a] Error 2

Maciek

-------------------------------------------- Managed by Request Tracker