all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Noam Postavsky <npostavs@users.sourceforge.net>
To: vincent.belaiche@gmail.com (Vincent Belaïche)
Cc: Fabrice Popineau <fabrice.popineau@gmail.com>,
	Francis Wright <f.j.wright@live.co.uk>,
	Stephen Leake <stephen_leake@stephe-leake.org>,
	28601@debbugs.gnu.org, Phillip Lord <phillip.lord@russet.org.uk>
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	[thread overview]
Message-ID: <87y3nh4hsa.fsf@users.sourceforge.net> (raw)
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")

[-- Attachment #1: Type: text/plain, Size: 129 bytes --]

severity 28601 minor
merge 28601 28888
quit

Trying to consolidate recent bug-gnus-emacs and emacs-devel discussion
about this.


[-- Attachment #2: patch --]
[-- Type: text/x-diff, Size: 4973 bytes --]

From f7aa938dbba2514aab73691eb6beea26dfa41d70 Mon Sep 17 00:00:00 2001
From: Noam Postavsky <npostavs@gmail.com>
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=UTF-8
Content-Transfer-Encoding: 8bit

Co-authored-by: Vincent Belaiche <vincent.belaïche@gmail.com>
---
 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 directory, e.g. the default
 C:\msys64 -- this will install MinGW-w64 also.  Note that directory names
 containing spaces may cause problems.
 
-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 commands
-will also be available at the Windows console.
-
 ** Download and install the necessary packages
 
 Run c:/msys64/msys2.exe in your MSYS2 directory and you will see a BASH window
@@ -112,11 +100,11 @@ C:\emacs\emacs-24.5:
 ** From the Git repository
 
 To download the Git repository, do something like the following -- this will
-put the Emacs source into C:\emacs\emacs-25:
+put the Emacs source into C:\emacs\emacs-26:
 
   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
 
 (We recommend using the command shown on Savannah Emacs project page.)
 
@@ -150,11 +138,10 @@ which 'make install' will use - in this example we set 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 recommended.
 
-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.
 
-  PKG_CONFIG_PATH=/mingw64/lib/pkgconfig \
-  ./configure --prefix=/c/emacs/emacs-26 --without-imagemagick
+  ./configure --prefix=/c/emacs/emacs-26 --without-imagemagick --without-dbus
 
 ** Run make
 
@@ -192,6 +179,14 @@ To test it out, run
 
 and if all went well, you will have a new 64-bit version of Emacs.
 
+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
 
 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.
 
+* 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 running
+
+    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 file
+(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
 
 Thanks to Chris Zheng for the original build outline as used by the
-- 
2.6.2.windows.1


  reply	other threads:[~2017-11-08  2:37 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-25 20:02 bug#28601: 26.0.50; configure: error: Emacs does not support 'x86_64-pc-msys' systems Vincent Belaïche
2017-09-27 18:36 ` Glenn Morris
2017-09-27 19:07   ` Vincent Belaïche
2017-09-27 19:10     ` Vincent Belaïche
2017-09-27 21:37     ` Glenn Morris
2017-09-28 13:10       ` Andy Moreton
2017-09-29  9:37         ` Eli Zaretskii
2017-10-12 23:06           ` Noam Postavsky
2017-10-13  6:41             ` Eli Zaretskii
2017-10-13 10:14               ` Andy Moreton
2017-10-13 12:22                 ` Eli Zaretskii
2017-10-13 13:52                   ` Andy Moreton
2017-10-13 14:38                     ` Eli Zaretskii
2017-10-13 16:33                       ` Noam Postavsky
2017-10-13 17:24                         ` Eli Zaretskii
2017-10-13 17:51                           ` Noam Postavsky
2017-10-13 18:35                             ` Eli Zaretskii
2017-10-13 18:52                 ` windows build help Phillip Lord
2017-10-13 19:36                   ` Óscar Fuentes
2017-10-13 19:38                   ` Stephen Leake
2017-10-14 11:07                     ` Phillip Lord
2017-10-14 15:15                       ` Stephen Leake
2017-10-14 15:26                         ` Phillip Lord
2017-10-14 15:31                         ` Eli Zaretskii
2017-10-14 23:04                         ` Paul Eggert
2017-10-16  1:53                           ` Richard Stallman
2017-10-16  6:49                             ` Paul Eggert
2017-10-16 13:54                               ` Stefan Monnier
2017-10-13 19:47                   ` Noam Postavsky
2017-10-14 11:09                     ` Phillip Lord
2017-10-13 14:09       ` bug#28601: 26.0.50; configure: error: Emacs does not support 'x86_64-pc-msys' systems Vincent Belaïche
2017-10-13 14:16         ` Noam Postavsky
2017-10-14  1:40           ` Noam Postavsky
2017-10-16  8:59             ` Vincent Belaïche
2017-10-16 14:23               ` Noam Postavsky
2017-10-16 17:11                 ` Vincent Belaïche
2017-10-16 21:42                   ` Noam Postavsky
2017-10-19  8:25                     ` Vincent Belaïche
2017-11-08  2:37                       ` Noam Postavsky [this message]
2017-11-08 16:05                         ` Eli Zaretskii
2017-11-08 17:42                           ` Noam Postavsky
2017-11-08 18:13                             ` Eli Zaretskii
2017-11-08 19:23                               ` Noam Postavsky
2017-11-08 19:38                                 ` Eli Zaretskii
2017-11-16 14:40                                   ` Noam Postavsky
2017-11-16 16:11                                     ` Eli Zaretskii
2017-11-21 19:44                                       ` Noam Postavsky
2017-10-16 16:19               ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y3nh4hsa.fsf@users.sourceforge.net \
    --to=npostavs@users.sourceforge.net \
    --cc=28601@debbugs.gnu.org \
    --cc=f.j.wright@live.co.uk \
    --cc=fabrice.popineau@gmail.com \
    --cc=phillip.lord@russet.org.uk \
    --cc=stephen_leake@stephe-leake.org \
    --cc=vincent.belaiche@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.