<div dir="ltr"><br><br><div class="gmail_quote">On Sat, Nov 28, 2009 at 7:56 PM, Duncan Coutts <span dir="ltr">&lt;<a href="mailto:duncan.coutts@googlemail.com">duncan.coutts@googlemail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Sat, 2009-11-28 at 19:39 +0200, Michael Snoyman wrote:<br>
&gt; Hi all,<br>
&gt;<br>
&gt; I&#39;m trying out NearlyFreeSpeech.net for hosting my Haskell apps. They<br>
&gt; use FreeBSD 7.2, but I can&#39;t get cabal-install to compile since it<br>
&gt; runs out of memory during the link phase. So far I haven&#39;t had trouble<br>
&gt; manually installing packages, but it would be nice to just do cabal<br>
&gt; install...<br>
<br>
</div>I expect you&#39;ll find the same thing happens if you link anything else.<br>
My suggestion is to rebuild ghc from source and disable the &quot;split<br>
objects&quot; feature. That feature reduces final binary sizes but it makes<br>
the linker work too hard (and use too much memory).<br>
<br>
On Gentoo we used to disable &quot;split objects&quot; on machines with less than<br>
256Mb memory. And that was with GNU ld which has had some memory use<br>
improvements in recent years.<br>
<font color="#888888"><br>
Duncan<br>
<br>
<br>
</font></blockquote></div>I agree that would be a good idea, but I&#39;m not sure if I&#39;ll have a success on this host. I&#39;ll let you know. In any event, for the record, I got about 20 packages to compile, including getting my actual site up and running. It was tedious with cabal-install, but I got the job done.<br>
<br>Michael<br></div>