numactl-0.9.9 does not properly build on multiprocessor systems with MAKEOPTS=-jX and X>=2. Reproducible: Always Steps to Reproduce: 1. use multiprocessor system 2. set MAKEOPTS="-j2" 3. issue 'USE="doc" emerge numactl' Actual Results: ... x86_64-pc-linux-gnu-gcc -shared -Wl,-soname=libnuma.so.1 -o libnuma.so.1 libnuma.o syscall.o distance.o mkdir: cannot create directory `html': File exists groff -Thtml -man numa.3 > html/numa.html make: *** [html/numactl.html] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: sys-process/numactl-0.9.9 failed. Expected Results: no errors Furthermore there are no ebuilds for more recent versions of numactl (0.9.10, 0.9.11).
Herewith I provide new ebuilds containing a tiny patch to fix this. The ebuilds provide numactl versions 0.9.10 and 0.9.11
Created attachment 116140 [details] ebuild to provide version 0.9.10 of numactl It also applies a tiny compile fix to allow for proper build on MP systems
Created attachment 116141 [details, diff] compile fix for package 0.9.10
Created attachment 116143 [details] ebuild providing version 0.9.11 of numactl It also applies a compile fix for proper compilation on MP systems.
Created attachment 116144 [details, diff] compile fix for package 0.9.11
It's a shame! numactl 0.9.10 is now available but w/o fixing the build problem. Doing # cd /usr/portage/sys-process/numactl-0.9.10 # ebuild numactl-0.9.10.ebuild unpack # cd /var/tmp/.../work/numactl-0.9.10 # make html -j 2 if [ ! -d html ] ; then mkdir html ; fi if [ ! -d html ] ; then mkdir html ; fi groff -Thtml -man numactl.8 > html/numactl.html mkdir: cannot create directory `html': File exists make: *** [html/numa.html] Error 1 make: *** Waiting for unfinished jobs.... This means that with certain propability emerges will stop when it comes to compilation of numactl on multiprocessor system. I do not understand why a new version of numactl is provided at all if the build problem is not fixed. And what about version 0.9.11? Regards, Andreas
sorry, this bug slipped past me. i did the bump based on meatoo: http://meatoo.gentooexperimental.org/search/long/numactl/pn my box with -j4 didn't reproduce it, but I do see why it could happen. i'll stick your patch in with 0.9.11 shortly.
OK, thanks a lot!! BTW, on my 2 and 4 CPU systems it is best reproducible when doing "make -j 2 html" in the unpacked source tree directly. (And of course it just can happen using more than 1 CPU.) When using "emerge numactl" it just happens occasionally. But it is quite annoying when this problem occurs during "emerge -eav world" or "emerge -uD world" and thus prevents compilation of lots of other packages. Regards, Andreas
in cvs.