Subject: Re: How to build/install gcc-3.2?
To: Frank Cusack <fcusack@fcusack.com>
From: Andrey Petrov <petrov@netbsd.org>
List: port-sparc64
Date: 10/21/2002 11:56:22
That's because default gcc3.2 configuration includes multilib support
(both 64 and 32 bit libraries) and sparc64 distribution doesn't have
tools for that. You can disable that with --disable-miltilib,
or grab 3.2.1 prerelease or gcc-current which does that by default.
Or you can build binutils with 32-bit support, i suspect that would
require newer binutils as well.
Andrey
On Mon, Oct 21, 2002 at 12:37:50AM -0700, Frank Cusack wrote:
> What's the easiest way to get gcc-3.2 built and installed? I'd prefer
> to have it in /usr/local.
>=20
> A simple configure and gmake ends up failing.
>=20
> thanks
> /fc
>=20
> ./xgcc -B./ -B/usr/local/sparc64-unknown-netbsd1.6/bin/ -isystem /usr/loc=
al/sparc64-unknown-netbsd1.6/include -isystem /usr/local/sparc64-unknown-ne=
tbsd1.6/sys-include -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prot=
otypes -Wmissing-prototypes -isystem ./include -g -DIN_LIBGCC2 -D__GCC_F=
LOAT_NOT_NEEDED -shared -nodefaultlibs -Wl,--soname=3Dlibgcc_s_32.so.1 -Wl=
,--version-script=3Dlibgcc/32/libgcc.map -o libgcc_s_32.so.1 -m32 libgcc/=
32/_muldi3.o libgcc/32/_negdi2.o libgcc/32/_lshrdi3.o libgcc/32/_ashldi3.o =
libgcc/32/_ashrdi3.o libgcc/32/_ffsdi2.o libgcc/32/_clz.o libgcc/32/_cmpdi2=
.o libgcc/32/_ucmpdi2.o libgcc/32/_floatdidf.o libgcc/32/_floatdisf.o libgc=
c/32/_fixunsdfsi.o libgcc/32/_fixunssfsi.o libgcc/32/_fixunsdfdi.o libgcc/3=
2/_fixdfdi.o libgcc/32/_fixunssfdi.o libgcc/32/_fixsfdi.o libgcc/32/_fixxfd=
i.o libgcc/32/_fixunsxfdi.o libgcc/32/_floatdixf.o libgcc/32/_fixunsxfsi.o =
libgcc/32/_fixtfdi.o libgcc/32/_fixunstfdi.o libgcc/32/_floatditf.o libgcc/=
32/_clear_cache.o libgcc/32/_trampoline.o libgcc/32/__main.o libgcc/32/_exi=
t.o libgcc/32/_absvsi2.o libgcc/32/_absvdi2.o libgcc/32/_addvsi3.o libgcc/3=
2/_addvdi3.o libgcc/32/_subvsi3.o libgcc/32/_subvdi3.o libgcc/32/_mulvsi3.o=
libgcc/32/_mulvdi3.o libgcc/32/_negvsi2.o libgcc/32/_negvdi2.o libgcc/32/_=
ctors.o libgcc/32/_divdi3.o libgcc/32/_moddi3.o libgcc/32/_udivdi3.o libgcc=
/32/_umoddi3.o libgcc/32/_udiv_w_sdiv.o libgcc/32/_udivmoddi4.o libgcc/32/=
unwind-dw2.o libgcc/32/unwind-dw2-fde.o libgcc/32/unwind-sjlj.o -lc && rm -=
f libgcc_s_32.so && ln -s libgcc_s_32.so.1 libgcc_s_32.so
> collect2: ld terminated with signal 11 [Segmentation fault]
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_muldi3=
.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_negdi2=
.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_lshrdi=
3.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_ashldi=
3.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_ashrdi=
3.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_ffsdi2=
.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_clz.o'=
is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_cmpdi2=
.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_ucmpdi=
2.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_floatd=
idf.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_floatd=
isf.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_fixuns=
dfsi.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_fixuns=
sfsi.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_fixuns=
dfdi.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_fixdfd=
i.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_fixuns=
sfdi.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_fixsfd=
i.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_fixxfd=
i.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_fixuns=
xfdi.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_floatd=
ixf.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_fixuns=
xfsi.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_fixtfd=
i.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_fixuns=
tfdi.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_floatd=
itf.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_clear_=
cache.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_trampo=
line.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/__main.=
o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_exit.o=
' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_absvsi=
2.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_absvdi=
2.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_addvsi=
3.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_addvdi=
3.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_subvsi=
3.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_subvdi=
3.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_mulvsi=
3.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_mulvdi=
3.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_negvsi=
2.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_negvdi=
2.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_ctors.=
o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_divdi3=
.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_moddi3=
.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_udivdi=
3.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_umoddi=
3.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_udiv_w=
_sdiv.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/_udivmo=
ddi4.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/unwind-=
dw2.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/unwind-=
dw2-fde.o' is incompatible with sparc:v9 output
> /usr/bin/ld: warning: sparc architecture of input file `libgcc/32/unwind-=
sjlj.o' is incompatible with sparc:v9 output
> /usr/bin/ld: libgcc/32/_muldi3.o: invalid string offset 778240042 >=3D 32=
for section `.strtab'
> gmake[3]: *** [32/libgcc_s_32.so] Error 1
> gmake[3]: Leaving directory `/home/data/src/gcc-3.2.objdir/gcc'
> gmake[2]: *** [stmp-multilib] Error 2
> gmake[2]: Leaving directory `/home/data/src/gcc-3.2.objdir/gcc'
> gmake[1]: *** [stage1_build] Error 2
> gmake[1]: Leaving directory `/home/data/src/gcc-3.2.objdir/gcc'
> gmake: *** [bootstrap] Error 2
>=20