From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#19989: 25.0.50; Build instructions on Windows Date: Wed, 04 Mar 2015 05:42:59 +0200 Message-ID: <83pp8ppgvw.fsf@gnu.org> References: <20150303163453.GA25244@math.berkeley.edu> <834mq2qana.fsf@gnu.org> <83385mq9og.fsf@gnu.org> <20150303203037.GA26426@math.berkeley.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Trace: ger.gmane.org 1425440663 20611 80.91.229.3 (4 Mar 2015 03:44:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Mar 2015 03:44:23 +0000 (UTC) Cc: 19989@debbugs.gnu.org To: Ilya Zakharevich Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 04 04:44:13 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1YT0EF-0001vJ-64 for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Mar 2015 04:44:11 +0100 Original-Received: from localhost ([::1]:41841 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YT0EE-0005Oh-LQ for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Mar 2015 22:44:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36124) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YT0EA-0005Ni-HT for bug-gnu-emacs@gnu.org; Tue, 03 Mar 2015 22:44:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YT0E7-0004Ck-3C for bug-gnu-emacs@gnu.org; Tue, 03 Mar 2015 22:44:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35831) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YT0E6-0004CV-Vz for bug-gnu-emacs@gnu.org; Tue, 03 Mar 2015 22:44:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YT0E6-0002rE-Gb for bug-gnu-emacs@gnu.org; Tue, 03 Mar 2015 22:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Mar 2015 03:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19989 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19989-submit@debbugs.gnu.org id=B19989.142544059510925 (code B ref 19989); Wed, 04 Mar 2015 03:44:02 +0000 Original-Received: (at 19989) by debbugs.gnu.org; 4 Mar 2015 03:43:15 +0000 Original-Received: from localhost ([127.0.0.1]:34399 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YT0DK-0002q7-Pk for submit@debbugs.gnu.org; Tue, 03 Mar 2015 22:43:15 -0500 Original-Received: from mtaout28.012.net.il ([80.179.55.184]:60354) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YT0DH-0002pr-ME for 19989@debbugs.gnu.org; Tue, 03 Mar 2015 22:43:13 -0500 Original-Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0NKO00G004JX3J00@mtaout28.012.net.il> for 19989@debbugs.gnu.org; Wed, 04 Mar 2015 05:41:30 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NKO00EM94X6QB20@mtaout28.012.net.il>; Wed, 04 Mar 2015 05:41:30 +0200 (IST) In-reply-to: <20150303203037.GA26426@math.berkeley.edu> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:100039 Archived-At: > Date: Tue, 3 Mar 2015 12:30:37 -0800 > From: Ilya Zakharevich > Cc: 19989@debbugs.gnu.org > > On Tue, Mar 03, 2015 at 07:21:03PM +0200, Eli Zaretskii wrote: > > > Date: Tue, 03 Mar 2015 19:00:09 +0200 > > > From: Eli Zaretskii > > > Cc: 19989@debbugs.gnu.org > > > > > > > • mingw shell sets path to (essentially) FOO/msys/1.0/mingw/bin (here FOO > > > > is the install path), but there is no directory > > > > FOO/msys/1.0/mingw > > > > what is is > > > > FOO/bin > > > > So I needed to make a symbolic link (Windows style required) by > > > > running > > > > mklink /j mingw FOO > > > > in FOO/msys/1.0 > > > > FWIW, the 2nd issue sounds to me like an installation mistake of some > > > kind (did you install MinGW inside the MSYS tree, by chance?). > > How would I know? You could look at the directory hierarchy that got created. > I just ran mingw-get (as described), and set > install directory ( = FOO) once. Did you select the same install directory for MinGW and for MSYS? > The result: > FOO/bin - contains gcc executables etc > FOO/msys/1.0/ - contains msys > FOO/msys/1.0/bin - contains msys executables > > > > But > > > I'm not an expert; all I know is that on my system, the MSYS Bash > > > window has PATH set to whatever my system-wide PATH is, with these > > > directories prepended: > > > > > > .:/usr/local/bin:/mingw/bin:/bin: > > > > > > IOW, no msys/1.0/mingw/ anywhere in sight. > > ??? Of course it IS in sight: > > /bin IS native FOO/msys/1.0/bin > /mingw/bin IS native FOO/msys/1.0/mingw/bin But then there's no problem, because missing directories on PATH do no harm. The binaries are in /bin, and it is on PATH, so there should be no problem; there isn't one in my installation. (Of course, I didn't use mingw-get, but instead installed stuff by manually unpacking the tarballs in the first place.) > > Btw, there's nothing magic in the PATH value: it is set in > > /etc/profile (probably FOO/msys/etc/profile in your case), and you can > > edit it to your heart's content. > > Only if one KNOWS what all these slashes-etc MEAN. /etc/profile is a standard place in many Posix shells. > As you see, even > *you* got lost what denotes which native directory. If what the users > know is what is in nt/INSTALL, they have no way to deduce this info. I wasn't talking about some abstract user, I was trying to help you to get your installation in good shape. > BTW: you reminded me: there is another bug in Emacs build — this one > purely in Emacs. My default PATH accesses a complete cygwin > installation How does Cygwin enter this equation? Do you have both Cygwin and MinGW/MSYS installed? > • Emacs won’t build unless I unset PATH before running the msys shell. > > I expect that the detection of presence of dependencies is not > “specific enough”: > > • it can see “something” present on PATH, and > • it does not check that “this” won’t actually build with mingw > being first on PATH. If you mix incompatible stuff in the same shell session, you get what you deserve. My advice is to have MSYS in separate tree from MinGW, and only let MSYS shell see MinGW executables _after_ its own. MinGW, OTOH, should not have the MSYS's /bin directory on its PATH. As for Cygwin, it should be in yet another segregated tree, and never on the same PATH as either MSYS or MinGW. It is next to impossible to have the Posix configure scripts distinguish between foo.exe or foo.h that are for Cygwin and their namesakes for MinGW. Like I said: you need to get your MinGW/MSYS installation in good shape, and then things will work seamlessly. This isn't an Emacs issue, per se.