unable to build boost graph 1.43 with gcc 3.4.5

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... any workaround coming to mind ? Thank you, Florent Arnold & Richter Cine Technik GmbH & Co. Betriebs KG Sitz: Munchen - Registergericht: Amtsgericht Munchen - Handelsregisternummer: HRA 57918 Personlich haftender Gesellschafter: Arnold & Richter Cine Technik GmbH Sitz: Munchen - Registergericht: Amtsgericht Munchen - Handelsregisternummer: HRB 54477 Geschaftsfuhrer: Franz Kraus; Dr. Martin Prillmann A new star is born - ALEXA the most versatile digital camera system. Get all the latest information from arridigital.com and YouTube.

Have you set your include path correctly? -I"." -I"libs/graph/src" seems unlikely???? Dr Adam Spargo High Performance Assembly Group email: aws@sanger.ac.uk Wellcome Trust Sanger Institute Tel: +44 (0)1223 834244 x7728 Hinxton, Cambridge CB10 1SA Fax: +44 (0)1223 494919 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...
any workaround coming to mind ?
Thank you, Florent
Arnold & Richter Cine Technik GmbH & Co. Betriebs KG Sitz: Munchen - Registergericht: Amtsgericht Munchen - Handelsregisternummer: HRA 57918 Personlich haftender Gesellschafter: Arnold & Richter Cine Technik GmbH Sitz: Munchen - Registergericht: Amtsgericht Munchen - Handelsregisternummer: HRB 54477 Geschaftsfuhrer: Franz Kraus; Dr. Martin Prillmann
A new star is born - ALEXA the most versatile digital camera system. Get all the latest information from arridigital.com and YouTube. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- The Wellcome Trust Sanger Institute is operated by Genome Research Limited, a charity registered in England with number 1021457 and a company registered in England with number 2742969, whose registered office is 215 Euston Road, London, NW1 2BE.

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
participants (3)
-
Adam Spargo
-
Jeremiah Willcock
-
Vial, Florent