[patch] Re: CVS 20010202 bootstrap error in libjava

Bryce McKinlay bryce@albatross.co.nz
Sat Feb 3 17:23:00 GMT 2001


Mark Mitchell wrote:

> >>>>> "Matthias" == Matthias Klose <doko@cs.tu-berlin.de> writes:
>
>     Matthias> Is this another default situation?
>
> Yes, probably.  I'll let the Java folks handle it, if that's OK, since
> they know that code far better than I.

I couldn't actually reproduce this problem here - libgcj.so is linking
libgcc_s.so already, so no undefined symbols.

> There are two options: build libgcj with -static-libgcc, or have gcj
> default to linking -shared-libgcc.  I recommend the latter course of
> action; the former will not work at all on some systems, such as AIX.

Aah, we definatly want to use the shared libgcc (yay!), and heres a patch
to do so. This brings the size of a hello-world down from 90K to 19K on
i686 (4K stripped). Cool!

Unfortunately something seems to have broken "gcj -static". I'm getting:

 /home/bryce/gcc/lib/gcc-lib/i686-pc-linux-gnu/2.97/collect2 -m elf_i386
-static -o ex /usr/lib/crt1.o /usr/lib/crti.o
/home/bryce/gcc/lib/gcc-lib/i686-pc-linux-gnu/2.97/crtbegin.o
-L/home/bryce/gcc/lib/gcc-lib/i686-pc-linux-gnu/2.97
-L/home/bryce/gcc/lib/gcc-lib/i686-pc-linux-gnu/2.97/../../..
/tmp/ccwUf19t.o /tmp/ccPLEY9lmain%O -lgcc -lgcj -lm -lgcjgc -lpthread
-lzgcj -ldl -lc -lgcc
/home/bryce/gcc/lib/gcc-lib/i686-pc-linux-gnu/2.97/crtend.o
/usr/lib/crtn.o
/home/bryce/gcc/lib/gcc-lib/i686-pc-linux-gnu/2.97/libgcc.a(_eh.o): In
function `__eh_rtime_match':
/home/bryce/cvs/gcc/build/gcc/../../gcc/libgcc2.c(.text+0x7f5): undefined
reference to `fwrite'
collect2: ld returned 1 exit status

I'm not sure if this is caused by my patch or if it was broken before.
Any ideas?

regards

  [ bryce ]



More information about the Gcc-patches mailing list