I've had the same problem, and after adding -march=i486 to CFLAGS, it got me by that error, but i encountered another error afterwards:
/lfs/glibc-build/libc_pic.os: In function `sync_file_range': (.text+0x9e963): undefined reference to `.Lpseudo_end' collect2: ld returned 1 exit status Not sure how to get by this error. Any help? --- Chris Staub <[EMAIL PROTECTED]> wrote: > Marcus Taschenberger wrote: > > Huhu, > > > > i should like to build LFS with other package > > > > Binutils 2.18 (build ok) > > > > GCC.4.2.2 (build ok) > > > > Linux API Header (Kernel 2.6.23, build ok) > > > > Glibc 2.7 (make error) > > > > Error message: > > > > /media/lfs/sources/glibc-build/libc_pic.os: In > function > > `__nscd_drop_map_ref': > > > /media/lfs/sources/glibc-2.7/nscd/nscd-client.h:320: > undefined reference > > to `__sync_fetch_and_add_4' > > > /media/lfs/sources/glibc-build/libc_pic.os:/media/lfs/sources/glibc-2.7/nscd/nscd_gethst_r.c:400: > > > more undefined references to > `__sync_fetch_and_add_4' follow > > /media/lfs/sources/glibc-build/libc_pic.os: In > function > > `__nscd_get_map_ref': > > > /media/lfs/sources/glibc-2.7/nscd/nscd_helper.c:404: > undefined reference > > to `__sync_val_compare_and_swap_4' > > /media/lfs/sources/glibc-build/libc_pic.os: In > function > > `*__GI___libc_freeres': > > > /media/lfs/sources/glibc-2.7/malloc/set-freeres.c:39: > undefined > > reference to `__sync_bool_compare_and_swap_4' > > collect2: ld returned 1 exit status > > make[1]: *** > [/media/lfs/sources/glibc-build/libc.so] Error 1 > > make[1]: Leaving directory > `/media/lfs/sources/glibc-2.7' > > make: *** [all] Error 2 > > [EMAIL PROTECTED]:/media/lfs/sources/glibc-build$ > > > > > > Host system is Debian Etch > > > > > > Does have anybody an idea where is the error? > > > > > > Sorry for my bad english > > > Looks like you forgot to set -march. The command > > echo "CFLAGS += -march=i486" > configparms > > mentioned in LFS for Glibc 2.6.1 is also needed for > Glibc 2.7. > -- > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
