From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#28601: 26.0.50; configure: error: Emacs does not support 'x86_64-pc-msys' systems. Date: Tue, 07 Nov 2017 21:37:41 -0500 Message-ID: <87y3nh4hsa.fsf@users.sourceforge.net> References: <84o9pyim1a.fsf@AigleRoyal> <847evr1r3j.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1510108693 17346 195.159.176.226 (8 Nov 2017 02:38:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 8 Nov 2017 02:38:13 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: Fabrice Popineau , Francis Wright , Stephen Leake , 28601@debbugs.gnu.org, Phillip Lord To: vincent.belaiche@gmail.com (Vincent =?UTF-8?Q?Bela=C3=AFche?=) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 08 03:38:07 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eCGFi-0004Hi-5F for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Nov 2017 03:38:06 +0100 Original-Received: from localhost ([::1]:56673 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eCGFp-0005ja-HN for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Nov 2017 21:38:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54103) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eCGFh-0005jO-O5 for bug-gnu-emacs@gnu.org; Tue, 07 Nov 2017 21:38:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eCGFe-0000dN-KD for bug-gnu-emacs@gnu.org; Tue, 07 Nov 2017 21:38:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48647) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eCGFe-0000dE-GE for bug-gnu-emacs@gnu.org; Tue, 07 Nov 2017 21:38:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eCGFe-0000A5-15 for bug-gnu-emacs@gnu.org; Tue, 07 Nov 2017 21:38:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 Nov 2017 02:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28601 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28601-submit@debbugs.gnu.org id=B28601.1510108673603 (code B ref 28601); Wed, 08 Nov 2017 02:38:01 +0000 Original-Received: (at 28601) by debbugs.gnu.org; 8 Nov 2017 02:37:53 +0000 Original-Received: from localhost ([127.0.0.1]:57328 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eCGFU-00009a-Mk for submit@debbugs.gnu.org; Tue, 07 Nov 2017 21:37:53 -0500 Original-Received: from mail-it0-f44.google.com ([209.85.214.44]:56440) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eCGFR-00009B-WA; Tue, 07 Nov 2017 21:37:50 -0500 Original-Received: by mail-it0-f44.google.com with SMTP id r127so4753683itb.5; Tue, 07 Nov 2017 18:37:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=IqeBHwOy4+wKdu9FHw9LO76IRiWcHqd5L5MCu3qoBFo=; b=lHmihetMeFaDdesJjD1k2LxD82dCHkV6+EX0yap+wpKjyO1mGaoa0zzit6Hf9H3BC0 2VQAMSuCmefJsyl+HAhdr6j369SFkMX2cnUk1q2rRBJTP/5F6LLw+/CKadVe7ABtM1TO FNV0Lscqj1XRkpmpkW0rYUpFF+mgY2GEcNdaZJY7F6JEE0r0Nb7dV7//A9UyFMuTDqB4 Kmt3JVvLdCUgY3BARzxLmgBmylGW+gFNkEw4Cz24Z8saM27PqlI0F58E9ydMDQrXPVBS B5GrS1pQaOK1CMsBo/sZTOe4wF0c+OFCE6ge64YVloQa5RAFKDvxyH4sQMzcbrniM5eu j65w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=IqeBHwOy4+wKdu9FHw9LO76IRiWcHqd5L5MCu3qoBFo=; b=uETbMqmUP0cQTZ/rtFOuS7hzeH9W8cgDQfKAWQlRLOcYDfQXLnleyE6b2771h9lBNx udv2OOfzwLGvlU4wyMoInYDfHYYnt89IgX7E70nAvFUbEzQ8D6UyjHs4o6yTZW11oelu 1GYPONHKNho2b+hT0KuqA6cBW8+7uMF29ylsHMBR1GgZMZxNFeLr/DKsISbHcHucrNMG z6v24Jyh4LZoMInXrVqQ1TAQ+dpubI0bvw4YbL7Ls5rYqa2hbRClzb5bj0tOcTuen33F ZP53rhGv8D+qSds3SD1wsfYhZ2AeCtP6JpoOrkXIUVTvTkxVivlTxcHzbtMNKUalVyN6 rvbg== X-Gm-Message-State: AJaThX5OSRp90KIPyRk7/xaxc9cR8cJkhFg19Y79tui4mseNdGWwO/kd uxYMbeqbgTbQkOa9mawNeKpj2j8i X-Google-Smtp-Source: ABhQp+Q5+tT8DpUmi6PjAQOiQJBXEBZYU7OGxQfkTkCJyD8WVr577UzI4JZn9UPyt/H64iPb0PARcw== X-Received: by 10.36.213.213 with SMTP id a204mr1777263itg.51.1510108664204; Tue, 07 Nov 2017 18:37:44 -0800 (PST) Original-Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id a72sm1515116itb.34.2017.11.07.18.37.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 07 Nov 2017 18:37:43 -0800 (PST) In-Reply-To: <847evr1r3j.fsf@gmail.com> ("Vincent \=\?utf-8\?Q\?Bela\=C3\=AFche\?\= \=\?utf-8\?Q\?\=22's\?\= message of "Thu, 19 Oct 2017 10:25:52 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:139594 Archived-At: --=-=-= Content-Type: text/plain severity 28601 minor merge 28601 28888 quit Trying to consolidate recent bug-gnus-emacs and emacs-devel discussion about this. --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: inline; filename=v3-0001-nt-INSTALL.W64-Add-Troubleshooting-section-Bug-28.patch Content-Transfer-Encoding: quoted-printable Content-Description: patch >From f7aa938dbba2514aab73691eb6beea26dfa41d70 Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Tue, 7 Nov 2017 18:01:01 -0500 Subject: [PATCH v3] * nt/INSTALL.W64: Add "Troubleshooting" section (Bug#28601). MIME-Version: 1.0 Content-Type: text/plain; charset=3DUTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Vincent Belaiche --- nt/INSTALL.W64 | 75 ++++++++++++++++++++++++++++++++++++++++++++----------= ---- 1 file changed, 57 insertions(+), 18 deletions(-) diff --git a/nt/INSTALL.W64 b/nt/INSTALL.W64 index 71864ce..c612b13 100644 --- a/nt/INSTALL.W64 +++ b/nt/INSTALL.W64 @@ -35,18 +35,6 @@ Run this file to install MSYS2 in your preferred directo= ry, e.g. the default C:\msys64 -- this will install MinGW-w64 also. Note that directory names containing spaces may cause problems. =20 -Then you'll need to add the following directories to your Windows PATH -environment variable: - - c:\msys64\usr\bin;c:\msys64\mingw64\bin - -you can do this through Control Panel / System and Security / System / -Advanced system settings / Environment Variables / Edit path. - -Adding these directories to your PATH tells Emacs where to find the DLLs it -needs to run, and some optional commands like grep and find. These comman= ds -will also be available at the Windows console. - ** Download and install the necessary packages =20 Run c:/msys64/msys2.exe in your MSYS2 directory and you will see a BASH wi= ndow @@ -112,11 +100,11 @@ C:\emacs\emacs-24.5: ** From the Git repository =20 To download the Git repository, do something like the following -- this wi= ll -put the Emacs source into C:\emacs\emacs-25: +put the Emacs source into C:\emacs\emacs-26: =20 mkdir /c/emacs cd /c/emacs - git clone git://git.sv.gnu.org/emacs.git emacs-25 + git clone git://git.sv.gnu.org/emacs.git emacs-26 =20 (We recommend using the command shown on Savannah Emacs project page.) =20 @@ -150,11 +138,10 @@ which 'make install' will use - in this example we se= t it to C:\emacs\emacs-26. If a prefix is not specified the files will be put in the standard Unix directories located in your C:\msys64 directory, but this is not recommend= ed. =20 -Note also that we need to disable Imagemagick because Emacs does not yet -support it on Windows. +Note also that we need to disable Imagemagick and DBUS because Emacs +does not yet support them on Windows. =20 - PKG_CONFIG_PATH=3D/mingw64/lib/pkgconfig \ - ./configure --prefix=3D/c/emacs/emacs-26 --without-imagemagick + ./configure --prefix=3D/c/emacs/emacs-26 --without-imagemagick --without= -dbus =20 ** Run make =20 @@ -192,6 +179,14 @@ To test it out, run =20 and if all went well, you will have a new 64-bit version of Emacs. =20 +When running Emacs from outside the mingw64 shell, you will need to +add c:\msys64\mingw64\bin to your Windows PATH, or copy the needed +DLLs into Emacs' bin/ directory. Otherwise features such as TLS which +depend on those DLLs will be missing. + +You can do this through Control Panel / System and Security / System / +Advanced system settings / Environment Variables / Edit path. + * Make a shortcut =20 To make a shortcut to run the new Emacs, right click on the location where= you @@ -202,6 +197,50 @@ You can set any command line options by right clicking= on the resulting shortcut, select Properties, then add any options to the Target command, e.g. --debug-init. =20 +* Troubleshooting + +** Missing mingw64.exe launcher + +Older versions of Msys2 may lack the mingw64.exe launcher program. If +you have them, running mingw64_shell.bat or "msys2_shell.cmd -mingw64" +should work instead. + +Alternatively, install mingw64.exe with + + pacman -S msys/msys2-launcher-git + +** Check your $PATH + +When building Emacs, you should have /mingw64/bin in $PATH, such that runn= ing + + which gcc + +gives '/mingw64/bin/gcc'. + +** Check your $PKG_CONFIG_PATH + +It should start with '/mingw64/lib/pkgconfig'. + +** Check your MSYS2 fstab file + +Assuming that MSYS2 is installed in c:\msys64, make sure that your fstab f= ile +(c:\msys64\etc\fstab) file contains the following lines (starting a column= 0 +in the fstab file): + + c:/msys64/mingw64/bin /mingw64/bin ntfs binary,noacl 0 0 + c:/msys64/mingw32/bin /mingw32/bin ntfs binary,noacl 0 0 + +Please note that only the first line is needed for 64bit compilation, the +second one is for a complete fstab file w.r.t. 32bit compilation. + +If there is a space in the diectory where MSYS2 is installed, it shall be +replaced by \040. For instance, if MSYS is installed under "C:\Program +Files\msys64" there must be this line: + + C:/Program\040Files/msys64/mingw64/bin /mingw64/bin ntfs binary,noacl = 0 0 + +As mentioned above, avoiding spaces is preferable. + * Credits =20 Thanks to Chris Zheng for the original build outline as used by the --=20 2.6.2.windows.1 --=-=-=--