Hi,

Our boost build requires bcp to copy out certain libraries and stage only the boost modules that we require. However, moving to a new platform, Solaris 11.3 with SunStudio 12.4, it fails to build the first piece, the bcp tool.

...found 1316 targets...
...updating 88 targets...
common.mkdir bin.v2/tools
common.mkdir bin.v2/tools/bcp
common.mkdir bin.v2/tools/bcp/sun
common.mkdir bin.v2/tools/bcp/sun/release
common.mkdir bin.v2/tools/bcp/sun/release/link-static
sun.compile.c++ bin.v2/tools/bcp/sun/release/link-static/add_dependent_lib.o
"./boost/detail/iterator.hpp", line 19: Error: iterator_traits is not a member of std.
"./boost/iterator/iterator_traits.hpp", line 22: Error: iterator_traits is not a member of boost::detail.
"./boost/iterator/iterator_traits.hpp", line 22: Error: A declaration does not specify a tag or an identifier.

...

Compilation aborted, too many Error messages.

    "CC" -xO4 -erroff=%none -m32 -DBOOST_ALL_NO_LIB=1 -DBOOST_CHRONO_STATIC_LINK=1 -DBOOST_CHRONO_THREAD_DISABLED -DBOOST_FILESYSTEM_STATIC_LINK=1 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_SYSTEM_STATIC_LINK=1 -DBOOST_TEST_NO_AUTO_LINK=1 -DBOOST_TIMER_STATIC_LINK=1 -DNDEBUG -D__typeof__=__typeof__ -I"." -c -o "bin.v2/tools/bcp/sun/release/link-static/add_dependent_lib.o" "tools/bcp/add_dependent_lib.cpp"

...failed sun.compile.c++ bin.v2/tools/bcp/sun/release/link-static/add_dependent_lib.o...
sun.compile.c++ bin.v2/tools/bcp/sun/release/link-static/add_path.o

So, I'm assuming that this is an issue with not picking up the appropriate standard library. I did have -library=stlport4 as a part of the user-config.jam.

# Configure sun (default version).
using sun : : : -library=stlport4 -features=tmplife -features=tmplrefstatic ;

This used to work with 1.55.0 on Solaris 10, SunStudio 12.1. Shouldn't the library flag be seen in the command? Is this no longer a valid rule?

Any ideas what has changed or what I'm missing?

Regards,
Kevin