On 17/04/2010 03:28, Bruce Dubbs wrote: > Andrew Benton wrote: >> On 16/04/10 18:15, Andrew Benton wrote: >>> make LD_LIBRARY_PATH=$(pwd)/$(uname -m)-unknown-linux-gnu/libgcc/ >>> works for me on x86_64 (I've not tried it on a 32 bit build yet). >>> >> >> Building on i686 failed at the first pass of glibc like so: >> > >> Googling on that suggests that the error is related to setting the -march >> CFLAG whilst using >> a cross. compiler. Google led me to this patch which solved the problem: >> >> diff -Naur glibc-2.11.1-orig/nptl/sysdeps/pthread/pt-initfini.c >> glibc-2.11.1/nptl/sysdeps/pthread/pt-initfini.c > >> diff -Naur glibc-2.11.1-orig/sysdeps/unix/sysv/linux/i386/sysdep.h >> glibc-2.11.1/sysdeps/unix/sysv/linux/i386/sysdep.h > > Where did you find the patch Andy?
It's at http://www.eglibc.org/archives/patches/msg00073.html. I hit the same issue but didn't have time to test it last night. It's been doing the rounds since 2002 according to the reply to that patch. Maybe it needs bringing to the attention of Ulrich Drepper again; I think we're hitting it now because the GCC defaults changed in 4.5.0 to use i686 when it's possible to use that arch. I'm not sure I'm brave enough to test the waters with Mr Drepper though! Regards, Matt. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page