[GRASS5] Solaris2.8 compile problems

Hi,

Palle Haastrup <palle.haastrup@jrc.it>, who kindly prepared
SUN/Solaris binaries for the GRASS community (today), faces
a few compile problems. Eventually they are GRASS code
related?

Here the needed info, I have no idea about this. Due to
this these modules are not included in the binary package.

Markus

------------------------------------
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0.2/specs
Configured with: ../configure --with-as=/usr/local/bin/as
+--with-ld=/usr/local/bin/ld --enable-libgcj
Thread model: posix
gcc version 3.0.2

  SRC = /sd5/sw2001/grass/grass5.0.0pre3/src
  CMD = /sd5/sw2001/grass/grass5.0.0pre3/src/CMD
  UNUSED = /sd5/sw2001/grass/grass5.0.0pre3/unused
  HEADER = head.sparc-sun-solaris2.8
  ARCH = sparc-sun-solaris2.8
  GISBASE = /sd5/sw2001/grass/grass5.0.0pre3/dist.sparc-sun-solaris2.8
  VERSION = 5.0.0pre3 January 2002
#################################################################
/sd5/sw2001/grass/grass5.0.0pre3/src/display/d.histogram
  make -f OBJ.sparc-sun-solaris2.8/make.rules

/usr/local/bin/gmake5 -all
  SRC = /sd5/sw2001/grass/grass5.0.0pre3/src
  CMD = /sd5/sw2001/grass/grass5.0.0pre3/src/CMD
  UNUSED = /sd5/sw2001/grass/grass5.0.0pre3/unused
  HEADER = head.sparc-sun-solaris2.8
  ARCH = sparc-sun-solaris2.8
  GISBASE = /sd5/sw2001/grass/grass5.0.0pre3/dist.sparc-sun-solaris2.8
  VERSION = 5.0.0pre3 January 2002
#################################################################
/sd5/sw2001/grass/grass5.0.0pre3/src/display/d.histogram/cmd
  make -f OBJ.sparc-sun-solaris2.8/make.rules

make[1]: Entering directory `/sd5/sw2001/grass/grass5.0.0pre3/src/display/d.histogram/cmd'
gcc -I/sd5/sw2001/grass/grass5.0.0pre3/src/include -g -O2 -c draw_slice.c -o OBJ.sparc-sun-solaris2.8/draw_slice.o
draw_slice.c: In function `draw_slice':
draw_slice.c:106: Internal compiler error in change_address, at emit-rtl.c:1635
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html&gt; for instructions.
make[1]: *** [OBJ.sparc-sun-solaris2.8/draw_slice.o] Error 1
make[1]: Leaving directory `/sd5/sw2001/grass/grass5.0.0pre3/src/display/d.histogram/cmd'
make: *** [all] Error 1
  SRC = /sd5/sw2001/grass/grass5.0.0pre3/src
  CMD = /sd5/sw2001/grass/grass5.0.0pre3/src/CMD
  UNUSED = /sd5/sw2001/grass/grass5.0.0pre3/unused
  HEADER = head.sparc-sun-solaris2.8
  ARCH = sparc-sun-solaris2.8
  GISBASE = /sd5/sw2001/grass/grass5.0.0pre3/dist.sparc-sun-solaris2.8
  VERSION = 5.0.0pre3 January 2002
#################################################################
/sd5/sw2001/grass/grass5.0.0pre3/src/mapdev/v.out.moss
  make -f OBJ.sparc-sun-solaris2.8/make.rules

gcc -I/sd5/sw2001/grass/grass5.0.0pre3/src/include -g -O2 -c area_to_moss.c -o OBJ.sparc-sun-solaris2.8/area_to_moss.o
area_to_moss.c: In function `area_to_moss':
area_to_moss.c:144: Internal compiler error in change_address, at emit-rtl.c:1635
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html&gt; for instructions.
make: *** [OBJ.sparc-sun-solaris2.8/area_to_moss.o] Error 1
  SRC = /sd5/sw2001/grass/grass5.0.0pre3/src
  CMD = /sd5/sw2001/grass/grass5.0.0pre3/src/CMD
  UNUSED = /sd5/sw2001/grass/grass5.0.0pre3/unused
  HEADER = head.sparc-sun-solaris2.8
  ARCH = sparc-sun-solaris2.8
  GISBASE = /sd5/sw2001/grass/grass5.0.0pre3/dist.sparc-sun-solaris2.8
  VERSION = 5.0.0pre3 January 2002
#################################################################
/sd5/sw2001/grass/grass5.0.0pre3/src/raster/r.slope.aspect
  make -f OBJ.sparc-sun-solaris2.8/make.rules

