<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">I've looked into this.<br>
      <br>
      Current test script picks msys2-compiled python, which, after your
      modification, can't find 'windll', because msys2-compiled python
      is cygwin-like and it's 'ctypes' has no 'windll'. If we rewrite
      the relevant part of script thus:<br>
      <br>
      config.msys2 = False<br>
      ....<br>
          elif v.startswith("MINGW"):<br>
              config.msys2 = True<br>
      ....<br>
      # Try to use UTF8<br>
      if windows:<br>
          import ctypes<br>
          if config.cygwin or config.msys2:<br>
              # Is this actually right? Which calling convention does it
      use?<br>
              # As of the time of writing, ctypes.windll doesn't exist
      in the<br>
              # cygwin python, anyway.<br>
              mydll = ctypes.cdll<br>
          else:<br>
              mydll = ctypes.windll<br>
      <br>
      then we go slightly further and fail with:<br>
      <br>
      Traceback (most recent call last):<br>
        File "../driver/runtests.py", line 151, in <module><br>
          import ctypes<br>
        File "/usr/lib/python2.7/ctypes/__init__.py", line 451, in
      <module><br>
          pythonapi = PyDLL("libpython%d.%d.dll" %
      _sys.version_info[:2])<br>
        File "/usr/lib/python2.7/ctypes/__init__.py", line 365, in
      __init__<br>
          self._handle = _dlopen(self._name, mode)<br>
      OSError: No such file or directory<br>
      <br>
      And this is definitely a bug in msys2 python, because there is no
      such a file ("libpython*.dll) anywhere in msys2 distribution.<br>
      <br>
      What could be possible solutions?<br>
      <br>
      1. I'm seeing a new version of Msys2 appearing right now here
      <a class="moz-txt-link-freetext" href="http://sourceforge.net/projects/msys2/files/REPOS/MSYS2/i686/">http://sourceforge.net/projects/msys2/files/REPOS/MSYS2/i686/</a>. It
      is now a bunch of separate packages, I've looked into python 2.7.5
      package and found ctypes-related things definitely changed. Thus
      we could wait a couple of days until Msys2 release process is
      finished and installation information is available, hoping it's
      python is working properly.<br>
      <br>
      2. Another approach is to modify testing infrastructure to use
      some pure win32/mingw based python distribution. But I'm in no way
      an expert here, sorry.<br>
      <br>
      Cheers,<br>
      Kyra<br>
      <br>
      <br>
      On 11/12/2013 02:10, Simon Peyton-Jones wrote:<br>
    </div>
    <blockquote
cite="mid:59543203684B2244980D7E4057D5FBC148676A5F@DB3EX14MBXC308.europe.corp.microsoft.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <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;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin-top:6.0pt;
        margin-right:0cm;
        margin-bottom:6.0pt;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Verdana","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
.MsoPapDefault
        {mso-style-type:export-only;
        margin-top:6.0pt;
        margin-right:0cm;
        margin-bottom:6.0pt;
        margin-left:0cm;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">Austin,
            or others,<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">It
            would be SO GREAT if it was possible to validate on Windows
            again.
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">Currently
            I’m using msys2, which builds GHC fine, but things fail
            badly in the testsuite.<o:p></o:p></span></p>
        <p class="MsoNormalCxSpMiddle"
          style="margin-left:36.0pt;mso-add-space:auto"><span
            style="font-family:"Courier New"">Traceback (most
            recent call last):<o:p></o:p></span></p>
        <p class="MsoNormalCxSpMiddle"
          style="margin-left:36.0pt;mso-add-space:auto"><span
            style="font-family:"Courier New"">  File
            "../driver/runtests.py", line 144, in <module><o:p></o:p></span></p>
        <p class="MsoNormalCxSpMiddle"
          style="margin-left:36.0pt;mso-add-space:auto"><span
            style="font-family:"Courier New"">    raise
            Exception("Can't detect Windows terminal type")<o:p></o:p></span></p>
        <p class="MsoNormalCxSpMiddle"
          style="margin-left:36.0pt;mso-add-space:auto"><span
            style="font-family:"Courier New"">Exception: Can't
            detect Windows terminal type<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif""><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">uname
            –s returns MINGW_NT-6.2<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">Changing
            the test from
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">    elif
            v.startswith("MINGW32"):<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">to<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">   
            elif v.startswith("MINGW"):<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">just
            produces a new error<o:p></o:p></span></p>
        <p class="MsoNormalCxSpMiddle"
          style="margin-left:36.0pt;mso-add-space:auto"><span
            style="font-family:"Courier New"">Traceback (most
            recent call last):<o:p></o:p></span></p>
        <p class="MsoNormalCxSpMiddle"
          style="margin-left:36.0pt;mso-add-space:auto"><span
            style="font-family:"Courier New"">  File
            "../driver/runtests.py", line 155, in <module><o:p></o:p></span></p>
        <p class="MsoNormalCxSpMiddle"
          style="margin-left:36.0pt;mso-add-space:auto"><span
            style="font-family:"Courier New"">    mydll =
            ctypes.windll<o:p></o:p></span></p>
        <p class="MsoNormalCxSpMiddle"
          style="margin-left:36.0pt;mso-add-space:auto"><span
            style="font-family:"Courier New"">AttributeError:
            'module' object has no attribute 'windll'<o:p></o:p></span></p>
        <p class="MsoNormalCxSpMiddle"
          style="margin-left:36.0pt;mso-add-space:auto"><span
            style="font-family:"Courier New"">../mk/test.mk:242:
            recipe for target 'test' failed<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif""><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">It’s
            all very frustrating because I can’t validate.  Can anyone
            help?<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-family:"Verdana","sans-serif"">Simon<o:p></o:p></span></p>
        <p class="MsoNormalCxSpLast"
          style="margin-left:36.0pt;mso-add-space:auto"><span
            style="font-family:"Courier New""><o:p> </o:p></span></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
ghc-devs mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</a>
<a class="moz-txt-link-freetext" href="http://www.haskell.org/mailman/listinfo/ghc-devs">http://www.haskell.org/mailman/listinfo/ghc-devs</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>