Boost C++ Libraries: Ticket #7328: Boost fails to Build with gccxml / msvc9 https://svn.boost.org/trac10/ticket/7328 <p> Heya, </p> <p> I am trying to use gccxml on Boost for a python project i want to build. </p> <p> I ran a freshly-built-from-cvs gccxml: </p> <pre class="wiki">"C:\Projects\gccxml\bin\release\gccxml.exe" -D"_HAS_TR1=0" --gccxml-compiler msvc9 -I... -I... -D"BOOST_HAS_THREADS" -D"BOOST_HAS_WINTHREADS" -D"__GCCXML__" "C:\Projects\python-ogre\code_generators\ogre\python_ogre.h" -fxml="ogre_1.7.2_cache.xml </pre><p> (which points to) </p> <pre class="wiki">#include "boost/python.hpp" #include "boost/python/ssize_t.hpp" </pre><p> It fails: </p> <pre class="wiki">boost_1_51_0/boost/range/concepts.hpp:177: error: 'bool mpl_::operator==(mpl_::failed, mpl_::failed)' cannot appear in a constant-expression </pre><p> And i am honestly far from understanding what went wrong. It might be connected to gccxml not setting the correct version number, as i already had Problems like <a class="new ticket" href="https://svn.boost.org/trac10/ticket/4464" title="#4464: Bugs: gccxml error with msvc 9 and boost (new)">#4464</a> using the same setup. </p> <p> Can anyone please give me a hint? </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7328 Trac 1.4.3 lomex13@… Wed, 05 Sep 2012 18:08:15 GMT type changed https://svn.boost.org/trac10/ticket/7328#comment:1 https://svn.boost.org/trac10/ticket/7328#comment:1 <ul> <li><strong>type</strong> <span class="trac-field-old">Support Requests</span> → <span class="trac-field-new">Feature Requests</span> </li> </ul> <p> I did avoid this Problems by disabling the assertions. Since my gccxml is based on gcc 4.2.1, i suspect it should just be added to the compiler blacklist at the top of boost/range/concept.hpp, pretty similar to the gcc block {{ <em>after this: #ifdef <span class="underline">GNUC</span> </em></p> <blockquote> <p> <em> GNUC 4.2 has strange issues correctly detecting compliance with the Concepts </em> hence the least disruptive approach is to turn-off the concept checking for <em> this version of the compiler. #if <span class="underline">GNUC</span> == 4 &amp;&amp; <span class="underline">GNUC_MINOR</span> == 2 </em></p> <blockquote> <p> #define BOOST_RANGE_ENABLE_CONCEPT_ASSERT 0 </p> </blockquote> <p> #endif </p> </blockquote> <p> #endif </p> <p> <em> add this: #ifdef <span class="underline">GCCXML</span> </em></p> <blockquote> <p> <em> similar GNUC 4.2 issues for gccxml #if <span class="underline">GCCXML_GNUC</span> == 4 &amp;&amp; <span class="underline">GCCXML_GNUC_MINOR</span> == 2 </em></p> <blockquote> <p> #define BOOST_RANGE_ENABLE_CONCEPT_ASSERT 0 </p> </blockquote> <p> #endif </p> </blockquote> <p> #endif }} I do have an easy fix for similiar issues in iterator/iterator_concepts.hpp, but it can be done with similar blacklisting. I dont know, however, if this is the right place for workarounds, maybe there is a more "central" way to fix this. </p> Ticket anonymous Wed, 05 Sep 2012 18:10:21 GMT <link>https://svn.boost.org/trac10/ticket/7328#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7328#comment:2</guid> <description> <p> wrong prantheses. here: </p> <pre class="wiki">#ifdef __GNUC__ // GNUC 4.2 has strange issues correctly detecting compliance with the Concepts // hence the least disruptive approach is to turn-off the concept checking for // this version of the compiler. #if __GNUC__ == 4 &amp;&amp; __GNUC_MINOR__ == 2 #define BOOST_RANGE_ENABLE_CONCEPT_ASSERT 0 #endif #endif #ifdef __GCCXML__ // similar GNUC 4.2 issues for gccxml #if __GCCXML_GNUC__ == 4 &amp;&amp; __GCCXML_GNUC_MINOR__ == 2 #define BOOST_RANGE_ENABLE_CONCEPT_ASSERT 0 #endif #endif </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Thu, 03 Jan 2013 16:55:04 GMT</pubDate> <title>component changed; owner set https://svn.boost.org/trac10/ticket/7328#comment:3 https://svn.boost.org/trac10/ticket/7328#comment:3 <ul> <li><strong>owner</strong> set to <span class="trac-author">Neil Groves</span> </li> <li><strong>component</strong> <span class="trac-field-old">Building Boost</span> → <span class="trac-field-new">range</span> </li> </ul> Ticket Neil Groves Sat, 08 Mar 2014 22:00:42 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/7328#comment:4 https://svn.boost.org/trac10/ticket/7328#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket Neil Groves Sat, 08 Mar 2014 22:00:54 GMT milestone changed https://svn.boost.org/trac10/ticket/7328#comment:5 https://svn.boost.org/trac10/ticket/7328#comment:5 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.56.0</span> </li> </ul> Ticket