<div dir="ltr">Hi David,<div><br></div><div>ghc should appear as inplace/bin/ghc-stage2.exe after a successful build.</div><div><br></div><div>The warnings are expected.</div><div><br></div><div>Did you run make with parallelism? I don't have a smoking gun, but the build seems to be somewhat stable with -j1, while it crashes a lot of the time with -j5 (I have a 4-core CPU). I have only tried a couple of runs with -j1 (takes a while...), so I can't say for sure that non-parallel builds are stable, but 2/2 runs succeeded.</div><div><br></div><div>Another data point: I ran the validate script in a loop and stored the logs, and most crashes seem to be in rts/, but not all of them. Not sure why.</div><div><br></div><div><div>$ grep Segmentation *.log</div><div>1.log:make[1]: *** [libraries/base/dist-install/build/Text/Show/Functions.o] Segmentation fault</div><div>10.log:make[1]: *** [rts/dist/build/Hpc.o] Segmentation fault</div><div>11.log:make[1]: *** [rts/dist/build/RtsFlags.thr_l_o] Segmentation fault</div><div>12.log:make[1]: *** [rts/dist/build/sm/GCAux.o] Segmentation fault</div><div>13.log:make[1]: *** [rts/dist/build/win32/GetEnv.thr_l_o] Segmentation fault</div><div>14.log:make[1]: *** [rts/dist/build/sm/Scav.l_o] Segmentation fault</div><div>15.log:make[1]: *** [compiler/stage1/build/RegAlloc/Linear/State.o] Segmentation fault</div><div>18.log:make[1]: *** [libraries/filepath/dist-install/build/.depend-v.haskell] Segmentation fault</div><div>19.log:make[1]: *** [libraries/base/dist-install/build/.depend-v.haskell] Segmentation fault</div><div>4.log:make[1]: *** [rts/dist/build/RtsDllMain.o] Segmentation fault</div><div>5.log:make[1]: *** [rts/dist/build/sm/Evac_thr.thr_o] Segmentation fault</div><div>6.log:make[1]: *** [rts/dist/build/sm/Scav_thr.thr_l_o] Segmentation fault</div><div>7.log:make[1]: *** [rts/dist/build/Linker.thr_debug_o] Segmentation fault</div><div>8.log:make[1]: *** [rts/dist/build/sm/Storage.debug_o] Segmentation fault</div><div>9.log:make[1]: *** [rts/dist/build/hooks/OutOfHeap.thr_debug_o] Segmentation fault</div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 4, 2014 at 7:43 PM, David Macek <span dir="ltr"><<a href="mailto:david.macek.0@gmail.com" target="_blank">david.macek.0@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi. I just built GHC from master (1c35f9f1cb7a293da85d649904ce731a65824cfe) in my somewhat outdated MSYS2. I followed the wiki page with a few exceptions.<br>
<br>
- I cleared my PATH before running the shell (I left only Windows and System32)<br>
- my installation is not up-to-date<br>
- I do not have msys2 libtool, automake nor binutils; if the build used any of those, they came from mingw64 or from the host ghc<br>
- I had to run boot in pure msys2 shell, because mingw64 perl caused it to fail<br>
<br>
I saw no segfaults, but I may have missed them. I did not get a ghc.exe, but that may be correct behavior for all I know. My simple test program compiled and ran fine. I saw a lot of warnings during ghc's build though:<br>
<br>
- checking for DocBook DTD... I/O error : Attempt to load network entity <a href="http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" target="_blank">http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd</a><br>
- something with not finding any implementation of a module out of [ xxx.dylib, xxx, ... ], I think it was in cabal builds<br>
- "could not find link destionations for: xxx"<br>
<br>
I hope it helps somehow. Maybe your issues come from mixing msys2 and mingw toolchain after all.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
David Macek<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
------------------------------------------------------------------------------<br>
_______________________________________________<br>
Msys2-users mailing list<br>
<a href="mailto:Msys2-users@lists.sourceforge.net">Msys2-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/msys2-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/msys2-users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Gintautas Miliauskas</div>
</div>