[Boost-users] error: Name clash for '<p/home/nr/dev/dist/boost/lib>libboost_system.a'

213 views
Skip to first unread message

Nathan Ridge

unread,
Apr 4, 2015, 3:12:17 AM4/4/15
to Boost Mailing List
Hi,

I just downloaded the boost 1.58 beta.

Tried to build with:

./b2 --with-filesystem --with-system --with-atomic --with-chrono --with-date_time --with-program_options --with-regex --with-test --with-thread --with-random --with-context --with-coroutine variant=release link=static runtime-link=static threading=multi toolset=gcc cxxflags=-Wno-unused-local-typedefs install

Got the following error:

Performing configuration checks

    - 32-bit                   : no
    - 64-bit                   : yes
    - arm                      : no
    - mips1                    : no
    - power                    : no
    - sparc                    : no
    - x86                      : yes
    - lockfree boost::atomic_flag : yes
    - lockfree boost::atomic_flag : yes
    - has_icu builds           : no
error: Name clash for '<p/home/nr/dev/dist/boost/lib>libboost_system.a'
error:
error: Tried to build the target twice, with property sets having
error: these incompabile properties:
error:
error:     -  none
error:     -  <address-model>64 <architecture>x86
error:
error: Please make sure to have consistent requirements for these
error: properties everywhere in your project, especially for install
error: targets.

Some googling reveals that people suggest adding '--without-context --without-coroutine' to work around the problem, but this is not an option for me because I use these libraries!

What can I do to fix this?

Thanks,
Nate

_______________________________________________
Boost-users mailing list
Boost...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users

Jürgen Hunold

unread,
Apr 4, 2015, 5:08:25 AM4/4/15
to boost...@lists.boost.org
Hi Nathan,

Am Samstag, 4. April 2015, 07:12:11 schrieb Nathan Ridge:
> I just downloaded the boost 1.58 beta.

Good.

> Some googling reveals that people suggest adding '--without-context
> --without-coroutine' to work around the problem, but this is not an option
> for me because I use these libraries!
>
> What can I do to fix this?

Follow the release notes:

> IMPORTANT NOTE:
> There is a bug with the build scripts; you have to specify the address-mode
> and architecture to b2.>
> I used:
> ./b2 address-model=64 architecture=x86
>
> (this will be fixed before the final release)

For 32-bit (Windows) please use "address-model=32 architecture=x86"

Yours,

Jürgen
--
* Dipl.-Math. Jürgen Hunold !
* voice: ++49 4257 300 ! Fährstraße 1
* fax : ++49 4257 300 ! 31609 Balge/Sebbenhausen
* jhu...@gmx.eu ! Germany

Nathan Ridge

unread,
Apr 4, 2015, 5:39:01 AM4/4/15
to Boost Mailing List
>> Some googling reveals that people suggest adding '--without-context
>> --without-coroutine' to work around the problem, but this is not an option
>> for me because I use these libraries!
>>
>> What can I do to fix this?
>
> Follow the release notes:

Thanks! That did fix the problem.

(And sorry, I should have read the release notes. It's a sign of Boost's quality that I haven't had to so far!)

Regards,
Nate
Reply all
Reply to author
Forward
0 new messages