<div dir="ltr"><br><br><div class="gmail_quote">On Sat, Nov 28, 2009 at 7:56 PM, Duncan Coutts <span dir="ltr"><<a href="mailto:duncan.coutts@googlemail.com">duncan.coutts@googlemail.com</a>></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>
> Hi all,<br>
><br>
> I'm trying out NearlyFreeSpeech.net for hosting my Haskell apps. They<br>
> use FreeBSD 7.2, but I can't get cabal-install to compile since it<br>
> runs out of memory during the link phase. So far I haven't had trouble<br>
> manually installing packages, but it would be nice to just do cabal<br>
> install...<br>
<br>
</div>I expect you'll find the same thing happens if you link anything else.<br>
My suggestion is to rebuild ghc from source and disable the "split<br>
objects" 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 "split objects" 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'm not sure if I'll have a success on this host. I'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>