[Boost-bugs] [Boost C++ Libraries] #13042: Build errors with stdlib=sun-stlport on Linux

Subject: [Boost-bugs] [Boost C++ Libraries] #13042: Build errors with stdlib=sun-stlport on Linux
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-05-22 14:59:07


#13042: Build errors with stdlib=sun-stlport on Linux
-------------------------------+---------------------------
 Reporter: maxim.kartashev@… | Owner: vladimir_prus
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: build
  Version: Boost 1.63.0 | Severity: Problem
 Keywords: |
-------------------------------+---------------------------
 The build on Oracle Linux fails with stdlib=sun-stlport due to a default
 option incompatibility:

 {{{
 $ 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

 }}}

 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.

 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.

 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.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/13042>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-05-22 15:02:49 UTC