<div dir="ltr">On Tue, Jul 21, 2015 at 4:21 PM, Simon Peyton Jones <span dir="ltr"><<a href="mailto:simonpj@microsoft.com" target="_blank">simonpj@microsoft.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div link="#0563C1" vlink="#954F72" lang="EN-GB">
<div>
<p class="MsoNormal">Friends<u></u><u></u></p>
<p class="MsoNormal">With the new build system I get this kind of output<u></u><u></u></p>
<p>  HC [stage 1] compiler/stage2/build/SPARC/AddrMode.o<u></u><u></u></p>
<p>  HC [stage 1] compiler/stage2/build/CmmContFlowOpt.o<u></u><u></u></p>
<p>  HC [stage 1] compiler/stage2/build/CmmImplementSwitchPlans.o<u></u><u></u></p>
<p>  AR libraries/Cabal/Cabal/dist-install/build/libHSCabal-1.23.0.0-752LrSyTT7YLYxOzpNXfM5.a<u></u><u></u></p>
<p>C:\fp\HP-2014-2.0.0.0\mingw\bin\ar.exe: creating libraries/Cabal/Cabal/dist-install/build/libHSCabal-1.23.0.0-752LrSyTT7YLYxOzpNXfM5.a<u></u><u></u></p>
<p>  LD libraries/Cabal/Cabal/dist-install/build/HSCabal-1.23.0.0-752LrSyTT7YLYxOzpNXfM5.o<u></u><u></u></p>
<p>  HC [stage 1] utils/ghc-cabal/dist-install/build/Main.o<u></u><u></u></p>
<p><b><span style="color:red">WARNING</span></b>: file compiler\specialise\Specialise.hs, line 724</p></div></div></blockquote><div>I assume this is when you run validate?<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div link="#0563C1" vlink="#954F72" lang="EN-GB"><div><p><u></u><u></u></p>
<p class="MsoNormal">But I have no idea which module caused the WARNING, nor do I have a command-line to copy/paste to reproduce it.  (With the old module-at-a-time system I could copy/paste the command line for the specific module.)<u></u><u></u></p>
<p class="MsoNormal">Is there a way to <u></u><u></u></p>
<p><u></u><span style="font-family:Symbol"><span>·<span style="font:7pt "Times New Roman"">       
</span></span></span><u></u>make things sequential so I can tell which warnings from which module<u></u><u></u></p></div></div></blockquote><div>make -j1, which is make's default, but validate invokes make with -j2 or higher (depending on how many CPUs it thinks your system has).<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div link="#0563C1" vlink="#954F72" lang="EN-GB"><div><p></p>
<p><u></u><span style="font-family:Symbol"><span>·<span style="font:7pt "Times New Roman"">       
</span></span></span><u></u>get a command line to copy/paste to compile that module?<u></u><u></u></p></div></div></blockquote><div>validate sets the GHC build system variable V=0 in mk/<a href="http://are-validating.mk">are-validating.mk</a>. You can override it from the make command line with make V=1.<br><br></div><div>So, you can run "make V=1" to restart the build serially and with the command to build each file displayed. Note that serial make may build modules in a different order than parallel make, so it may take a while for make to get around to building the module that failed.<br><br></div><div>Regards,<br></div><div>Reid Barton<br></div></div></div></div>