[fixed][invalid] Parallel build fails
Posted: 2011-04-21T05:10:39-07:00
According to http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=606297
You could try to reproduce using make -j32I 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.