From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Lennart Borgman" Newsgroups: gmane.emacs.devel Subject: Re: NT mingw/msys build problem Date: Wed, 27 Oct 2004 11:50:42 +0200 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <00ab01c4bc0a$b0c87ac0$0200a8c0@sedrcw11488> References: <417CB924.8080107@wyrdrune.com> <417CC43A.40804@gnu.org> <417D8125.2020005@wyrdrune.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1098870773 25962 80.91.229.6 (27 Oct 2004 09:52:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 27 Oct 2004 09:52:53 +0000 (UTC) Cc: Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 27 11:52:38 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 1CMkTu-0004lG-00 for ; Wed, 27 Oct 2004 11:52:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CMkbd-0006kM-UD for ged-emacs-devel@m.gmane.org; Wed, 27 Oct 2004 06:00:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CMkbG-0006jQ-Fk for emacs-devel@gnu.org; Wed, 27 Oct 2004 06:00:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CMkbE-0006id-Ai for emacs-devel@gnu.org; Wed, 27 Oct 2004 06:00:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CMkbD-0006iT-Cs for emacs-devel@gnu.org; Wed, 27 Oct 2004 06:00:11 -0400 Original-Received: from [81.228.11.108] (helo=av1-2-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CMkTQ-0005K7-40; Wed, 27 Oct 2004 05:52:08 -0400 Original-Received: by av1-2-sn1.fre.skanova.net (Postfix, from userid 502) id 6703C37F39; Wed, 27 Oct 2004 11:52:07 +0200 (CEST) Original-Received: from smtp3-1-sn1.fre.skanova.net (smtp3-1-sn1.fre.skanova.net [81.228.11.163]) by av1-2-sn1.fre.skanova.net (Postfix) with ESMTP id 5715337E51; Wed, 27 Oct 2004 11:52:07 +0200 (CEST) Original-Received: from sedrcw11488 (t1o58p92.telia.com [62.20.164.92]) by smtp3-1-sn1.fre.skanova.net (Postfix) with SMTP id 8D02E37E43; Wed, 27 Oct 2004 11:52:05 +0200 (CEST) Original-To: "Jason Rumney" , "Guy Gascoigne-Piggford" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 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:29032 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:29032 ----- Original Message ----- From: "Jason Rumney" To: "Guy Gascoigne-Piggford" Cc: "Emacs Devel" Sent: Tuesday, October 26, 2004 1:09 AM Subject: Re: NT mingw/msys build problem : Guy Gascoigne-Piggford writes: : : > Hmm, when I try doing a "make SHELL=cmd.exe" all I get is make hanging : > indefinately. If I try to rename the msys /bin/sh.exe and just run : > make then I get a slew of errors about /bin/sh not existing and then : > make exits. : : I seem to recall that when I installed msys, it installed its own : version of make and renamed the previous copy as mingw-make. I renamed : it back, since it seems to be more reliable (but still requires the : SHELL=cmd.exe argument). 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.) 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? It still makes the test even if SHELL=cmd.exe is given as a parameter. I do not believe that everything can be done from with cmd.exe as the shell. The problem that Guy found with "./../bin/emacs.exe" -batch --no-init-file --no-site-file --multibyte -l autoload \ --eval '(setq find-file-hooks nil \ find-file-suppress-same-file-warnings t \ generated-autoload-file \ "c:/dev/emacs-src/emacs/lisp/loaddefs.el")' ... can not be resolved unless this is rewritten in some way. cmd.exe can't handle the parameters. The eval must be put in some temporary file that is loaded with " -load temporary-file" to solve this. Can this be done? Does make support doing this? 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. (And that might not be an option for all since it is a rather big download if I remember correctly.) Both MSYS and CMD.EXE fails because of parameter problems. (There might be some other shell for ms windows available that solves this problem but I am not aware of it. Someone knows?) - Lennart