Page 1 of 1

[fixed][invalid] Parallel build fails

Posted: 2011-04-21T05:10:39-07:00
by broucaries
According to http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=606297
I have seen this too. I am building on an 8 core xeon. If I use
DEB_BUILD_OPTIONS=parallel=8, then it almost never fails. If I use
DEB_BUILD_OPTIONS=parallel=16 then it almost always fails.

So there is some race condition in the imagemagick makefiles that makes
it not safe to build in parallel. The race is only triggered with enough
parallelism it seems. It seems it results in something trying to use
libMagick++.so before it is actually fully written.

I can provide logs from both a working parallel=8 and a broken parallel=16
run if that would help.

It fails on squeeze, wheezy and sid in the same way. This is absolutely
a problem in imagemagick's makefiles when doing parallel building in
my opinion. Having found other similar reports from gentoo users and
others where it failed to build with more parallelism in the past seems
to agree with that.

The simple fix of course is to not use parallel building. A real fix
would involve getting upstreams makefiles fixed.
You could try to reproduce using make -j32

Re: Parallel build fails

Posted: 2011-04-21T05:23:31-07:00
by magick
We tried 'make -j32' against ImageMagick 6.6.9-5 the current release on a quad-core (Fedora 15) and a 8-core system (Redhat Enterprise 5.5). GNU make was @ 3.80 (Redhat 5.5) and 3.82 (Fedora 15). We repeated the build 20 times on each system and the build completed without complaint. We used 'configure' to configure the distribution. Is there a specific set of configure parameter we should try to reproduce the problem?

Re: Parallel build fails

Posted: 2011-04-21T05:31:50-07:00
by broucaries
Do not achieve to reproduce myself but it is the fourth time somebody achieve to reproduce at debian.

You could try to install a debian chroot see http://doc.fedora-fr.org/wiki/Utilisati ... ebootstrap (unfortunatly in french) Search debootstrap and

on the chroot do:
apt-get build-dep imagemagick
apt-get source imagemagick
export DEB_BUILD_OPTIONS=parallel=16; dpkg-buildpackage

Bastien

Re: Parallel build fails

Posted: 2011-10-03T06:39:41-07:00
by broucaries
It was a debian side bug