ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

Error building ROS on OSX with latest developer tools 5.1

asked 2014-03-15 10:11:28 -0500

ahendrix gravatar image

updated 2014-03-15 10:12:03 -0500

I've encountered this error building ROS on OSX. As far as I can figure, this started happening after I upgraded my developer tools to the latest version (5.1):

/usr/local/include/boost/atomic/detail/gcc-atomic.hpp:961:64: error: no matching
      constructor for initialization of 'storage_type' (aka
      'boost::atomics::detail::storage128_type')
    explicit base_atomic(value_type const& v) BOOST_NOEXCEPT : v_(0)
                                                               ^  ~
/usr/local/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate
      constructor (the implicit copy constructor) not viable: no known
      conversion from 'int' to 'const boost::atomics::detail::storage128_type'
      for 1st argument
struct BOOST_ALIGNMENT(16) storage128_type
                           ^
/usr/local/include/boost/atomic/detail/gcc-atomic.hpp:932:28: note: candidate
      constructor (the implicit default constructor) not viable: requires 0
      arguments, but 1 was provided

It looks like this is problem with some of the dependencies for TF or TF2, and is causing a large number of things to fail to build properly.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-03-15 10:14:04 -0500

ahendrix gravatar image

updated 2014-03-15 10:45:44 -0500

It looks like this is a bug/change in the latest version of the developer tools.

Homebrew has released the appropriate boost patches from upstream in this issue, but you have to uninstall and reinstall boost to get them. I had to do:

brew update
brew reinstall boost
edit flag offensive delete link more

Comments

This is correct. Same for me, or rather `brew reinstall boost` :P

demmeln gravatar image demmeln  ( 2014-03-15 10:32:54 -0500 )edit

Boost should now be updated in `brew upgrade`, so no manual reinstall is needed for those who have not done it already. https://github.com/Homebrew/homebrew/pull/27660

demmeln gravatar image demmeln  ( 2014-03-19 08:13:22 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2014-03-15 10:11:28 -0500

Seen: 695 times

Last updated: Mar 15 '14