Skip to Main Content

DevOps, CI/CD and Automation


For appeals, questions and feedback about Oracle Forums, please email Please ask technical questions in the appropriate category. Thank you!

Problem building Boost 1.64.0 with Developer Studio 12.6

user13420336Aug 12 2017 — edited Aug 12 2017


I have a set of libraries which I build on various platforms.  This set of libraries requires the Boost C++ Libraries.

I attempted to build Boost 1.64.0 on Solaris 11.3 x86_64 using Developer Studio 12.6 without success.  These are the command lines used to invoke the build:

./ --prefix=/export/home/dev3rd/boost_1_64_0 --with-toolset=sun
./b2 link=shared runtime-link=shared address-model=64 threading=multi variant=release cxxflags="-std=c++14" linkflags="-std=c++14" install

FYI, I have successfully performed the same build on two other platforms, namely:

1.  Fedora 26 using GCC 7.1.

2.  Windows 7 using Visual Studio 2017.

I have also raised the same issues with Boost but I have not received any feedback yet.

It seems that there are 3 main issues with the build, namely:

1.  Problem with Boost.Log library with this error message:

    >> Assertion:   (../lnk/, line 1865)
    while processing ./boost/log/expressions/message.hpp at line 98.

    It appears that this has something to do with initializer lists.  Are you able to confirm that this is a compiler issue or should I be pursuing it with Boost?

2.  Another problem with Boost.Log library with this error message:

    "libs/log/src/named_scope.cpp", line 118: Error: Use of overloaded binary operator '=' is ambiguous.
    "./boost/optional/optional.hpp", line 900: Note: Viable candidate 'boost::optional<boost::log::v2_mt_posix::attributes::named_scope_list>& boost::optional<boost::log::v2_mt_posix::attributes::named_scope_list>::operator=<boost::log::v2_mt_posix::attributes::named_scope_list&>(boost::log::v2_mt_posix::attributes::named_scope_list&)'.
    "./boost/optional/optional.hpp", line 962: Note: Viable candidate 'boost::optional<boost::log::v2_mt_posix::attributes::named_scope_list>& boost::optional<boost::log::v2_mt_posix::attributes::named_scope_list>::operator=<boost::log::v2_mt_posix::attributes::named_scope_list&>(boost::log::v2_mt_posix::attributes::named_scope_list&)'.

    It is possible that this is a Boost configuration issue since two member functions with the same signature are being seen by the compiler.  However, it is also possible that this is a std::enable_if<> issue.  Can you please comment.

3.  Problem with Boost.Python with this error message:

    "libs/python/src/numpy/dtype.cpp", line 61: Error: NPY_FLOAT16 is not defined.

    It appears that this might be a package installation issue to do with Python-related packages.  FYI, I'm only running Solaris 11.3 x86_64 on a VMware virtual machine without a support contract thus I'm having issues installing the required Python packages possibly due to unapplied required updates of the operating system.  I'm hoping that if someone from Oracle performed the same build you wouldn't be having this problem.  Is this a fair enough assumption?

Kind regards,

Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 9 2017
Added on Aug 12 2017
1 comment