GNU bug report logs - #11854
maint: fix "make syntax-check -j" issue

Previous Next

Package: coreutils;

Reported by: Bernhard Voelker <mail <at> bernhard-voelker.de>

Date: Wed, 4 Jul 2012 07:27:02 UTC

Severity: wishlist

To reply to this bug, email your comments to 11854 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#11854; Package coreutils. (Wed, 04 Jul 2012 07:27:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Bernhard Voelker <mail <at> bernhard-voelker.de>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Wed, 04 Jul 2012 07:27:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Bernhard Voelker <mail <at> bernhard-voelker.de>
To: bug-coreutils <at> gnu.org
Subject: make syntax-check -j issue
Date: Wed, 04 Jul 2012 09:20:51 +0200
After pulling to the lastest revision (v8.17-37-g74427c7) and
a successful build (make -j), a subsequent "make syntax-check -j"
failed:

  ...
  8.47 vulnerable_makefile_CVE-2009-4029
  8.78 copyright_check
    CC     hostname.o
    CCLD   arch
    CCLD   arch
    CC     hostname.o
    CC     hostname.o
    CCLD   arch
  13.02 tight_scope
  15.36 THANKS_in_duplicates
  15.91 po_check
  mv: cannot move `.deps/hostname.Tpo' to `.deps/hostname.Po': No such file or directory
  make[1]: *** [hostname.o] Error 1
  make: *** [sc_check-AUTHORS] Error 2
  make: *** Waiting for unfinished jobs....
  mv: cannot stat `.deps/hostname.Tpo': No such file or directory
    CCLD   hostname
  make[1]: *** [hostname.o] Error 1
  make: *** [sc_man_file_correlation] Error 2

Another "make syntax-check -j" succeeded, i.e. there's some dependency
which is not taken care of for parallel syntax-check'ing.

I don't know CU's config scripts enough to know where to look at.
Any idea?

Have a nice day,
Berny




Information forwarded to bug-coreutils <at> gnu.org:
bug#11854; Package coreutils. (Thu, 05 Jul 2012 07:44:02 GMT) Full text and rfc822 format available.

Message #8 received at 11854 <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: Bernhard Voelker <mail <at> bernhard-voelker.de>
Cc: 11854 <at> debbugs.gnu.org
Subject: Re: bug#11854: make syntax-check -j issue
Date: Thu, 05 Jul 2012 09:38:33 +0200
Bernhard Voelker wrote:
> After pulling to the lastest revision (v8.17-37-g74427c7) and
> a successful build (make -j), a subsequent "make syntax-check -j"
> failed:
>
>   ...
>   8.47 vulnerable_makefile_CVE-2009-4029
>   8.78 copyright_check
>     CC     hostname.o
>     CCLD   arch
>     CCLD   arch
>     CC     hostname.o
>     CC     hostname.o
>     CCLD   arch
>   13.02 tight_scope
>   15.36 THANKS_in_duplicates
>   15.91 po_check
>   mv: cannot move `.deps/hostname.Tpo' to `.deps/hostname.Po': No such file or directory
>   make[1]: *** [hostname.o] Error 1
>   make: *** [sc_check-AUTHORS] Error 2
>   make: *** Waiting for unfinished jobs....
>   mv: cannot stat `.deps/hostname.Tpo': No such file or directory
>     CCLD   hostname
>   make[1]: *** [hostname.o] Error 1
>   make: *** [sc_man_file_correlation] Error 2
>
> Another "make syntax-check -j" succeeded, i.e. there's some dependency
> which is not taken care of for parallel syntax-check'ing.
>
> I don't know CU's config scripts enough to know where to look at.
> Any idea?

Yes, this is annoying.  I hit it pretty regularly, but haven't delved
into it enough to fix it.  The problem is that two rules are running
simultaneously to create arch and hostname, and that leads to a race in
automake's dependency-generating code.

One solution would be to make automake include $$ in that temporary
file name, e.g., .deps/hostname-$$.Tpo.  Then, it wouldn't matter if
two processes were to run that rule at the same time.

The problem arises only with arch and hostname because of their
special status (built but not installed), so another possible fix
is probably to adjust dependencies to ensure they're built before
running the offending rules.

A more aggressive solution would be to stop building those two
programs by default.




Severity set to 'wishlist' from 'normal' Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Mon, 15 Oct 2018 17:18:01 GMT) Full text and rfc822 format available.

Changed bug title to 'maint: fix "make syntax-check -j" issue' from 'make syntax-check -j issue' Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Mon, 15 Oct 2018 17:18:01 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 244 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.