Boost logo

Boost Testing :

Subject: Re: [Boost-testing] Sandia-gcc-3.4.6 error on Boost.Graph
From: sivananthan (siva_at_[hidden])
Date: 2010-01-14 07:50:00


Hi Jeremiah,

The following code fixes this problem.

Add a constant int:
            const int f_twsc = parse_normalize_whitespace
                            | parse_trim_whitespace | parse_comment_nodes;
Change the line
                    doc.BOOST_NESTED_TEMPLATE parse<f_tws |
f_c>(&v.front());
To this one:
                   doc.BOOST_NESTED_TEMPLATE parse<f_twsc>(&v.front());

--sivananthan

Jeremiah Willcock wrote:
>
> On Tue, 15 Dec 2009, Belcourt, Kenneth wrote:
>
>> Hi Jeremiah,
>>
>> On Dec 15, 2009, at 12:22 PM, Jeremiah Willcock wrote:
>>
>>> When building the boost_graph library, the Sandia-gcc-3.4.6 tester gets
>>> an
>>> error that has no message (shown at http://tinyurl.com/yefx5mp). Could
>>> someone please look at that machine and see what the problem is? Thank
>>> you.
>>
>> Here's the error message:
>> "/home/sntools/extras/compilers/gcc-3.4.6/bin/g++" -ftemplate-depth-128
>> -O0
>> -fno-inline -Wall -g -fPIC -m32 -DBOOST_ALL_NO_LIB=1
>> -DBOOST_GRAPH_DYN_LINK=1
>> -I".." -I"../libs/graph/src" -c -o
>> "/tmp/kbelco/boost/results/boost/bin.v2/libs/graph/build/gcc-3.4.6/debug/address-model-32/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<typename
>> 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:48: 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*)'
>> Is this what you're looking for?
>
> Yes, thank you. I guess the issue isn't a BGL bug, though.
>
> -- Jeremiah Willcock
> _______________________________________________
> Boost-Testing mailing list
> Boost-Testing_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-testing
>
>

-- 
View this message in context: http://old.nabble.com/Sandia-gcc-3.4.6-error-on-Boost.Graph-tp26800239p27160801.html
Sent from the Boost - Testing mailing list archive at Nabble.com.

Boost-testing list run by mbergal at meta-comm.com