Bug 1303 - waf recompiles all the scripts in the scratch directory when adding a new one
waf recompiles all the scripts in the scratch directory when adding a new one
Status: RESOLVED WONTFIX
Product: ns-3
Classification: Unclassified
Component: build system
pre-release
All All
: P5 minor
Assigned To: Gustavo J. A. M. Carneiro
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-11-22 09:12 UTC by Eric Gamess
Modified: 2013-08-06 14:14 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Gamess 2011-11-22 09:12:13 UTC
Hello,

I just tried ns-3-dev (November 22, 2011). Just in
case, I am using Debian 6.0.3, but I think this bug is in
all platforms. Every time I compile a script in the
scratch directory, it compiles all the scripts in the
scratch directory.

Just do this simple experiment:
   cd ns-3-dev
   cp examples/tutorial/first.cc scratch/script1.cc
   ./waf --run scratch/script1
   # This compile scratch/script1.cc. It is OK.

   cp examples/tutorial/first.cc scratch/script2.cc
   ./waf --run scratch/script2
   # Now, this compile script1.cc and script2.cc.
   # It should only compile script2.cc.

   cp examples/tutorial/first.cc scratch/script3.cc
   ./waf --run scratch/script3
   # Now, this compile script1.cc, script2.cc, and script3.cc.
   # It should only compile script3.cc

Thank you.

Eric.
Comment 1 Gustavo J. A. M. Carneiro 2012-02-13 14:10:17 UTC
(In reply to comment #0)
> Hello,
> 
> I just tried ns-3-dev (November 22, 2011). Just in
> case, I am using Debian 6.0.3, but I think this bug is in
> all platforms. Every time I compile a script in the
> scratch directory, it compiles all the scripts in the
> scratch directory.
> 
> Just do this simple experiment:
>    cd ns-3-dev
>    cp examples/tutorial/first.cc scratch/script1.cc
>    ./waf --run scratch/script1
>    # This compile scratch/script1.cc. It is OK.
> 
>    cp examples/tutorial/first.cc scratch/script2.cc
>    ./waf --run scratch/script2
>    # Now, this compile script1.cc and script2.cc.
>    # It should only compile script2.cc.
> 


I reproduce this problem.  It sounds like a bug in WAF, which I have no time to fix.

However, if I modify script2 and then try to run it, WAF builds only script2 and none of the other scratch programs.  THis is not so bad.
Comment 2 Gustavo J. A. M. Carneiro 2012-02-20 07:08:49 UTC
Reducing severity: the problem occurs only when adding new programs to the scratch folder, not when modifying existing ones.  So it doesn't sound so big problem...
Comment 3 Tommaso Pecorella 2013-08-06 14:14:27 UTC
Documented "bugs" are called "features".
This is a feature.