<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.gmail-hoenzb
        {mso-style-name:gmail-hoenzb;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang=EN-US link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span lang=EN-GB style='font-size:12.0pt'>“</span><span lang=EN-GB>C:\msys64\msys2_shell.cmd -mingw64 -mintty”<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>Won’t work for you as it spawns a new process using mintty as your terminal emulator.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>If I remember correctly you have a setup where you use bash directly in emacs. In which case you just need<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>To set the environment variables and add /mingw64/bin to your path.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>I would personally avoid the use of mintty because of how it implements pty. Lots of interactive programs don’t work<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>Correctly under it, including ghci where we need specific hacks to work around some of it’s issues https://github.com/mintty/mintty/issues/56.<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='border:none;padding:0in'><b>From: </b><a href="mailto:ghc-devs@haskell.org">Simon Peyton Jones via ghc-devs</a><br><b>Sent: </b>Monday, March 26, 2018 11:03<br><b>To: </b><a href="mailto:cheng.shao@tweag.io">Shao, Cheng</a>; <a href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</a><br><b>Subject: </b>RE: Windows</p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='mso-margin-top-alt:6.0pt;margin-right:0in;margin-bottom:6.0pt;margin-left:.5in'><span lang=EN-GB>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".<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:12.0pt'>Well I just followed the Method A instructions at <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:12.0pt'><a href="https://ghc.haskell.org/trac/ghc/wiki/Building/Preparation/Windows">https://ghc.haskell.org/trac/ghc/wiki/Building/Preparation/Windows</a><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:12.0pt'><o:p> </o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:6.0pt;margin-right:0in;margin-bottom:6.0pt;margin-left:0in'><span lang=EN-GB style='font-size:12.0pt'>Are you saying that I should run “</span><span lang=EN-GB>C:\msys64\msys2_shell.cmd -mingw64 -mintty" just once, after installing?  Or repeatedly?  Or that I should somehow us it as my main shell?  And what does that commend actually do?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:12.0pt'>Sorry to be dense<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:12.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:12.0pt'>Simon<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:12.0pt'><o:p> </o:p></span></p><div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b>From:</b> ghc-devs <ghc-devs-bounces@haskell.org> <b>On Behalf Of </b>Shao, Cheng<br><b>Sent:</b> 26 March 2018 10:59<br><b>To:</b> ghc-devs@haskell.org<br><b>Subject:</b> Re: Windows<o:p></o:p></p></div></div><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><div><div><p class=MsoNormal style='mso-margin-top-alt:6.0pt;margin-right:0in;margin-bottom:6.0pt;margin-left:0in'><span lang=EN-GB>Hi Simon,<o:p></o:p></span></p></div><div><p class=MsoNormal style='mso-margin-top-alt:6.0pt;margin-right:0in;margin-bottom:6.0pt;margin-left:0in'><span lang=EN-GB><o:p> </o:p></span></p></div><div><p class=MsoNormal style='mso-margin-top-alt:6.0pt;margin-right:0in;margin-bottom:6.0pt;margin-left:0in'><span lang=EN-GB>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".<o:p></o:p></span></p></div><div><div><p class=MsoNormal style='mso-margin-top-alt:6.0pt;margin-right:0in;margin-bottom:6.0pt;margin-left:0in'><span lang=EN-GB><o:p> </o:p></span></p><div><p class=MsoNormal style='mso-margin-top-alt:6.0pt;margin-right:0in;margin-bottom:6.0pt;margin-left:0in'><span lang=EN-GB>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:<o:p></o:p></span></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'><p class=MsoNormal style='mso-margin-top-alt:6.0pt;margin-right:0in;margin-bottom:6.0pt;margin-left:4.8pt'><span lang=EN-GB>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/ghc/wiki/Building/Preparation/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:#888888'><br><span class=gmail-hoenzb>Simon</span></span><o:p></o:p></span></p><div><div><p class=MsoNormal style='mso-margin-top-alt:6.0pt;margin-right:0in;margin-bottom:12.0pt;margin-left:4.8pt'><span lang=EN-GB><br>|  -----Original Message-----<br>|  From: ghc-devs <<a href="mailto:ghc-devs-bounces@haskell.org">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">ggreif@gmail.com</a>>; <a href="mailto:lonetiger@gmail.com">lonetiger@gmail.com</a><br>|  Cc: <a href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</a><br>|  Subject: Re: Windows<br>|<br>|  Gabor Greif <<a href="mailto:ggreif@gmail.com">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<o:p></o:p></span></p></div></div><div><div><p class=MsoNormal style='mso-margin-top-alt:6.0pt;margin-right:0in;margin-bottom:6.0pt;margin-left:4.8pt'><span lang=EN-GB>_______________________________________________<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">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><o:p></o:p></span></p></div></div></blockquote></div></div></div></div></div><p class=MsoNormal style='mso-margin-top-alt:6.0pt;margin-right:0in;margin-bottom:6.0pt;margin-left:0in'><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>