glibc build

Michael DeLuca delucamd at gmail.com
Fri Feb 26 08:30:33 PST 2010


Looks like that did the trick.


On Thu, Feb 25, 2010 at 3:35 PM, Robert Connolly
<robert at linuxfromscratch.org> wrote:
> On Thursday February 25 2010 10:08:03 am Michael DeLuca wrote:
>> Using the updated temporary tools scripts I got the following error
>> when trying to compile glibc:
>>
>> gcc -fPIC   -shared -static-libgcc -Wl,-O1  -Wl,-z,defs
>> -Wl,-dynamic-linker=/hlfs-tools/lib/ld-linux.so.2
>> -B/srv/lfs/hlfs/build/glibc-2.11.1/obj/csu/
>> -Wl,--version-script=/srv/lfs/hlfs/build/glibc-2.11.1/obj/libc.map
>> -Wl,-soname=libc.so.6 -Wl,--warn-shared-textrel,--fatal-warnings
>> -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=gnu -Wl,-O1 -nostdlib
>> -nostartfiles -e __libc_main -Wl,-z,now
>> -L/srv/lfs/hlfs/build/glibc-2.11.1/obj
>> -L/srv/lfs/hlfs/build/glibc-2.11.1/obj/math
>> -L/srv/lfs/hlfs/build/glibc-2.11.1/obj/elf
>> -L/srv/lfs/hlfs/build/glibc-2.11.1/obj/dlfcn
>> -L/srv/lfs/hlfs/build/glibc-2.11.1/obj/nss
>> -L/srv/lfs/hlfs/build/glibc-2.11.1/obj/nis
>> -L/srv/lfs/hlfs/build/glibc-2.11.1/obj/rt
>> -L/srv/lfs/hlfs/build/glibc-2.11.1/obj/resolv
>> -L/srv/lfs/hlfs/build/glibc-2.11.1/obj/crypt
>> -L/srv/lfs/hlfs/build/glibc-2.11.1/obj/nptl
>> -Wl,-rpath-link=/srv/lfs/hlfs/build/glibc-2.11.1/obj:/srv/lfs/hlfs/build/gl
>>ibc-2.11.1/obj/math:/srv/lfs/hlfs/build/glibc-2.11.1/obj/elf:/srv/lfs/hlfs/b
>>uild/glibc-2.11.1/obj/dlfcn:/srv/lfs/hlfs/build/glibc-2.11.1/obj/nss:/srv/lf
>>s/hlfs/build/glibc-2.11.1/obj/nis:/srv/lfs/hlfs/build/glibc-2.11.1/obj/rt:/s
>>rv/lfs/hlfs/build/glibc-2.11.1/obj/resolv:/srv/lfs/hlfs/build/glibc-2.11.1/o
>>bj/crypt:/srv/lfs/hlfs/build/glibc-2.11.1/obj/nptl -o
>> /srv/lfs/hlfs/build/glibc-2.11.1/obj/libc.so -T
>> /srv/lfs/hlfs/build/glibc-2.11.1/obj/shlib.lds
>> /srv/lfs/hlfs/build/glibc-2.11.1/obj/csu/abi-note.o
>> /srv/lfs/hlfs/build/glibc-2.11.1/obj/elf/soinit.os
>> /srv/lfs/hlfs/build/glibc-2.11.1/obj/libc_pic.os
>> /srv/lfs/hlfs/build/glibc-2.11.1/obj/elf/sofini.os
>> /srv/lfs/hlfs/build/glibc-2.11.1/obj/elf/interp.os
>> /srv/lfs/hlfs/build/glibc-2.11.1/obj/elf/ld.so -lgcc
>> /srv/lfs/hlfs/build/glibc-2.11.1/obj/libc_pic.os: In function `__fork':
>> (.text+0x8ef55): undefined reference to `__sync_bool_compare_and_swap_4'
>> /srv/lfs/hlfs/build/glibc-2.11.1/obj/libc_pic.os: In function
>> `nscd_getpw_r': nscd_getpw_r.c:(.text+0x10c4ca): undefined reference to
>> `__sync_fetch_and_add_4' nscd_getpw_r.c:(.text+0x10c75a): undefined
>> reference to `__sync_fetch_and_add_4'
>> /srv/lfs/hlfs/build/glibc-2.11.1/obj/libc_pic.os: In function
>> `nscd_getgr_r': nscd_getgr_r.c:(.text+0x10ca2d): undefined reference to
>> `__sync_fetch_and_add_4' nscd_getgr_r.c:(.text+0x10ccf7): undefined
>> reference to `__sync_fetch_and_add_4'
>> /srv/lfs/hlfs/build/glibc-2.11.1/obj/libc_pic.os: In function
>> `nscd_gethst_r': nscd_gethst_r.c:(.text+0x10d07c): undefined reference to
>> `__sync_fetch_and_add_4'
>> /srv/lfs/hlfs/build/glibc-2.11.1/obj/libc_pic.os:nscd_gethst_r.c:(.text+0x1
>>0d0ca): more undefined references to `__sync_fetch_and_add_4' follow
>> /srv/lfs/hlfs/build/glibc-2.11.1/obj/libc_pic.os: In function
>> `__nscd_get_map_ref':
>> (.text+0x10f48e): undefined reference to `__sync_val_compare_and_swap_4'
>> /srv/lfs/hlfs/build/glibc-2.11.1/obj/libc_pic.os: In function
>> `__nscd_get_map_ref':
>> (.text+0x10f585): undefined reference to `__sync_val_compare_and_swap_4'
>> /srv/lfs/hlfs/build/glibc-2.11.1/obj/libc_pic.os: In function
>> `__nscd_get_map_ref':
>> (.text+0x10f5a7): undefined reference to `__sync_val_compare_and_swap_4'
>> /srv/lfs/hlfs/build/glibc-2.11.1/obj/libc_pic.os: In function
>> `__nscd_get_map_ref':
>> (.text+0x10f5c9): undefined reference to `__sync_val_compare_and_swap_4'
>> /srv/lfs/hlfs/build/glibc-2.11.1/obj/libc_pic.os: In function
>> `__nscd_get_map_ref':
>> (.text+0x10f5eb): undefined reference to `__sync_val_compare_and_swap_4'
>> /srv/lfs/hlfs/build/glibc-2.11.1/obj/libc_pic.os:(.text+0x10f610):
>> more undefined references to `__sync_val_compare_and_swap_4' follow
>> /srv/lfs/hlfs/build/glibc-2.11.1/obj/libc_pic.os: In function
>> `__GI___libc_freeres':
>> (__libc_freeres_fn+0xd1b): undefined reference to
>> `__sync_bool_compare_and_swap_4'
>> collect2: ld returned 1 exit status
>> make[1]: *** [/srv/lfs/hlfs/build/glibc-2.11.1/obj/libc.so] Error 1
>> make[1]: Leaving directory `/srv/lfs/hlfs/build/glibc-2.11.1'
>
> I forgot. Try this after each time configparams is edited:
>
> case `uname -m` in
>  i?86) echo "CFLAGS += -march=i486 -mtune=native" >> configparms ;;
> esac
>
> robert
>
> --
> http://linuxfromscratch.org/mailman/listinfo/hlfs-dev
> FAQ: http://www.linuxfromscratch.org/faq/
> Unsubscribe: See the above information page
>
>



More information about the hlfs-dev mailing list