[GRASS5] [bug #1350] (grass) Cannot compile r.slope.aspect on Solaris 8 i386

this bug's URL: http://intevation.de/rt/webrt?serial_num=1350
-------------------------------------------------------------------------

Subject: Cannot compile r.slope.aspect on Solaris 8 i386

Platform: Solaris7/i386
grass obtained from: Trento Italy site
grass binary for platform: Compiled from Sources

This is further to report 1349: more details.

This is the result from running (as suggested by Glynn Clements - thanks):

gmake5 -i src/raster/r.slope.aspect

  CMD = /usr/local/source/grass-5.0.0/src/CMD
  UNUSED = /usr/local/source/grass-5.0.0/unused
  HEADER = head.i386-pc-solaris2.8
  ARCH = i386-pc-solaris2.8
  GISBASE = /usr/local/source/grass-5.0.0/dist.i386-pc-solaris2.8
  VERSION = 5.0.0 August 2002
#################################################################
/usr/local/source/grass-5.0.0/src/raster/r.slope.aspect
  make -f OBJ.i386-pc-solaris2.8/make.rules

/usr/local/bin/gmake5 -i -all
  SRC = /usr/local/source/grass-5.0.0/src
  CMD = /usr/local/source/grass-5.0.0/src/CMD
  UNUSED = /usr/local/source/grass-5.0.0/unused
  HEADER = head.i386-pc-solaris2.8
  ARCH = i386-pc-solaris2.8
  GISBASE = /usr/local/source/grass-5.0.0/dist.i386-pc-solaris2.8
  VERSION = 5.0.0 August 2002
#################################################################
/usr/local/source/grass-5.0.0/src/raster/r.slope.aspect/cmd
  make -f OBJ.i386-pc-solaris2.8/make.rules

make[1]: Entering directory
`/usr/local/source/grass-5.0.0/src/raster/r.slope.aspect/cmd'
gcc -I/usr/local/source/grass-5.0.0/src/include -O
-I/usr/local/include -c main.c -o OBJ.i386-pc-solaris2.8/main.o
gcc: Internal compiler error: program cc1 got fatal signal 6
make[1]: *** [OBJ.i386-pc-solaris2.8/main.o] Error 1
make[1]: Leaving directory
`/usr/local/source/grass-5.0.0/src/raster/r.slope.aspect/cmd'
make: *** [all] Error 1
#

This is the version of gcc we are using.

# gcc -v
Reading specs from
/usr/local/gnat312p/lib/gcc-lib/i386-pc-solaris2.6/2.8.1/specs
gcc version 2.8.1

Any ideas would be greatly appreciated - I am not expert enough to go digging in the source code and do not know what the gcc error message means! It is only r.slope.aspect of all the GRASS5 modules which does not compile.

cheers

Dan

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

Request Tracker wrote:

Subject: Cannot compile r.slope.aspect on Solaris 8 i386

Platform: Solaris7/i386
grass obtained from: Trento Italy site
grass binary for platform: Compiled from Sources

This is further to report 1349: more details.

/usr/local/source/grass-5.0.0/src/raster/r.slope.aspect/cmd
  make -f OBJ.i386-pc-solaris2.8/make.rules

make[1]: Entering directory
`/usr/local/source/grass-5.0.0/src/raster/r.slope.aspect/cmd'
gcc -I/usr/local/source/grass-5.0.0/src/include -O
-I/usr/local/include -c main.c -o OBJ.i386-pc-solaris2.8/main.o
gcc: Internal compiler error: program cc1 got fatal signal 6

Basically, gcc crashed.

I don't know about Solaris, but on Linux signal 6 is either SIGIOT or
SIGABRT. SIGABRT may indicate that the compiler called abort(), e.g.
because it got into an unexpected situation. However, that's just a
guess.

It isn't really possible to determine any more than that. You could
try compiling that file with different switches (e.g. without "-O",
with "-O2", with certain "-f" or "-m" switches etc); that sometimes
helps.

It might be that the problem is triggered by something specific in the
code, but the only way to locate it (other than debugging the
compiler, which is seldom a realistic possibility) would be to start
disabling chunks of source code until the compiler no longer crashes.

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