Le 20/08/13 03:11, James Walker a écrit :
On 8/3/2013 6:04 AM, Vicente J. Botet Escriba wrote:
Le 24/07/13 01:24, James Walker a écrit :
Attempting to build the 1.54.0 version of the thread library for ppc on Mac OS X 10.6.8, using Apple's GCC 4.0, I get this error:
boost_1_54_0/boost/atomic/detail/gcc-ppc.hpp: In member function 'bool boost::atomics::detail::base_atomic
::compare_exchange_strong(T&, T, boost::memory_order, boost::memory_order) volatile [with T = unsigned int, bool Sign = false]': /Volumes/Home/Mercurial/boost_1_54_0/boost/atomic/detail/gcc-ppc.hpp:1190: error: impossible constraint in 'asm'
If I use GCC 4.2, I don't get the error. But I'm hesitant to use that compiler, because it usually produces code that won't run on G3's. Hi,
please, could you try to build defining BOOST_THREAD_DONT_USE_ATOMIC.
Thanks, that does make the error go away. Am I losing anything by using this flag? I couldn't find any documentation on it.
Hrr, I missed the documentation of this macro. I will add it for next release. The implementation that uses Boost.Atomic fixes this ticket https://svn.boost.org/trac/boost/ticket/5752. Best, Vicente