Boost logo

Boost Users :

Subject: Re: [Boost-users] [thread] Can't compile once.cpp for ppc in 1.54
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2013-08-03 09:04:49


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.

Best,
Vicente


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