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
|
|