public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* sparc port in bad shape (was Re: target/2573: 3.1 ICE's on solaris when compiling fftw)
       [not found] <20011209003606.A20394@mediaone.net>
@ 2001-12-09 12:31 ` Brad Lucier
  2001-12-09 19:31   ` Jeff Sturm
  0 siblings, 1 reply; 5+ messages in thread
From: Brad Lucier @ 2001-12-09 12:31 UTC (permalink / raw)
  To: Craig Rodrigues; +Cc: Brad Lucier, gcc

> 
> On Sat, Dec 08, 2001 at 11:34:44PM -0500, Brad Lucier wrote:
> > It hasn't bootstrapped for so long on the sparc that I've stopped trying
> 
> Sigh, that's a shame.
> 
> Does it bootstrap with binutils instead of the Sun assembler?

No.

First I tried

../configure --with-gnu-as --with-gnu-ld ...
make -j 12 bootstrap ...

and it used the Solaris assembler and loader anyway and bombed as before with

./xgcc -B./ -B/pkgs/gcc-2.96/sparc-sun-solaris2.8/bin/ -isystem /pkgs/gcc-2.96/sparc-sun-solaris2.8/include -isystem /pkgs/gcc-2.96/sparc-sun-solaris2.8/sys-include -O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include  -fPIC -g1 -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/config -I../../gcc/../include  -DL_muldi3 -c ../../gcc/libgcc2.c -o libgcc/./_muldi3.o
/usr/ccs/bin/as: "/tmp/ccT7Nlgi.s", line 208: error: unknown opcode ".stabd"
/usr/ccs/bin/as: "/tmp/ccT7Nlgi.s", line 208: error: statement syntax
make[3]: *** [libgcc/./_muldi3.o] Error 1

Then I tried

../configure --with-as=<gas> --with-gnu-ld=<binutils ld> ...
make -j 12 bootstrap ...

and it failed in .../v9/libiberty when it couldn't find a makefile.

Then I tried

../configure --with-as=<gas> --with-gnu-ld=<binutils ld> ...
make bootstrap ...

 and it failed in configure-target-libiberty with

checking whether the C compiler (/export/u3/lucier/programs/gcc/gcc-3.1/objdir/gcc/xgcc -B/export/u3/lucier/programs/gcc/gcc-3.1/objdir/gcc/ -B/pkgs/gcc-2.96/sparc-sun-solaris2.8/bin/ -B/pkgs/gcc-2.96/sparc-sun-solaris2.8/lib/ -isystem /pkgs/gcc-2.96/sparc-sun-solaris2.8/include  -m64 -g -O2 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
make[1]: *** [configure-target-libiberty] Error 1
make[1]: Leaving directory `/export/u3/lucier/programs/gcc/gcc-3.1/objdir'
make: *** [bootstrap] Error 2

It's a mess.

Brad

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: sparc port in bad shape (was Re: target/2573: 3.1 ICE's on solaris when compiling fftw)
  2001-12-09 12:31 ` sparc port in bad shape (was Re: target/2573: 3.1 ICE's on solaris when compiling fftw) Brad Lucier
@ 2001-12-09 19:31   ` Jeff Sturm
  2001-12-09 20:15     ` sparc port in bad shape (was Re: target/2573: 3.1 ICE's on Brad Lucier
  2001-12-09 23:07     ` Brad Lucier
  0 siblings, 2 replies; 5+ messages in thread
From: Jeff Sturm @ 2001-12-09 19:31 UTC (permalink / raw)
  To: Brad Lucier; +Cc: Craig Rodrigues, gcc


On Sun, 9 Dec 2001, Brad Lucier wrote:
> ../configure --with-gnu-as --with-gnu-ld ...

This isn't sufficient to find GNU as/ld.

The safest is to use "--with-as=<path> --with-ld=<path> --with-gnu-as
--with-gnu-ld" or nothing to get Solaris as/ld.  (I consider this a bug.)

> checking whether the C compiler
> (/export/u3/lucier/programs/gcc/gcc-3.1/objdir/gcc/xgcc
> -B/export/u3/lucier/programs/gcc/gcc-3.1/objdir/gcc/
> -B/pkgs/gcc-2.96/sparc-sun-solaris2.8/bin/
> -B/pkgs/gcc-2.96/sparc-sun-solaris2.8/lib/ -isystem
> /pkgs/gcc-2.96/sparc-sun-solaris2.8/include  -m64 -g -O2 ) works... no

What does config.log say?  You may need to configure binutils for sparcv9.

The workaround is --disable-multilib to prevent building 64-bit libs.

Jeff


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: sparc port in bad shape (was Re: target/2573: 3.1 ICE's on
  2001-12-09 19:31   ` Jeff Sturm
@ 2001-12-09 20:15     ` Brad Lucier
  2001-12-09 20:37       ` Phil Edwards
  2001-12-09 23:07     ` Brad Lucier
  1 sibling, 1 reply; 5+ messages in thread
From: Brad Lucier @ 2001-12-09 20:15 UTC (permalink / raw)
  To: Jeff Sturm; +Cc: Brad Lucier, Craig Rodrigues, gcc

> On Sun, 9 Dec 2001, Brad Lucier wrote:
> > ../configure --with-gnu-as --with-gnu-ld ...
> 
> This isn't sufficient to find GNU as/ld.
> 
> The safest is to use "--with-as=<path> --with-ld=<path> --with-gnu-as
> --with-gnu-ld" or nothing to get Solaris as/ld.  (I consider this a bug.)

If I specify the first two, do I really need to specify the last two?

> > checking whether the C compiler
> > (/export/u3/lucier/programs/gcc/gcc-3.1/objdir/gcc/xgcc
> > -B/export/u3/lucier/programs/gcc/gcc-3.1/objdir/gcc/
> > -B/pkgs/gcc-2.96/sparc-sun-solaris2.8/bin/
> > -B/pkgs/gcc-2.96/sparc-sun-solaris2.8/lib/ -isystem
> > /pkgs/gcc-2.96/sparc-sun-solaris2.8/include  -m64 -g -O2 ) works... no
> 
> What does config.log say?  You may need to configure binutils for sparcv9.

configure:2088: /export/u3/lucier/programs/gcc/gcc-3.1/objdir/gcc/xgcc -B/export/u3/lucier/programs/gcc/gcc-3.1/objdir/gcc/ -B/pkgs/gcc-2.96/sparc-sun-solaris2.8/bin/ -B/pkgs/gcc-2.96/sparc-sun-solaris2.8/lib/ -isystem /pkgs/gcc-2.96/sparc-sun-solaris2.8/include  -m64 -o conftest -g -O2   conftest.c  1>&5
/usr/lib/libdl.so.1: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
configure: failed program was:

#line 2083 "configure"
#include "confdefs.h"

main(){return(0);}

> The workaround is --disable-multilib to prevent building 64-bit libs.

OK, I'll try this.

Brad

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: sparc port in bad shape (was Re: target/2573: 3.1 ICE's on
  2001-12-09 20:15     ` sparc port in bad shape (was Re: target/2573: 3.1 ICE's on Brad Lucier
@ 2001-12-09 20:37       ` Phil Edwards
  0 siblings, 0 replies; 5+ messages in thread
From: Phil Edwards @ 2001-12-09 20:37 UTC (permalink / raw)
  To: Brad Lucier; +Cc: Jeff Sturm, Craig Rodrigues, gcc

On Sun, Dec 09, 2001 at 11:05:53PM -0500, Brad Lucier wrote:
> > On Sun, 9 Dec 2001, Brad Lucier wrote:
> > > ../configure --with-gnu-as --with-gnu-ld ...
> > 
> > This isn't sufficient to find GNU as/ld.
> > 
> > The safest is to use "--with-as=<path> --with-ld=<path> --with-gnu-as
> > --with-gnu-ld" or nothing to get Solaris as/ld.  (I consider this a bug.)
> 
> If I specify the first two, do I really need to specify the last two?

Yes.  (That's the bug.)


Phil

-- 
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace.  We seek
not your counsel, nor your arms.  Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen.            - Samuel Adams

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: sparc port in bad shape (was Re: target/2573: 3.1 ICE's on
  2001-12-09 19:31   ` Jeff Sturm
  2001-12-09 20:15     ` sparc port in bad shape (was Re: target/2573: 3.1 ICE's on Brad Lucier
@ 2001-12-09 23:07     ` Brad Lucier
  1 sibling, 0 replies; 5+ messages in thread
From: Brad Lucier @ 2001-12-09 23:07 UTC (permalink / raw)
  To: Jeff Sturm; +Cc: Brad Lucier, Craig Rodrigues, gcc

> The workaround is --disable-multilib to prevent building 64-bit libs.

That doesn't work, either, it just fails earlier:

ar  rc sparcv9/libgcc.a libgcc/sparcv9/_muldi3.o libgcc/sparcv9/_negdi2.o libgcc/sparcv9/_lshrdi3.o libgcc/sparcv9/_ashldi3.o libgcc/sparcv9/_ashrdi3.o libgcc/sparcv9/_ffsdi2.o libgcc/sparcv9/_clz.o libgcc/sparcv9/_cmpdi2.o libgcc/sparcv9/_ucmpdi2.o libgcc/sparcv9/_floatdidf.o libgcc/sparcv9/_floatdisf.o libgcc/sparcv9/_fixunsdfsi.o libgcc/sparcv9/_fixunssfsi.o libgcc/sparcv9/_fixunsdfdi.o libgcc/sparcv9/_fixdfdi.o libgcc/sparcv9/_fixunssfdi.o libgcc/sparcv9/_fixsfdi.o libgcc/sparcv9/_fixxfdi.o libgcc/sparcv9/_fixunsxfdi.o libgcc/sparcv9/_floatdixf.o libgcc/sparcv9/_fixunsxfsi.o libgcc/sparcv9/_fixtfdi.o libgcc/sparcv9/_fixunstfdi.o libgcc/sparcv9/_floatditf.o libgcc/sparcv9/_clear_cache.o libgcc/sparcv9/_trampoline.o libgcc/sparcv9/__main.o libgcc/sparcv9/_exit.o libgcc/sparcv9/_absvsi2.o libgcc/sparcv9/_absvdi2.o libgcc/sparcv9/_addvsi3.o libgcc/sparcv9/_addvdi3.o libgcc/sparcv9/_subvsi3.o libgcc/sparcv9/_subvdi3.o libgcc/sparcv9/_mulvsi3.o libgcc/sparcv9/_mulvdi3.o libgcc!
/sparcv9/_negvsi2.o libgcc/sparcv9/_negvdi2.o libgcc/sparcv9/_ctors.o libgcc/sparcv9/_divdi3.o libgcc/sparcv9/_moddi3.o libgcc/sparcv9/_udivdi3.o libgcc/sparcv9/_umoddi3.o libgcc/sparcv9/_udiv_w_sdiv.o libgcc/sparcv9/_udivmoddi4.o libgcc/sparcv9/unwind-dw2.o libgcc/sparcv9/unwind-dw2-fde.o libgcc/sparcv9/unwind-sjlj.o libgcc/sparcv9/_eprintf.o libgcc/sparcv9/_bb.o libgcc/sparcv9/__gcc_bcmp.o
if [ -f ranlib ] || ( [ sparc-sun-solaris2.8 = sparc-sun-solaris2.8 ] && [ -f /usr/bin/ranlib -o -f /bin/ranlib ] ) ; then \
  ranlib sparcv9/libgcc.a ; \
else true; fi;
collect2: ld terminated with signal 11 [Segmentation Fault], core dumped
/home/c/lucier/local/bin/ld: warning: sparc architecture of input file `./crti.o' is incompatible with sparc:v9 output
/home/c/lucier/local/bin/ld: warning: sparc architecture of input file `./crtbegin.o' is incompatible with sparc:v9 output
/home/c/lucier/local/bin/ld: warning: sparc architecture of input file `./crtend.o' is incompatible with sparc:v9 output
/home/c/lucier/local/bin/ld: warning: sparc architecture of input file `./crtn.o' is incompatible with sparc:v9 output
/home/c/lucier/local/bin/ld: ./crti.o: invalid string offset 6517364 >= 51 for section `.strtab'

This is after the stage1 compiler is built.

Brad

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-12-10  4:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20011209003606.A20394@mediaone.net>
2001-12-09 12:31 ` sparc port in bad shape (was Re: target/2573: 3.1 ICE's on solaris when compiling fftw) Brad Lucier
2001-12-09 19:31   ` Jeff Sturm
2001-12-09 20:15     ` sparc port in bad shape (was Re: target/2573: 3.1 ICE's on Brad Lucier
2001-12-09 20:37       ` Phil Edwards
2001-12-09 23:07     ` Brad Lucier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).