https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81443
Bug ID: 81443 Summary: gcc-7.1.0/MIPS N32: build/genrecog.o: virtual memory exhausted: Cannot allocate memory Product: gcc Version: 7.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: kumba at gentoo dot org Target Milestone: --- I am attempting to compile gcc-7.1.0 on a 64-bit MIPS platform, targeting the MIPS-III ISA, glibc-userland, N32 ABI, big-endian architecture, and an unable to complete the compile due to exhausting all available virtual memory. The machine in question has 2GB of physical RAM installed and ~7GB of swap space (3GB in partitions, 4GB as a temp swap file). I at first thought it was the parallelization (-j3 to make), since the machine is dual CPU, but it also fails as -j2 and -j1. I watched the swap usage with 'watch -n2 swapon --show', and when the compile terminates, swap is barely at 50%, so I don't think it's related to lack of available swap space. I was able to successfully compile gcc-7.1 on the same machine, different chroot, under the O32 ABI for glibc-2.24, and O32 ABI for uclibc-ng-1.0.25 in another chroot. So I suspect this is a regression for the N32 ABI case. I am not sure what files or data will of use to run this one down. I am preserving the last builddir for now, so if specific files are needed for analysis, let me know. # /var/tmp/portage/sys-devel/gcc-7.1.0-r1/work/build/./prev-gcc/xg++ -v Using built-in specs. COLLECT_GCC=/var/tmp/portage/sys-devel/gcc-7.1.0-r1/work/build/./prev-gcc/xg++ Target: mips64-unknown-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-7.1.0-r1/work/gcc-7.1.0/configure --host=mips64-unknown-linux-gnu --build=mips64-unknown-linux-gnu --prefix=/usr --bindir=/usr/mips64-unknown-linux-gnu/gcc-bin/7.1.0 --includedir=/usr/lib/gcc/mips64-unknown-linux-gnu/7.1.0/include --datadir=/usr/share/gcc-data/mips64-unknown-linux-gnu/7.1.0 --mandir=/usr/share/gcc-data/mips64-unknown-linux-gnu/7.1.0/man --infodir=/usr/share/gcc-data/mips64-unknown-linux-gnu/7.1.0/info --with-gxx-include-dir=/usr/lib/gcc/mips64-unknown-linux-gnu/7.1.0/include/g++-v7 --with-python-dir=/share/gcc-data/mips64-unknown-linux-gnu/7.1.0/python --enable-languages=c,c++ --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 7.1.0-r1 p1.1' --disable-esp --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --disable-multilib --disable-altivec --disable-fixed-point --with-abi=n32 --disable-libgcj --disable-libgomp --disable-libmudflap --disable-libssp --disable-libcilkrts --disable-libmpx --disable-vtable-verify --disable-libvtv --disable-libquadmath --enable-lto --without-isl --disable-libsanitizer --disable-default-pie --enable-default-ssp Thread model: posix gcc version 7.1.0 (Gentoo 7.1.0-r1 p1.1)