Subject: Re: [Boost-build] build 1_40_0 w/ SunStudio12 compiler failing
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2009-11-05 09:56:52
Bob Walters wrote:
> I've just attempted a build of the current (1_40_0) boost distribution
> on a Solaris 10 machine, using the SunStudio12 compiler (cc). There
> seems to be a problem with boost::thread which is related to this
> compiler's lack of rvalue references.
> My build process has been:
> tar xzf boost_1_40_0.tgz
> cd boost_1_40_0
> export BOOST_ROOT=`pwd`
> ./bjam toolset=sun address-model=64
> The error I'm receiving:
> "./boost/thread/detail/thread.hpp", line 344: Error: boost::thread::thread(boost
> ::thread&) is not accessible from boost::move(boost::detail::thread_move_t<boost
> 1 Error(s) detected.
> "CC" -library=stlport4 -xO4 -mt -erroff=%none -m64 -KPIC -DBOOST_ALL_NO_LIB=
> 1 -DBOOST_THREAD_BUILD_DLL=1 -DBOOST_THREAD_POSIX -DNDEBUG -I"." -c -o "bin.v2/l
> /pthread/thread.o" "libs/thread/src/pthread/thread.cpp"
> move() seems to rely on a copy constructor for its returned thread
> when rvalue references aren't supported. There is no such
> Aside from changing compilers, is there any work around for this?
I think you should ask on boost_at_lists.boost.org. This mailing list is about Boost.Build
tool, so as soon as the Sun compiler is invoked properly, we have little ways to
help. You might want to try --without-threads, if you don't need that library.
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