Bugzilla – Bug 1619
build speed of ns-3-dev is slow
Last modified: 2013-04-23 23:53:12 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.
this is resolved, correct?
(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.
Fix at changeset 208
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.
I temporary pushed the workaround. Daniel, please confirm it whether it works fine. changeset 217 90e227cbe9e9