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:04:54 +0300
- Message-id: <[🔎] 20230805080454.ltqqq25se4fnedty@iliastsi.net>
- In-reply-to: <CAH8yC8=eKKg68s3KwK07=2m3m=Tu=kiiMnma+1JM036cVHNgXA@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> <CAH8yC8=eKKg68s3KwK07=2m3m=Tu=kiiMnma+1JM036cVHNgXA@mail.gmail.com>
On Sun, Jul 30, 2023 at 12:02AM, Jeffrey Walton wrote:
> Since the compile is failing in preprocessing, I took a look at GCC
> preprocessor options.[1]
Thanks for taking a look. Do you have any indication it fails in
preprocessing. Given how -O0 used to work, I would guess it fails during
compilation phase.
> These look like they could help:
>
> * -ftrack-macro-expansion=0
> - Don't track macro expansion. Saves memory
> * -no-integrated-cpp
> - invoke cc1 twice, once for preprocessing and
> once for actual compilation of the preprocessed input
> * -fmax-include-depth=20
> - Normally 200, don't allow deep nesting
>
> And if it is an option, then:
>
> * -fno-large-source-files
>
> -flarge-source-files is an option, but I am not sure about the -fno-*
> variant in this case.
>
> Finally, this may help, but I don't understand it. I have never used it:
>
> * -Mno-modules
> - Disable dependency generation for compiled module interfaces.
I can try those when I find some time, thanks.
--
Ilias
Reply to: