<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 26, 2018 at 11:08 AM, Simon Peyton Jones via ghc-devs <span dir="ltr"><<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">





<div lang="EN-GB">
<div class="gmail-m_-4680817663575715123WordSection1">
<p class="MsoNormal"><span style="font-size:12pt">One other thing. The instructions at<u></u><u></u></span></p>
<p class="MsoNormal"><a href="https://ghc.haskell.org/trac/ghc/wiki/Building/Preparation/Windows" target="_blank">https://ghc.haskell.org/trac/<wbr>ghc/wiki/Building/Preparation/<wbr>Windows</a><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:12pt">say to set PATH thus<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12pt"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-indent:5.25pt"><code><span style="font-size:10pt">export PATH=/mingw64/bin:\$PATH</span></code><span style="font-size:12pt"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:12pt">But <u></u><u></u></span></p>
<ul type="disc" style="margin-top:0cm">
<li class="gmail-m_-4680817663575715123MsoListParagraph" style="margin-left:0cm"><span style="font-size:12pt">in the installation tree I got from msys,
<b>there IS no c:/mingw64/bin</b>.  <u></u><u></u></span></li><li class="gmail-m_-4680817663575715123MsoListParagraph" style="margin-left:0cm"><span style="font-size:12pt">I have a root directory c:/msys64.
</span></li></ul></div></div></blockquote><div><br></div><div>These are correct, the instructions are written from the point of view of a msys2 environment and not the Windows one.</div><div>So /mingw64 refers to an msys2 path not a windows path. In windows the / would indeed be interpreted to %HOMEDRIVE%/mingw64</div><div>but in msys2 this refers to what the msy2 filesystem has been mounted to. This is usually C:\msys64.</div><div><br></div><div>Tamar@Yelow ~/ghc2> cygpath -w /mingw64/bin/<br>E:\msys64\mingw64\bin\</div><div><br></div><div>the msys2 tool cygpath converts between the two usually on demand. but you can query it for paths.</div><div>What the instructions intended was for you to modify your msys2 environment, not your Windows one, as generally putting</div><div>Cygwin derived programs on your global windows path is not advisable.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div lang="EN-GB"><div class="gmail-m_-4680817663575715123WordSection1"><ul type="disc" style="margin-top:0cm"><li class="gmail-m_-4680817663575715123MsoListParagraph" style="margin-left:0cm"><span style="font-size:12pt"><u></u><u></u></span></li><li class="gmail-m_-4680817663575715123MsoListParagraph" style="margin-left:0cm"><span style="font-size:12pt">Most binaries (eg
<b>bash</b>, <b>find</b>) seem to be in c:/mingw64/usr/bin</span></li></ul></div></div></blockquote><div>Yes, any binary that is a posix port, e.g. depends on newlib crt instead of the Microsoft runtime goes into the usual /usr/bin folder. This would include core-utils,</div><div>make etc.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div lang="EN-GB"><div class="gmail-m_-4680817663575715123WordSection1"><ul type="disc" style="margin-top:0cm"><li class="gmail-m_-4680817663575715123MsoListParagraph" style="margin-left:0cm"><span style="font-size:12pt"><u></u><u></u></span></li><li class="gmail-m_-4680817663575715123MsoListParagraph" style="margin-left:0cm"><span style="font-size:12pt">But there is also c:/msys64/mingw64/bin, which (perhaps as a result of the pacman step) has lots more stuf like
<b>ar</b>, <b>cc</b>, etc.</span></li></ul></div></div></blockquote><div>This folder is meant to contain native ports, e.g. programs that have been "ported" to work on Windows using a standard windows runtime. These have no dependencies on</div><div>newlib/Cygwin. This is the distinctions between these two folders.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div lang="EN-GB"><div class="gmail-m_-4680817663575715123WordSection1"><ul type="disc" style="margin-top:0cm"><li class="gmail-m_-4680817663575715123MsoListParagraph" style="margin-left:0cm"><span style="font-size:12pt"><u></u><u></u></span></li></ul>
<p class="MsoNormal"><span style="font-size:12pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:12pt">All very confusing.  For now I have put both c:/msys64/usr/bin and c:/msys64/mingw64/bin in my path.   That seems to work, but is clearly not what the instructions say.</span></p></div></div></blockquote><div><br></div><div>The instruction could be somewhat clearer here, but they are intended to only affect your msys2 installation, and never your global Windows system. </div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div lang="EN-GB"><div class="gmail-m_-4680817663575715123WordSection1"><p class="MsoNormal"><span style="font-size:12pt"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:12pt">Thanks<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:12pt">Simon<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12pt"><u></u> <u></u></span></p>
<div style="border-width:medium medium medium 1.5pt;border-style:none none none solid;border-color:currentColor currentColor currentColor blue;padding:0cm 0cm 0cm 4pt"><span>
<div>
<div style="border-width:1pt medium medium;border-style:solid none none;border-color:rgb(225,225,225) currentColor currentColor;padding:3pt 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> ghc-devs <<a href="mailto:ghc-devs-bounces@haskell.org" target="_blank">ghc-devs-bounces@haskell.org</a>>
<b>On Behalf Of </b>Shao, Cheng<br>
<b>Sent:</b> 26 March 2018 10:59<br>
<b>To:</b> <a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br>
<b>Subject:</b> Re: Windows<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</span><div>
<div>
<p class="MsoNormal" style="margin-right:0cm;margin-bottom:6pt;margin-left:0cm">
Hi Simon,<u></u><u></u></p>
</div><div><div class="gmail-h5">
<div>
<p class="MsoNormal" style="margin-right:0cm;margin-bottom:6pt;margin-left:0cm">
<u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-right:0cm;margin-bottom:6pt;margin-left:0cm">
If the build environment is managed by an MSYS2 installation, then the MinGW64 shell startup script automatically sets up "MSYSTEM" for you. It can be launched like "C:\msys64\msys2_shell.cmd -mingw64 -mintty".<u></u><u></u></p>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-right:0cm;margin-bottom:6pt;margin-left:0cm">
<u></u> <u></u></p>
<div>
<p class="MsoNormal" style="margin-right:0cm;margin-bottom:6pt;margin-left:0cm">
On Mon, Mar 26, 2018 at 5:46 PM, Simon Peyton Jones via ghc-devs <<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a>> wrote:<u></u><u></u></p>
<blockquote style="border-width:medium medium medium 1pt;border-style:none none none solid;border-color:currentColor currentColor currentColor rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin-right:0cm;margin-left:4.8pt">
<p class="MsoNormal" style="margin-right:0cm;margin-bottom:6pt;margin-left:0cm">
Making it part of the error message would be v helpful.<br>
<br>
I have added a section to "Troubleshooting" on<br>
<a href="https://ghc.haskell.org/trac/ghc/wiki/Building/Preparation/Windows" target="_blank">https://ghc.haskell.org/trac/<wbr>ghc/wiki/Building/Preparation/<wbr>Windows</a><br>
<br>
But it should really be part of the instructions higher up to sa<br>
        export MSYSTEM=MINGW64<br>
