Boost logo

Boost-Build :

Subject: [Boost-build] using --without-thread results in Boost.Thread still being built
From: McLemon, Sean (Sean.McLemon_at_[hidden])
Date: 2009-07-15 08:58:52


According to the Jamroot file if i'm to exclude some libraries from
building Boost I should use --without-<library> when invoking bjam.
However it looks like I'm doing something wrong as it seems that the
libraries I asked bjam to skip are being built. Below is what I
understood I should use if I wanted to exclude the Boost.Thread library:

 

smclemo_at_edin-angus /usr/src/boost_1_39_0

$ bjam link=static toolset=bfin target-os=elf --without-thread
threading=single runtime-link=static stage

 

And below is a snippet from my build output indicating that we've
attempted to build Boost.Thread:

 

...failed bfin.compile.c++
bin.v2\libs\thread\build\bfin-8.0.7.1\release\link-static\runtime-link-s
tatic\target-os-elf\threading-multi\win32\thread.doj...

bfin.compile.c++
bin.v2\libs\thread\build\bfin-8.0.7.1\release\link-static\runtime-link-s
tatic\target-os-elf\threading-multi\win32\exceptions.doj

".\boost/config/requires_threads.hpp", line 94: cc0035: catastrophic
error:

          #error directive: "Compiler threading support is not turned
on.

          Please consult your compiler's documentation for the
appropriate

          options to use"

  # error "Compiler threading support is not turned on. Please consult
your compiler's documentation for the appropriate options to use"

     ^

 

1 catastrophic error detected in the compilation of
"libs\thread\src\win32\exceptions.cpp".

Compilation terminated.

cc3089: fatal error: Compilation failed

 

I'm guessing that I'm not using the correct switch, perhaps
--without-Thread or --without-threads or something else is correct?

 

- Sean



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