Bug#996953: perl: make -j72 failing with a text file busy error

Niko Tyni ntyni at debian.org
Tue Mar 1 20:17:14 GMT 2022


Control: tag -1 patch confirmed

On Wed, Feb 16, 2022 at 12:57:11PM +0100, gyptazy at gyptazy.ch wrote:
 
> I can confirm this issue when rebuilding Perl on powerful systems. Multiple builds of ‚generate_uudmap.o‘ are
> created during the compile time and at some point it fails with:
> 
>     make -j88 […]
>     ./generate_uudmap uudmap.h bitcount.h mg_data.h
>     6584make[3]: ./generate_uudmap: Text file busy
>     6585make[3]: *** [Makefile:329: bitcount.h] Error 127
> 
> As a result, I patched the ‚rules‘ file to run ‚dh_auto_build‘ with ‚--no-parallel‘ option.

Thanks.

This seems to be a build system corner case that only happens when the
Configure run is split in two with -E and -S, which we do for the benefit
of cross builds.

I think it can be fixed by injecting a 'make depend' call at the end of
debian/config.debian, mimicking what Configure does when run "normally"
with -e. That would be preferrable to the dh --no-parallel workaround
as it would not slow the builds.

Could you please try if the attached patch fixes it?
-- 
Niko Tyni   ntyni at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-massively-parallel-builds-by-first-making-depend.patch
Type: text/x-diff
Size: 1065 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/perl-maintainers/attachments/20220301/a055245c/attachment-0001.patch>


More information about the Perl-maintainers mailing list