Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 174402 - sys-process/numactl-0.9.11 version bump + fix
Summary: sys-process/numactl-0.9.11 version bump + fix
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High enhancement (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-13 09:26 UTC by Andreas Herrmann
Modified: 2007-05-11 08:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild to provide version 0.9.10 of numactl (numactl-0.9.10.ebuild,1.79 KB, text/plain)
2007-04-13 09:32 UTC, Andreas Herrmann
Details
compile fix for package 0.9.10 (numactl-0.9.10-make-jobs.patch,510 bytes, patch)
2007-04-13 09:34 UTC, Andreas Herrmann
Details | Diff
ebuild providing version 0.9.11 of numactl (numactl-0.9.11.ebuild,1.79 KB, text/plain)
2007-04-13 09:35 UTC, Andreas Herrmann
Details
compile fix for package 0.9.11 (numactl-0.9.11-make-jobs.patch,510 bytes, patch)
2007-04-13 09:36 UTC, Andreas Herrmann
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Herrmann 2007-04-13 09:26:43 UTC
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).
Comment 1 Andreas Herrmann 2007-04-13 09:27:32 UTC
Herewith I provide new ebuilds containing a tiny patch to fix this.
The ebuilds provide numactl versions 0.9.10 and 0.9.11
Comment 2 Andreas Herrmann 2007-04-13 09:32:49 UTC
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
Comment 3 Andreas Herrmann 2007-04-13 09:34:44 UTC
Created attachment 116141 [details, diff]
compile fix for package 0.9.10
Comment 4 Andreas Herrmann 2007-04-13 09:35:36 UTC
Created attachment 116143 [details]
ebuild providing version 0.9.11 of numactl

It also applies a compile fix for proper compilation on MP systems.
Comment 5 Andreas Herrmann 2007-04-13 09:36:00 UTC
Created attachment 116144 [details, diff]
compile fix for package 0.9.11
Comment 6 Andreas Herrmann 2007-05-02 08:49:43 UTC
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
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-05-02 09:56:06 UTC
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.
Comment 8 Andreas Herrmann 2007-05-02 12:15:19 UTC
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
Comment 9 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-05-11 08:59:59 UTC
in cvs.