Boost logo

Boost-Build :

From: Jürgen Hunold (hunold_at_[hidden])
Date: 2004-06-23 05:24:47


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Volodya !

On Friday 18 June 2004 14:41, Vladimir Prus wrote:

> Is it possible that you send me a testcase? Or tell where lm_new.obj
> is declared and how its used by subprojects. You can also replace the
> test on line 816 with if true and find out where the targets are
> generated.

Please find a working testcase attached.

It contains 3 different projects:

a) extern. A simulation of the flexlm setup.
b) main-project. How my main project is organized.
c) help-project. Please start there.

help-project contain several apps. only app3 and app4 are trigger the bug. It seems that the project structure is the key. Please note that both app3 and app4 contain a "main" directory, from which the exe is built. app1 and app2 have a "flat" structure.

When going to help-project and invoking "bjam"
I get

bjam -j8 gcc-3.4.0

/ive/hunold/packages/boost/tools/build/v2/build/virtual-target.jam:831: in virtual-target.register-actual-name from module virtual-target
error: Duplicate name of actual target: <pbin>app1
error: previous virtual target { gcc%gcc.link-app1.STAGED_EXE { gcc%gcc.compile.c++-app3.OBJ { app3.CPP } } { ../extern/extern.OBJ } { gcc%gcc.link.dll-lib3.SHARED_LIB { gcc%gcc.compile.c++-lib3.OBJ { lib3.CPP } } { ../extern/extern.OBJ } { ../extern/extern_lib.STATIC_LIB } } { gcc%gcc.link.dll-lib2.SHARED_LIB { gcc%gcc.compile.c++-lib2.OBJ { lib2.CPP } } { ../extern/extern.OBJ } { ../extern/extern_lib.STATIC_LIB } } { gcc%gcc.link.dll-lib1.SHARED_LIB { gcc%gcc.compile.c++-lib1.OBJ { lib1.CPP } } { ../extern/extern.OBJ } { ../extern/extern_lib.STATIC_LIB } } { ../extern/extern_lib.STATIC_LIB }}
error: another virtual target { gcc%gcc.link-app1.STAGED_EXE { gcc%gcc.compile.c++-app4.OBJ { app4.CPP } } { ../extern/extern.OBJ } { gcc%gcc.link.dll-lib3.SHARED_LIB { gcc%gcc.compile.c++-lib3.OBJ { lib3.CPP } } { ../extern/extern.OBJ } { ../extern/extern_lib.STATIC_LIB } } { gcc%gcc.link.dll-lib2.SHARED_LIB { gcc%gcc.compile.c++-lib2.OBJ { lib2.CPP } } { ../extern/extern.OBJ } { ../extern/extern_lib.STATIC_LIB } } { gcc%gcc.link.dll-lib1.SHARED_LIB { gcc%gcc.compile.c++-lib1.OBJ { lib1.CPP } } { ../extern/extern.OBJ }{ ../extern/extern_lib.STATIC_LIB } } { ../extern/extern_lib.STATIC_LIB } }

(Full message attached)

I hope this is enough.

Yours,

Jürgen.

- --
* Dipl.-Math. Jürgen Hunold ! Institut für Verkehrswesen, Eisenbahnbau
* voice: ++49 511 762-2529 ! und -betrieb, Universität Hannover
* fax : ++49 511 762-3001 ! Appelstrasse 9a, D-30167 Hannover
* hunold_at_[hidden] ! www.ive.uni-hannover.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFA2VpyljbJ/LLrxrYRAuCaAJ4oKiZBxeUqeqz92zKfc5oycF/EFwCgqzQw
+tEWTpjPduCqvNqQBJrgvuk=
=Rbxo
-----END PGP SIGNATURE-----
 --Boundary-00=_vpV2AXSKJVLTE3G Content-Type: application/x-tgz;
name="virtual.tar.gz"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="virtual.tar.gz"

[Attachment content not displayed.] --Boundary-00=_vpV2AXSKJVLTE3G Content-Type: text/plain;
charset="utf-8";
name="output.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="output.txt"

cd /ive/hunold/src/bjam/virtual/help-project/
bjam -j8 gcc-3.4.0
bjam Version 2
LINUX
PYTHON_PATH
/ive/hunold/packages/boost/tools/build/v2/build/virtual-target.jam:831: in virtual-target.register-actual-name from module virtual-target
error: Duplicate name of actual target: <pbin>app1
error: previous virtual target { gcc%gcc.link-app1.STAGED_EXE { gcc%gcc.compile.c++-app3.OBJ { app3.CPP } } { ../extern/extern.OBJ } { gcc%gcc.link.dll-lib3.SHARED_LIB { gcc%gcc.compile.c++-lib3.OBJ { lib3.CPP } } { ../extern/extern.OBJ } { ../extern/extern_lib.STATIC_LIB } } { gcc%gcc.link.dll-lib2.SHARED_LIB { gcc%gcc.compile.c++-lib2.OBJ { lib2.CPP } } { ../extern/extern.OBJ } { ../extern/extern_lib.STATIC_LIB } } { gcc%gcc.link.dll-lib1.SHARED_LIB { gcc%gcc.compile.c++-lib1.OBJ { lib1.CPP } } { ../extern/extern.OBJ } { ../extern/extern_lib.STATIC_LIB } } { ../extern/extern_lib.STATIC_LIB } }
error: another virtual target { gcc%gcc.link-app1.STAGED_EXE { gcc%gcc.compile.c++-app4.OBJ { app4.CPP } } { ../extern/extern.OBJ } { gcc%gcc.link.dll-lib3.SHARED_LIB { gcc%gcc.compile.c++-lib3.OBJ { lib3.CPP } } { ../extern/extern.OBJ } { ../extern/extern_lib.STATIC_LIB } } { gcc%gcc.link.dll-lib2.SHARED_LIB { gcc%gcc.compile.c++-lib2.OBJ { lib2.CPP } } { ../extern/extern.OBJ } { ../extern/extern_lib.STATIC_LIB } } { gcc%gcc.link.dll-lib1.SHARED_LIB { gcc%gcc.compile.c++-lib1.OBJ { lib1.CPP } } { ../extern/extern.OBJ } { ../extern/extern_lib.STATIC_LIB } } { ../extern/extern_lib.STATIC_LIB } }
/ive/hunold/packages/boost/tools/build/v2/build/virtual-target.jam:175: in actualize-no-scanner from module object(file-target)@317
/ive/hunold/packages/boost/tools/build/v2/build/virtual-target.jam:110: in object(file-target)@317.actualize from module object(file-target)@317
/ive/hunold/packages/boost/tools/build/v2/build-system.jam:169: in load from module build-system
/ive/hunold/src/bjam/../../packages/boost/tools/build/v2/kernel/modules.jam:259: in import from module modules
/ive/hunold/src/bjam/../../packages/boost/tools/build/v2/kernel/bootstrap.jam:120: in boost-build from module
/ive/hunold/src/bjam/boost-build.jam:3: in module scope from module

Compilation exited abnormally with code 1 at Wed Jun 23 12:22:57
 --Boundary-00=_vpV2AXSKJVLTE3G--


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