Boost logo

Boost Users :

Subject: [Boost-users] [thread] Can't compile once.cpp for ppc in 1.54
From: James Walker (jamesw_at_[hidden])
Date: 2013-07-23 19:24:58


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.

-- 
   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