[CT 0.28rc28]: undefined reference to `i_am_not_a_leaf'

Dimitry Andric dimitry@andric.com
Thu Jul 8 15:40:00 GMT 2004


On 2004-07-08 at 13:34:05 Martin Egholm Nielsen wrote:

> With the latest Crosstool (rc28) I'm "suddenly" getting the error:
> (well, I have reinstalled the host-system since it successfully build rc26)

> ==== 8< ====
> /powerpc-405-linux-gnu/gcc-3.4.0-glibc-2.2.5/build-glibc/csu/crtn.o
> /root/crosstool-0.28-rc28/build/powerpc-405-linux-gnu/gcc-3.4.0-glibc-2.2.5/build-glibc/linuxthreads/libpthread.so:
> undefined reference to `i_am_not_a_leaf'
> collect2: ld returned 1 exit status
> ==== 8< ====

Hm, this should probably have been handled by:

  patches/glibc-linuxthreads-2.3.2/glibc-linuxthreads-2.3.2-allow-3.4.patch

but I just see that this doesn't seem to contain separate PowerPC
support.

I've appended a similar workaround as for mips to the original patch,
my modified version can be found here:

  http://www.andric.com/cross/patches/glibc-linuxthreads-2.3.2-allow-3.4.patch.bz2

Since I haven't got any PowerPC hardware here, you can be the only one
to test if this one works. ;)

To Dan: this patch could probably also be made in

  linuxthreads/sysdeps/powerpc/Makefile

instead of:
  
  linuxthreads/sysdeps/unix/sysv/linux/powerpc/Makefile

since the first file already seems to override some CFLAGS
(specifically, using -O1 for initfini.c).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 183 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/crossgcc/attachments/20040708/5c62702c/attachment.sig>


More information about the crossgcc mailing list