From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chris Zheng Newsgroups: gmane.emacs.devel Subject: Re: building Emacs on Msys2/mingw32 Date: Tue, 09 Sep 2014 18:39:03 +0800 Message-ID: <20140909.183903.23057374096692213.chriszheng99@gmail.com> References: <85mwaayuod.fsf@stephe-leake.org> <87ha0h7tuz.fsf@wanadoo.es> <85lhptxuaa.fsf@stephe-leake.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1410259209 22874 80.91.229.3 (9 Sep 2014 10:40:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Sep 2014 10:40:09 +0000 (UTC) Cc: emacs-devel@gnu.org To: stephen_leake@stephe-leake.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 09 12:40:01 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XRIq7-0001hM-AB for ged-emacs-devel@m.gmane.org; Tue, 09 Sep 2014 12:39:59 +0200 Original-Received: from localhost ([::1]:48668 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRIq6-0007cR-UK for ged-emacs-devel@m.gmane.org; Tue, 09 Sep 2014 06:39:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53308) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRIpn-0007bP-GQ for emacs-devel@gnu.org; Tue, 09 Sep 2014 06:39:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XRIph-0000Wd-G9 for emacs-devel@gnu.org; Tue, 09 Sep 2014 06:39:39 -0400 Original-Received: from mail-pd0-x229.google.com ([2607:f8b0:400e:c02::229]:53920) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRIph-0000St-4L for emacs-devel@gnu.org; Tue, 09 Sep 2014 06:39:33 -0400 Original-Received: by mail-pd0-f169.google.com with SMTP id fp1so3189798pdb.28 for ; Tue, 09 Sep 2014 03:39:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:message-id:to:cc:subject:from:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=7BmS0sJjVOqK5qvmWVdNnog2KBY8vPAkOSWJgunxRXA=; b=dBsu6FH0FfbF6UkIWaQcgt/TgWwRPg7uUsz71POaBeAuy/UevTRsQeCkfY18KRXHZf kFJimX/QQsVU+FSR5GsffMJSbIRQuCAi91F4cPH+ruI/qZL2Srf93YtAycqCLyx4ldsX zDWu8kRHVd1Ak+kvd+0K0siKEjnFec5G5XZqLIt0fyPcw2gB2l2Owu7pu8XLrCXONzl+ kLvbgu6Y9VsdcO0I1FF94TOjeLLBUKzuFzw0ULvvZiJ6UrynYRSwd23OXJWtasDcsjfc SjHHDeGTv69r81Tp3Tsgu5WDayQyT+1X7Kt1RQnWGLZ7civ50AMNqDLBQa6619Y/OpFC 1nEw== X-Received: by 10.68.95.227 with SMTP id dn3mr28847876pbb.108.1410259170951; Tue, 09 Sep 2014 03:39:30 -0700 (PDT) Original-Received: from localhost ([211.64.141.155]) by mx.google.com with ESMTPSA id yr3sm11994881pac.1.2014.09.09.03.39.28 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Tue, 09 Sep 2014 03:39:30 -0700 (PDT) In-Reply-To: <85lhptxuaa.fsf@stephe-leake.org> X-Mailer: Mew version 6.6 on Emacs 24.4.50 / Mule 6.0 (HANACHIRUSATO) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c02::229 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:174103 Archived-At: From: Stephen Leake Subject: Re: building Emacs on Msys2/mingw32 Date: Tue, 09 Sep 2014 00:00:29 -0500 Hi Stephen, > Sigh. I was actually running mingw64_shell.bat, not msys2_shell.bat. I > just got the wrong name in the emails. Thanks for catching this. > > However, Emacs configure was run under Emacs, not directly in the > mingw64 shell, which means I was trying to emulate mingw64_shell.bat > with elisp code. So I need to figure out what I got wrong in that > emulation. I don't see anything obvious in the shell/environment > variables. Sorry, I can't follow the hole discussion. But if you want to run ./configure under Emacs, say, the in shell-mode, you can add export MSYSTEM=MINGW64 to ~/.bashrc, this will complete what mingw64_shell.bat do for the build. And this is what I have done. > On the gripping hand, I just tested configure under mingw64_shell.bat, > and got: > > configure: error: Emacs does not support `x86_64-pc-mingw64'. > > Which is fine; we need i686. > > So I tried mingw32_shell.bat; that works. > > Just to be clear, the default prefix is still /usr/local. But /usr > exists in msys2/mingw32; it is at c:/msys64/usr. So /usr/local is a > reasonable place to install emacs. Except that will mix 32 bit and 64 > bit targets; /usr/local/x86_64 and /usr/local/i686 would be better. So I > suggest we keep the advice to specify --prefix. I personal prefer /mingw32/local and /mingw64/local because: (1) The /usr is for MSYS2 system, and programs in it will depend on msys-*.dll, like Cygwin does. But Emacs was native Windows programs which doesn't not depend on MSYS2 dlls; (2) /mingw32 and /mingw64 are unique and don't exist in /usr and other paths; (3) The Emacs you builded are more likely a MinGW32 or MinGW64 program than a MSYS2 program, so it should come to /mingw32 or /mingw64. Best wishes, Chris.