Boost logo

Boost-Build :

Subject: [Boost-build] error: Duplicate name of actual target: <pstage/lib>libboost_system.a
From: Seth Munholland (munholl_at_[hidden])
Date: 2015-08-11 13:35:35


Hello,

If this is a duplicate issue, I apologize, I couldn't find anything on
google specifically addressing my issue. I also tried sending it before
properly subscribing to the mailing list, that would be my bad on
duplicating.

I need to use a program that requires installing the boost libraries
statically linked at runtime. my command is:

bjam --prefix=/genome/Apps/boost_1_53_0/install --toolset=gcc
architecture=x86 address-model=64 link=static runtime-link=static stage
install

and the output I get is:

Performing configuration checks

    - has_icu builds : yes
warning: Graph library does not contain MPI-based parallel components.
note: to enable them, add "using mpi ;" to your user-config.jam
    - iconv (libc) : yes
    - icu : yes
    - gcc visibility : yes
    - long double support : yes
warning: skipping optional Message Passing Interface (MPI) library.
note: to enable MPI support, add "using mpi ;" to user-config.jam.
note: to suppress this message, pass "--without-mpi" to bjam.
note: otherwise, you can safely ignore this message.
/genome/Apps/boost_1_53_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.a
error: previous virtual target {
common%common.copy-libboost_system.a.STATIC_LIB {
gcc%gcc.archive-libboost_system.a.STATIC_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.a.STATIC_LIB {
gcc%gcc.archive-libboost_system.a.STATIC_LIB {
gcc%gcc.compile.c++-error_code.o.OBJ { error_code.cpp.CPP } } } }
error: created from ./stage-proper
error: added properties: <runtime-link>shared <warnings>on
error: removed properties: <runtime-link>static <warnings>all
/genome/Apps/boost_1_53_0/tools/build/v2/build/virtual-target.jam:490: in
actualize-no-scanner from module object(file-target)@3692
/genome/Apps/boost_1_53_0/tools/build/v2/build/virtual-target.jam:135: in
class_at_virtual-target.actualize from module object(file-target)@3692
/genome/Apps/boost_1_53_0/tools/build/v2/build-system.jam:749: in load from
module build-system
/genome/Apps/boost_1_53_0/tools/build/v2/kernel/modules.jam:283: in import
from module modules
/genome/Apps/boost_1_53_0/tools/build/v2/kernel/bootstrap.jam:142: in
boost-build from module
/genome/Apps/boost_1_53_0/boost-build.jam:17: in module scope from module

>From what I can tell the issue starts with a duplicate name for
libboost_system.a, but later on it says that it removes the runtime-link
static and adds runtime-link shared. I think this means my platform
(Ubuntu 14.04) already has a static version of boost install that is
conflicting with this attempted install. I thought adding the prefix line
would try and have this install to a specific directory only and not try to
overwrite the system required boost library already installed. Am I
missing something or do I not understand the error correctly? Also, how do
I get boost installed with a static runtime link for the other programs I'm
using that require it?

Seth Munholland, B.Sc.
Department of Biological Sciences
Rm. 304 Biology Building
University of Windsor
401 Sunset Ave. N9B 3P4
T: (519) 253-3000 Ext: 4755



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