<div dir="ltr">Please update your GHC repository tree, then run:<div><br></div><div>./sync-all get</div><div><br></div><div>There was a bug I fixed today where &#39;msys&#39; wasn&#39;t correctly detected as Windows, so it skipped the ghc-tarballs repository.</div>
<div><br></div><div>Then make sure you do &#39;./sync-all pull&#39; to update everything else (there were other changes that require syncing.)</div><div><br></div><div>Hopefully that helps.</div><div><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Aug 23, 2013 at 4:13 PM, Niculae Ionita <span dir="ltr">&lt;<a href="mailto:nicu@ionita.at" target="_blank">nicu@ionita.at</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
I&#39;m new to GHC Dev and I&#39;m trying to build GHC 7.7 (the repo is about 9 days old) on a Windows machine with mingw32. I followed the very helpful article for newcomers to GHC dev ( <a href="http://ghc.haskell.org/trac/ghc/wiki/Newcomers#" target="_blank">http://ghc.haskell.org/trac/<u></u>ghc/wiki/Newcomers#</a> ) and up to configure it was easy.<br>

<br>
Now I get a problem with configure, the last few output lines are:<br>
<br>
GHC build  : i386-unknown-mingw32<br>
GHC host   : i386-unknown-mingw32<br>
GHC target : i386-unknown-mingw32<br>
configure: Building in-tree ghc-pwd<br>
checking for path to top of build tree... j:/ghc<br>
checking for gcc... j:/ghc/inplace/mingw/bin/gcc.<u></u>exe<br>
checking whether the C compiler works... no<br>
configure: error: in `/j/ghc&#39;:<br>
configure: error: C compiler cannot create executables<br>
See `config.log&#39; for more details<br>
<br>
>From config.log it&#39;s clear that j:/ghc/inplace/mingw/bin/gcc.<u></u>exe is missing (actually already the bin is missing). My gcc is in /mingw/bin, which is in PATH, but even if I try with the option<br>
<br>
--with-gcc=/mingw/bin/gcc<br>
<br>
I get the same error.<br>
<br>
So I was looking in the configure script and found out that, for mingw32 and i386, gcc must be under $hardtop/inplace/mingw/bin/, and if not, there are commands to unpack all tools from tar files like ghc-tarballs/mingw/binutils*.<u></u>tar.lzma and a few others.<br>

<br>
The point is, I don&#39;t have the subdirectory ghc-tarballs under my ghc directory.<br>
<br>
Now, my questions:<br>
<br>
1. Are there any reasons to not use the building tools coming from the mingw installation, and use the dedicated ones?<br>
<br>
2. Where could I find those tarballs? Did I miss something when updated the repositories?<br>
<br>
Thanks,<br>
Nicu<br>
<br>
______________________________<u></u>_________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/ghc-devs" target="_blank">http://www.haskell.org/<u></u>mailman/listinfo/ghc-devs</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Regards,<br>Austin - PGP: 4096R/0x91384671</div>
</div>