[Boost-users] Problems installing boost 1.47.0

285 views
Skip to first unread message

Allan Nielsen

unread,
Sep 23, 2011, 5:50:11 AM9/23/11
to boost...@lists.boost.org
Hi

I'm trying to install boost 1.47 in a single threaded edition but it does not seems to work. Here is what I tried:

./bootstrap.sh --without-icu --without-libraries=graph_parallel,mpi,python
./b2 threading=single --layout=system --prefix=/usr/local

Here is the error I got on the second command:

Building the Boost C++ Libraries.


Performing configuration checks

    - has_icu builds           : yes
    - ../config//has_gcc_visibility builds : yes
    - ../config//has_long_double_support builds : yes
/storage/src/boost_1_47_0/tools/build/v2/build/virtual-target.jam:1079: in virtual-target.register-actual-name from module virtual-target
error: Duplicate name of actual target: <pstage/lib>libboost_system.so.1.47.0
error: previous virtual target { common%common.copy-libboost_system.so.1.47.0.SHARED_LIB { gcc%gcc.link.dll-libboost_system.so.1.47.0.SHARED_LIB { gcc%gcc.compile.c++-error_code.o.OBJ { error_code.cpp.CPP } } } }
error: created from ./stage-proper
error: another virtual target { common%common.copy-libboost_system.so.1.47.0.SHARED_LIB { gcc%gcc.link.dll-libboost_system.so.1.47.0.SHARED_LIB { gcc%gcc.compile.c++-error_code.o.OBJ { error_code.cpp.CPP } } } }
error: created from ./stage-proper
error: added properties: <threading>single <warnings>on
error: removed properties: <threading>multi <warnings>all
/storage/src/boost_1_47_0/tools/build/v2/build/virtual-target.jam:490: in actualize-no-scanner from module object(file-target)@2784
/storage/src/boost_1_47_0/tools/build/v2/build/virtual-target.jam:135: in object(file-target)@2784.actualize from module object(file-target)@2784
/storage/src/boost_1_47_0/tools/build/v2/build-system.jam:749: in load from module build-system
/storage/src/boost_1_47_0/tools/build/v2/kernel/modules.jam:283: in import from module modules
/storage/src/boost_1_47_0/tools/build/v2/kernel/bootstrap.jam:142: in boost-build from module
/storage/src/boost_1_47_0/boost-build.jam:17: in module scope from module


Is there anything I can do to fix this locally ??

Best regards
Allan W. Nielsen

Steven Watanabe

unread,
Sep 23, 2011, 11:15:41 AM9/23/11
to boost...@lists.boost.org
AMDG

On 09/23/2011 02:50 AM, Allan Nielsen wrote:
> I'm trying to install boost 1.47 in a single threaded edition but it does
> not seems to work. Here is what I tried:
>
> ./bootstrap.sh --without-icu --without-libraries=graph_parallel,mpi,python
> ./b2 threading=single --layout=system --prefix=/usr/local
>
> Here is the error I got on the second command:
>

> <snip>


> error: Duplicate name of actual target:
> <pstage/lib>libboost_system.so.1.47.0

> <snip>


> error: created from ./stage-proper
> error: added properties: <threading>single <warnings>on
> error: removed properties: <threading>multi <warnings>all

> <snip>


>
> Is there anything I can do to fix this locally ??
>

Try adding --build-type=minimal to the b2 command line.

In Christ,
Steven Watanabe

signature.asc

Allan Nielsen

unread,
Sep 25, 2011, 2:55:57 AM9/25/11
to boost...@lists.boost.org

Try adding --build-type=minimal to the b2 command line.

Same result.

Roman Shmelev

unread,
Oct 6, 2011, 6:06:51 AM10/6/11
to boost...@lists.boost.org
same problem, Windows 7 - 64bit, Visual Studio 2010.

first try:
D:\Work\boost\boost_1_47_0>bootstrap
D:\Work\boost\boost_1_47_0>.\b2 --layout=system --build-dir=builddir
--with-date_time --with-exception --with-filesystem --with-iostreams
--with-program_options --with-random --with-regex --with-serialization
--with-signals --with-system --with-test --with-thread
--build-type=minimal

second try:
D:\Work\boost\boost_1_47_0>bootstrap
--with-libraries=date_time,exception,filesystem,iostreams,program_options,random,regex,serialization,signals,system,test,thread
D:\Work\boost\boost_1_47_0>.\b2 --layout=system --build-dir=builddir

output:

D:/Work/boost/boost_1_47_0/tools/build/v2/build\virtual-target.jam:1079:


