Boost logo

Boost :

Subject: [boost] [any][quickbook] Recent compile failure gcc vs. clang..
From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2013-05-11 14:25:29


Not sure when this started failing other than it was some time this past
week..

=====
Froggy:quickbook grafik$ pwd
/Users/grafik/devroots/Boost/trunk/tools/quickbook
Froggy:quickbook grafik$ b2 toolset=clang
...patience...
...patience...
...found 1735 targets...
Froggy:quickbook grafik$ b2 toolset=darwin
...patience...
...patience...
...found 1735 targets...
...updating 3 targets...
darwin.compile.c++
../../bin.v2/tools/quickbook/src/darwin-4.2.1/release/link-static/quickbook.o
../../boost/any.hpp: In function ‘ValueType boost::any_cast(boost::any&)
[with ValueType = const int&]’:
../../boost/any.hpp:308: instantiated from ‘ValueType
boost::any_cast(const boost::any&) [with ValueType = const int&]’
../../boost/program_options/variables_map.hpp:69: instantiated from
‘const T& boost::program_options::variable_value::as() const [with T = int]’
src/quickbook.cpp:387: instantiated from here
../../boost/any.hpp:292: error: forming reference to reference type ‘const
int&’
../../boost/any.hpp:294: error: forming reference to reference type ‘const
int&’
../../boost/any.hpp: In function ‘ValueType boost::any_cast(boost::any&)
[with ValueType = const std::vector<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
std::allocator<std::basic_string<char, std::char_traits<char>,
std::allocator<char> > > >&]’:
../../boost/any.hpp:308: instantiated from ‘ValueType
boost::any_cast(const boost::any&) [with ValueType = const
std::vector<std::basic_string<char, std::char_traits<char>,
std::allocator<char> >, std::allocator<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > > >&]’
../../boost/program_options/variables_map.hpp:69: instantiated from
‘const T& boost::program_options::variable_value::as() const [with T =
std::vector<std::basic_string<char, std::char_traits<char>,
std::allocator<char> >, std::allocator<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > > >]’
src/quickbook.cpp:421: instantiated from here
../../boost/any.hpp:292: error: forming reference to reference type ‘const
std::vector<std::basic_string<char, std::char_traits<char>,
std::allocator<char> >, std::allocator<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > > >&’
../../boost/any.hpp:294: error: forming reference to reference type ‘const
std::vector<std::basic_string<char, std::char_traits<char>,
std::allocator<char> >, std::allocator<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > > >&’
../../boost/any.hpp: In function ‘ValueType boost::any_cast(boost::any&)
[with ValueType = const std::basic_string<char, std::char_traits<char>,
std::allocator<char> >&]’:
../../boost/any.hpp:308: instantiated from ‘ValueType
boost::any_cast(const boost::any&) [with ValueType = const
std::basic_string<char, std::char_traits<char>, std::allocator<char> >&]’
../../boost/program_options/variables_map.hpp:69: instantiated from
‘const T& boost::program_options::variable_value::as() const [with T =
std::basic_string<char, std::char_traits<char>, std::allocator<char> >]’
src/quickbook.cpp:438: instantiated from here
../../boost/any.hpp:292: error: forming reference to reference type ‘const
std::basic_string<char, std::char_traits<char>, std::allocator<char> >&’
../../boost/any.hpp:294: error: forming reference to reference type ‘const
std::basic_string<char, std::char_traits<char>, std::allocator<char> >&’
../../boost/system/error_code.hpp: At global scope:
../../boost/system/error_code.hpp:222: warning:
‘boost::system::posix_category’ defined but not used
../../boost/system/error_code.hpp:223: warning: ‘boost::system::errno_ecat’
defined but not used
../../boost/system/error_code.hpp:224: warning:
‘boost::system::native_ecat’ defined but not used

    "g++" -ftemplate-depth-300 -O3 -finline-functions -Wno-inline -Wall
-gdwarf-2 -fexceptions -g0 -DBOOST_ALL_NO_LIB=1
-DBOOST_DETAIL_CONTAINER_FWD -DBOOST_FILESYSTEM_NO_DEPRECATED
-DBOOST_FILESYSTEM_STATIC_LINK=1 -DBOOST_SYSTEM_STATIC_LINK=1 -DNDEBUG
 -I"../.." -c -o
"../../bin.v2/tools/quickbook/src/darwin-4.2.1/release/link-static/quickbook.o"
"src/quickbook.cpp"

...failed darwin.compile.c++
../../bin.v2/tools/quickbook/src/darwin-4.2.1/release/link-static/quickbook.o...
...skipped
<p../../bin.v2/tools/quickbook/src/darwin-4.2.1/release/link-static>quickbook
for lack of
<p../../bin.v2/tools/quickbook/src/darwin-4.2.1/release/link-static>quickbook.o...
...skipped <p../../dist/bin>quickbook for lack of
<p../../bin.v2/tools/quickbook/src/darwin-4.2.1/release/link-static>quickbook...
...failed updating 1 target...
...skipped 2 targets...
=====

Seems some of the std::any conformance changes broke for the GCC included
in the Xcode 4.6.2.

-- 
-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk