Simon Peyton Jones simonpj at
Mon Mar 26 10:08:53 UTC 2018

One other thing. The instructions at
say to set PATH thus

export PATH=/mingw64/bin:\$PATH


  *   in the installation tree I got from msys, there IS no c:/mingw64/bin.
  *   I have a root directory c:/msys64.
  *   Most binaries (eg bash, find) seem to be in c:/mingw64/usr/bin
  *   But there is also c:/msys64/mingw64/bin, which (perhaps as a result of the pacman step) has lots more stuf like ar, cc, etc.

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.



From: ghc-devs <ghc-devs-bounces at> On Behalf Of Shao, Cheng
Sent: 26 March 2018 10:59
To: ghc-devs at
Subject: Re: Windows

Hi Simon,

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".

On Mon, Mar 26, 2018 at 5:46 PM, Simon Peyton Jones via ghc-devs <ghc-devs at<mailto:ghc-devs at>> wrote:
Making it part of the error message would be v helpful.

I have added a section to "Troubleshooting" on

But it should really be part of the instructions higher up to sa
        export MSYSTEM=MINGW64

Might someone do that?  I wasn't quite sure where


|  -----Original Message-----
|  From: ghc-devs <ghc-devs-bounces at<mailto:ghc-devs-bounces at>> On Behalf Of Ben Gamari
|  Sent: 24 March 2018 16:42
|  To: Gabor Greif <ggreif at<mailto:ggreif at>>; lonetiger at<mailto:lonetiger at>
|  Cc: ghc-devs at<mailto:ghc-devs at>
|  Subject: Re: Windows
|  Gabor Greif <ggreif at<mailto:ggreif at>> writes:
|  > Just an idea...
|  >
|  > could this hint be part of the `configure` error message?
|  >
|  Indeed. See D4526.
|  Cheers,
|  - Ben
ghc-devs mailing list
ghc-devs at<mailto:ghc-devs at>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the ghc-devs mailing list