Msys2 64: progress

Simon Peyton Jones simonpj at
Thu Jun 30 07:28:01 UTC 2016

Tamar, Luke, David, Andrey, and others

OK that was it!  Now I can build GHC…. Real progress.

But I still can’t validate:
sh validate
using THREADS=5
make: Entering directory '/c/code/HEAD/utils/checkUniques'
./ ../..
Traceback (most recent call last):
  File "./", line 39, in <module>
    uniques = find_uniques(glob.glob(os.path.join(top_dir, 'compiler', 'prelude', '*.hs')))
  File "./", line 15, in find_uniques
    ms = unique_re.findall(open(f).read())
  File "/usr/lib/python3.4/encodings/", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 15185: ordinal not in range(128)
make: *** [Makefile:8: check] Error 1
make: Leaving directory '/c/code/HEAD/utils/checkUniques'

Any ideas about what might be happening?   The Python version is 3.4.3.



From: ghc-devs [mailto:ghc-devs-bounces at] On Behalf Of Simon Peyton Jones via ghc-devs
Sent: 29 June 2016 12:08
To: lonetiger at
Cc: ghc-devs at
Subject: RE: Msys2 64: progress

Aha!  That sounds very plausible.   I’ll try.   Maybe it’s a path-ordering thing.

It would be very cool if ‘configure’ checked that ‘find’ was the find it was expecting, not Windows find.  Dunno how to do that, but that check would have saved us a lot of time.

(For most other utils, weget, curl etc, there is no Windows program with the same name.  But for ‘find’, there is.)


From: lonetiger at<mailto:lonetiger at> [mailto:lonetiger at]
Sent: 29 June 2016 11:35
To: Simon Peyton Jones <simonpj at<mailto:simonpj at>>
Cc: ghc-devs at<mailto:ghc-devs at>
Subject: RE: Msys2 64: progress

Hi Simon,

I think you’re right,
That pattern in the error is the one we pass to find

find "${base_dir}" -name "*.tar.xz" -exec tar xfJ {} \;

on line 334 of which is supposed to unpack the files.
That the download script doesn’t output nothing makes sense now since the hashes of the files match.

I *think* what’s going on here is that for some reason you don’t have findutils installed and it’s instead using
The windows “find” utility, which generates that error.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the ghc-devs mailing list