<div class="im">On 06/15/2012 09:54 PM, Magnus Therning wrote:<br>
    </div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000">
    <blockquote type="cite"><div class="im">
      <pre>I've been working on upgrading [haskell] to Ghc 7.4.2 for a few days
now.  So far no luck :(

The build always fails on creating documentation.  Yesterday I
resorted to taking the source package from [extra], which is known to
build fine... but still it failed on generating the docs.  I now
suspect this is due to the limited memory available on the machine I
use to build (1.5GB).<br></pre></div></blockquote></div></blockquote></div>No it's not a memory problem.  I found the same problem with building the docs on 8 GB of tmpfs, and others have found the same problem in other distros, e.g. Debian.  Here's what I have in my notes:<br>
# Edited <a href="http://build.mk">build.mk</a> to disable PS and PDF docs, which fail to build (maybe fixed by<br># using different dblatex version but apparently the doc build is fragile)<br><br>My <a href="http://build.mk">build.mk</a> then has for the perf build:<br>
<br>ifeq "$(BuildFlavour)" "perf"<br><br># perf matches the default settings, repeated here for comparison:<br><br>SRC_HC_OPTS     = -O -H64m<br>GhcStage1HcOpts = -O -fasm<br>GhcStage2HcOpts = -O2 -fasm<br>
GhcHcOpts       = -Rghc-timing<br>GhcLibHcOpts    = -O2<br>GhcLibWays     += p<br>BUILD_DOCBOOK_PS   = NO<br>BUILD_DOCBOOK_PDF  = NO<br><br>I think that those last two assigns will fix the problem at the expense of building only html docs.<br>
<br>