[Bug middle-end/81443] gcc-7.1.0/MIPS N32: build/genrecog.o: virtual memory exhausted: Cannot allocate memory
kumba at gentoo dot org
gcc-bugzilla@gcc.gnu.org
Thu Jan 18 06:26:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81443
--- Comment #9 from Joshua Kinard <kumba at gentoo dot org> ---
(In reply to Eric Botcazou from comment #8)
> > FWIW, reversing PR59461 (some manual edits required) on gcc-7_1_0-release
> > compiles cleanly, which is the first time that's happened on this machine
> > under N32. Successful builds on this machine take about 8 hours. Fail
> > builds....~3-4 hours. It's during stage2-bubble when compiling genrecog.c
> > will bail out, claiming no more virtual memory (2GB RAM + 3GB of swap).
>
> Can you invoke the problematic command manually and add -save-temps to it?
> This will give you a .i file, then gzip it and attach it to the PR.
Yup, I'll attach that in a moment. I also have the 'genrecog.s' file, if
needed. I'll also add that it takes the command about 20-25mins to fail, which
is very abnormal. This machine might be old, but the CPUs are 600MHz, and they
can still chew through some of the largest C/C++ source files in under a minute
in most cases. So it seems like something in the stage2-bubble xgcc/xg++ gets
stuck in a loop and consumes additional memory with each iteration until it
hits some kind of boundary and bails.
More information about the Gcc-bugs
mailing list