in virtual-target.register-actual-name from module virtual-target

error: Duplicate name of actual target: <pstage\lib>libboost_system.lib
error: previous virtual target {
common%common.copy-libboost_system.lib.STATIC_LIB {
msvc%msvc.archive-libboost_system.lib.STATIC_LIB {
msvc%msvc.compile.c++-error_code.obj.OBJ { e
rror_code.cpp.CPP } } } }
error: created from ./stage-proper
error: another virtual target {
common%common.copy-libboost_system.lib.STATIC_LIB {
msvc%msvc.archive-libboost_system.lib.STATIC_LIB {
msvc%msvc.compile.c++-error_code.obj.OBJ { er
ror_code.cpp.CPP } } } }
error: created from ./stage-proper
error: added properties: <debug-symbols>off <define>NDEBUG
<inlining>full <optimization>speed <runtime-debugging>off
<variant>release
error: removed properties: <debug-symbols>on <inlining>off
<optimization>off <runtime-debugging>on <variant>debug
D:/Work/boost/boost_1_47_0/tools/build/v2/build\virtual-target.jam:490:
in actualize-no-scanner from module object(file-target)@3726
D:/Work/boost/boost_1_47_0/tools/build/v2/build\virtual-target.jam:135:
in object(file-target)@3726.actualize from module
object(file-target)@3726
D:/Work/boost/boost_1_47_0/tools/build/v2\build-system.jam:749: in
load from module build-system
D:\Work\boost\boost_1_47_0\tools\build\v2/kernel\modules.jam:283: in
import from module modules
D:\Work\boost\boost_1_47_0\tools\build\v2\kernel\bootstrap.jam:142: in
boost-build from module
D:\Work\boost\boost_1_47_0\boost-build.jam:17: in module scope from module
_______________________________________________
Boost-users mailing list
Boost...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users

Roman Shmelev

unread,
Oct 6, 2011, 9:20:33 AM10/6/11
to boost...@lists.boost.org
I see that the problem is in --layout=system, when I removed it -
compiling started working fine.
Any ideas how to fix this?

On Thu, Oct 6, 2011 at 1:06 PM, Roman Shmelev <rshm...@gmail.com> wrote:
> --layout=system

Allan Nielsen

unread,
Oct 10, 2011, 6:46:59 AM10/10/11
to boost...@lists.boost.org
Hi

I just realized that this problem only occurs when boost::chrono is build.

Do you think this is a bug in the boost::chrono build script?

Vicente J. Botet Escriba

unread,
Oct 10, 2011, 2:51:44 PM10/10/11
to boost...@lists.boost.org
Le 10/10/11 12:46, Allan Nielsen a écrit :

> Hi
>
> I just realized that this problem only occurs when boost::chrono is build.
>
> Do you think this is a bug in the boost::chrono build script?
>
Hi,

currently Boost.Chrono requires multi-threading on Linux. This is surely
a bug as I guess all what is needed is to link with the -rt library.

The problem is in the build/Jamfile.

Could you replace

<target-os>linux:<threading>multi

by

<linkflags>"-lrt"

: requirements
and
: usage-requirements

to see if this works for you?

Please, could you also create a Trac ticket?

Best,
Vicente

Vicente J. Botet Escriba

unread,
Oct 10, 2011, 4:00:38 PM10/10/11
to boost...@lists.boost.org
Le 10/10/11 20:51, Vicente J. Botet Escriba a écrit :

> Le 10/10/11 12:46, Allan Nielsen a écrit :
>> Hi
>>
>> I just realized that this problem only occurs when boost::chrono is
>> build.
>>
>> Do you think this is a bug in the boost::chrono build script?
>>
> Hi,
>
> currently Boost.Chrono requires multi-threading on Linux. This is
> surely a bug as I guess all what is needed is to link with the -rt
> library.
>
> The problem is in the build/Jamfile.
>
> Could you replace
>
> <target-os>linux:<threading>multi
>
> by
>
> <linkflags>"-lrt"
>
> : requirements
> and
> : usage-requirements
>
> to see if this works for you?
>
> Please, could you also create a Trac ticket?
>
>
I'm trying to solve the issue with the previous proposal.

Committed revision 74902.

I will see how the regressions behave.

Allan Nielsen

unread,
Oct 10, 2011, 4:48:02 PM10/10/11
to boost...@lists.boost.org
Okay, sounds good.

Just to be sure, have you created the track ticket?


Best regards
Allan W. Nielsen

Reply all
Reply to author
Forward
0 new messages