/usr/local/bin/gmake5 -all
  SRC = /sd5/sw2001/grass/grass5.0.0pre3/src
  CMD = /sd5/sw2001/grass/grass5.0.0pre3/src/CMD
  UNUSED = /sd5/sw2001/grass/grass5.0.0pre3/unused
  HEADER = head.sparc-sun-solaris2.8
  ARCH = sparc-sun-solaris2.8
  GISBASE = /sd5/sw2001/grass/grass5.0.0pre3/dist.sparc-sun-solaris2.8
  VERSION = 5.0.0pre3 January 2002
#################################################################
/sd5/sw2001/grass/grass5.0.0pre3/src/raster/r.slope.aspect/cmd
  make -f OBJ.sparc-sun-solaris2.8/make.rules

make[1]: Entering directory `/sd5/sw2001/grass/grass5.0.0pre3/src/raster/r.slope.aspect/cmd'
gcc -I/sd5/sw2001/grass/grass5.0.0pre3/src/include -g -O2 -c main.c -o OBJ.sparc-sun-solaris2.8/main.o
main.c: In function `main':
main.c:1303: Internal compiler error in change_address, at emit-rtl.c:1635
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html&gt; for instructions.
make[1]: *** [OBJ.sparc-sun-solaris2.8/main.o] Error 1
make[1]: Leaving directory `/sd5/sw2001/grass/grass5.0.0pre3/src/raster/r.slope.aspect/cmd'
make: *** [all] Error 1
  SRC = /sd5/sw2001/grass/grass5.0.0pre3/src
  CMD = /sd5/sw2001/grass/grass5.0.0pre3/src/CMD
  UNUSED = /sd5/sw2001/grass/grass5.0.0pre3/unused
  HEADER = head.sparc-sun-solaris2.8
  ARCH = sparc-sun-solaris2.8
  GISBASE = /sd5/sw2001/grass/grass5.0.0pre3/dist.sparc-sun-solaris2.8
  VERSION = 5.0.0pre3 January 2002
#################################################################
/sd5/sw2001/grass/grass5.0.0pre3/src.contrib/CERL/raster/r.hydro.CASC2D
  make -f OBJ.sparc-sun-solaris2.8/make.rules

gcc -I/sd5/sw2001/grass/grass5.0.0pre3/src/include -g -O2 -c CASC2D.c -o OBJ.sparc-sun-solaris2.8/CASC2D.o
CASC2D.c: In function `main':
CASC2D.c:2995: Internal compiler error in change_address, at emit-rtl.c:1635
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html&gt; for instructions.
make: *** [OBJ.sparc-sun-solaris2.8/CASC2D.o] Error 1
  SRC = /sd5/sw2001/grass/grass5.0.0pre3/src
  CMD = /sd5/sw2001/grass/grass5.0.0pre3/src/CMD
  UNUSED = /sd5/sw2001/grass/grass5.0.0pre3/unused
  HEADER = head.sparc-sun-solaris2.8
  ARCH = sparc-sun-solaris2.8
  GISBASE = /sd5/sw2001/grass/grass5.0.0pre3/dist.sparc-sun-solaris2.8
  VERSION = 5.0.0pre3 January 2002
#################################################################
/sd5/sw2001/grass/grass5.0.0pre3/src.contrib/NPS/r.out.elas
  make -f OBJ.sparc-sun-solaris2.8/make.rules

