<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body><div><div style="font-family:Calibri,sans-serif;font-size:11pt"><br>Hi Gintautas,<br><br>This seems like a good idea to me. I was also wondering would it be a good idea to have configure also handle cabal/happy/alex in a similar way? <br><br>It would be another step you don't manually have to do and would make it easier to insure that the right versions are installed. <br><br>Regards,<br>Tamar<br></div></div><div dir="ltr"><hr><span style="font-family:Calibri,sans-serif;font-size:11pt;font-weight:bold">From: </span><span style="font-family:Calibri,sans-serif;font-size:11pt"><a href="mailto:gintautas@miliauskas.lt">Gintautas Miliauskas</a></span><br><span style="font-family:Calibri,sans-serif;font-size:11pt;font-weight:bold">Sent: </span><span style="font-family:Calibri,sans-serif;font-size:11pt">‎13/‎10/‎2014 00:06</span><br><span style="font-family:Calibri,sans-serif;font-size:11pt;font-weight:bold">To: </span><span style="font-family:Calibri,sans-serif;font-size:11pt"><a href="mailto:kyrab@mail.ru">kyra</a></span><br><span style="font-family:Calibri,sans-serif;font-size:11pt;font-weight:bold">Cc: </span><span style="font-family:Calibri,sans-serif;font-size:11pt"><a href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</a></span><br><span style="font-family:Calibri,sans-serif;font-size:11pt;font-weight:bold">Subject: </span><span style="font-family:Calibri,sans-serif;font-size:11pt">Re: Building ghc on Windows with msys2</span><br><br></div></body></html><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
However, overall (not GHC use cases) gcc 4.9.1 still looks more buggy on Windows than 4.8.3. 'Mingw-builds' project (which is now a part of mingw-w64 project and is considered to be an "official" mingw-w64 gcc distribution and is maintained by a man close to Msys2 project) has very nice and complete build of 4.8.3 (64-bit build, for example, is here: <a href="http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/4.8.3/threads-posix/seh/" target="_blank">http://sourceforge.net/<u></u>projects/mingw-w64/files/<u></u>Toolchains%20targetting%<u></u>20Win64/Personal%20Builds/<u></u>mingw-builds/4.8.3/threads-<u></u>posix/seh/</a>).<br></blockquote><div><br></div><div>I am looking into migrating ghc to the newer gcc package linked above. There is also the associated question of what to do with ghc-tarballs.</div><div><br></div><div>Here's an idea: how about downloading the mingw package directly from sourceforge at configure time with curl/wget? That should work pretty well. I see two potential issues:</div><div><br></div><div>1. URL stability. The sourceforge repo is not in our control and files in it could go away any time. The repo seems stable though, with some files from 2011. If we're concerned about this, copying the file to a domain under our control should not be a problem. I did not get any responses about who to contact about that though...</div><div><br></div><div>2. Download failing due to internet connectivity issues or missing proxy configuration. This could easily be addressed by printing a message with a URL and a filesystem location to put the file in the case that the download fails.</div><div><br></div><div>If there are no objections, I'll proceed with whipping up a patch.</div><div><br></div></div>-- <br>Gintautas Miliauskas
</div></div>