Details Ticket 1350


Comment | Reply | Take | Open


Serial Number 1350
Subject Cannot compile r.slope.aspect on Solaris 8 i386
Area bug
Queue grass
Requestors d.cornford@aston.ac.uk
Owner none
Status resolved
Last User Contact Wed Oct 16 22:08:19 2002 (6 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Sun Oct 20 11:48:20 2002 (6 yr ago)
Created Wed Oct 16 12:33:28 2002 (6 yr ago)

Transaction History Ticket 1350


Wed, Oct 16 2002 12:33:28    Request created by guest  
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
Wed, Oct 16 2002 22:08:19    Mail sent by glynn.clements@virgin.net  
Return-Path <glynn.clements@virgin.net>
Delivered-To grass-bugs@lists.intevation.de
From Glynn Clements <glynn.clements@virgin.net>
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
Message-ID <15789.47261.35084.364252@cerise.nosuchdomain.co.uk>
Date Wed, 16 Oct 2002 20:06:05 +0100
To Request Tracker <grass-bugs@intevation.de>
Cc grass5@grass.itc.it
Subject Re: [GRASS5] [bug #1350] (grass) Cannot compile r.slope.aspect on Solaris 8 i386
In-Reply-To <20021016103328.01B1913ABC@lists.intevation.de>
References <20021016103328.01B1913ABC@lists.intevation.de>
X-Mailer VM 6.94 under 21.4 (patch 9) "Informed Management" XEmacs Lucid
X-Spam-Status No, hits=-12.9 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, SIGNATURE_SHORT_DENSE,SPAM_PHRASE_02_03 version=2.41
X-Spam-Level
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>


Fri, Oct 18 2002 08:55:37    Comments added by guest  
Thanks to Glynn Clements this problem has bee resolved.

For some reason the r.slope.aspect command would not compile on our system 
with the -O flag. The solutin for us was to:

cd /usr/local/source/grass-5.0.0/src/raster/r.slope.aspect/cmd

gcc -I/usr/local/source/grass-5.0.0/src/include -O2 -I/usr/local/include -c 
main.c -o OBJ.i386-pc-solaris2.8/main.o

make -f OBJ.386-pc-solaris2.8/make.rules

cd /usr/local/source/grass-5.0.0/

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

This got things working (the only change is the -O2 switch, rather than -O as
used in the default makefile. I suspect some of what we did was not necessary
(e.g. the make -f line?). In any case this got the system compiled. I have no
idea why .....

So thanks for the help from the list and I hope someone else finds this 
summary useful.

cheers

Dan 
Sun, Oct 20 2002 11:48:20    Status changed to resolved by gclements  
Comment | Reply | Take | Open

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request