<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;}
p.Code, li.Code, div.Code
        {mso-style-name:Code;
        margin-top:6.0pt;
        margin-right:0in;
        margin-bottom:6.0pt;
        margin-left:.5in;
        font-size:10.0pt;
        font-family:"Courier New";}
.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>Hi Simon,</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>What happens when you try to compile that simple test with the bundled gcc?</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Could you also run it through strace, this will force msys2 not to swallow errors from the OS.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Should you get an exception dialog then rm -rf inplace/mingw and rerun configure (I assume you’re on a recent revision).</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>If none of the above give a clue, you could try ./configure --enable-distro-toolchain, this will have it skip the bundled GCC</p><p class=MsoNormal>And use any installed by msys2. If this work then try rm’ing the GHC-tarballs folder and the inplace/mingw folder and try again</p><p class=MsoNormal>With –enable-tarballs-autodownloads.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Tamar.</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>Thursday, June 29, 2017 00:35<br><b>To: </b><a href="mailto:ghc-devs@haskell.org">ghc-devs</a><br><b>Subject: </b>Windows broken</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:0in'><span lang=EN-GB>Help please!<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>Suddenly my Windows build has stopped working.   See below.  What should I do?  I’m totally stuck.<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>This has never happened before.<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>I get this:<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>GHC path canonicalised to: c:/fp/ghc-8.0.2/bin/ghc<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>checking build system type... x86_64-pc-msys<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>checking host system type... x86_64-pc-msys<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>checking target system type... x86_64-pc-msys<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>Build platform inferred as: x86_64-unknown-mingw32<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>Host platform inferred as: x86_64-unknown-mingw32<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>Target platform inferred as: x86_64-unknown-mingw32<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>GHC build  : x86_64-unknown-mingw32<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>GHC host   : x86_64-unknown-mingw32<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>GHC target : x86_64-unknown-mingw32<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>LLVM target: x86_64-unknown-mingw32<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>checking for path to top of build tree... C:/code/HEAD<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>configure: Checking for Windows toolchain tarballs...<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>configure: Extracting Windows toolchain from archives (may take a while)...<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>configure: In-tree MingW-w64 tree created<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>configure: Making in-tree perl tree<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>configure: In-tree perl tree created<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>checking whether the C compiler works... no<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>configure: error: in `/c/code/HEAD':<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>configure: error: C compiler cannot create executables<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>See `config.log' for more details<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>Something wrong with the gcc.exe?  Config.log has this<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>gcc version 6.3.0 (Rev2, Built by MSYS2 project) <o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>configure:4950: $? = 0<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>configure:4939: C:/code/HEAD/inplace/mingw/bin/gcc.exe -V >&5<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>gcc.exe: error: unrecognized command line option '-V'<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>gcc.exe: fatal error: no input files<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>compilation terminated.<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>configure:4950: $? = 1<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>configure:4939: C:/code/HEAD/inplace/mingw/bin/gcc.exe -qversion >&5<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>gcc.exe: error: unrecognized command line option '-qversion'; did you mean '--version'?<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>gcc.exe: fatal error: no input files<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>compilation terminated.<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>configure:4950: $? = 1<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>configure:4970: checking whether the C compiler works<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>configure:4992: C:/code/HEAD/inplace/mingw/bin/gcc.exe    conftest.c  >&5<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>configure:4996: $? = 1<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>configure:5034: result: no<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>configure: failed program was:<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>| /* confdefs.h */<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>| #define PACKAGE_NAME "The Glorious Glasgow Haskell Compilation System"<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>| #define PACKAGE_TARNAME "ghc-8.3"<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>| #define PACKAGE_VERSION "8.3"<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>| #define PACKAGE_STRING "The Glorious Glasgow Haskell Compilation System 8.3"<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>| #define PACKAGE_BUGREPORT "glasgow-haskell-bugs@haskell.org"<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>| #define PACKAGE_URL ""<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>| /* end confdefs.h.  */<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>| <o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>| int<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>| main ()<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>| {<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>| <o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>|   ;<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>|   return 0;<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>| }<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>configure:5039: error: in `/c/code/HEAD':<o:p></o:p></span></p><p class=Code style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt'><span lang=EN-GB>configure:5041: error: C compiler cannot create executables</span><span lang=EN-GB style='font-size:11.0pt;font-family:"Calibri",sans-serif'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p></div></body></html>