This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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).

Attachment: pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]