On Sun, Apr 05, 2015 at 09:40:22AM -0400, Christos Zoulas wrote: > Hmm, it is building things twice... I am trying to figure out why but I can't > reproduce it.
Not sure, but it basically fails for me on all build machines if using low values for -j. I can get past it by doing a cleandir and dependall without -j. Also below is a log of a non-cleandir'd build failing, but that looks mostly the same now. Martin dependall ===> tools/lint1 --- ./cgram.c --- --- cgram.c --- --- ./cgram.c --- # yacc lint1/./cgram.c /usr/tools/bin/nbyacc -d -o ./cgram.c /usr/src/tools/lint1/../../usr.bin/xlint/lint1/cgram.y --- cgram.c --- # yacc lint1/cgram.c /usr/tools/bin/nbyacc -d -o cgram.c /usr/src/tools/lint1/../../usr.bin/xlint/lint1/cgram.y --- ./cgram.c --- /usr/tools/bin/nbyacc: 78 shift/reduce conflicts. --- cgram.c --- /usr/tools/bin/nbyacc: 78 shift/reduce conflicts. --- ./cgram.c --- echo '#if HAVE_NBTOOL_CONFIG_H' > ./cgram.c.1 --- cgram.c --- echo '#if HAVE_NBTOOL_CONFIG_H' > cgram.c.1 --- ./cgram.c --- echo '#include "nbtool_config.h"' >> ./cgram.c.1 --- cgram.c --- echo '#include "nbtool_config.h"' >> cgram.c.1 echo '#endif' >> cgram.c.1 cat cgram.c >> cgram.c.1 --- ./cgram.c --- echo '#endif' >> ./cgram.c.1 cat ./cgram.c >> ./cgram.c.1 --- cgram.c --- mv cgram.c.1 cgram.c --- ./cgram.c --- mv ./cgram.c.1 ./cgram.c --- cgram.c --- mv: rename cgram.c.1 to cgram.c: No such file or directory *** [cgram.c] Error code 1 nbmake[5]: stopped in /usr/src/tools/lint1 1 error nbmake[5]: stopped in /usr/src/tools/lint1 *** Failed target: dependall-lint1 *** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="tools/"; real="/usr/src/tools" ;; *) this="tools/${dir}/"; real="/usr/src/tools/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget lint1 dependall *** Error code 2