Boost logo

Boost-Build :

Subject: Re: [Boost-build] Disabling zlib/bzip2
From: Jurko Gospodnetić (jurko.gospodnetic_at_[hidden])
Date: 2008-09-09 11:40:39


Hi Mirko.

> How do I disable multithreading support properly? Right now, I just commented
> out the lines in gcc.jam that set up '-pthread' to get rid of the warnings.

   I'm not really sure I understand your question, but you can make
Boost Build built its targets without using tool options to enable
multi-threading support by specifying the threading=single requierement.
You can do that either on the command line, or directly in your target
definition.

   See the Boost Build docs for details or ask here if anything else is
unclear.

> Apart from that, I get "...failed updating 2 targets..." at the end of the
> build, and the only problems I see in the output are:
>
> bin.v2/libs/config/test/all/no_std_locale_pass.test/gcc-mingw-4.2.1/release/link-static/pch-off/target-os-windows/threading-multi/no_std_locale_pass:
> 1: MZ����@���: not found
> bin.v2/libs/config/test/all/no_std_locale_pass.test/gcc-mingw-4.2.1/release/link-static/pch-off/target-os-windows/threading-multi/no_std_locale_pass:
> 8: Syntax error: ")" unexpected
>
> That's probably because these executables are now for Windows, and can't be
> executed. Is there a way to 'fix' this?

   You can make Boost Build display all the exact command-lines executed
by using the -d2 command-line option. Then you can try running the
problematic command line directy and seeing exactly where the problem is.

   Possibly some macro is not getting defined correctly. In that case
try running just the C++ preprocessor and see where exactly the error
occurs in there.

   Hope this helps.

   Best regards,
     Jurko Gospodnetić


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