From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dani Moncayo Newsgroups: gmane.emacs.devel Subject: Re: Emacs pretest 24.0.92 Date: Thu, 1 Dec 2011 21:58:54 +0100 Message-ID: References: <87liqx5vjd.fsf@gnu.org> <20111201.114155.102623763.Takaaki.Ota@am.sony.com> <83hb1k3ufc.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1322773156 26602 80.91.229.12 (1 Dec 2011 20:59:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 1 Dec 2011 20:59:16 +0000 (UTC) Cc: Eli Zaretskii , cyd@gnu.org, emacs-devel@gnu.org To: "Ota, Takaaki" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 01 21:59:11 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RWDim-0000is-QW for ged-emacs-devel@m.gmane.org; Thu, 01 Dec 2011 21:59:08 +0100 Original-Received: from localhost ([::1]:52302 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWDim-0002JT-8y for ged-emacs-devel@m.gmane.org; Thu, 01 Dec 2011 15:59:08 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:56672) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWDih-00027Z-Ir for emacs-devel@gnu.org; Thu, 01 Dec 2011 15:59:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RWDig-0003KP-GN for emacs-devel@gnu.org; Thu, 01 Dec 2011 15:59:03 -0500 Original-Received: from mail-yw0-f41.google.com ([209.85.213.41]:51109) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWDiZ-0003Iv-Fy; Thu, 01 Dec 2011 15:58:55 -0500 Original-Received: by ywm14 with SMTP id 14so2766262ywm.0 for ; Thu, 01 Dec 2011 12:58:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=yb9AXTb8e8AgqCZNneSf8sa3pBhdCdlxvRi7URgRYUs=; b=Z1qrdiWjvSgogL61wL7FOKxizhF7WZxUZK/DcXTeQeIvPE1+yviZRTqboDMXT29Fx7 +SABPftQ8JLg8KYaGRwPK+UpmAi4VmeNYhowveeExnRAeRvrvsn6IrUFsE0jGJ3MX9kw VwpJkNK37lyDPZAnbVFKyZmZrrivdFvAmVy4Y= Original-Received: by 10.236.197.103 with SMTP id s67mr15240402yhn.5.1322773134921; Thu, 01 Dec 2011 12:58:54 -0800 (PST) Original-Received: by 10.236.161.201 with HTTP; Thu, 1 Dec 2011 12:58:54 -0800 (PST) In-Reply-To: <83hb1k3ufc.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.213.41 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:146405 Archived-At: >> When building under MinGW it always invoke an interactive cmd.exe and >> I always must exit manually to continue the building process. =A0See >> below. =A0The last line is the prompt where I need to type "exit" to get >> out of this interactive cmd.exe. > > Are you using the MSYS Bash? =A0If so, don't: it is not supported by the > native Emacs build, see nt/INSTALL. =A0(You can build without Bash, so > just removing sh.exe from PATH should be enough.) > >> cmd /c "fc /b gl-tmp globals.h >nul 2>&1 || cp -f gl-tmp globals.h" > > I'm guessing that the MSYS Bash converts "/c" into "C:/", which has > the effect that you see. I've had exactly this problem many times; even without using the MSYS bash; even removing sh.exe from PATH. Fortunately, there is a simple solution: Just use: * The native cmd.exe shell. * "mingw32-make" instead of "make". As Eli says, nt/INSTALL is the official reference for building Emacs on MS-Windows, but sometimes a concrete recipe makes life easier. So, FWIW, here's my current recipe for building Emacs for MS-Windows (feel free to use any parts of it): 0. Prerequisites: 0.1. Install MinGW, including its MSYS package (www.mingw.org). 0.2. Install Bazaar (bazaar.canonical.com). 0.3. Create the script [a]. 1. Invoke the script [a]. It will open up a console, to run the commands described below. 2. Change to the emacs' trunk directory: "cd %PATH_EMACS%\trunk". 3. Get the latest version of the source code: "bzr pull". 4. Chante to the "nt" subdirectory: "cd nt". 5. Configure the build: configure --without-png --without-jpeg --without-gif --without-tiff --without-xpm --without-gnutls --no-opt --enable-checking --cflags -fno-omit-frame-pointer "--cflags -fno-omit-frame-pointer" is for gcc version =3D 4.6.1, to avoid a bug in that gcc version. 6. Build Emacs from scratch: "mingw32-make bootstrap". 7. Build the info manuals: "mingw32-make info". 8. Install Emacs: "mingw32-make install". That's all. --- Footnotes: -------- [a] File "dev-env-console.cmd" (change the paths to suit your setup): -------------------------------------------------- @set PATH_EMACS=3DC:\emacs @set PATH_MINGW=3DC:\MinGW @set PATH_BAZAAR=3DC:\Program Files (x86)\Bazaar @set PATH_7Z=3DC:\Program Files\7-Zip @set PATH=3D%PATH_MINGW%\bin;%PATH_MINGW%\msys\1.0\bin;%PATH_BAZAAR%;%PATH_= 7Z%;%PATH_EMACS%\trunk\bin;%PATH% @cmd -------------------------------------------------- --=20 Dani Moncayo