Boost logo

Boost Users :

From: Quantum Skyline (quantum.skyline_at_[hidden])
Date: 2006-02-12 21:35:03


John Maddock wrote:
>> This gets repeated several times:
>> gcc-C++-action
>> bin/boost/libs/thread/build/libboost_thread.so/gcc/debug/shared-linkable-true/threading-multi/barrier.o
>>
>> In file included from
>> /home/quantum/boost_1_33_1/boost/thread/detail/config.hpp:18,
>> from
>> /home/quantum/boost_1_33_1/libs/thread/src/barrier.cpp:12:
>> /home/quantum/boost_1_33_1/boost/config/requires_threads.hpp:29:4:
>> #error "Threading support unavaliable: it has been explicitly disabled
>> with BOOST_DISABLE_THREADS"
>
>> I tried using the configure script and then running make to execute
>> the makefile - shouldn't the configure script have detected threading
>> availability in the compiler?
>
> It's turning off threading support because it thinks your libstdc++ is
> built single threaded: however I have a suspicion this is may be due to
> a bug I fixed a while back - basically it means that if you configure
> gcc with --enable-threads=posix rather than --enable-threads=default
> then our config doesn't correctly detect that case (in case you're
> thinking "but they're the same thing!", they're not at least as far as
> the macros set by libstdc++ are concerned).
>
> Anyway can you try replacing boost/config/stdlib/libstdcpp3.hpp with the
> current cvs version (attached) and see if that fixes things?
>

[snip attachment]

Hi,

I tried your suggestion and got this error message:

...failed gcc-C++-action
bin/boost/libs/thread/build/libboost_thread.a/gcc/release/threading-multi/tss.o...
gcc-C++-action
bin/boost/libs/thread/build/libboost_thread.a/gcc/release/threading-multi/xtime.o
In file included from
/home/quantum/boost_1_33_1/boost/thread/detail/config.hpp:18,
                  from
/home/quantum/boost_1_33_1/libs/thread/src/xtime.cpp:12:
/home/quantum/boost_1_33_1/boost/config/requires_threads.hpp:47:5:
#error "Compiler threading support is not turned on. Please set the
correct command line options for threading: -pthread (Linux), -pthreads
(Solaris) or -mthreads (Mingw32)"

     set -e
     "g++" -c -Wall -ftemplate-depth-255 -DNDEBUG -DNDEBUG
-DBOOST_THREAD_LIB_NAME=boost_thread -DBOOST_THREAD_BUILD_LIB=1 -O3
-finline-functions -Wno-inline -pthread
-I"bin/boost/libs/thread/build" -I "/home/quantum/boost_1_33_1" -o
"bin/boost/libs/thread/build/libboost_thread.a/gcc/release/threading-multi/xtime.o"
  "/home/quantum/boost_1_33_1/libs/thread/build/../src/xtime.cpp"

Any other suggestions? I've already set the LIBS variable to "-lpthread".


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net