Boost logo

Boost Users :

Subject: Re: [Boost-users] unable to build boost graph 1.43 with gcc 3.4.5
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2010-05-20 12:35:26


On Thu, 20 May 2010, Vial, Florent wrote:

> Hi,
>
> trying to build boost 1.43 with gcc 3.4.5, i obtain following error:
>
> "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall
> -pthread -m64 -fPIC -DBOOST_ALL_NO_LIB=1 -DNDEBUG -I"."
> -I"libs/graph/src" -c -o
> "/tmp/boost_143.build.gcc34/boost/bin.v2/libs/graph/build/gcc-3.4.5/rele
> ase/address-model-64/link-static/threading-multi/graphml.o"
> "libs/graph/src/graphml.cpp"
> ./boost/property_tree/detail/xml_parser_read_rapidxml.hpp: In function
> `void
> boost::property_tree::xml_parser::read_xml_internal(std::basic_istream<t
> ypename Ptree::key_type::value_type, std::char_traits<typename
> Ptree::key_type::value_type> >&, Ptree&, int, const std::string&) [with
> Ptree = boost::property_tree::basic_ptree<std::string, std::string,
> std::less<std::string> >]':
> ./boost/property_tree/xml_parser.hpp:52: instantiated from `void
> boost::property_tree::xml_parser::read_xml(std::basic_istream<typename
> Ptree::key_type::value_type, std::char_traits<typename
> Ptree::key_type::value_type> >&, Ptree&, int) [with Ptree =
> boost::property_tree::ptree]'
> libs/graph/src/graphml.cpp:49: instantiated from here
> ./boost/property_tree/detail/xml_parser_read_rapidxml.hpp:108: error:
> non-constant `(((int)f_c) | 3072)' cannot be used as template argument
> ./boost/property_tree/detail/xml_parser_read_rapidxml.hpp:108: error: no
> matching function for call to
> `rapidxml::xml_document<char>::parse(char*)'
> ...skipped
> <p/tmp/boost_143.build.gcc34/boost/bin.v2/libs/graph/build/gcc-3.4.5/rel
> ease/address-model-64/link-static/threading-multi>libboost_graph-mt.a(cl
> ean) for lack of
> <p/tmp/boost_143.build.gcc34/boost/bin.v2/libs/graph/build/gcc-3.4.5/rel
> ease/address-model-64/link-static/threading-multi>graphml.o...
> ...skipped
> <p/tmp/boost_143.build.gcc34/boost/bin.v2/libs/graph/build/gcc-3.4.5/rel
> ease/address-model-64/link-static/threading-multi>libboost_graph-mt.a
> for lack of
> <p/tmp/boost_143.build.gcc34/boost/bin.v2/libs/graph/build/gcc-3.4.5/rel
> ease/address-model-64/link-static/threading-multi>graphml.o...
> ...skipped <pstage/lib>libboost_graph-mt.a for lack of
> <p/tmp/boost_143.build.gcc34/boost/bin.v2/libs/graph/build/gcc-3.4.5/rel
> ease/address-model-64/link-static/threading-multi>libboost_graph-mt.a...
> ...failed updating 1 target...

This looks like a compiler bug; I remember things like this happening in
property_tree before. It does appear to pass its test cases on GCC 3.4.6,
though. You should repost your message with [property_tree] in the
subject line and see if any of its authors respond; it's not a BGL issue
other than that BGL uses property_tree.

-- Jeremiah Willcock


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