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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: coreutils; Severity: wishlist; Reported by: Bernhard Voelker <mail@HIDDEN>; dated Wed, 4 Jul 2012 07:27:02 UTC; Maintainer for coreutils is bug-coreutils@HIDDEN.
Changed bug title to 'maint: fix "make syntax-check -j" issue' from 'make syntax-check -j issue' Request was from Assaf Gordon <assafgordon@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Severity set to 'wishlist' from 'normal' Request was from Assaf Gordon <assafgordon@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 11854 <at> debbugs.gnu.org:


Received: (at 11854) by debbugs.gnu.org; 5 Jul 2012 07:43:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 05 03:43:28 2012
Received: from localhost ([127.0.0.1]:49584 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Smgim-0005ap-Ck
	for submit <at> debbugs.gnu.org; Thu, 05 Jul 2012 03:43:28 -0400
Received: from mx.meyering.net ([88.168.87.75]:41644)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <jim@HIDDEN>) id 1Smgij-0005ah-Oh
	for 11854 <at> debbugs.gnu.org; Thu, 05 Jul 2012 03:43:27 -0400
Received: from rho.meyering.net (rho.meyering.net [127.0.0.1])
	by rho.meyering.net (Acme Bit-Twister) with ESMTP id 4FBA4600BD;
	Thu,  5 Jul 2012 09:38:33 +0200 (CEST)
From: Jim Meyering <jim@HIDDEN>
To: Bernhard Voelker <mail@HIDDEN>
Subject: Re: bug#11854: make syntax-check -j issue
In-Reply-To: <4FF3EED3.9070305@HIDDEN> (Bernhard Voelker's
	message of "Wed, 04 Jul 2012 09:20:51 +0200")
References: <4FF3EED3.9070305@HIDDEN>
Date: Thu, 05 Jul 2012 09:38:33 +0200
Message-ID: <87pq8ay7wm.fsf@HIDDEN>
Lines: 48
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -1.9 (-)
X-Debbugs-Envelope-To: 11854
Cc: 11854 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.9 (-)

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.




Information forwarded to bug-coreutils@HIDDEN:
bug#11854; Package coreutils. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 4 Jul 2012 07:26:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 04 03:26:07 2012
Received: from localhost ([127.0.0.1]:46901 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1SmJyN-0002WB-IJ
	for submit <at> debbugs.gnu.org; Wed, 04 Jul 2012 03:26:07 -0400
Received: from eggs.gnu.org ([208.118.235.92]:55686)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <mail@HIDDEN>) id 1SmJyG-0002Vh-Rj
	for submit <at> debbugs.gnu.org; Wed, 04 Jul 2012 03:26:01 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mail@HIDDEN>) id 1SmJtZ-0008F4-8J
	for submit <at> debbugs.gnu.org; Wed, 04 Jul 2012 03:21:10 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI
	autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:48205)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mail@HIDDEN>) id 1SmJtZ-0008Ef-58
	for submit <at> debbugs.gnu.org; Wed, 04 Jul 2012 03:21:05 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33884)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mail@HIDDEN>) id 1SmJtU-0004Jd-Ji
	for bug-coreutils@HIDDEN; Wed, 04 Jul 2012 03:21:04 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mail@HIDDEN>) id 1SmJtP-0008CU-SK
	for bug-coreutils@HIDDEN; Wed, 04 Jul 2012 03:21:00 -0400
Received: from moutng.kundenserver.de ([212.227.126.171]:57366)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mail@HIDDEN>) id 1SmJtP-0008CA-Ij
	for bug-coreutils@HIDDEN; Wed, 04 Jul 2012 03:20:55 -0400
Received: from [192.168.2.108] (p4FF7660B.dip.t-dialin.net [79.247.102.11])
	by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis)
	id 0MYJ7N-1SHA5l43xx-00VB9B; Wed, 04 Jul 2012 09:20:53 +0200
Message-ID: <4FF3EED3.9070305@HIDDEN>
Date: Wed, 04 Jul 2012 09:20:51 +0200
From: Bernhard Voelker <mail@HIDDEN>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:13.0) Gecko/20120601 Thunderbird/13.0
MIME-Version: 1.0
To: bug-coreutils@HIDDEN
Subject: make syntax-check -j issue
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Provags-ID: V02:K0:/9FkND00AARWCcNPAUQaCHxT8X9KOfr+5mORf8zXc6V
	UJyUViRxs6NI8Zmtniq5xyyPcXfLsYNKxycn/etjpno8zGJMTz
	L50LiYOZapFfSkS+kg6rLeQWuNLAFUGHQntljW3Zop8MauZsAK
	aEGbIaVtjET985qnYGc6IfAR1HBLbPDS8NQGielLWRyQxIAjqP
	MRy9y/ElwncDVUdza/PKDvKbey4RPGcGeq0+pXYjFqbXgrGRTA
	bNfc8wcbHyvP252s15Ee1iMqkYaMUWhLmLtZD43iG6h4ThLbIU
	0zFrqdIx0AHDktVcqK8MTQ7ylw+2W5P/+TS8u28B4XBg1V8jtW
	qEi6Gr/wQVWsyh6zD5ZwapSCwtncedwuR13kPCMHq
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 208.118.235.17
X-Spam-Score: -6.9 (------)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.9 (------)

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




Acknowledgement sent to Bernhard Voelker <mail@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-coreutils@HIDDEN. Full text available.
Report forwarded to bug-coreutils@HIDDEN:
bug#11854; Package coreutils. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 15 Oct 2018 17:30:02 UTC

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