|
Boost Users : |
Subject: Re: [Boost-users] [thread] Can't compile once.cpp for ppc in 1.54
From: James Walker (jamesw_at_[hidden])
Date: 2013-08-19 21:11:55
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<T, int, 4u,
>> Sign>::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.
-- James W. Walker, Innoventive Software LLC <http://www.frameforge3d.com/>
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