From debbugs-submit-bounces@debbugs.gnu.org Thu May 05 10:53:51 2011 Received: (at submit) by debbugs.gnu.org; 5 May 2011 14:53:51 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QHzw7-0001ph-AZ for submit@debbugs.gnu.org; Thu, 05 May 2011 10:53:51 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QHzw4-0001pT-Gl for submit@debbugs.gnu.org; Thu, 05 May 2011 10:53:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QHzvy-0007Ra-Pp for submit@debbugs.gnu.org; Thu, 05 May 2011 10:53:43 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:35391) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHzvy-0007RW-NR for submit@debbugs.gnu.org; Thu, 05 May 2011 10:53:42 -0400 Received: from eggs.gnu.org ([140.186.70.92]:55782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHzvx-0003ax-PN for bug-automake@gnu.org; Thu, 05 May 2011 10:53:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QHzvw-0007R9-VB for bug-automake@gnu.org; Thu, 05 May 2011 10:53:41 -0400 Received: from mx.meyering.net ([82.230.74.64]:51156) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHzvw-0007Qx-NE for bug-automake@gnu.org; Thu, 05 May 2011 10:53:40 -0400 Received: by rho.meyering.net (Acme Bit-Twister, from userid 1000) id 977A9600DF; Thu, 5 May 2011 16:53:39 +0200 (CEST) From: Jim Meyering To: bug-automake@gnu.org Subject: build-aux/compile: avoid race condition failure Date: Thu, 05 May 2011 16:53:39 +0200 Message-ID: <87bozhjj0s.fsf@rho.meyering.net> Lines: 3 MIME-Version: 1.0 Content-Type: text/plain 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: 140.186.70.17 X-Spam-Score: -6.0 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.0 (------) Is there any reason not to make the compile script accommodate (in a race-free manner) situations like the one described in http://debbugs.gnu.org/8616 ? From debbugs-submit-bounces@debbugs.gnu.org Thu May 05 15:07:00 2011 Received: (at 8621) by debbugs.gnu.org; 5 May 2011 19:07:00 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QI3t6-0003FF-Ae for submit@debbugs.gnu.org; Thu, 05 May 2011 15:07:00 -0400 Received: from mail.lysator.liu.se ([130.236.254.3]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QI3t2-0003F1-VH for 8621@debbugs.gnu.org; Thu, 05 May 2011 15:06:58 -0400 Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id AF4B14000E; Thu, 5 May 2011 21:06:50 +0200 (CEST) Received: from [192.168.0.33] (h57n3fls301o1095.telia.com [81.230.178.57]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id 4CF234000B; Thu, 5 May 2011 21:06:50 +0200 (CEST) Message-ID: <4DC2F548.4090002@lysator.liu.se> Date: Thu, 05 May 2011 21:06:48 +0200 From: Peter Rosin User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: Jim Meyering Subject: Re: bug#8621: build-aux/compile: avoid race condition failure References: <87bozhjj0s.fsf@rho.meyering.net> In-Reply-To: <87bozhjj0s.fsf@rho.meyering.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: 8621 Cc: 8621@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.0 (---) Den 2011-05-05 16:53 skrev Jim Meyering: > Is there any reason not to make the compile script > accommodate (in a race-free manner) situations like > the one described in http://debbugs.gnu.org/8616 ? Yes, I can think of a couple. When the compile script is used to wrap MSVC (aka cl.exe), I think the generated debug info will point to the actual source file, and if the source file used to build the executable is gone when it's time to debug it will be a less than stellar experience. I imagine this problem to exist for other toolchains as well? It's also currently not very easy to override LN_S and MSVC does not understand the symlinks generated by Cygwin, so symlinking is not a favorite (at least not for the case where Cygwin is used to drive a MSVC build). That said, it's of course better to have any build at all, even though the debugging experience is not 100% and the LN_S override trouble can be fixed (and worked around until it's fixed, IIRC). I would prefer a solution that doesn't add more pain for the MSVC case though. Cheers, Peter From debbugs-submit-bounces@debbugs.gnu.org Thu May 05 15:28:07 2011 Received: (at 8621) by debbugs.gnu.org; 5 May 2011 19:28:07 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QI4DW-0003hG-Jp for submit@debbugs.gnu.org; Thu, 05 May 2011 15:28:06 -0400 Received: from mx1.redhat.com ([209.132.183.28]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QI4DP-0003gg-OW for 8621@debbugs.gnu.org; Thu, 05 May 2011 15:28:05 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p45JRs5r026916 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 5 May 2011 15:27:54 -0400 Received: from [10.3.113.2] ([10.3.113.2]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p45JRr08011344; Thu, 5 May 2011 15:27:53 -0400 Message-ID: <4DC2FA39.5020701@redhat.com> Date: Thu, 05 May 2011 13:27:53 -0600 From: Eric Blake Organization: Red Hat User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.10 MIME-Version: 1.0 To: Peter Rosin Subject: Re: bug#8621: build-aux/compile: avoid race condition failure References: <87bozhjj0s.fsf@rho.meyering.net> <4DC2F548.4090002@lysator.liu.se> In-Reply-To: <4DC2F548.4090002@lysator.liu.se> X-Enigmail-Version: 1.1.2 OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig997C371F274CF3CD447BA9AF" X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-Spam-Score: -10.3 (----------) X-Debbugs-Envelope-To: 8621 Cc: Jim Meyering , 8621@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -10.3 (----------) This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig997C371F274CF3CD447BA9AF Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 05/05/2011 01:06 PM, Peter Rosin wrote: > Den 2011-05-05 16:53 skrev Jim Meyering: >> Is there any reason not to make the compile script >> accommodate (in a race-free manner) situations like >> the one described in http://debbugs.gnu.org/8616 ? >=20 > Yes, I can think of a couple. When the compile script > is used to wrap MSVC (aka cl.exe), I think the generated > debug info will point to the actual source file, and if > the source file used to build the executable is gone when > it's time to debug it will be a less than stellar > experience. I imagine this problem to exist for other > toolchains as well? It's also currently not very easy to > override LN_S and MSVC does not understand the symlinks > generated by Cygwin, so symlinking is not a favorite (at > least not for the case where Cygwin is used to drive a > MSVC build). Is that true even in the face of #line directives? That is, instead of linking the file, could you create a temporary file that has appropriate directives prepended to the content of the original file so that debug information tracks back to the original file name but where the compilation to -o is still independent of the original file? --=20 Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org --------------enig997C371F274CF3CD447BA9AF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJNwvo5AAoJEKeha0olJ0NqmFEH+wedz0HK+RkO7we9RwDom4MU Eoj4VixIM/HhIgCOg2Cct53EWOQVUcxhTD9WaJrNLj+8T9fWlpOR41yqs1zdavgE 40yFMvNExynLgdIgfs5uQuP0LsnatL/4Ademf/LdHJcYSnbLNszkz0KxdrT35Jpn y8LEIm8lXNBdov1xBxVNW+8+RxewIXPos99dOCvp79HnpIPpLOPi/Vb3HZcjjaKc YlbhRW+YPZS1Wf92F5PgXSJaeI543DQAA3DVY/FSwzB78ATSs++LhV/R336IX1ax qgldXnmVdRd0aulHJrc0qMJ6z4ijNLuFGPuq+WC0zg1/3Nwpr7hBwN3z1d9My68= =cwSP -----END PGP SIGNATURE----- --------------enig997C371F274CF3CD447BA9AF-- From debbugs-submit-bounces@debbugs.gnu.org Thu May 05 17:09:44 2011 Received: (at 8621) by debbugs.gnu.org; 5 May 2011 21:09:44 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QI5ns-0005to-Hg for submit@debbugs.gnu.org; Thu, 05 May 2011 17:09:44 -0400 Received: from mail.lysator.liu.se ([130.236.254.3]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QI5nq-0005tb-Ig for 8621@debbugs.gnu.org; Thu, 05 May 2011 17:09:43 -0400 Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id CC9364000E; Thu, 5 May 2011 23:09:36 +0200 (CEST) Received: from [192.168.0.33] (h57n3fls301o1095.telia.com [81.230.178.57]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id 6FC084000B; Thu, 5 May 2011 23:09:36 +0200 (CEST) Message-ID: <4DC3120F.2060906@lysator.liu.se> Date: Thu, 05 May 2011 23:09:35 +0200 From: Peter Rosin User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: Eric Blake Subject: Re: bug#8621: build-aux/compile: avoid race condition failure References: <87bozhjj0s.fsf@rho.meyering.net> <4DC2F548.4090002@lysator.liu.se> <4DC2FA39.5020701@redhat.com> In-Reply-To: <4DC2FA39.5020701@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 8621 Cc: 8621@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) Den 2011-05-05 21:27 skrev Eric Blake: > On 05/05/2011 01:06 PM, Peter Rosin wrote: >> Den 2011-05-05 16:53 skrev Jim Meyering: >>> Is there any reason not to make the compile script >>> accommodate (in a race-free manner) situations like >>> the one described in http://debbugs.gnu.org/8616 ? >> >> Yes, I can think of a couple. When the compile script >> is used to wrap MSVC (aka cl.exe), I think the generated >> debug info will point to the actual source file, and if >> the source file used to build the executable is gone when >> it's time to debug it will be a less than stellar >> experience. I imagine this problem to exist for other >> toolchains as well? It's also currently not very easy to >> override LN_S and MSVC does not understand the symlinks >> generated by Cygwin, so symlinking is not a favorite (at >> least not for the case where Cygwin is used to drive a >> MSVC build). > > Is that true even in the face of #line directives? That is, instead of > linking the file, could you create a temporary file that has appropriate > directives prepended to the content of the original file so that debug > information tracks back to the original file name but where the > compilation to -o is still independent of the original file? I tested it and #line works. I did this to test: $ cat << EOF > foo.c #include int main(void) { int i; for (i = 0; i < 1000; ++i) Sleep(120); return 0; } EOF $ echo "#line 1 \"foo.c\"" > foo-random.c $ cat foo.c >> foo-random.c $ cl -MD -Zi -c foo-random.c $ cl -MD -Zi -Fefoo.exe foo-random.obj $ ./foo I then attached the debugger to the running process and it gave me foo.c and I could single step etc. It keeps working even if I remove foo-random.c. So there is a path forward, but it seems a bit convoluted. It would perhaps be better if compile could be convinced to use the options -Fe and -Fo as appropriate when it sees -o (for executables and objects respectively) in the case of MSVC? Cheers, Peter From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 11 12:38:41 2012 Received: (at 8621) by debbugs.gnu.org; 11 Jan 2012 17:38:41 +0000 Received: from localhost ([127.0.0.1]:54011 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rl28H-0004EY-9Y for submit@debbugs.gnu.org; Wed, 11 Jan 2012 12:38:41 -0500 Received: from mail-wi0-f172.google.com ([209.85.212.172]:64697) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rl28E-0004EN-TN; Wed, 11 Jan 2012 12:38:40 -0500 Received: by wibhj6 with SMTP id hj6so642209wib.3 for ; Wed, 11 Jan 2012 09:38:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=RrHX3QLuzDzIeLlXK34IBwtg/YBQQE8RvlABCiTgEak=; b=mNofGMd9dZxMl63488ZWwU3zqTa/5C6974sqcNaa1WmKP5x8qrvIDNcrLcaibG75CB 1ofXGPdR1rKiS9vnxll1gywVq26K1aGdozl8tXvUaW0ElJKk5dfJsDacJnjqbxzjgSQf 2/Y5Ups3GHXAvk06YbeUy4TQniW2YE5AK/YbI= Received: by 10.180.83.231 with SMTP id t7mr241854wiy.20.1326303491663; Wed, 11 Jan 2012 09:38:11 -0800 (PST) Received: from [87.2.103.210] (host210-103-dynamic.2-87-r.retail.telecomitalia.it. [87.2.103.210]) by mx.google.com with ESMTPS id a6sm5039285wiy.6.2012.01.11.09.38.10 (version=SSLv3 cipher=OTHER); Wed, 11 Jan 2012 09:38:10 -0800 (PST) Message-ID: <4F0DC900.6020100@gmail.com> Date: Wed, 11 Jan 2012 18:38:08 +0100 From: Stefano Lattarini MIME-Version: 1.0 To: Peter Rosin Subject: Re: bug#8621: build-aux/compile: avoid race condition failure References: <87bozhjj0s.fsf@rho.meyering.net> <4DC2F548.4090002@lysator.liu.se> <4DC2FA39.5020701@redhat.com> <4DC3120F.2060906@lysator.liu.se> In-Reply-To: <4DC3120F.2060906@lysator.liu.se> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 8621 Cc: Eric Blake , Jim Meyering , 8621@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) severity minor 8621 tags wontfix 8621 close 8621 thanks Reference: Regarding this bug, Jim Meyering has wrote in a (off-list) reply: > > I'm not terribly concerned about that, since it impacts only the > few people who are stuck using inferior compilers, and who insist > on building in parallel, *and* for the few projects where the same > source file ends up being compiled to two or more .o files. > > A very small user base. And Peter Rosin has replied (again, off-list): > > For the MSVC case and a sufficiently new compile script (i.e. the one > on master or branch-1.11, but not the one on maint), -Fe and -Fo are > used as mentioned in the last post in the bug (#14), so MSVC is no > longer affected and I hereby retract my concern. > I'm thus marking this bug as "wontfix", and closing it. Hopefully, the affected inferior compilers will die out anyway (the sooner the better). Regards, Stefano From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 11 12:47:57 2012 Received: (at control) by debbugs.gnu.org; 11 Jan 2012 17:47:57 +0000 Received: from localhost ([127.0.0.1]:54045 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rl2HD-0005DP-Fe for submit@debbugs.gnu.org; Wed, 11 Jan 2012 12:47:56 -0500 Received: from mail-we0-f172.google.com ([74.125.82.172]:33482) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rl2HA-0005DI-R3 for control@debbugs.gnu.org; Wed, 11 Jan 2012 12:47:53 -0500 Received: by werb14 with SMTP id b14so859262wer.3 for ; Wed, 11 Jan 2012 09:47:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:mime-version:to:subject:content-type :content-transfer-encoding; bh=tW+qVGwthdEpxLGCzAvGuN1nhC4x5bQ1SKfJ6gCvifs=; b=cQ9sjOZ4hW5SRJb4hNeJI5pL3MnV1T+Q37TQEHR2Duk1nPO5/sk5QTKArSFWBAVTh9 uJk0ZZsV8HwpOUqf0uyLFwJqrcA/+bQdtesF31zZO8QW0bhS7ILoieYJajWJtlY7Sptx Uwd0un+HF39R0Tx2w3N8yfVZxdJ5bLYrGx5Bs= Received: by 10.216.135.159 with SMTP id u31mr3270003wei.2.1326304045717; Wed, 11 Jan 2012 09:47:25 -0800 (PST) Received: from [87.2.103.210] (host210-103-dynamic.2-87-r.retail.telecomitalia.it. [87.2.103.210]) by mx.google.com with ESMTPS id r1sm5060400wia.8.2012.01.11.09.47.23 (version=SSLv3 cipher=OTHER); Wed, 11 Jan 2012 09:47:24 -0800 (PST) Message-ID: <4F0DCB2A.8070005@gmail.com> Date: Wed, 11 Jan 2012 18:47:22 +0100 From: Stefano Lattarini MIME-Version: 1.0 To: control@debbugs.gnu.org Subject: x Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) severity 8621 minor tags 8621 wontfix thanks From unknown Thu Sep 11 04:03:44 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 09 Feb 2012 12:24:02 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator