From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: NT mingw/msys build problem Date: Wed, 27 Oct 2004 11:43:12 +0100 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <417F7BC0.7060208@gnu.org> References: <417CB924.8080107@wyrdrune.com> <417CC43A.40804@gnu.org> <417D8125.2020005@wyrdrune.com> <00ab01c4bc0a$b0c87ac0$0200a8c0@sedrcw11488> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1098873813 1867 80.91.229.6 (27 Oct 2004 10:43:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 27 Oct 2004 10:43:33 +0000 (UTC) Cc: Guy Gascoigne-Piggford , Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 27 12:43:25 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CMlH3-0008NV-00 for ; Wed, 27 Oct 2004 12:43:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CMlOn-0002cJ-BY for ged-emacs-devel@m.gmane.org; Wed, 27 Oct 2004 06:51:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CMlOf-0002bn-Qx for emacs-devel@gnu.org; Wed, 27 Oct 2004 06:51:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CMlOf-0002bB-01 for emacs-devel@gnu.org; Wed, 27 Oct 2004 06:51:17 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CMlOe-0002b8-Sf for emacs-devel@gnu.org; Wed, 27 Oct 2004 06:51:16 -0400 Original-Received: from [217.207.198.106] (helo=exchange.integrasp.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CMlG9-0004ko-AA for emacs-devel@gnu.org; Wed, 27 Oct 2004 06:42:29 -0400 Original-Received: from ASSP-nospam (localhost [127.0.0.1]) by exchange.integrasp.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id SBWN7XWF; Wed, 27 Oct 2004 11:42:26 +0100 Original-Received: from 192.168.111.196 ([192.168.111.196] helo=[192.168.111.196]) by ASSP-nospam ; 27 Oct 04 10:42:26 -0000 User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en Original-To: Lennart Borgman In-Reply-To: <00ab01c4bc0a$b0c87ac0$0200a8c0@sedrcw11488> X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:29034 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:29034 Lennart Borgman wrote: >I do not know how make works, but I can't avoid the hang when MSYS sh.exe is >in the path. The hang is caused by $(shell echo) in the make file. This does >not return since it runs "cmd echo" and that starts a new shell without >doing "echo". Actually it is bad syntax. The syntax for cmd is > > CMD [/X | /Y] [/A | /U] [/Q] [[/C | /K] string] > >You have to supply /C or /K for the string command to be carried out. (At >least this is the syntax on NT4 and I believe it has not changed.) > > > The $(shell COMMAND) macro should provide the correct arguments. That is the way cygwin and mingw32 make work, msys seems to be the only broken one in this regard. >I do not understand why the test is made. It seems like make has found sh >already but it still wonders something about "shell". Why does make do that? > > Make should know the shell already, but the Emacs makefiles do not. They need to do that test to find out. >So at the moment there is actually no other way to build Emacs on ms windows >than using Cygwin as far as I can see. > I use mingw and cmd.exe. The key is to stay clear of msys.