|
Boost-Build : |
Subject: Re: [Boost-build] Boost 1.59.0 bcp fails to build with sun toolset with SunStudio 12.4
From: Aparna Kumta (aparna.kumta_at_[hidden])
Date: 2016-09-21 12:05:35
On 09/13/16 21:07, Kevin Maskell-Moody wrote:
> 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.
Yes, as you noticed, this seems to be the issue of not picking up
'-library=stlport4'
If I add '-library=stlport4', to the command line above, the testcase
compiles OK..
>
> # Configure sun (default version).
> using sun : : : -library=stlport4 -features=tmplife
> -features=tmplrefstatic ;
I think you might be missing '<cxxflags>' before -library=stlport4.
Thanks,
Aparna
>
> 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
>
>
>
>
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk