[GRASSLIST:3805] grass5pre4 compilation problems

Venkatesh Raghavan raghavan at media.osaka-cu.ac.jp
Fri May 31 08:36:39 EDT 2002


Hi all,


I am trying to compile grass5pre4 on Mandrake Linux 8.2
using gcc2.96

The compling the src/libes/edit is giving me the following error


------------------error-message------------------------
edit_cellhd.c: In function `format_value':
edit_cellhd.c:113: Internal compiler error in subst_stack_regs_pat, at
reg-stack.c:1410
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:https://qa.mandrakesoft.com/> for instructions.
make: *** [OBJ.i686-pc-linux-gnu/edit_cellhd.o] Error 1

-----------------------------------------------------

I think, this is the similar error that is mentioned in the gcc bug
reported at


http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5538

Due to the above error the edit.a library is not created and some grass5

functions that require edit.a are not compiled. My gmake error.log is as

shown below


---------------error-log------------------------------------
Compilation error in module: src/general/g.region (ignored)
Compilation error in module: src/imagery/i.class (ignored)
Compilation error in module: src/imagery/i.ortho.photo (ignored)
Compilation error in module: src/imagery/i.points (ignored)
Compilation error in module: src/imagery/i.vpoints (ignored)
Compilation error in module: src/mapdev/v.reclass (ignored)
Compilation error in module: src/raster/r.reclass (ignored)
Compilation error in module: src/raster/r.support (ignored)
Compilation error in module: src/raster/r.weight (ignored)
Compilation error in module: locale (ignored)
End of compilation:   Fri May 31 19:29:18 ICT 2002
DONE generating GRASS GIS binary code

--------------------------------------------------------

Based on the little that I could comprehend from the gcc bugreport
I added a

return 0;

edit_cellhd.c: In function `format_value':

after which the edit library compiled  OK except for the compilation
error in the locale module as shown below;

-------------------error-log--------------------------------
GRASS GIS compilation log
-------------------------
Start of compilation: Fri May 31 22:55:58 ICT 2002
Errors:
Compilation error in module: locale (ignored)
End of compilation:   Fri May 31 23:00:08 ICT 2002
DONE generating GRASS GIS binary code

------------------------------------------------------------


Compiling grass5pre4 on Mandrake Linux 8.2
using gcc3.04 gives the following error.log


--------------------------error.log---------------------------
Start of compilation: Sat Jun  1 03:40:48 ICT 2002
Errors:
Compilation error in module: src/imagery/i.class (ignored)
Compilation error in module: src/imagery/i.ortho.photo (ignored)
Compilation error in module: src/imagery/i.points (ignored)
Compilation error in module: src/imagery/i.vpoints (ignored)
Compilation error in module: locale (ignored)
End of compilation:   Sat Jun  1 03:59:51 ICT 2002
DONE generating GRASS GIS binary code

---------------------------------------------------------------

Tried doing gmake in individual directories and got the following error

------------------------------------------------------------
 >  cd src/imagery/i.class

 > gmake5

 SRC     = /usr/local/src/grass5.0.0pre4/src
  CMD     = /usr/local/src/grass5.0.0pre4/src/CMD
  UNUSED  = /usr/local/src/grass5.0.0pre4/unused
  HEADER  = head.i686-pc-linux-gnu
  ARCH    = i686-pc-linux-gnu
  GISBASE = /usr/local/src/grass5.0.0pre4/dist.i686-pc-linux-gnu
  VERSION = 5.0.0pre4 May 2002
#################################################################
/usr/local/src/grass5.0.0pre4/src/imagery/i.class
  make -f OBJ.i686-pc-linux-gnu/make.rules

gcc -I/usr/local/src/grass5.0.0pre4/src/include -g -O2     -c curses.c
-o OBJ.i686-pc-linux-gnu/curses.o
curses.c:89: parse error before numeric constant
curses.c: In function `Curses_allow_interrupts':
curses.c:90: number of arguments doesn't match prototype
local_proto.h:28: prototype declaration
make: *** [OBJ.i686-pc-linux-gnu/curses.o] Error 1

--------------------------------------------------------------------------------------------------

Any hints or idea about getting grass5pre4 compiled on Mandrake8.2 is
welcome.

Thanks in advance

Raghavan



More information about the grass-user mailing list