<br>
Might someone do that?  I wasn't quite sure where<br>
<span style="color:rgb(136,136,136)"><br>
<span class="gmail-m_-4680817663575715123gmail-hoenzb">Simon</span></span><u></u><u></u></p>
<div>
<div>
<p class="MsoNormal" style="margin-right:0cm;margin-bottom:12pt;margin-left:0cm">
<br>
|  -----Original Message-----<br>
|  From: ghc-devs <<a href="mailto:ghc-devs-bounces@haskell.org" target="_blank">ghc-devs-bounces@haskell.org</a>> On Behalf Of Ben Gamari<br>
|  Sent: 24 March 2018 16:42<br>
|  To: Gabor Greif <<a href="mailto:ggreif@gmail.com" target="_blank">ggreif@gmail.com</a>>; <a href="mailto:lonetiger@gmail.com" target="_blank">
lonetiger@gmail.com</a><br>
|  Cc: <a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br>
|  Subject: Re: Windows<br>
|<br>
|  Gabor Greif <<a href="mailto:ggreif@gmail.com" target="_blank">ggreif@gmail.com</a>> writes:<br>
|<br>
|  > Just an idea...<br>
|  ><br>
|  > could this hint be part of the `configure` error message?<br>
|  ><br>
|  Indeed. See D4526.<br>
|<br>
|  Cheers,<br>
|<br>
|  - Ben<u></u><u></u></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-right:0cm;margin-bottom:6pt;margin-left:0cm">
______________________________<wbr>_________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" target="_blank">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/ghc-devs</a><u></u><u></u></p>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal" style="margin-right:0cm;margin-bottom:6pt;margin-left:0cm">
<u></u> <u></u></p>
</div>
</div>
</div></div></div>
</div>
</div>
</div>

<br>______________________________<wbr>_________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" target="_blank" rel="noreferrer">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/ghc-devs</a><br>
<br></blockquote></div><br></div></div>