Boost logo

Boost Users :

Subject: Re: [Boost-users] [asio] __sync_lock_test_and_set problem, cross-compiling for ARM
From: Andreas Wehrmann (a.wehrmann_at_[hidden])
Date: 2010-11-09 07:51:33


I'm interested in this, too.
I disabled fenced blocking when I upgraded to 1.44 (platform is
m68k-coldfire).
Thus far I didn't notice any problems.
I'd like to know what exactly this fenced blocking does
and whether it is safe to disable or not.

Regards

On 11/09/2010 01:37 PM, Igor R wrote:
> Hello,
>
> I'm trying to cross-compile my project for Android (Win, cygwin,
> crystax-ndk). The linker emits the following error:
> ../asio/detail/gcc_fenced_block.hpp:41: undefined reference to
> `__sync_lock_test_and_set_4'
>
> I understand that in 1.44 I can disable this "fenced-block" by
> defining BOOST_ASIO_DISABLE_FENCED_BLOCK, but I'm not sure it's safe
> to do this.
> IUUC, __sync_lock_test_and_set gcc function is unavailable for some
> older arm-based platforms, but should be available for the newer ones,
> shouldn't it? So maybe I have to define some compiler flag to enable
> it?
> I'd appreciate any idea.
>
> Thanks.
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users

-- 
Dipl.-Ing. (FH) Andreas Wehrmann
Software Development
--------------------------------------------------------------
Center Communication Systems GmbH
A-1210 Wien, Ignaz-Köck-Straße 19
Sitz in Wien
FN 796 88p, Firmenbuchgericht Wien
www.centersystems.com
Tel.: +43 (0) 190 199 - 3616
Mobile: +43 (0) 664 884 75916
Fax: +43 (0) 190 199 - 2110
E-Mail: a.wehrmann_at_[hidden]

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net