<div dir="ltr">What Reid said is correct. I just changed validate back to use V=1 though, since it seems like a better default. From <a href="https://ghc.haskell.org/trac/ghc/wiki/Design/BuildSystem">https://ghc.haskell.org/trac/ghc/wiki/Design/BuildSystem</a>:<div><br></div><div>   "The build system should clearly report what it's doing (and
sometimes why), without being too verbose. It should emit actual
command lines as much as possible, so that they can be inspected
and cut & pasted. "<br><div><div><br></div><div>You can run `./validate --quiet` to get the previous behavior. <br></div><div><br></div><div>To make things sequential: you can use `CPUS=1 ./validate`.</div><div><br></div><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 21, 2015 at 11:16 PM, Reid Barton <span dir="ltr"><<a href="mailto:rwbarton@gmail.com" target="_blank">rwbarton@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><span class="">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></span><div class="gmail_extra"><div class="gmail_quote"><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color: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></span><div>I assume this is when you run validate?<br></div><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color: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-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:'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></span><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><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color: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-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:'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></span><div>validate sets the GHC build system variable V=0 in mk/<a href="http://are-validating.mk" target="_blank">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>
<br>_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><br>
<br></blockquote></div><br></div></div></div></div></div>