gcc -I/sd5/sw2001/grass/grass5.0.0pre3/src/include -g -O2 -c main.c -o OBJ.sparc-sun-solaris2.8/main.o
main.c: In function `main':
main.c:815: Internal compiler error in change_address, at emit-rtl.c:1635
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html&gt; for instructions.
make: *** [OBJ.sparc-sun-solaris2.8/main.o] Error 1

Markus Neteler wrote:

Hi,

Palle Haastrup <palle.haastrup@jrc.it>, who kindly prepared
SUN/Solaris binaries for the GRASS community (today), faces
a few compile problems. Eventually they are GRASS code
related?

Here the needed info, I have no idea about this. Due to
this these modules are not included in the binary package.

Markus

Hi Markus, hi others,

i remember that i had those errors too with Solaris8/SPARC and gcc 3.0.x
(search the archive of this list).
The bottom line is IMHO that gcc 3.0.x from the Solaris companion CD is
buggy, and as i am not into compiler programming i just installed gcc
2.7.x from the SMC distribution.
This worked out of the box.

NB. I checked in a makefile for creating the pkg package on solaris in
the directory pkg.
There you can find a discription on how to build a pkg file. I decided
to install under /opt/GNUgrass, as i think that the policy with Sun
Solaris is that all packages not belonging to the system should install
under /opt. One should strip the binaries before packaging, so that the
size goes down to ~35 MB rather than 85 MB. I have provided other files
too, e. g. a copyright file, checkinst scripts (that check that one does
not accidently install a x86 package on SPARC or vice versa). If you
need help, please contact me via pm.

NB2. The pkginst binary distribution is IMHO linked statically with
FFTW, so if you do not want to compile anything locally, one does not
need: fftw, autoconf, automake, binutils, bison, flex, gcc, m4, make,
mysql, tar, tkinfo. Not sure about gdbm and perl, if everything is built
against Postgresql and unixODBC (nviz) one needs these. What about the
libraries for nviz? I remember that one has to install some libraries
for openGL (may depend on the installation).

HTH,

Andreas

--
Andreas Lange, 65187 Wiesbaden, Germany, Tel. +49 611 807850
url: http://mitglied.tripod.de/AndreasLange
mail: Andreas.Lange_at_Rhein-Main.de - A.C.Lange_at_GMX.net

Dear Markus, Dear Andreas, Dear "Grass5"

I am pleased to report that upgrading to gcc 3.0.3 cured the problem.

Palle

At 15:54 22/01/2002 +0100, Markus Neteler wrote:

Hi,

Palle Haastrup <palle.haastrup@jrc.it>, who kindly prepared
SUN/Solaris binaries for the GRASS community (today), faces
a few compile problems. Eventually they are GRASS code
related?

Here the needed info, I have no idea about this. Due to
this these modules are not included in the binary package.

Markus

------------------------------------
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0.2/specs
Configured with: ../configure --with-as=/usr/local/bin/as
+--with-ld=/usr/local/bin/ld --enable-libgcj
Thread model: posix
gcc version 3.0.2

  SRC = /sd5/sw2001/grass/grass5.0.0pre3/src
  CMD = /sd5/sw2001/grass/grass5.0.0pre3/src/CMD
  UNUSED = /sd5/sw2001/grass/grass5.0.0pre3/unused
  HEADER = head.sparc-sun-solaris2.8
  ARCH = sparc-sun-solaris2.8
  GISBASE = /sd5/sw2001/grass/grass5.0.0pre3/dist.sparc-sun-solaris2.8
  VERSION = 5.0.0pre3 January 2002
#################################################################
/sd5/sw2001/grass/grass5.0.0pre3/src/display/d.histogram
  make -f OBJ.sparc-sun-solaris2.8/make.rules

/usr/local/bin/gmake5 -all
  SRC = /sd5/sw2001/grass/grass5.0.0pre3/src
  CMD = /sd5/sw2001/grass/grass5.0.0pre3/src/CMD
  UNUSED = /sd5/sw2001/grass/grass5.0.0pre3/unused
  HEADER = head.sparc-sun-solaris2.8
  ARCH = sparc-sun-solaris2.8
  GISBASE = /sd5/sw2001/grass/grass5.0.0pre3/dist.sparc-sun-solaris2.8
  VERSION = 5.0.0pre3 January 2002
#################################################################
/sd5/sw2001/grass/grass5.0.0pre3/src/display/d.histogram/cmd
  make -f OBJ.sparc-sun-solaris2.8/make.rules

make[1]: Entering directory `/sd5/sw2001/grass/grass5.0.0pre3/src/display/d.histogram/cmd'
gcc -I/sd5/sw2001/grass/grass5.0.0pre3/src/include -g -O2 -c draw_slice.c -o OBJ.sparc-sun-solaris2.8/draw_slice.o
draw_slice.c: In function `draw_slice':
draw_slice.c:106: Internal compiler error in change_address, at emit-rtl.c:1635
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html&gt; for instructions.
make[1]: *** [OBJ.sparc-sun-solaris2.8/draw_slice.o] Error 1
make[1]: Leaving directory `/sd5/sw2001/grass/grass5.0.0pre3/src/display/d.histogram/cmd'
make: *** [all] Error 1
  SRC = /sd5/sw2001/grass/grass5.0.0pre3/src
  CMD = /sd5/sw2001/grass/grass5.0.0pre3/src/CMD
  UNUSED = /sd5/sw2001/grass/grass5.0.0pre3/unused
  HEADER = head.sparc-sun-solaris2.8
  ARCH = sparc-sun-solaris2.8
  GISBASE = /sd5/sw2001/grass/grass5.0.0pre3/dist.sparc-sun-solaris2.8
  VERSION = 5.0.0pre3 January 2002
#################################################################
/sd5/sw2001/grass/grass5.0.0pre3/src/mapdev/v.out.moss
  make -f OBJ.sparc-sun-solaris2.8/make.rules

