Hi all, I'm on my second LFS build. This build is using LFS Book 6.5. On step 6.9.1. I've executed the commands and run make. Make produces the following error:
gcc -shared -static-libgcc -Wl,-O1 -Wl,-z,defs -Wl,-dynamic-linker=/lib/ld-linux.so.2 -B/sources/glibc-build/csu/ -Wl,--version-script=/sources/glibc-build/libc.map -Wl,-soname=libc.so.6 -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both -nostdlib -nostartfiles -e __libc_main -L/sources/glibc-build -L/sources/glibc-build/math -L/sources/glibc-build/elf -L/sources/glibc-build/dlfcn -L/sources/glibc-build/nss -L/sources/glibc-build/nis -L/sources/glibc-build/rt -L/sources/glibc-build/resolv -L/sources/glibc-build/crypt -L/sources/glibc-build/nptl -Wl,-rpath-link=/sources/glibc-build:/sources/glibc-build/math:/sources/glibc-build/elf:/sources/glibc-build/dlfcn:/sources/glibc-build/nss:/sources/glibc-build/nis:/sources/glibc-build/rt:/sources/glibc-build/resolv:/sources/glibc-build/crypt:/sources/glibc-build/nptl -o /sources/glibc-build/libc.so -T /sources/glibc-build/shlib.lds /sources/glibc-build/csu/abi-note.o /sources/glibc-build/elf/soinit.os /sources/glibc-build/libc_pic.os /sources/glibc-build/elf/sofini.os /sources/glibc-build/elf/interp.os /sources/glibc-build/elf/ld.so -lgcc /sources/glibc-build/libc_pic.os: In function `__libc_fork': /sources/glibc-2.10.1/posix/../nptl/sysdeps/unix/sysv/linux/i386/../fork.c:79: undefined reference to `__sync_bool_compare_and_swap_4' /sources/glibc-build/libc_pic.os: In function `__nscd_drop_map_ref': /sources/glibc-2.10.1/nscd/nscd-client.h:320: undefined reference to `__sync_fetch_and_add_4' /sources/glibc-build/libc_pic.os: In function `nscd_getpw_r': /sources/glibc-2.10.1/nscd/nscd_getpw_r.c:232: undefined reference to `__sync_fetch_and_add_4' /sources/glibc-build/libc_pic.os: In function `__nscd_drop_map_ref': /sources/glibc-2.10.1/nscd/nscd-client.h:320: undefined reference to `__sync_fetch_and_add_4' /sources/glibc-build/libc_pic.os: In function `nscd_getgr_r': /sources/glibc-2.10.1/nscd/nscd_getgr_r.c:321: undefined reference to `__sync_fetch_and_add_4' /sources/glibc-build/libc_pic.os: In function `__nscd_drop_map_ref': /sources/glibc-2.10.1/nscd/nscd-client.h:320: undefined reference to `__sync_fetch_and_add_4' /sources/glibc-build/libc_pic.os:/sources/glibc-2.10.1/nscd/nscd_gethst_r.c:413: more undefined references to `__sync_fetch_and_add_4' follow /sources/glibc-build/libc_pic.os: In function `__nscd_get_map_ref': /sources/glibc-2.10.1/nscd/nscd_helper.c:432: undefined reference to `__sync_val_compare_and_swap_4' /sources/glibc-build/libc_pic.os: In function `*__GI___libc_freeres': /sources/glibc-2.10.1/malloc/set-freeres.c:39: undefined reference to `__sync_bool_compare_and_swap_4' collect2: ld returned 1 exit status make[1]: *** [/sources/glibc-build/libc.so] Error 1 make[1]: Leaving directory `/sources/glibc-2.10.1' make: *** [all] Error 2 I'm not sure if this is the result of a sed typo in an earlier step on the page or not. Can anyone provide some help? Thanks, Shawn
-- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page