Boost logo

Boost-Build :

From: Alexey Syomichev (asyomichev_at_[hidden])
Date: 2005-01-11 14:28:04


After upgrading from m10 to the CVS version I am getting a strange
error "duplicate name of actual target" when trying to "bjam
link=static". Building shared objects is not a problem. The
reproduction case follows. I am unable to reduce further, as there are
multiple factor involved, including spreading the requirements between
"project" and "lib" and "stage" parametrized with <location>. Here is
what I got:
------ ./project-root.jam ------
path-constant DIST : ./build ;
using sun ;
------ ./Jamfile --------
build-project a ;
build-project b ;
------ a/Jamfile --------
project a ;
lib a : a.cpp ;
stage dist : a : <location>$(DIST) ;
------ b/Jamfile --------
project b : requirements <define>B ;
lib b : b.cpp : <library>/a//a ;
stage dist : b : <location>$(DIST) ;
-------------------------
$ bjam link=static
error: Duplicate name of actual target:
<p/bb/home4/asyomich/temp/bj/build>a.a
error: previous virtual target { common%common.copy-a.STATIC_LIB {
sun%sun.archive-a.STATIC_LIB { sun%sun.compile.c++-a.OBJ { a.CPP } } } }
error: created from
error: another virtual target { common%common.copy-a.STATIC_LIB {
sun%sun.archive-a.STATIC_LIB { sun%sun.compile.c++-a.OBJ { a.CPP } } } }
error: created from
error: added properties: <define>B
error: removed properties: none

--Alexey

 


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