Out of memory building lang/ghc-8.8.3

Gleb Popov arrowd at freebsd.org
Tue May 5 10:20:21 UTC 2020


On Tue, May 5, 2020 at 1:37 PM andrew clarke <mail at ozzmosis.com> wrote:

> 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.
>
> My /usr/local/etc/poudriere.conf:
>
> BASEFS=/poudriere
> ZPOOL=zroot
> FREEBSD_HOST=http://mirror.internode.net/
> POUDRIERE_DATA=/poudriere/data
> RESOLV_CONF=/etc/resolv.conf
> DISTFILES_CACHE=/usr/ports/distfiles
> USE_TMPFS=yes
> ALLOW_MAKE_JOBS=yes
> KEEP_OLD_PACKAGES=yes
> PARALLEL_JOBS=8
>
> Maybe I can retune the last three parameters to use less memory. I've not
> tried yet.
>
> This isn't really a whinge, I'm just surprised it failed. I'd have thought
> 8 GB was enough.
>
> (ghc is a build dependency of textproc/hs-pandoc)
>

Did you have something else building at the same time?

On my laptop with 16 Gb of RAM I also see OOM failures when building
multiple "heavy" packages (llvmXX, gccX, ghc, rust, libreoffice)
simultaneously. In this case I use -J poudriere option to limit number of
jobs.


> Cheers.
> _______________________________________________
> freebsd-ports at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"
>


More information about the freebsd-ports mailing list