Bug #2081

Build Problem on Mac with recent boost versions.

Added by S. Wrede over 9 years ago. Updated over 9 years ago.

Status:ResolvedStart date:11/09/2014
Priority:NormalDue date:
Assignee:J. Wienke% Done:

100%

Category:Operating System Abstraction
Target version:Robotics Service Bus - rsb-0.11

Description

Working in a fresh brew installation on 10.10, I experience the following compilation error:

cd /tmp/rsc-5UPciX/src && /usr/local/Library/ENV/4.3/clang++   -DBOOST_ALL_DYN_LINK -DDEBUGTOOLS_LINUX -DDEMANGLE_GCC -DHAVE_TYPES_H -DHAVE_UNISTD_H -DHAVE_WAIT_H -DSUBPROCESS_UNIX -Drsc0_11_EXPORTS -fPIC -I/tmp/rsc-5UPciX/src/rsc -I/tmp/rsc-5UPciX/src -isystem /usr/local/include    -pipe -Wall -Wextra -fdiagnostics-show-option -o CMakeFiles/rsc0.11.dir/rsc/os/MacProcessInfo.cpp.o -c /tmp/rsc-5UPciX/src/rsc/os/MacProcessInfo.cpp
/usr/local/Cellar/cmake/3.0.2/bin/cmake -E cmake_progress_report /tmp/rsc-5UPciX/CMakeFiles 53
[100%] Building CXX object src/CMakeFiles/rsc0.11.dir/rsc/os/MacHostInfo.cpp.o
cd /tmp/rsc-5UPciX/src && /usr/local/Library/ENV/4.3/clang++   -DBOOST_ALL_DYN_LINK -DDEBUGTOOLS_LINUX -DDEMANGLE_GCC -DHAVE_TYPES_H -DHAVE_UNISTD_H -DHAVE_WAIT_H -DSUBPROCESS_UNIX -Drsc0_11_EXPORTS -fPIC -I/tmp/rsc-5UPciX/src/rsc -I/tmp/rsc-5UPciX/src -isystem /usr/local/include    -pipe -Wall -Wextra -fdiagnostics-show-option -o CMakeFiles/rsc0.11.dir/rsc/os/MacHostInfo.cpp.o -c /tmp/rsc-5UPciX/src/rsc/os/MacHostInfo.cpp
In file included from /tmp/rsc-5UPciX/src/rsc/misc/MacSignalWaiter.cpp:35:
In file included from /usr/local/include/boost/format.hpp:49:
/usr/local/include/boost/format/feed_args.hpp:133:13: error: cannot initialize a member subobject of type 'const void *' with an rvalue of type 'volatile int *'
          : arg(&t),
            ^   ~~
/usr/local/include/boost/format/feed_args.hpp:307:74: note: in instantiation of function template specialization 'boost::io::detail::put_holder<char, std::__1::char_traits<char> >::put_holder<volatile int>' requested here
        return feed_impl<Ch, Tr, Alloc, const put_holder<Ch, Tr>&>(self, put_holder<Ch, Tr>(x));
                                                                         ^
/usr/local/include/boost/format/format_class.hpp:68:34: note: in instantiation of function template specialization 'boost::io::detail::feed<char, std::__1::char_traits<char>, std::__1::allocator<char>, volatile int &>' requested here
            { return io::detail::feed<CharT, Tr, Alloc, T&>(*this,x); }
                                 ^
/tmp/rsc-5UPciX/src/rsc/misc/MacSignalWaiter.cpp:123:33: note: in instantiation of function template specialization 'boost::basic_format<char, std::__1::char_traits<char>, std::__1::allocator<char> >::operator%<volatile int>' requested here
                                % receivedSignal));
                                ^
1 error generated.
make[2]: *** [src/CMakeFiles/rsc0.11.dir/rsc/misc/MacSignalWaiter.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [src/CMakeFiles/rsc0.11.dir/all] Error 2
make: *** [all] Error 2
==> Formula
Tap: corlab/homebrew-formulas
Path: /usr/local/Library/Taps/corlab/homebrew-formulas/rsc.rb
==> Configuration
HOMEBREW_VERSION: 0.9.5
HEAD: 46d763981cb685dafe0dd7f0403143a3cda01f35
CPU: quad-core 64-bit haswell
OS X: 10.10-x86_64
Xcode: 6.1
CLT: 6.1.0.0.1.1413057044
X11: 2.7.7 => /opt/X11
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j4
CMAKE_PREFIX_PATH: /usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.10
ACLOCAL_PATH: /usr/local/share/aclocal
PATH: /usr/local/Library/ENV/4.3:/usr/local/opt/cmake/bin:/usr/bin:/bin:/usr/sbin:/sbin

Boost version is 1.56.

History

#1 Updated by J. Wienke over 9 years ago

  • Subject changed from Build Problem on Mac OS 10.10 to Build Problem on Mac with recent boost versions.
  • Category set to Operating System Abstraction
  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Fixed in a185ec31.

Also available in: Atom PDF