Boost logo

Boost-Build :

From: Ren Zhi Zhang (icouldnotsee_at_[hidden])
Date: 2006-08-11 07:05:12


Hi Vladimir

Sorry I've been without the Internet for almost a week, so apologies for the
late reply! :-)

Yes, what you said is in fact correct! Upon examining the error output
from --debug-building, <define>ANYTHING is in fact missing from the second
hello target initiated by install, and that explains why I'm getting errors
about "Duplicate name of actual target".

So I think the more appropriate question to ask is that is it possible to
pass <define>ANYTHING to the install target, i.e. so <define>ANYTHING is
propagated? The Boost Build V2 User Manual clears states the <define> is
free feature and therefore it won't be propagate along build targets, but I'm
wondering if it's possible to work around it? Maybe through a feature or
technique that I've overlooked.

I'm pretty new to Boost Build and the jam language itself and so you for
your time and patients.

Ren Zhi

P.S. The following are the error outputs I get from --debug-building:

building project Jamfile</E:/My Projects/hello>
('object(project-target)@3') with <define>ANYTHING <variant>package
     Building target 'hello'
     Build request: <debug-symbols>off <define>ANYTHING <define>NDEBUG
<inlining>full <optimization>speed <runtime-debugging>off <variant>package
         Common properties are <asynch-exceptions>off <debug-store>object
<debug-symbols>off <define>ANYTHING <define>NDEBUG <exception-handling>on
<extern-c-nothrow>off <hardcode-dll-paths>true <inlining>full
<install-dependencies>off <link>shared <optimization>speed <os>NT
<profiling>off <rtti>on <runtime-debugging>off <runtime-link>shared
<stdlib>native <symlink-location>project-relative <threading>single
<toolset>msvc <user-interface>console <variant>package

     Building target 'package'
     Build request: <debug-symbols>off <define>ANYTHING <define>NDEBUG
<inlining>full <optimization>speed <runtime-debugging>off <variant>package
         Common properties are <asynch-exceptions>off <debug-store>object
<debug-symbols>off <define>ANYTHING <define>NDEBUG <exception-handling>on
<extern-c-nothrow>off <hardcode-dll-paths>false <inlining>full
<install-dependencies>off <link>shared <location>/hello <optimization>speed
<os>NT <profiling>off <rtti>on <runtime-debugging>off <runtime-link>shared
<stdlib>native <symlink-location>project-relative <threading>single
<toolset>msvc <user-interface>console <variant>package
         Building target 'hello'
         Build request: <asynch-exceptions>off <debug-store>object
<debug-symbols>off <define>NDEBUG <exception-handling>on
<extern-c-nothrow>off <inlining>full <link>shared <optimization>speed <os>NT
<profiling>off <rtti>on <runtime-debugging>off <runtime-link>shared
<stdlib>native <threading>single <toolset>msvc <variant>package
             Common properties are <asynch-exceptions>off
<debug-store>object <debug-symbols>off <define>NDEBUG <exception-handling>on
<extern-c-nothrow>off <hardcode-dll-paths>true <inlining>full
<install-dependencies>off <link>shared <optimization>speed <os>NT
<profiling>off <rtti>on <runtime-debugging>off <runtime-link>shared
<stdlib>native <symlink-location>project-relative <threading>single
<toolset>msvc <user-interface>console <variant>package

C:/Program Files/build/v2/build\virtual-target.jam:868: in
virtual-target.register-actual-name from module virtual-target
error: Duplicate name of actual target: <pbin\msvc\package>hello.exe
error: previous virtual target { msvc%msvc.link-hello.exe.EXE {
msvc%msvc.compile.c++-hello.obj.OBJ { hello.cpp.CPP } } }
error: created from ./hello
error: another virtual target { msvc%msvc.link-hello.exe.EXE {
msvc%msvc.compile.c++-hello.obj.OBJ { hello.cpp.CPP } } }
error: created from ./hello
error: added properties: none
error: removed properties: <define>ANYTHING
C:/Program Files/build/v2/build\virtual-target.jam:175: in
actualize-no-scanner from module object(file-target)@5
C:/Program Files/build/v2/build\virtual-target.jam:110: in
object(file-target)@5.actualize from module object(file-target)@5
C:/Program Files/build/v2/build\virtual-target.jam:693: in
actualize-source-type from module object(action)@3
C:/Program Files/build/v2/build\virtual-target.jam:714: in actualize-sources
from module object(action)@3
C:/Program Files/build/v2/build\virtual-target.jam:659: in
object(action)@3.actualize from module object(action)@3
C:/Program Files/build/v2/build\virtual-target.jam:287: in actualize-action
from module object(file-target)@6
C:/Program Files/build/v2/build\virtual-target.jam:182: in
actualize-no-scanner from module object(file-target)@6
C:/Program Files/build/v2/build\virtual-target.jam:110: in
object(file-target)@6.actualize from module object(file-target)@6
C:/Program Files/build/v2\build-system.jam:285: in load from module
build-system
C:\Program Files\build\v2/kernel\modules.jam:259: in import from module
modules
C:\Program Files\build\v2/kernel/bootstrap.jam:153: in boost-build from
module
C:\Program Files\build\v2\boost-build.jam:2: in module scope from module


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