<div dir="ltr"><div>this time i downloaded the trunk </div>I found <div><div>/home/pc/pruebaBB/openwrt/build_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04-final/mips-openwrt-linux-uclibc/libgcc/libgcc-std.ver:</div><div> 1830 __sync_fetch_and_xor_1</div><div> 1831 __sync_fetch_and_nand_1</div><div> 1832: __sync_add_and_fetch_1</div><div> 1833 __sync_sub_and_fetch_1</div><div> 1834 __sync_or_and_fetch_1</div><div> ....</div><div> 1894 __sync_fetch_and_xor_16</div><div> 1895 __sync_fetch_and_nand_16</div><div> 1896: __sync_add_and_fetch_16</div><div> 1897 __sync_sub_and_fetch_16</div><div> 1898 __sync_or_and_fetch_16</div></div><div><br></div><div>i also added libatomic to to the package depends with no success.</div><div>i couldn't find flags to enable atomic operations.</div><div><br></div><div>has anybody had this issue?</div><div>i don't know what i am missing</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-01-21 6:30 GMT-02:00 Alexandru Ardelean <span dir="ltr"><<a href="mailto:ardeleanalex@gmail.com" target="_blank">ardeleanalex@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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" target="_blank">walt@tilera.com</a>><br><br> Backport from mainline<br> 2014-01-25 Walter Lee <<a href="mailto:walt@tilera.com" target="_blank">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"><div><div class="h5">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></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><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></div></div>_______________________________________________<br>
openwrt-devel mailing list<br>
<a href="mailto:openwrt-devel@lists.openwrt.org" target="_blank">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>
</blockquote></div><br></div>