6.9 compiling glibc, fails on make due to undefined references in functions
I'm using the latest LFS book, compiling glibc-2.11.1 for my system (http://www.linuxfromscratch.org/lfs/...r06/glibc.html). I'm also using Matthias Benkmann's package user setup for package management. (http://www.linuxfromscratch.org/hint...nd_pkg_man.txt) That means that I am not compiling glibc as root.
This is the end of the output from make, the things it was doing when it failed. As you can see: a lot of undefined references to things with names beginning with "__sync" in functions in libc_pic.os. Thanks! Code:
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 |
Maybe this will help:
http://sources.redhat.com/ml/libc-al.../msg00009.html |
I did pass -march=i486 to the compiler. I appended it to CFLAGS using configparms, as detailed in the link to the LFS book page in my first post.
Code:
$ case `uname -m` in maybe it was a typo? sorry to waste y'all's time. |
OK. Test gcc with this:
Code:
cd /tmp http://old.nabble.com/Re:--ct-ng--build-error:-undefined-reference-to---`__sync_bool_compare_and_swap_4'-p17875951.html |
All times are GMT -5. The time now is 09:11 AM. |