error when I try to run b2 and bjam with toolset parameter

I am trying to build one library from boost.

As I am using gcc I wanted to set toolset for b2

D:c++boost_1_58_0libsiostreamsbuild>b2 toolset=gcc
Performing configuration checks

    - 32-bit                   : no
    - 64-bit                   : yes
    - arm                      : no
    - mips1                    : no
    - power                    : no
    - sparc                    : no
    - x86                      : yes
    - zlib                     : no
error: at D:/c++/boost_1_58_0/tools/build/src/kernelmodules.jam:107
error: Name clash for '<p......bin.v2standaloneacgcc-mingw-5.1.0debug>zlib.h.o'
error:
error: Tried to build the target twice, with property sets having
error: these incompatible properties:
error:
error:     -  none
error:     -  <address-model>64 <architecture>x86 <deduced-address-model>64 <deduced-architecture>x86
error:
error: Please make sure to have consistent requirements for these
error: properties everywhere in your project, especially for install
error: targets.

The same error I’ve got when I try to run bjam toolset=gcc.

What’s the problem?
I have installed and configured gcc

D:c++boost_1_58_0libsiostreamsbuild>gcc --version
gcc (tdm64-1) 5.1.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Source: gcc

Leave a Reply