Glibc make fails with Error 2

Chris Staub chris at beaker67.com
Sun May 23 21:57:45 PDT 2010


On 05/24/2010 12:45 AM, Kyle Brennan wrote:
> I solved the original error (it was a symlink problem with the gcc stem)
> and i got another error:
>
> mv -f /mnt/lfs/build/glibc-build/shlib.ldsT
> /mnt/lfs/build/glibc-build/shlib.lds
> i686-lfs-linux-gnu-gcc   -shared -static-libgcc -Wl,-O1  -Wl,-z,defs
> -Wl,-dynamic-linker=/tools/lib/ld-linux.so.2
> -B/mnt/lfs/build/glibc-build/csu/
> -Wl,--version-script=/mnt/lfs/build/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/mnt/lfs/build/glibc-build -L/mnt/lfs/build/glibc-build/math
> -L/mnt/lfs/build/glibc-build/elf -L/mnt/lfs/build/glibc-build/dlfcn
> -L/mnt/lfs/build/glibc-build/nss -L/mnt/lfs/build/glibc-build/nis
> -L/mnt/lfs/build/glibc-build/rt -L/mnt/lfs/build/glibc-build/resolv
> -L/mnt/lfs/build/glibc-build/crypt -L/mnt/lfs/build/glibc-build/nptl
> -Wl,-rpath-link=/mnt/lfs/build/glibc-build:/mnt/lfs/build/glibc-build/math:/mnt/lfs/build/glibc-build/elf:/mnt/lfs/build/glibc-build/dlfcn:/mnt/lfs/build/glibc-build/nss:/mnt/lfs/build/glibc-build/nis:/mnt/lfs/build/glibc-build/rt:/mnt/lfs/build/glibc-build/resolv:/mnt/lfs/build/glibc-build/crypt:/mnt/lfs/build/glibc-build/nptl
> -o /mnt/lfs/build/glibc-build/libc.so -T
> /mnt/lfs/build/glibc-build/shlib.lds
> /mnt/lfs/build/glibc-build/csu/abi-note.o
> /mnt/lfs/build/glibc-build/elf/soinit.os
> /mnt/lfs/build/glibc-build/libc_pic.os
> /mnt/lfs/build/glibc-build/elf/sofini.os
> /mnt/lfs/build/glibc-build/elf/interp.os
> /mnt/lfs/build/glibc-build/elf/ld.so -lgcc
> /mnt/lfs/build/glibc-build/libc_pic.os: In function `__libc_fork':
> /mnt/lfs/build/glibc-2.11.1/posix/../nptl/sysdeps/unix/sysv/linux/i386/../fork.c:79:
> undefined reference to `__sync_bool_compare_and_swap_4'
> /mnt/lfs/build/glibc-build/libc_pic.os: In function `__nscd_drop_map_ref':
> /mnt/lfs/build/glibc-2.11.1/nscd/nscd-client.h:320: undefined reference
> to `__sync_fetch_and_add_4'
> /mnt/lfs/build/glibc-build/libc_pic.os: In function `nscd_getpw_r':
> /mnt/lfs/build/glibc-2.11.1/nscd/nscd_getpw_r.c:233: undefined reference
> to `__sync_fetch_and_add_4'
> /mnt/lfs/build/glibc-build/libc_pic.os: In function `__nscd_drop_map_ref':
>
> I looked at this output and I could not find anything aside from
> libc_pic.os seems to be throwing errors that i do not understand.
>
> Thanks,
> --Kyle

These types of errors usually means you don't have CFLAGS set correctly, 
which points to some problem with configparms. Do "cat configparms".



More information about the lfs-support mailing list