Jordan Beaver wrote:
> gcc -m32 -nostdlib -nostartfiles -shared      \
>                       -Wl,-zcombreloc -Wl,-z,relro -Wl,-z,defs -Wl,--verbose 
> 2>&1|
> \
>                       LC_ALL=C \
>                       sed -e 
> '/^===========/,^==========/!d;/^=============/d'   \
>                               -e 's/\. = 0 + SIZEOF_HEADERS;/& _begin= . - 
> SIZEOF_HEADERS;/' \
>
>                       
>
>                       > /sources/glibc-build/elf/ld.so.lds
> gcc -m32 -nostdlib -nostartfiles -shared -o /sources/glibc-build/elf/ld.so    
> \
> -W1,-z,combreloc -W1,-z,relro -W1,-z,defs    \
>                       /sources/glibc-build/elf/librtld.so -W1,
> --version-script=/sources/glibc=build/ld.map
>                       -Wl,-soname=ld-linux.so.2 -T 
> /sources/glibc-build/elf/ld.so.lds
> /sources/glibc-build/elf/librtld.os: In function 'add_dependency':
> /sources/glibc-2.6/elf/dl-lookup.c:107: undefined reference to
> '__sync_fetch_and_add_4'
>
> ********
> so on so on
> ********
>
> /sources/glibc-2.6/elf/librtld.os: In function '_dl_close_worker':
> /sources/glibc-2.6/elf/dl-close.c:409: undefined reference to
> '__sync_fetch_and_add_4'
> /sources/glibc-2.6/elf/dl-close.c:409: undefined reference to
> '__sync_fetch_and_add_4'
> collect2: ld returned 1 exit status
> make[2]: *** [/sources/glibc-build/elf/ld.so] Error 1
> make[2]: Leaving directory '/sources/glibc-2.7/elf'
> make[1]: *** [elf/subdir_lib] Error 2
> make[1]: Leaving directory '/sources/glibc-2.6'
> make: *** [all] Error 2
>
>   
This should be fixed in r3553. (July 16th 2007)

For future reference, it's a bad idea to trim right in the middle of the 
error. :)

_______________________________________________
Clfs-dev mailing list
[email protected]
http://lists.cross-lfs.org/cgi-bin/mailman/listinfo/clfs-dev

Reply via email to