Boost C++ Libraries: Ticket #13042: Build errors with stdlib=sun-stlport on Linux https://svn.boost.org/trac10/ticket/13042 <p> The build on Oracle Linux fails with stdlib=sun-stlport due to a default option incompatibility: </p> <pre class="wiki">$ b2 stdlib=sun-stlport ...failed sun.compile.c++ bin.v2/libs/python/build/sun/release/link-static/stdlib-sun-stlport/threading-multi/numpy/dtype.o... sun.compile.c++ bin.v2/libs/python/build/sun/release/link-static/stdlib-sun-stlport/threading-multi/numpy/matrix.o CC: -library=stlport4 cannot be used with -std=c++03. To use this library you need to switch to -std=sun03 </pre><p> The -library=stlport4 option requires -compat=5 (or -std=sun03 which is the same thing), but the default on Linux is -compat=g (GNU ABI, equivalent to -std=c++03). So -library=stlport4 is not compatible with the default on Linux. </p> <p> The fix is to always specify -compat=5 together with -library=stlport4; another option would be to specify -std=sun03 instead as the error message suggests, but older compilers don't recognize the latter option, so -compat=5 is safer to use. </p> <p> A similar problem could arise for the apache (stdcxx4) library that is also only supported with -compat=5, so I suggest to make similar changes for it as well. This is not strictly necessary as currently the apache library is only supported on Solaris where -compat=5 is the default, but making this additional change makes the build more future-proof. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13042 Trac 1.4.3 maxim.kartashev@… Mon, 22 May 2017 14:59:51 GMT <link>https://svn.boost.org/trac10/ticket/13042#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13042#comment:1</guid> <description> <p> Pull Request: <a class="ext-link" href="https://github.com/boostorg/build/pull/199"><span class="icon">​</span>https://github.com/boostorg/build/pull/199</a> </p> </description> <category>Ticket</category> </item> <item> <author>maxim.kartashev@…</author> <pubDate>Wed, 21 Jun 2017 11:04:51 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/13042#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13042#comment:2</guid> <description> <p> ping </p> </description> <category>Ticket</category> </item> </channel> </rss>