[fixed][invalid] Parallel build fails

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
broucaries
Posts: 467
Joined: 2008-12-21T11:51:10-07:00

[fixed][invalid] Parallel build fails

Post 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
Last edited by broucaries on 2011-10-12T05:14:34-07:00, edited 1 time in total.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Parallel build fails

Post 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?
broucaries
Posts: 467
Joined: 2008-12-21T11:51:10-07:00

Re: Parallel build fails

Post 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
broucaries
Posts: 467
Joined: 2008-12-21T11:51:10-07:00

Re: Parallel build fails

Post by broucaries »

It was a debian side bug
Post Reply