Boost logo

Boost-Build :

Subject: Re: [Boost-build] sync_access_test: Compiler threading support is not turned on
From: Juan Antonio Zaratiegui Vallecillo, a.k.a. Zara (zara_at_[hidden])
Date: 2008-12-24 03:50:06


Gennadiy Rozental escribió:
> Hi
> Can anyone help me figure out what needs to be done to resolve
> regressions with sync_access_test.
>
> Several testers report "Compiler threading support is not turned on".
> What needs to be changed: my Jamfile of toolset? These include
>
> * all HPUX testers,
> * Sandia-Linux-sun / sun-5.9
> * Sandia-sun-gcc / gcc-3.4.6
>
> Also
>
> Sandia-intel-10.0 / intel-linux-10.0
>
> reports
> /var/scratch/boost/results/boost/bin.v2/libs/thread/build/intel-linux-10.0/debug/link-static/threading-multi/libboost_thread-il100-mt-d-1_38.a(thread.o)(.text+0x34f):
> In function `boost::detail::(anonymous
> namespace)::create_current_thread_tls_key()':
> ../libs/thread/src/pthread/thread.cpp:102: undefined reference to
> `pthread_key_create'
> ... more like this
>
> What the deal here?
>
> Gennadiy

you must add the option -lpthread to gcc, so as to link posix thread library

Best regrads,

Zara


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