GNU bug report logs -
#26471
Automake 1.15 generates a recheck target that depends on all, breaking parallel builds
Previous Next
To reply to this bug, email your comments to 26471 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-automake <at> gnu.org
:
bug#26471
; Package
automake
.
(Thu, 13 Apr 2017 05:16:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Seth Fowler <seth.fowler <at> me.com>
:
New bug report received and forwarded. Copy sent to
bug-automake <at> gnu.org
.
(Thu, 13 Apr 2017 05:16:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi folks,
I recently ran into what appears to be a bug in automake and I thought it would be a good idea to let you know.
We had noticed that running “make recheck -j8” if some source files were dirty would cause random build failures. The symptom was that the same file was getting built more than once by different make processes, which led to the resulting objects being corrupted. We’d see messages like this:
libtool: error: ‘foo.lo’ is not a valid libtool object
I dug into this a little and the root cause of the problem seems to be that unlike the other top-level targets generated by automake (check, install, etc.), recheck depends on “all” instead of “all-am”. “all” doesn’t declare very many dependencies - it just launches a new copy of make that builds “all-am”. Because recheck also depends on other targets (e.g. everything in check_PROGRAMS) which might depend on some of the same things as “all-am”, in a parallel build the original make process and the make process spawned by “all” can end up attempting to build the same targets.
I fixed this for our project by copying the generated recheck rule into our Makefile.am and replacing “all” with “all-am”. After doing this, I could no longer reproduce the problem with “make recheck -j8”.
It seems like that change should be made in automake itself. Or maybe I just missed something - I’m far from an automake guru. =)
Thanks,
- Seth
Information forwarded
to
bug-automake <at> gnu.org
:
bug#26471
; Package
automake
.
(Thu, 13 Apr 2017 13:53:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 26471 <at> debbugs.gnu.org (full text, mbox):
Hi Seth,
Seth Fowler <seth.fowler <at> me.com> writes:
> I recently ran into what appears to be a bug in automake and I thought it would be a good idea to let you know.
>
> We had noticed that running “make recheck -j8” if some source files
> were dirty would cause random build failures. The symptom was that the
> same file was getting built more than once by different make
> processes, which led to the resulting objects being corrupted. We’d
> see messages like this:
>
> libtool: error: ‘foo.lo’ is not a valid libtool object
>
> I dug into this a little and the root cause of the problem seems to be
> that unlike the other top-level targets generated by automake (check,
> install, etc.), recheck depends on “all” instead of “all-am”. “all”
> doesn’t declare very many dependencies - it just launches a new copy
> of make that builds “all-am”. Because recheck also depends on other
> targets (e.g. everything in check_PROGRAMS) which might depend on some
> of the same things as “all-am”, in a parallel build the original make
> process and the make process spawned by “all” can end up attempting to
> build the same targets.
>
> I fixed this for our project by copying the generated recheck rule
> into our Makefile.am and replacing “all” with “all-am”. After doing
> this, I could no longer reproduce the problem with “make recheck -j8”.
>
> It seems like that change should be made in automake itself. Or maybe I just missed something - I’m far from an automake guru. =)
Seems like a bug.
In order to properly fix this in Automake, we need to have a test
that allow us to reproduce the issue. Ideally you would provide
this test yourself by taking inspiration from:
https://git.savannah.gnu.org/cgit/automake.git/tree/t/libtool2.sh?h=micro
If you are not comfortable with doing that, a tarball or a link to a
repository containing a minimal automake project that allow us to
reproduce the bug manually is good enough.
Thanks for the report.
--
Mathieu Lirzin
GPG: F2A3 8D7E EB2B 6640 5761 070D 0ADE E100 9460 4D37
Added tag(s) moreinfo.
Request was from
Mathieu Lirzin <mthl <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Thu, 13 Apr 2017 13:55:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-automake <at> gnu.org
:
bug#26471
; Package
automake
.
(Fri, 19 Jan 2018 00:38:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 26471 <at> debbugs.gnu.org (full text, mbox):
Hi Seth,
Mathieu Lirzin <mthl <at> gnu.org> writes:
> Seth Fowler <seth.fowler <at> me.com> writes:
>
>> I recently ran into what appears to be a bug in automake and I thought it would be a good idea to let you know.
>>
>> We had noticed that running “make recheck -j8” if some source files
>> were dirty would cause random build failures. The symptom was that the
>> same file was getting built more than once by different make
>> processes, which led to the resulting objects being corrupted. We’d
>> see messages like this:
>>
>> libtool: error: ‘foo.lo’ is not a valid libtool object
>>
>> I dug into this a little and the root cause of the problem seems to be
>> that unlike the other top-level targets generated by automake (check,
>> install, etc.), recheck depends on “all” instead of “all-am”. “all”
>> doesn’t declare very many dependencies - it just launches a new copy
>> of make that builds “all-am”. Because recheck also depends on other
>> targets (e.g. everything in check_PROGRAMS) which might depend on some
>> of the same things as “all-am”, in a parallel build the original make
>> process and the make process spawned by “all” can end up attempting to
>> build the same targets.
>>
>> I fixed this for our project by copying the generated recheck rule
>> into our Makefile.am and replacing “all” with “all-am”. After doing
>> this, I could no longer reproduce the problem with “make recheck -j8”.
>>
>> It seems like that change should be made in automake itself. Or maybe I just missed something - I’m far from an automake guru. =)
>
> Seems like a bug.
Any news? Would be great if you could provide a way to reproduce this
issue.
Thanks.
--
Mathieu Lirzin
GPG: F2A3 8D7E EB2B 6640 5761 070D 0ADE E100 9460 4D37
Information forwarded
to
bug-automake <at> gnu.org
:
bug#26471
; Package
automake
.
(Fri, 23 Aug 2024 21:12:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 26471 <at> debbugs.gnu.org (full text, mbox):
Hi.
I've just noticed that bug #68860 (patched) may be a duplicate of
#26471. Different descriptions and error messages, but looks like the
same cause.
--
Regards - Bogdan ('bogdro') D. (GNU/Linux & FreeDOS)
X86 assembly (DOS, GNU/Linux): http://bogdro.evai.pl/index-en.php
Soft(EN): http://bogdro.evai.pl/soft http://bogdro.evai.pl/soft4asm
www.Xiph.org www.TorProject.org www.LibreOffice.org www.GnuPG.org
This bug report was last modified 293 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.