3.1 bootstrap fails on sparcv9-sun-solaris2.8
Brad Lucier
lucier@math.purdue.edu
Tue Apr 10 21:14:00 GMT 2001
>
> On Apr 10, 2001, Brad Lucier <lucier@math.purdue.edu> wrote:
>
> > cc -xarch=v9 -DIN_GCC -DSVR4 -g -DHAVE_CONFIG_H -DGENERATOR_FILE -o gengenrtl \
>
> -xarch=v9 should cause the linker to look for 64-bit libraries, IIRC.
>
> > ild: (bad file) Input file /usr/lib/libc.a contains 32-bit relocatable, but producing a 64-bit file.
>
> Apparently, ild doesn't. Probably a bug in ild. I recall others
> mentioning problems using ild. Could you try with the bundled system
> linker, or perhaps with GNU ld?
OK, it got pretty far this time; this is with today's CVS sources for gcc-3.1:
banach-77% env CC='cc -xarch=v9 -xildoff' ../configure sparcv9-sun-solaris2.8 --prefix=/pkgs/gcc-2.96 -disable-checking --disable-shared
(I disabled shared libraries because otherwise make bootstrap died the first
time it tried to build a shared 32-bit libgcc; sorry, I didn't keep the error
message.)
Then make bootstrap got a good compare(!).
Then when it was configuring the libraries, I get:
checking whether the C compiler (/export/home/lucier/gcc/gcc-3.1/objdir/gcc/xgcc -B/export/home/lucier/gcc/gcc-3.1/objdir/gcc/ -B/pkgs/gcc-2.96/sparcv9-sun-solaris2.8/bin/ -B/pkgs/gcc-2.96/sparcv9-sun-solaris2.8/lib/ -isystem /pkgs/gcc-2.96/sparcv9-sun-solaris2.8/include -g ) works... no
configure: error: installation or configuration problem: C compiler cannot creat
e executables.
I don't have time to work on this for the next few days.
Brad
More information about the Gcc-bugs
mailing list