Boost logo

Boost-Build :

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
> ::thread>).
> 1 Error(s) detected.
> "CC" -library=stlport4 -xO4 -mt -erroff=%none -m64 -KPIC -DBOOST_ALL_NO_LIB=
> ibs/thread/build/sun/release/address-model-64/stdlib-sun-stlport/threading-multi
> /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
> constructor.
> Aside from changing compilers, is there any work around for this?


I think you should ask on 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.

- Volodya

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at