compiling GNU GCC on SunOS for SPARC

From: Rierson Robert Civ OC-ALC/MASLA (Robert.Rierson@tinker.af.mil)
Date: Wed Dec 04 2002 - 10:56:28 EST


I apologize for the somewhat off topic post.

I am trying to compile the GNU GCC compiler V 2.95.3 or higher if possible
for SunOS 4.1.4 on a SPARCstation 20. I have a previous version of the GCC
compiler 2.8.1 that I am using to compile. Can anyone help me out getting
the compile to work.

Thanks,

Robert Rierson
robert.rierson@tinker.af.mil

I am using the following script for the compile.

#!/bin/sh
PATH=/usr/local/bin:/usr/local/lib:/usr/local/include:/usr/local/gnu/bin:/us
r/bin
export PATH
echo $PATH
path=$PATH
export path
LD_LIBRARY_PATH=/usr/local/include:/usr/local/lib:/usr/local/include:/usr/lo
cal/gnu/lib:/usr/lib:/usr/include:/usr/openwin/lib:/usr/openwin/include
export LD_LIBRARY_PATH
echo $LD_LIBRARY_PATH
../gcc-2.95.3/configure --prefix=/usr/local/gnu --enable-shared
--with-gnu-as --with-as=/usr/local/gnu/bin/as --with-gnu-ld
--with-ld=/usr/local/lib/gcc-lib/sparc-sun-sunos4.1.4/2.8.1/ld
make bootstrap

I get the following errors well into the configure

for name in _eh;
 do
   echo ${name};
   ./xgcc -B/usr/local/gnu/sparc-sun-sunos4.1.4/bin/ -B./
-I/usr/local/gnu/sparc-sun-sunos4.1.4/include -O2 -DIN_GCC -DHAIFA -g
-I./include -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -fexceptions -I.
-I../../gcc-2.95.3/gcc -I../../gcc-2.95.3/gcc/config
-I../../gcc-2.95.3/gcc/../include -c \ -DL${name}
../../gcc-2.95.3/gcc/libgcc2.c -o ${name}.o;
   if [ $? -eq 0 ] ; then true; else exit 1; fi;
   ar rc tmplibgcc2.a ${name}.o;
   rm -f ${name}.o;
 done
_eh
/usr/tmp/ccYkCVBC.s: Assembler messages:
/usr/tmp/ccYkCVBC.s:1280: Error: internal error: can't export reloc type 69
(`BFD_RELOC_SPARC_UA32')
/usr/tmp/ccYkCVBC.s:1295: Error: internal error: can't export reloc type 69
(`BFD_RELOC_SPARC_UA32')
/usr/tmp/ccYkCVBC.s:1310: Error: internal error: can't export reloc type 69
(`BFD_RELOC_SPARC_UA32')
/usr/tmp/ccYkCVBC.s:1325: Error: internal error: can't export reloc type 69
(`BFD_RELOC_SPARC_UA32')
/usr/tmp/ccYkCVBC.s:1332: Error: internal error: can't export reloc type 69
(`BFD_RELOC_SPARC_UA32')
/usr/tmp/ccYkCVBC.s:1347: Error: internal error: can't export reloc type 69
(`BFD_RELOC_SPARC_UA32')
/usr/tmp/ccYkCVBC.s:1362: Error: internal error: can't export reloc type 69
(`BFD_RELOC_SPARC_UA32')
/usr/tmp/ccYkCVBC.s:1377: Error: internal error: can't export reloc type 69
(`BFD_RELOC_SPARC_UA32')
/usr/tmp/ccYkCVBC.s:1392: Error: internal error: can't export reloc type 69
(`BFD_RELOC_SPARC_UA32')
/usr/tmp/ccYkCVBC.s:1399: Error: internal error: can't export reloc type 69
(`BFD_RELOC_SPARC_UA32')
/usr/tmp/ccYkCVBC.s:1414: Error: internal error: can't export reloc type 69
(`BFD_RELOC_SPARC_UA32')
/usr/tmp/ccYkCVBC.s:1429: Error: internal error: can't export reloc type 69
(`BFD_RELOC_SPARC_UA32')
/usr/tmp/ccYkCVBC.s:1444: Error: internal error: can't export reloc type 69
(`BFD_RELOC_SPARC_UA32')
/usr/tmp/ccYkCVBC.s:1459: Error: internal error: can't export reloc type 69
(`BFD_RELOC_SPARC_UA32')
/usr/tmp/ccYkCVBC.s:1466: Error: internal error: can't export reloc type 69
(`BFD_RELOC_SPARC_UA32')
/usr/tmp/ccYkCVBC.s:1473: Error: internal error: can't export reloc type 69
(`BFD_RELOC_SPARC_UA32')
/usr/tmp/ccYkCVBC.s:1488: Error: internal error: can't export reloc type 69
(`BFD_RELOC_SPARC_UA32')
/usr/tmp/ccYkCVBC.s:1503: Error: internal error: can't export reloc type 69
(`BFD_RELOC_SPARC_UA32')
/usr/tmp/ccYkCVBC.s:1510: Error: internal error: can't export reloc type 69
(`BFD_RELOC_SPARC_UA32')
/usr/tmp/ccYkCVBC.s:1525: Error: internal error: can't export reloc type 69
(`BFD_RELOC_SPARC_UA32')
/usr/tmp/ccYkCVBC.s:1540: Error: internal error: can't export reloc type 69
(`BFD_RELOC_SPARC_UA32')
/usr/tmp/ccYkCVBC.s:1555: Error: internal error: can't export reloc type 69
(`BFD_RELOC_SPARC_UA32')
/usr/tmp/ccYkCVBC.s:1562: Error: internal error: can't export reloc type 69
(`BFD_RELOC_SPARC_UA32')
/usr/tmp/ccYkCVBC.s:1577: Error: internal error: can't export reloc type 69
(`BFD_RELOC_SPARC_UA32')
/usr/tmp/ccYkCVBC.s:1592: Error: internal error: can't export reloc type 69
(`BFD_RELOC_SPARC_UA32')
make[4]: *** [libgcc2.a] Error 1
make[4]: Leaving directory `/usr1/gnu/gcc-2.95.3-obj/gcc'
make[3]: *** [stmp-multilib-sub] Error 2
make[3]: Leaving directory `/usr1/gnu/gcc-2.95.3-obj/gcc'
make[2]: *** [stmp-multilib] Error 1
make[2]: Leaving directory `/usr1/gnu/gcc-2.95.3-obj/gcc'
make[1]: *** [bootstrap] Error 2
make[1]: Leaving directory `/usr1/gnu/gcc-2.95.3-obj/gcc'
make: *** [bootstrap] Error 2
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:25:24 EDT