Error Glibc-2.11.1
HI
LFS 6.6 at Glibc-2.11.1 OS suse 12 gcc 4.4.3 i have problem in ( make ) mv -f /sources/glibc-build/shlib.ldsT /sources/glibc-build/shlib.lds 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.11.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.11.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.11.1/nscd/nscd_getpw_r.c:233: undefined reference to `__sync_fetch_and_add_4' /sources/glibc-build/libc_pic.os: In function `__nscd_drop_map_ref': /sources/glibc-2.11.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.11.1/nscd/nscd_getgr_r.c:322: undefined reference to `__sync_fetch_and_add_4' /sources/glibc-build/libc_pic.os: In function `__nscd_drop_map_ref': /sources/glibc-2.11.1/nscd/nscd-client.h:320: undefined reference to `__sync_fetch_and_add_4' /sources/glibc-build/libc_pic.os:/sources/glibc-2.11.1/nscd/nscd_gethst_r.c:415: 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.11.1/nscd/nscd_helper.c:433: undefined reference to `__sync_val_compare_and_swap_4' /sources/glibc-2.11.1/nscd/nscd_helper.c:433: undefined reference to `__sync_val_compare_and_swap_4' /sources/glibc-2.11.1/nscd/nscd_helper.c:433: undefined reference to `__sync_val_compare_and_swap_4' /sources/glibc-2.11.1/nscd/nscd_helper.c:433: undefined reference to `__sync_val_compare_and_swap_4' /sources/glibc-2.11.1/nscd/nscd_helper.c:433: undefined reference to `__sync_val_compare_and_swap_4' /sources/glibc-build/libc_pic.os:/sources/glibc-2.11.1/nscd/nscd_helper.c:433: more undefined references to `__sync_val_compare_and_swap_4' follow /sources/glibc-build/libc_pic.os: In function `*__GI___libc_freeres': /sources/glibc-2.11.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.11.1' make: *** [all] Error 2 |
Hi,
since your sources directory resides in the root '/' directory I assume you are in chapter 6. Please post the commands that you issued in your shell before you got this error. |
(Glibc-2.11.1) Well was the same problems (errors) in Chapter 5.7
but I ignore the errors I did not catch : answer crts |
Quote:
|
OK
I'm back and I started first. But the same problem and errors again LFS 6.6 at Glibc-2.11.1 chapter 5.7 : /mnt/lfs/sources/glibc-build/libc_nonshared.a gcc -nostdlib -nostartfiles -r -o /mnt/lfs/sources/glibc-build/libc_pic.os \ -Wl,-d -Wl,--whole-archive /mnt/lfs/sources/glibc-build/libc_pic.a gcc -shared -Wl,-O1 \ -nostdlib -nostartfiles \ -Wl,-dynamic-linker=/tools/lib/ld-linux.so.2 -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both \ -Wl,--verbose 2>&1 | \ sed > /mnt/lfs/sources/glibc-build/shlib.ldsT \ -e '/^=========/,/^=========/!d;/^=========/d' \ -e 's/^.*\.gnu\.hash[ ]*:.*$/ .note.ABI-tag : { *(.note.ABI-tag) } &/' -e '/^[ ]*\.hash[ ]*:.*$/{h;d;}' -e '/DATA_SEGMENT_ALIGN/{H;g}' \ -e 's/^.*\*(\.dynbss).*$/& \ PROVIDE(__start___libc_freeres_ptrs = .); \ *(__libc_freeres_ptrs) \ PROVIDE(__stop___libc_freeres_ptrs = .);/'\ -e 's@^.*\*(\.jcr).*$@& \ PROVIDE(__start___libc_subfreeres = .);\ __libc_subfreeres : { *(__libc_subfreeres) }\ PROVIDE(__stop___libc_subfreeres = .);\ PROVIDE(__start___libc_atexit = .);\ __libc_atexit : { *(__libc_atexit) }\ PROVIDE(__stop___libc_atexit = .);\ PROVIDE(__start___libc_thread_subfreeres = .);\ __libc_thread_subfreeres : { *(__libc_thread_subfreeres) }\ PROVIDE(__stop___libc_thread_subfreeres = .);\ /DISCARD/ : { *(.gnu.glibc-stub.*) }@' mv -f /mnt/lfs/sources/glibc-build/shlib.ldsT /mnt/lfs/sources/glibc-build/shlib.lds gcc -shared -static-libgcc -Wl,-O1 -Wl,-z,defs -Wl,-dynamic-linker=/tools/lib/ld-linux.so.2 -B/mnt/lfs/sources/glibc-build/csu/ -Wl,--version-script=/mnt/lfs/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/mnt/lfs/sources/glibc-build -L/mnt/lfs/sources/glibc-build/math -L/mnt/lfs/sources/glibc-build/elf -L/mnt/lfs/sources/glibc-build/dlfcn -L/mnt/lfs/sources/glibc-build/nss -L/mnt/lfs/sources/glibc-build/nis -L/mnt/lfs/sources/glibc-build/rt -L/mnt/lfs/sources/glibc-build/resolv -L/mnt/lfs/sources/glibc-build/crypt -L/mnt/lfs/sources/glibc-build/nptl -Wl,-rpath-link=/mnt/lfs/sources/glibc-build:/mnt/lfs/sources/glibc-build/math:/mnt/lfs/sources/glibc-build/elf:/mnt/lfs/sources/glibc-build/dlfcn:/mnt/lfs/sources/glibc-build/nss:/mnt/lfs/sources/glibc-build/nis:/mnt/lfs/sources/glibc-build/rt:/mnt/lfs/sources/glibc-build/resolv:/mnt/lfs/sources/glibc-build/crypt:/mnt/lfs/sources/glibc-build/nptl -o /mnt/lfs/sources/glibc-build/libc.so -T /mnt/lfs/sources/glibc-build/shlib.lds /mnt/lfs/sources/glibc-build/csu/abi-note.o /mnt/lfs/sources/glibc-build/elf/soinit.os /mnt/lfs/sources/glibc-build/libc_pic.os /mnt/lfs/sources/glibc-build/elf/sofini.os /mnt/lfs/sources/glibc-build/elf/interp.os /mnt/lfs/sources/glibc-build/elf/ld.so -lgcc /mnt/lfs/sources/glibc-build/libc_pic.os: In function `__libc_fork': /mnt/lfs/sources/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/sources/glibc-build/libc_pic.os: In function `__nscd_drop_map_ref': /mnt/lfs/sources/glibc-2.11.1/nscd/nscd-client.h:320: undefined reference to `__sync_fetch_and_add_4' /mnt/lfs/sources/glibc-build/libc_pic.os: In function `nscd_getpw_r': /mnt/lfs/sources/glibc-2.11.1/nscd/nscd_getpw_r.c:233: undefined reference to `__sync_fetch_and_add_4' /mnt/lfs/sources/glibc-build/libc_pic.os: In function `__nscd_drop_map_ref': /mnt/lfs/sources/glibc-2.11.1/nscd/nscd-client.h:320: undefined reference to `__sync_fetch_and_add_4' /mnt/lfs/sources/glibc-build/libc_pic.os: In function `nscd_getgr_r': /mnt/lfs/sources/glibc-2.11.1/nscd/nscd_getgr_r.c:322: undefined reference to `__sync_fetch_and_add_4' /mnt/lfs/sources/glibc-build/libc_pic.os: In function `__nscd_drop_map_ref': /mnt/lfs/sources/glibc-2.11.1/nscd/nscd-client.h:320: undefined reference to `__sync_fetch_and_add_4' /mnt/lfs/sources/glibc-build/libc_pic.os:/mnt/lfs/sources/glibc-2.11.1/nscd/nscd_gethst_r.c:415: more undefined references to `__sync_fetch_and_add_4' follow /mnt/lfs/sources/glibc-build/libc_pic.os: In function `__nscd_get_map_ref': /mnt/lfs/sources/glibc-2.11.1/nscd/nscd_helper.c:433: undefined reference to `__sync_val_compare_and_swap_4' /mnt/lfs/sources/glibc-2.11.1/nscd/nscd_helper.c:433: undefined reference to `__sync_val_compare_and_swap_4' /mnt/lfs/sources/glibc-2.11.1/nscd/nscd_helper.c:433: undefined reference to `__sync_val_compare_and_swap_4' /mnt/lfs/sources/glibc-2.11.1/nscd/nscd_helper.c:433: undefined reference to `__sync_val_compare_and_swap_4' /mnt/lfs/sources/glibc-2.11.1/nscd/nscd_helper.c:433: undefined reference to `__sync_val_compare_and_swap_4' /mnt/lfs/sources/glibc-build/libc_pic.os:/mnt/lfs/sources/glibc-2.11.1/nscd/nscd_helper.c:433: more undefined references to `__sync_val_compare_and_swap_4' follow /mnt/lfs/sources/glibc-build/libc_pic.os: In function `*__GI___libc_freeres': /mnt/lfs/sources/glibc-2.11.1/malloc/set-freeres.c:39: undefined reference to `__sync_bool_compare_and_swap_4' collect2: ld returned 1 exit status make[1]: *** [/mnt/lfs/sources/glibc-build/libc.so] Error 1 make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.11.1' make: *** [all] Error 2 What to do ? Please Help me . |
Hi,
did you check for all the system requirements? http://www.linuxfromscratch.org/lfs/.../hostreqs.html Check for all the versions that are installed on your system, eg by issueing Code:
gawk --version PS: Also post the commands that you issued before make. |
bash version-check.sh
bash, version 4.0.33(1)-release /bin/sh -> /bin/bash Binutils: (GNU Binutils; openSUSE 11.2) 2.19.51.20090527-10.26.4 bison (GNU Bison) 2.3 /usr/bin/yacc -> /usr/bin/yacc bzip2, Version 1.0.5, 10-Dec-2007. Coreutils: 7.1 diff (GNU diffutils) 2.8.7-cvs find (GNU findutils) 4.4.0 GNU Awk 3.1.6 /usr/bin/awk -> /bin/gawk gcc (SUSE Linux) 4.4.1 [gcc-4_4-branch revision 150839] GNU C Library stable release version 2.10.1 (20090918) GNU grep 2.5.4 gzip 1.3.12 Linux version 2.6.31.5-0.1-default (geeko@buildhost) (gcc version 4.4.1 [gcc-4_4-branch revision 150839] (SUSE Linux) ) #1 SMP 2009-10-26 15:49:03 +0100 m4 (GNU M4) 1.4.13 GNU Make 3.81 patch 2.5.9-122-gba37782 Perl version='5.10.0'; GNU sed version 4.1.5 tar (GNU tar) 1.21 Texinfo: makeinfo (GNU texinfo) 4.13 Compilation OK and gawk --version GNU Awk 3.1.6 Copyright (C) 1989, 1991-2007 Free Software Foundation PHP Code:
Does not work with this system ? |
What is the output of
Code:
echo $LFS_TGT |
echo $LFS_TGT
i686-lfs-linux-gnu |
I think this might be your problem. From your configure script:
Code:
checking for i686-lfs-linux-gnu-gcc... no If possible you should use the LFS liveCD as host to build your LFS. Distributions may come with altered code. Also verify that you have all headers installed. From the book, section Preface VII: Quote:
|
Hey guys.... I tried 'make' on the glibc in 5.7... and this is an excerpt of what I got:
make[4]: Leaving directory `/mnt/lfs/glibc-build/glibc-2.11.1/time' make[3]: Leaving directory `/mnt/lfs/glibc-build/glibc-2.11.1/elf' make[2]: Leaving directory `/mnt/lfs/glibc-build/glibc-2.11.1/elf' 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/glibc-build/csu/ -Wl,--version-script=/mnt/lfs/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/glibc-build -L/mnt/lfs/glibc-build/math -L/mnt/lfs/glibc-build/elf -L/mnt/lfs/glibc-build/dlfcn -L/mnt/lfs/glibc-build/nss -L/mnt/lfs/glibc-build/nis -L/mnt/lfs/glibc-build/rt -L/mnt/lfs/glibc-build/resolv -L/mnt/lfs/glibc-build/crypt -L/mnt/lfs/glibc-build/nptl -Wl,-rpath-link=/mnt/lfs/glibc-build:/mnt/lfs/glibc-build/math:/mnt/lfs/glibc-build/elf:/mnt/lfs/glibc-build/dlfcn:/mnt/lfs/glibc-build/nss:/mnt/lfs/glibc-build/nis:/mnt/lfs/glibc-build/rt:/mnt/lfs/glibc-build/resolv:/mnt/lfs/glibc-build/crypt:/mnt/lfs/glibc-build/nptl -o /mnt/lfs/glibc-build/libc.so -T /mnt/lfs/glibc-build/shlib.lds /mnt/lfs/glibc-build/csu/abi-note.o /mnt/lfs/glibc-build/elf/soinit.os /mnt/lfs/glibc-build/libc_pic.os /mnt/lfs/glibc-build/elf/sofini.os /mnt/lfs/glibc-build/elf/interp.os /mnt/lfs/glibc-build/elf/ld.so -lgcc /mnt/lfs/glibc-build/libc_pic.os: In function `__libc_fork': /mnt/lfs/glibc-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/glibc-build/libc_pic.os: In function `__nscd_drop_map_ref': /mnt/lfs/glibc-build/glibc-2.11.1/nscd/nscd-client.h:320: undefined reference to `__sync_fetch_and_add_4' /mnt/lfs/glibc-build/libc_pic.os: In function `nscd_getpw_r': /mnt/lfs/glibc-build/glibc-2.11.1/nscd/nscd_getpw_r.c:233: undefined reference to `__sync_fetch_and_add_4' /mnt/lfs/glibc-build/libc_pic.os: In function `__nscd_drop_map_ref': /mnt/lfs/glibc-build/glibc-2.11.1/nscd/nscd-client.h:320: undefined reference to `__sync_fetch_and_add_4' /mnt/lfs/glibc-build/libc_pic.os: In function `nscd_getgr_r': /mnt/lfs/glibc-build/glibc-2.11.1/nscd/nscd_getgr_r.c:322: undefined reference to `__sync_fetch_and_add_4' /mnt/lfs/glibc-build/libc_pic.os: In function `__nscd_drop_map_ref': /mnt/lfs/glibc-build/glibc-2.11.1/nscd/nscd-client.h:320: undefined reference to `__sync_fetch_and_add_4' /mnt/lfs/glibc-build/libc_pic.os:/mnt/lfs/glibc-build/glibc-2.11.1/nscd/nscd_gethst_r.c:415: more undefined references to `__sync_fetch_and_add_4' follow /mnt/lfs/glibc-build/libc_pic.os: In function `__nscd_get_map_ref': /mnt/lfs/glibc-build/glibc-2.11.1/nscd/nscd_helper.c:433: undefined reference to `__sync_val_compare_and_swap_4' /mnt/lfs/glibc-build/libc_pic.os: In function `*__GI___libc_freeres': /mnt/lfs/glibc-build/glibc-2.11.1/malloc/set-freeres.c:39: undefined reference to `__sync_bool_compare_and_swap_4' collect2: ld returned 1 exit status make[1]: *** [/mnt/lfs/glibc-build/libc.so] Error 1 make[1]: Leaving directory `/mnt/lfs/glibc-build/glibc-2.11.1' make: *** [all] Error 2 Please help me. What should I do now? |
ignore
|
I had the same problem building Glibc-2.11.1 in chapter 5.7.
The reason was i misspelled the configparms file name. So, if you get the same error, maybe the CFLAGS is not set properly... |
All times are GMT -5. The time now is 07:09 PM. |