From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#12955: 24.3.50; Build process on MS-Windows: sometimes needs "human intervention" Date: Thu, 22 Nov 2012 05:41:27 +0200 Message-ID: <83a9uauwwo.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1353555769 18143 80.91.229.3 (22 Nov 2012 03:42:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Nov 2012 03:42:49 +0000 (UTC) Cc: 12955@debbugs.gnu.org To: Dani Moncayo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 22 04:43:00 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TbNgp-0006nM-BX for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Nov 2012 04:42:59 +0100 Original-Received: from localhost ([::1]:53326 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbNge-0002E6-Sa for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Nov 2012 22:42:48 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:35382) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbNgc-0002Dv-5r for bug-gnu-emacs@gnu.org; Wed, 21 Nov 2012 22:42:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TbNgb-0008VE-2k for bug-gnu-emacs@gnu.org; Wed, 21 Nov 2012 22:42:46 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49820) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbNga-0008V7-VR for bug-gnu-emacs@gnu.org; Wed, 21 Nov 2012 22:42:45 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TbNhq-0007v2-JA for bug-gnu-emacs@gnu.org; Wed, 21 Nov 2012 22:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Nov 2012 03:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12955 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12955-submit@debbugs.gnu.org id=B12955.135355578830374 (code B ref 12955); Thu, 22 Nov 2012 03:44:02 +0000 Original-Received: (at 12955) by debbugs.gnu.org; 22 Nov 2012 03:43:08 +0000 Original-Received: from localhost ([127.0.0.1]:60071 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TbNgx-0007tr-Qw for submit@debbugs.gnu.org; Wed, 21 Nov 2012 22:43:08 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:35021) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TbNgt-0007tg-Dd for 12955@debbugs.gnu.org; Wed, 21 Nov 2012 22:43:05 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MDV00400E86EN00@a-mtaout22.012.net.il> for 12955@debbugs.gnu.org; Thu, 22 Nov 2012 05:41:43 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MDV004W9E9I7540@a-mtaout22.012.net.il>; Thu, 22 Nov 2012 05:41:43 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:67299 Archived-At: > Date: Wed, 21 Nov 2012 21:49:53 +0100 > From: Dani Moncayo > > Sometimes, when building the trunk on MS-Windows, the make process get > stuck when this like of `src/makefile' is executed: > > cmd /c "fc /b gl-tmp globals.h >nul 2>&1 || $(CP) gl-tmp globals.h" > > What happens is that a new cmd.exe session is open and waiting for > input, when the expected behavior for that session is to execute the > command between double quotes and exit. So I have to copy&paste the > command, execute it and exit the cmd session so that the build process > can continue. > > This problem is known to Eli, Juanma and those who build Emacs on > Windows, and is related to MSYS and the translation it performs with > filesystem paths ("/c" is translated to "c:\" for example). > > If you have MSYS installed in your system, it is easy to reproduce the problem: > 1. Open a cmd.exe console. > 2. Run: sh (to start a bash session). > 3. Run: cmd /c "dir". > > --> A new cmd session is created, it is waiting for input and the > "dir" command has not been executed. > > Fortunately, I just found a solution for this: just remove the space > between the `/c' and the double quote: > 3. Run: cmd /c"dir". > > --> This time the cmd session executes the "dir" command and then > ends, returning control to the bash session. Sorry, I don't want to do this. This might work now, but it does so by pure luck, and might break in some future version of cmd, because there _should_ be a space between /c and the command that follows. The solution to this is simple: don't involve MSYS in building the native port of Emacs. It boils down to removing MSYS from PATH in the shell window where you run the build scripts.