gcc -I/sd5/sw2001/grass/grass5.0.0pre3/src/include -g -O2 -c area_to_moss.c -o OBJ.sparc-sun-solaris2.8/area_to_moss.o
area_to_moss.c: In function `area_to_moss':
area_to_moss.c:144: Internal compiler error in change_address, at emit-rtl.c:1635
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html&gt; for instructions.
make: *** [OBJ.sparc-sun-solaris2.8/area_to_moss.o] Error 1
  SRC = /sd5/sw2001/grass/grass5.0.0pre3/src
  CMD = /sd5/sw2001/grass/grass5.0.0pre3/src/CMD
  UNUSED = /sd5/sw2001/grass/grass5.0.0pre3/unused
  HEADER = head.sparc-sun-solaris2.8
  ARCH = sparc-sun-solaris2.8
  GISBASE = /sd5/sw2001/grass/grass5.0.0pre3/dist.sparc-sun-solaris2.8
  VERSION = 5.0.0pre3 January 2002
#################################################################
/sd5/sw2001/grass/grass5.0.0pre3/src/raster/r.slope.aspect
  make -f OBJ.sparc-sun-solaris2.8/make.rules

/usr/local/bin/gmake5 -all
  SRC = /sd5/sw2001/grass/grass5.0.0pre3/src
  CMD = /sd5/sw2001/grass/grass5.0.0pre3/src/CMD
  UNUSED = /sd5/sw2001/grass/grass5.0.0pre3/unused
  HEADER = head.sparc-sun-solaris2.8
  ARCH = sparc-sun-solaris2.8
  GISBASE = /sd5/sw2001/grass/grass5.0.0pre3/dist.sparc-sun-solaris2.8
  VERSION = 5.0.0pre3 January 2002
#################################################################
/sd5/sw2001/grass/grass5.0.0pre3/src/raster/r.slope.aspect/cmd
  make -f OBJ.sparc-sun-solaris2.8/make.rules

make[1]: Entering directory `/sd5/sw2001/grass/grass5.0.0pre3/src/raster/r.slope.aspect/cmd'
gcc -I/sd5/sw2001/grass/grass5.0.0pre3/src/include -g -O2 -c main.c -o OBJ.sparc-sun-solaris2.8/main.o
main.c: In function `main':
main.c:1303: Internal compiler error in change_address, at emit-rtl.c:1635
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html&gt; for instructions.
make[1]: *** [OBJ.sparc-sun-solaris2.8/main.o] Error 1
make[1]: Leaving directory `/sd5/sw2001/grass/grass5.0.0pre3/src/raster/r.slope.aspect/cmd'
make: *** [all] Error 1
  SRC = /sd5/sw2001/grass/grass5.0.0pre3/src
  CMD = /sd5/sw2001/grass/grass5.0.0pre3/src/CMD
  UNUSED = /sd5/sw2001/grass/grass5.0.0pre3/unused
  HEADER = head.sparc-sun-solaris2.8
  ARCH = sparc-sun-solaris2.8
  GISBASE = /sd5/sw2001/grass/grass5.0.0pre3/dist.sparc-sun-solaris2.8
  VERSION = 5.0.0pre3 January 2002
#################################################################
/sd5/sw2001/grass/grass5.0.0pre3/src.contrib/CERL/raster/r.hydro.CASC2D
  make -f OBJ.sparc-sun-solaris2.8/make.rules

gcc -I/sd5/sw2001/grass/grass5.0.0pre3/src/include -g -O2 -c CASC2D.c -o OBJ.sparc-sun-solaris2.8/CASC2D.o
CASC2D.c: In function `main':
CASC2D.c:2995: Internal compiler error in change_address, at emit-rtl.c:1635
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html&gt; for instructions.
make: *** [OBJ.sparc-sun-solaris2.8/CASC2D.o] Error 1
  SRC = /sd5/sw2001/grass/grass5.0.0pre3/src
  CMD = /sd5/sw2001/grass/grass5.0.0pre3/src/CMD
  UNUSED = /sd5/sw2001/grass/grass5.0.0pre3/unused
  HEADER = head.sparc-sun-solaris2.8
  ARCH = sparc-sun-solaris2.8
  GISBASE = /sd5/sw2001/grass/grass5.0.0pre3/dist.sparc-sun-solaris2.8
  VERSION = 5.0.0pre3 January 2002
#################################################################
/sd5/sw2001/grass/grass5.0.0pre3/src.contrib/NPS/r.out.elas
  make -f OBJ.sparc-sun-solaris2.8/make.rules

gcc -I/sd5/sw2001/grass/grass5.0.0pre3/src/include -g -O2 -c main.c -o OBJ.sparc-sun-solaris2.8/main.o
main.c: In function `main':
main.c:815: Internal compiler error in change_address, at emit-rtl.c:1635
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html&gt; for instructions.
make: *** [OBJ.sparc-sun-solaris2.8/main.o] Error 1

*************************************************
Palle Haastrup, M.Sc.,Ph.D., MBA
Deputy Head of the Inland and Marine Waters Unit
Institute for Environment and Sustainability
European Commission, Joint Research Centre Ispra
Via E. Fermi, 1, TP 361
21020 Ispra (VA), Italy
Tlf +39 0332 789083, Fax: +39 0332 785807,
Secretary +39 0332 789588
*************************************************