[sane-devel] backends not -j safe
hostcc at gmail.com
Tue Jun 12 06:41:09 UTC 2007
On 6/8/07, Greg Troxel <gdt at ir.bbn.com> wrote:
> I've investigated further, and found another directory that fails due to
> the build of a .o not being finished before the ar/ranlib rule to make a
> .a. If I run BSD make with -j4 I can't get it to fail. But with GNU
> make -j4, it fails pretty regularly. This is gmake 3.81 on NetBSD
> 4.0_BETA2 on i386 on a single processor machine.
> The problem occurs in sane-backends-1.0.18/lib.
> The bug is that libtool --mode=compile will build not only the shared
> .lo but the unshared .o as well. After make ensures that the .o is
> built, and goes on to run the rules to get the .lo, it then feels free
> to run the .o->.a rule in parallel, and this can lose as a .o is
> I can explain further if this is not adequately clear.
Thank you for the report, I've also faced with the problem. Just
commited the fix into the CVS.
More information about the sane-devel