
Hi all, I'm trying out NearlyFreeSpeech.net for hosting my Haskell apps. They use FreeBSD 7.2, but I can't get cabal-install to compile since it runs out of memory during the link phase. So far I haven't had trouble manually installing packages, but it would be nice to just do cabal install... Anyway, I don't have FreeBSD installed locally, and I was wondering if anyone out there might have a cabal binary for FreeBSD that they could send over. Thanks, Michael

On Sat, 2009-11-28 at 19:39 +0200, Michael Snoyman wrote:
Hi all,
I'm trying out NearlyFreeSpeech.net for hosting my Haskell apps. They use FreeBSD 7.2, but I can't get cabal-install to compile since it runs out of memory during the link phase. So far I haven't had trouble manually installing packages, but it would be nice to just do cabal install...
I expect you'll find the same thing happens if you link anything else. My suggestion is to rebuild ghc from source and disable the "split objects" feature. That feature reduces final binary sizes but it makes the linker work too hard (and use too much memory). On Gentoo we used to disable "split objects" on machines with less than 256Mb memory. And that was with GNU ld which has had some memory use improvements in recent years. Duncan

On Sat, Nov 28, 2009 at 7:56 PM, Duncan Coutts wrote: On Sat, 2009-11-28 at 19:39 +0200, Michael Snoyman wrote: Hi all, I'm trying out NearlyFreeSpeech.net for hosting my Haskell apps. They
use FreeBSD 7.2, but I can't get cabal-install to compile since it
runs out of memory during the link phase. So far I haven't had trouble
manually installing packages, but it would be nice to just do cabal
install... I expect you'll find the same thing happens if you link anything else.
My suggestion is to rebuild ghc from source and disable the "split
objects" feature. That feature reduces final binary sizes but it makes
the linker work too hard (and use too much memory). On Gentoo we used to disable "split objects" on machines with less than
256Mb memory. And that was with GNU ld which has had some memory use
improvements in recent years. Duncan 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. Michael
participants (2)
-
Duncan Coutts
-
Michael Snoyman