Bug 1619 - build speed of ns-3-dev is slow
build speed of ns-3-dev is slow
Status: RESOLVED WORKSFORME
Product: bake
Classification: Unclassified
Component: bake
unspecified
All Linux
: P5 major
Assigned To: Daniel Camara
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-04 11:34 UTC by Hajime Tazaki
Modified: 2013-04-23 23:53 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 Hajime Tazaki 2013-04-04 11:34:14 UTC
It seems that bake explicitly specified the value of "-j" option (default 1) even the command does not have the option. that makes './waf -j1' to build ns-3-dev while waf can detect the number of processors and internally assigns parallel jobs to speed up the build.
Comment 1 Tom Henderson 2013-04-19 16:56:20 UTC
this is resolved, correct?
Comment 2 Hajime Tazaki 2013-04-20 08:59:56 UTC
(In reply to comment #1)
> this is resolved, correct?

I think not yet.
As Daniel mentioned to change this behavior, I'm glad if we cloud include this fix in ns-3.17, if time frame permits.
Comment 3 Daniel Camara 2013-04-22 21:13:33 UTC
Fix at changeset 208
Comment 4 Hajime Tazaki 2013-04-22 22:20:33 UTC
using changeset:   210:9f23b7abe961

it seems inline modules should also be updated.

$ ../bake/bake.py --debug build -o iputils -vvv
 >> Building iputils -
cd /var/lib/jenkins/workspace/daily-net-next-sim/arch/sim/test/buildtop/source/iputils; patch -p1 < /var/lib/jenkins/workspace/daily-net-next-sim/arch/sim/test/buildtop/source/iputils/../ns-3-dce/myscripts/ns-3-dce-quagga/utils/iputils-ping6.patch
 > Patch problem: Ignoring patch, either the patch file does not exist or it was already applied!
 make CFLAGS=-fpic CFLAGS+=-D_GNU_SOURCE CFLAGS+=-g CFLAGS+=-Wstrict-prototypes CFLAGS+=-Wall LDFLAGS=-pie ping ping6 -j -1 dir=/var/lib/jenkins/workspace/daily-net-next-sim/arch/sim/test/buildtop/source/iputils
make: invalid option -- '1'
Usage: make [options] [target] ...
Options:
  -b, -m                      Ignored for compatibility.
  -B, --always-make           Unconditionally make all targets.
  -C DIRECTORY, --directory=DIRECTORY
                              Change to DIRECTORY before doing anything.
  -d                          Print lots of debugging information.
  --debug[=FLAGS]             Print various types of debugging information.  -e, --environment-overrides
                              Environment variables override makefiles.
  -f FILE, --file=FILE, --makefile=FILE
                              Read FILE as a makefile.
  -h, --help                  Print this message and exit.
  -i, --ignore-errors         Ignore errors from commands.
  -I DIRECTORY, --include-dir=DIRECTORY
                              Search DIRECTORY for included makefiles.
  -j [N], --jobs[=N]          Allow N jobs at once; infinite jobs with no arg.
Comment 5 Hajime Tazaki 2013-04-23 23:53:12 UTC
I temporary pushed the workaround. Daniel, please confirm it whether it works fine.

changeset 217	90e227cbe9e9