<div dir="ltr"><div><div><div><div><div><div>I don't think libatomic exports that symbol.<br></div>It looks like that symbol should be in the standard gcc.<br><br></div><div>You can try to add +libatomic to the DEPENDS section of czmq to see if that helps.<br></div><div>But note that the libatomic package was added in this commit:  7edd1ccebaf00db527fcbb1c6e75827722cfdc21<br></div><div><br></div>I'd say to pull a clone of the latest OpenWRT trunk and compare.<br></div><div>I don't know what the toolchain version of Barrier Breaker is.<br></div><br></div>Here's on the latest trunk (I don't have a MIPS build right now):<br>build_dir/toolchain-x86_64_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04-final/x86_64-openwrt-linux-uclibc/libgcc/libgcc-std.ver:  __sync_add_and_fetch_1<br>build_dir/toolchain-x86_64_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04-final/x86_64-openwrt-linux-uclibc/libgcc/libgcc-std.ver:  __sync_add_and_fetch_2<br>build_dir/toolchain-x86_64_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04-final/x86_64-openwrt-linux-uclibc/libgcc/libgcc-std.ver:  __sync_add_and_fetch_4<br>build_dir/toolchain-x86_64_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04-final/x86_64-openwrt-linux-uclibc/libgcc/libgcc-std.ver:  __sync_add_and_fetch_8<br>build_dir/toolchain-x86_64_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04-final/x86_64-openwrt-linux-uclibc/libgcc/libgcc-std.ver:  __sync_add_and_fetch_16<br><br></div>And the Changelog says:<br>build_dir/toolchain-x86_64_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04/libgcc/ChangeLog:<br><br>2014-01-25  Walter Lee  <<a href="mailto:walt@tilera.com">walt@tilera.com</a>><br><br>    Backport from mainline<br>    2014-01-25  Walter Lee  <<a href="mailto:walt@tilera.com">walt@tilera.com</a>><br><br>    * config/tilepro/atomic.c (pre_atomic_barrier): Mark inline.<br>    (post_atomic_barrier): Ditto.<br>    (__fetch_and_do): New macro.<br>    (__atomic_fetch_and_do): Use __fetch_and_do.<br>    (__sync_fetch_and_do): New macro.<br>    (__sync_fetch_and_add_4): New function.<br>    (__sync_fetch_and_sub_4): New function.<br>    (__sync_fetch_and_or_4): New function.<br>    (__sync_fetch_and_and_4): New function.<br>    (__sync_fetch_and_xor_4): New function.<br>    (__sync_fetch_and_nand_4): New function.<br><br><br></div>If you do find these symbols in your gcc toolchain, I'd say to look for flags to enable them.<br>They might be disabled by default.<br><div><div><div><div><br><br><br></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 21, 2015 at 7:10 AM, Santiago Regusci <span dir="ltr"><<a href="mailto:santicomp2@gmail.com" target="_blank">santicomp2@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div dir="ltr">Hi<div><br></div><div>I am having trouble building a package czmq with barrier breaker for Mips24kc.</div><div>i get src/.libs/libczmq.so: undefined reference to `__sync_add_and_fetch_8'</div><div>do i have to add libatomic in the makefile toolchain. or has did anyone have a similar problem.</div><div><br></div><div>how i can i fix this?</div><div><br></div><div>thank you</div><div>Santi</div></div>
</div><br></div>
<br>_______________________________________________<br>
openwrt-devel mailing list<br>
<a href="mailto:openwrt-devel@lists.openwrt.org">openwrt-devel@lists.openwrt.org</a><br>
<a href="https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel" target="_blank">https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel</a><br>
<br></blockquote></div><br></div>