From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: building Emacs on Msys2/mingw32 Date: Tue, 09 Sep 2014 08:58:48 -0500 Message-ID: <8561gwyjxj.fsf@stephe-leake.org> References: <85mwaayuod.fsf@stephe-leake.org> <87ha0h7tuz.fsf@wanadoo.es> <85lhptxuaa.fsf@stephe-leake.org> <20140909.183903.23057374096692213.chriszheng99@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1410271207 28155 80.91.229.3 (9 Sep 2014 14:00:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Sep 2014 14:00:07 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 09 15:59:59 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 1XRLxZ-0007YE-9E for ged-emacs-devel@m.gmane.org; Tue, 09 Sep 2014 15:59:53 +0200 Original-Received: from localhost ([::1]:49883 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRLxY-0000FQ-Te for ged-emacs-devel@m.gmane.org; Tue, 09 Sep 2014 09:59:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48313) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRLwv-0008VL-8g for emacs-devel@gnu.org; Tue, 09 Sep 2014 09:59:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XRLwn-0002Zo-Gk for emacs-devel@gnu.org; Tue, 09 Sep 2014 09:59:13 -0400 Original-Received: from dnvrco-outbound-snat.email.rr.com ([107.14.73.230]:11507 helo=dnvrco-oedge-vip.email.rr.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRLwn-0002Yx-AZ for emacs-devel@gnu.org; Tue, 09 Sep 2014 09:59:05 -0400 Original-Received: from [70.94.38.149] ([70.94.38.149:50520] helo=TAKVER) by dnvrco-oedge01 (envelope-from ) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id DA/ED-18326-5A70F045; Tue, 09 Sep 2014 13:59:01 +0000 In-Reply-To: <20140909.183903.23057374096692213.chriszheng99@gmail.com> (Chris Zheng's message of "Tue, 09 Sep 2014 18:39:03 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (windows-nt) X-RR-Connecting-IP: 107.14.64.118:25 X-Authority-Analysis: v=2.1 cv=btPCBSqi c=1 sm=1 tr=0 a=AppmJ/7ZOOFWL/q6u6u93g==:117 a=AppmJ/7ZOOFWL/q6u6u93g==:17 a=ayC55rCoAAAA:8 a=9XSUBuVRJI8A:10 a=hwptsUpd5P4A:10 a=oYySZE3dXrQA:10 a=o_R75loqY_IA:10 a=9i_RQKNPAAAA:8 a=pGLkceISAAAA:8 a=WKZSk0cvRNbTdvh_sKEA:9 a=MSl-tDqOz04A:10 X-Cloudmark-Score: 0 X-detected-operating-system: by eggs.gnu.org: BaiduSpider X-Received-From: 107.14.73.230 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:174110 Archived-At: Chris Zheng writes: > 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. I have MSYSTEM=MINGW32 in msys bash under Emacs. config.guess returns x86_64-pc-mingw32. Which is what you want for 64 bit builds (I think) but just confusing otherwise. But that is the _only_ difference betwee mingw64_shell.bat and mingw32_shell.bat. So I don't understand the different behavior between an Emacs msys shell and a mingw32_shell.bat shell. Sigh. >> 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. Yes, that makes sense. It would help if the msys2 people would publish recommended file system conventions with a rationale, rather than just saying "do whatever you want". Newbies need guidance; we don't _know_ what we want! -- -- Stephe