Boost logo

Boost-Build :

From: Khassapov, Alex (Alex.Khassapov_at_[hidden])
Date: 2008-04-01 01:07:08


Hi Volodya!

As I said, the attached dtrace.jam file works in a test project, but
when I put it in production system, I get the " Duplicate name of actual
target" error. I attached the log files for both test and production
projects (with --debug-generators flag).

Can you find out what the problem is?

-----Original Message-----
From: boost-build-bounces_at_[hidden]
[mailto:boost-build-bounces_at_[hidden]] On Behalf Of Khassapov,
Alex
Sent: Monday, 31 March 2008 4:09 PM
To: Boost.Build developer's and user's list
Subject: Re: [Boost-build] Anybody implemented dtrace?

Thanks Volodya, you give me hope :-)

When I try a test project (in test Jamroot file) it seems to work as
expected, but when I add the dtrace stuff to my production Jamfile, I
get the following, any idea?:

dtrace-exe $(name)
    : client.cpp
      csv_client.cpp
      main.cpp
      server.cpp
      config.ac
      /liba/common
      /liba/configuration
      /liba/its
      #probes.d
    ;

/opt/boost-build/build/virtual-target.jam:996: in
virtual-target.register-actual-name from module virtual-target
error: Duplicate name of actual target:
<p/home/akhass/dev/build/5.10/dev01-mel/its_order_server/sun/dbg/lnk-stt
c/thrd-mlt>client.o
error: previous virtual target { sun%sun.compile.c++-client.o.OBJ {
client.cpp.CPP } }
error: created from ./its_order_server
error: another virtual target { sun%sun.compile.c++-client.o.OBJ {
client.cpp.CPP } }
error: created from ./its_order_server
error: added properties: none
error: removed properties: <dll-path>/opt/boost-1_33/lib
<dll-path>/opt/omex/omn/bin <dll-path>/usr/local/lib
<library-path>/opt/boost-1_33/lib <library-path>/opt/omex/omn/bin
<library-path>/usr/local/lib

-----Original Message-----
From: boost-build-bounces_at_[hidden]
[mailto:boost-build-bounces_at_[hidden]] On Behalf Of Vladimir Prus
Sent: Thursday, 27 March 2008 5:50 PM
To: boost-build_at_[hidden]
Subject: Re: [Boost-build] Anybody implemented dtrace?

Khassapov, Alex wrote:

> Thanks again!
>
> I'll try this. I just wonder how to pass the ".d" script to the
> generator? Add it ti the list of sources? dtrace needs the script (-s
> smth.d)

Yes, of course:

        type.register DTRACE_SCRIPT : d ;
        generators.register-composing dtrace.build : DTRACE_SCRIPT OBJ :
DTRACE_OBJ ;

appear to clearly state that the dtrace.build generator accepts the .d
source.
I have no logic to grab the .d source and put it in the right place on
the
command line, prepended by -s, but that should be easy.

You can also define new feature, like dtrace-script, and use it to pass
the
name of the script to the generator. This might be a bit cleaner than
fishing the .d source by a code.

- Volodya

_______________________________________________
Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost-build
_______________________________________________
Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost-build




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