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'


With the latest Crosstool (rc28) I'm "suddenly" getting the error: ==== 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< ====
I can't reproduce your problem here.  Can you post the
exact steps to reproduce it?
Sure... I just modified TARGET_CFLAGS in "powerpc-405.dat":

TARGET_CFLAGS="-Os -mcpu=405"

So, this has do with the optimisation being carried out. This is obviously a "known" bug if one is googling a bit:

http://lists.arm.linux.org.uk/pipermail/linux-arm-toolchain/2004-June/000040.html

So I just added the "-fno-unit-at-a-time" parameter to the list, as well:

TARGET_CFLAGS="-Os -mcpu=405 -fno-unit-at-a-time"

And then it worked...

Regards,
 Martin



------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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