From: Eli Zaretskii <eliz@gnu.org>
To: Ilya Zakharevich <ilya@math.berkeley.edu>
Cc: 19989@debbugs.gnu.org
Subject: bug#19989: 25.0.50; Build instructions on Windows
Date: Wed, 04 Mar 2015 05:42:59 +0200 [thread overview]
Message-ID: <83pp8ppgvw.fsf@gnu.org> (raw)
In-Reply-To: <20150303203037.GA26426@math.berkeley.edu>
> Date: Tue, 3 Mar 2015 12:30:37 -0800
> From: Ilya Zakharevich <ilya@math.berkeley.edu>
> 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 <eliz@gnu.org>
> > > 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.
next prev parent reply other threads:[~2015-03-04 3:42 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-03 16:34 bug#19989: 25.0.50; Build instructions on Windows Ilya Zakharevich
2015-03-03 17:00 ` Eli Zaretskii
2015-03-03 17:21 ` Eli Zaretskii
2015-03-03 20:30 ` Ilya Zakharevich
2015-03-04 3:42 ` Eli Zaretskii [this message]
2015-03-05 21:18 ` Ilya Zakharevich
2015-03-06 8:29 ` Eli Zaretskii
2015-03-06 9:21 ` martin rudalics
2015-03-06 9:59 ` Ilya Zakharevich
2015-03-06 11:16 ` Eli Zaretskii
2015-03-07 1:44 ` Ilya Zakharevich
2015-03-07 9:11 ` Eli Zaretskii
2015-03-08 6:22 ` Ilya Zakharevich
2015-08-15 8:03 ` Eli Zaretskii
2015-08-15 11:22 ` Dani Moncayo
2015-08-15 11:38 ` Dani Moncayo
2015-08-15 12:10 ` Eli Zaretskii
2015-08-15 12:09 ` Eli Zaretskii
2015-08-15 12:24 ` Dani Moncayo
2015-08-15 12:26 ` Eli Zaretskii
2015-08-15 13:39 ` Dani Moncayo
2015-03-06 10:28 ` Eli Zaretskii
2015-03-06 14:13 ` Óscar Fuentes
2015-03-06 14:14 ` Óscar Fuentes
2015-03-06 14:40 ` Eli Zaretskii
2015-03-07 1:47 ` Ilya Zakharevich
2015-03-07 2:04 ` Óscar Fuentes
2015-03-07 9:19 ` Eli Zaretskii
2015-03-06 18:53 ` martin rudalics
2015-03-06 19:27 ` Eli Zaretskii
2015-03-07 9:40 ` martin rudalics
2015-03-07 10:04 ` Eli Zaretskii
2015-03-07 10:28 ` martin rudalics
2015-03-08 6:07 ` Ilya Zakharevich
2015-03-08 10:04 ` martin rudalics
2015-03-08 16:07 ` Ilya Zakharevich
2015-03-06 9:46 ` Ilya Zakharevich
2015-03-06 10:33 ` Eli Zaretskii
2015-03-07 1:37 ` Ilya Zakharevich
2015-03-06 10:08 ` Eli Zaretskii
2015-03-07 1:35 ` Ilya Zakharevich
2015-03-07 9:04 ` Eli Zaretskii
2015-03-08 6:14 ` Ilya Zakharevich
2015-03-08 15:46 ` Eli Zaretskii
2015-03-08 16:04 ` Ilya Zakharevich
2015-03-08 16:59 ` Eli Zaretskii
2015-03-03 21:15 ` Ilya Zakharevich
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83pp8ppgvw.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=19989@debbugs.gnu.org \
--cc=ilya@math.berkeley.edu \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).