Boost C++ Libraries: Ticket #5079: read_graphviz_new.cpp build failure on Solaris https://svn.boost.org/trac10/ticket/5079 <p> Trying to build boost 1.45 on Solaris 11 express with the Sun Studio 12.1 compiler fails with: </p> <p> $ /opt/sunstudio12.1/bin/CC -library=no%Cstd -I/usr/include/stdcxx4/ansi -I/usr/include/stdcxx4 -I/opt/kde4/include/unicode -I/opt/kde4/include/layout -I/opt/kde4/include -lc -lpthread -lposix4 -lrt -mt -D_REENTRANT -DNDEBUG -KPIC -D<span class="underline">EXTENSIONS</span>=1 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D_XPG5 -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS -DSOLARIS10 -DBOOST_POSIX=1 -UBOOST_DISABLE_THREADS -DBOOST_HAS_THREADS=1 -DBOOST_HAS_PTHREADS=1 -UBOOST_NO_STD_ITERATOR_TRAITS -UBOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION -DHAVE_ICU=1 -DBOOST_HAS_ICU=1 -UBOOST_NO_STDC_NAMESPACE -DSUNPROCC_BOOST_COMPILE=1 -D_RWSTD_REENTRANT -DPy_TRACE_REFS -DPy_USING_UNICODE -DNDEBUG -DBOOST_ALL_NO_LIB=1 -DBOOST_GRAPH_DYN_LINK=1 -I"." -I"libs/graph/src" -c -o "bin.v2/libs/graph/build/sun/release/stdlib-sun-stdcxx/threading-multi/read_graphviz_new.o" "libs/graph/src/read_graphviz_new.cpp" "./boost/proto/detail/expr0.hpp", line 458: Error: A class with a reference member must have a user-defined constructor. "./boost/xpressive/regex_primitives.hpp", line 569: Where: While specializing "boost::proto::exprns_::expr&lt;boost::proto::tag::assign, boost::proto::argsns_::list2&lt;boost::xpressive::mark_tag&amp;, const boost::xpressive::mark_tag&amp;&gt;, 2&gt;". "./boost/xpressive/regex_primitives.hpp", line 569: Where: Specialized in non-template code. "./boost/xpressive/regex_primitives.hpp", line 569: Error: Expected an expression. "./boost/xpressive/regex_primitives.hpp", line 569: Error: Use ";" to terminate statements. 3 Error(s) detected. </p> <p> I got the same result with Studio 12.2 I'm using stdcxx 4.2.1 and the environment from the kde-solaris project, which built boost 1.43 just fine. </p> <p> Attaching the preprocessed sources </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5079 Trac 1.4.3 Pavel Heimlich <tropikhajma@…> Sun, 16 Jan 2011 01:08:04 GMT <link>https://svn.boost.org/trac10/ticket/5079#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5079#comment:1</guid> <description> <p> preprocessed sources at <a class="ext-link" href="ftp://hajma.no-ip.org/usb_1/osol/misc/a.i.bz2"><span class="icon">​</span>ftp://hajma.no-ip.org/usb_1/osol/misc/a.i.bz2</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Jeremiah Willcock</dc:creator> <pubDate>Sun, 16 Jan 2011 01:18:29 GMT</pubDate> <title>component changed; owner set https://svn.boost.org/trac10/ticket/5079#comment:2 https://svn.boost.org/trac10/ticket/5079#comment:2 <ul> <li><strong>owner</strong> set to <span class="trac-author">Eric Niebler</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">xpressive</span> </li> </ul> Ticket Jeremiah Willcock Sun, 16 Jan 2011 01:20:16 GMT <link>https://svn.boost.org/trac10/ticket/5079#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5079#comment:3</guid> <description> <p> Are you going to use the Graphviz functionality in Boost.Graph, or are you just trying to build other parts of Boost? If you don't need the functionality, try just putting <code>#if 0</code> around the entire <code>libs/graph/src/read_graphviz_new.cpp</code> file. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Eric Niebler</dc:creator> <pubDate>Sun, 16 Jan 2011 09:45:41 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/5079#comment:4 https://svn.boost.org/trac10/ticket/5079#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">wontfix</span> </li> </ul> <p> Sorry, xpressive does not support the sun compiler because it's too buggy. For instance, there is nothing wrong with a constructor-less class that has a reference member, AFAIK. Comeau accepts it in strict mode. Feel free to file a bug against the sun compiler. </p> Ticket