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

Martin Egholm Nielsen martin@egholm-nielsen.dk
Fri Jul 9 08:38:00 GMT 2004

>> 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:


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


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

More information about the crossgcc mailing list