This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[ct-ng] build error: undefined reference to `__sync_bool_compare_and_swap_4'


Hi folks,


just tried to build an x86 toolchain w/ the newest components 
(nptl), but got:


[ALL  ]    /home/crosstool/ct-ng/bin/targets/i686-metux-linux-gnu/build/build-libc/libc_pic.os: In function `__fork':
[ALL  ]    (.text+0x7312f): undefined reference to `__sync_bool_compare_and_swap_4'
[ALL  ]    /home/crosstool/ct-ng/bin/targets/i686-metux-linux-gnu/build/build-libc/libc_pic.os: In function `nscd_getpw_r':
[ALL  ]    nscd_getpw_r.c:(.text+0xcde6c): undefined reference to `__sync_fetch_and_add_4'
[ALL  ]    nscd_getpw_r.c:(.text+0xcdea5): undefined reference to `__sync_fetch_and_add_4'
[ALL  ]    /home/crosstool/ct-ng/bin/targets/i686-metux-linux-gnu/build/build-libc/libc_pic.os: In function `nscd_getgr_r':
[ALL  ]    nscd_getgr_r.c:(.text+0xce49c): undefined reference to `__sync_fetch_and_add_4'
[ALL  ]    nscd_getgr_r.c:(.text+0xce4d5): undefined reference to `__sync_fetch_and_add_4'
[ALL  ]    /home/crosstool/ct-ng/bin/targets/i686-metux-linux-gnu/build/build-libc/libc_pic.os: In function `nscd_gethst_r':
[ALL  ]    nscd_gethst_r.c:(.text+0xcec18): undefined reference to `__sync_fetch_and_add_4'
[ALL  ]    /home/crosstool/ct-ng/bin/targets/i686-metux-linux-gnu/build/build-libc/libc_pic.os:nscd_gethst_r.c:(.text+0xcec58): more undefined references to `__sync_fetch_and_add_4' follow
[ALL  ]    /home/crosstool/ct-ng/bin/targets/i686-metux-linux-gnu/build/build-libc/libc_pic.os: In function `__nscd_get_map_ref':
[ALL  ]    (.text+0xd05e4): undefined reference to `__sync_val_compare_and_swap_4'
[ALL  ]    /home/crosstool/ct-ng/bin/targets/i686-metux-linux-gnu/build/build-libc/libc_pic.os: In function `__GI___libc_freeres':
[ALL  ]    (__libc_freeres_fn+0x7e8): undefined reference to `__sync_bool_compare_and_swap_4'
[ALL  ]    collect2: ld returned 1 exit status
[ALL  ]    make[2]: *** [/home/crosstool/ct-ng/bin/targets/i686-metux-linux-gnu/build/build-libc/libc.so] Error 1
[ALL  ]    make[2]: Leaving directory `/home/crosstool/ct-ng/bin/targets/src/glibc-2.6.1'
[ALL  ]    make[1]: *** [all] Error 2
[ALL  ]    make[1]: Leaving directory `/home/crosstool/ct-ng/bin/targets/i686-metux-linux-gnu/build/build-libc'


Does anyone have an idea how to fix this ?


thx
-- 
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT service - http://www.metux.de/
---------------------------------------------------------------------
 Please visit the OpenSource QM Taskforce:
 	http://wiki.metux.de/public/OpenSource_QM_Taskforce
 Patches / Fixes for a lot dozens of packages in dozens of versions:
	http://patches.metux.de/
---------------------------------------------------------------------

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]