Re: OOM while building ghc 9.4.5
- To: Jeffrey Walton <noloader@gmail.com>
- Cc: debian-mips@lists.debian.org
- Subject: Re: OOM while building ghc 9.4.5
- From: Ilias Tsitsimpis <iliastsi@debian.org>
- Date: Sat, 5 Aug 2023 11:03:13 +0300
- Message-id: <[🔎] 20230805080313.m5fihf5hszaugutt@iliastsi.net>
- In-reply-to: <CAH8yC8mN=YiBia-NWb978+RArU0TkCD1BRPuN+mfKO+3u2rvjA@mail.gmail.com>
- References: <20230726162304.bmsxyt4fsu6fstch@iliastsi.net> <CAH8yC8=Ug-yfKjb9As4LrOaR42HQmdPn2+ZK+X=uKZTf1=4+=w@mail.gmail.com> <20230728202729.2bak2chwnoynyly3@iliastsi.net> <CAH8yC8nr9x_qAYiR3ZKiOhN2xGec1gao_p++24Rw+5E4nnAkew@mail.gmail.com> <20230729064442.6pmmhovm4zifm5cm@iliastsi.net> <CAH8yC8mN=YiBia-NWb978+RArU0TkCD1BRPuN+mfKO+3u2rvjA@mail.gmail.com>
On Sat, Jul 29, 2023 at 01:35PM, Jeffrey Walton wrote:
> The 18256 issue looks like it is a different complaint. 18256 tries to
> speed up compile time. An OOM kill is a different problem.
I agree. I linked to it because I wanted to point out that splitting the
GHC.Hs.Instances module is not an option, as noted in the issue.
>
> Looking at the original command, the project is using -O, which is
> -O2. Maybe you can drop it to -O1 -fno-inline.
If you notice towards the end of the command, we pass -O0, which
overrides the first -O. This used to work (and it's still useful for the
other 32-bit architectures) but doesn't work any more on mipsel.
--
Ilias
Reply to: