Out of memory building lang/ghc-8.8.3
Christoph Moench-Tegeder
cmt at burggraben.net
Tue May 5 10:00:03 UTC 2020
## andrew clarke (mail at ozzmosis.com):
> Beware anyone building lang/ghc-8.8.3 from the ports tree. Building it
> here on FreeBSD 12.1-REL AMD64 with Poudriere, the build ran out of swap,
> despite the PC having 8 GB RAM, 8 GB swap and not much else running.
I believe they sell phones with that amount of RAM these days, but
they don't run ZFS on that phone as it's a "resource-constrained
environment".
ghc may eat quite some RAM (>2GB per process are not unheard of),
you might have better luck if you don't use these:
> USE_TMPFS=yes
> ALLOW_MAKE_JOBS=yes
> PARALLEL_JOBS=8
tmpfs uses your already scarce memory, and ALLOW_MAKE_JOBS will almost
certainly run multiple ghc processes at the same time (it does so here).
Regards,
Christoph
--
Spare Space
More information about the freebsd-ports
mailing list