Created attachment 245305 [details] issue screenshot I'm building firefox using poudriere, which sets DISABLE_MAKE_JOBS=poudriere (and this results in MAKE_JOBS_NUBMER=1), however firefox ignores that and runs rustc*ncpu.
Created attachment 245306 [details] poudriere build log
Created attachment 245400 [details] A screenshot of gkrellm, gstat, zfs-mon, and systat, during a poudriere-devel build of mail/thunderbird Remarkable, in the gkrellm window: rustc, cargo, rustc. This shot was taken during a build of mail/thunderbird. Can we reasonably assume that this bug is not limited to www/firefox, and that it affects some (or many) people? % grep ALLOW_MAKE /usr/local/etc/poudriere.conf | grep -v \# ALLOW_MAKE_JOBS=no ALLOW_MAKE_JOBS_PACKAGES="ccache pkg py* nvidia-driver-470" %
(In reply to Graham Perrin from comment #2) I suppose at least everything using Mk/bsd.gecko.mk affected. Perhaps something using Mk/Uses/cargo.mk too.
With my experience, everything written in rust (means that use rustc on build) are affected. It seems that rustc spawns sub rustc regardless settings in Makefile. And more, possibly rustc itself is multi-threaded.
Created attachment 248429 [details] dirty hack to fix this Tried lot's of different things, including MOZ_EXPORT, but nothing worked. Except MAKE_ENV, so here's the patch.