Boost logo

Boost-Build :

Subject: Re: [Boost-build] Default threading model in Linux
From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-11-09 14:57:15


On Sunday 09 November 2008 20:54:10 Joaquin M Lopez Munoz wrote:
> Vladimir Prus <ghost <at> cs.msu.su> writes:
>
> >
> > On Sunday 09 November 2008 20:16:42 Joaquin M Lopez Munoz wrote:
> > > Put these two files under a folder foo in boost/libs and
> > > play with bjam and different settings or threading:
> > >
> > > GCC under Cygwin:
> > > threading=single
> > > BOOST_HAS_THREADS defined
> > > BOOST_HAS_PTHREADS defined
> >
> > This is happening for me on Linux, too. There's no -pthread in gcc command
> > line, so either Boost.Config is wrong, or libstdc++ is back to setting symbols
> > it has no business setting (like _REENTRANT).
>
> What do you suggest me to do? Maybe bring this to the attention
> of Mr. Maddock?

Well, John's on this list :-) John, I'd appreciate any feedback you might have
here.

>
> > > threading=multi
> > > BOOST_HAS_THREADS defined
> > > BOOST_HAS_PTHREADS defined
> > >
> > > MSVC 8.0:
> > > threading=single
> > > BOOST_HAS_THREADS defined
> > > BOOST_HAS_PTHREADS undefined
> >
> > What target path is used? MSVC 8.0 does not have single-threaded shared
> > runtime, so it forces threading=multi.
>
> threading=multi
> ..\..\bin.v2\libs\foo\foo.test\msvc-8.0express\debug\threading-multi\
>
> threading=single
> ..\..\bin.v2\libs\foo\foo.test\msvc-8.0express\debug\

Uhm, I have no clue. I might have to try with real msvc.

>
> threading=multi runtime-link=static
> Skipping build of: ./foo_test <build>no in common properties
>
> threading=single runtime-link=static
> Skipping build of: ./foo_test <build>no in common properties

This is how C++ Boost's Jamroot, currently, expresses "your properties
are wrong, go away" opinion. You did not specify link=static, so
the above asks for link=shared runtime-link=static and this is
considered a risky combination. A future release of Boost will
use slightly different mechanism here that will allow the build to
proceed, maybe with more clear warnings.

- Volodya


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