gcc 2.95.2 on SPARC v9

Andre Weinberg andre@wmai06.math.uni-wuppertal.de
Tue Dec 21 06:28:00 GMT 1999

Hi, there,

I try to compile gcc 2.95.2 on a SUN with Solaris 7
(sparcv9 - 64 bit). I've got some problems.

- configure does not recognize the sparcv9 architecture. This
  is because 'uname -a' doesn't tell anything about it. The
  right way is looking at the output of '/usr/bin/isainfo -n', 
  which exists in Solaris 7 and Solaris 8, but NOT in 2.6. So 
  what I did was something like
  env CC="cc -xarch=v9" .../configure --host=sparcv9-sun-solaris2.7
  gmake bootstrap
- There were many warnings like
  ../../../libiberty/choose-temp.c:130: warning: type mismatch in implicit 
  declaration for built-in function `strcpy'
  Looks like a pointer size problem.
- Comparing stage2/${file}.o with ./${file}.o is not enough. There are
  differences in global.o. I called another 'gmake bootstrap' which
  started copying everything to stage1/

- Next problem appeared when trying to link the dynamic libstdc++.so.
  More than 6500 error lines

  Text relocation remains                 	referenced
    against symbol		    offset	in file
  <unknown>                           0xd48     	../libio/pic/outfloat.o
  edit_mark::buffer(void)             0x11f8    	../libio/pic/editbuf.o
  ld: fatal: relocations remain against allocatable but non-writable sections
  collect2: ld returned 1 exit status
  gmake[2]: *** [libstdc++.so.2.10.0] Error 1
  Seems like a missing PIC-flag. Comparing to 32-bit version with
  --host=sparc-sun-solaris I saw, that there was everything well:
  64-bit : --host=sparcv9-sun-solaris2.7
    test x"yes" != xyes ||\
    -B/opt/local/gnu/tmp/gcc-2.95.2/sparcv9-sun-solaris2.7/bin/ -c -g -I. 
    -I../../../libio   ../../../libio/outfloat.c -o pic/outfloat.o

    test x"yes" != xyes ||\
    -B/opt/local/gnu/tmp/gcc-2.95.2/sparcv9-sun-solaris2.7/bin/ -c -g  -m32 -I. 
    -I../../../../libio   ../../../../libio/outfloat.c -o pic/outfloat.o

  32-bit : --host=sparc-sun-solaris2.7
    test x"yes" != xyes ||\
    -B/opt/local/gnu/gcc-2.95.2/sparc-sun-solaris2.7/bin/ -c -mtune=ultrasparc 
    -O99 -I. -I../../../libio  `case "-mtune=ultrasparc -O99 -mtune=ultrasparc 
    -O99 -fno-implicit-templates" in *-fpic* ) echo -fpic ;; * ) echo -fPIC ;; 
    esac` ../../../libio/outfloat.c -o pic/outfloat.o

That's all I found; if you want, I can send my logfiles to you 
(1.5 Megs). Please tell me what I can do to get it running and 
if you need anything from my install-dir.

So long,


Andre Weinberg           Phone: +49 202 439-2033
Fachbereich Mathematik   Fax:   +49 202 439-2912
Bergische Universitaet
Gauss-Strasse 20
D-42097 Wuppertal
e-mail: weinberg@math.uni-wuppertal.de


More information about the Gcc-bugs mailing list