This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
large arrays crashing gcc on some arch's
- From: Glenn McGrath <bug1 at optushome dot com dot au>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 23 Jul 2003 16:17:02 +1000
- Subject: large arrays crashing gcc on some arch's
Im having problems compiling a project with gcc on some arch's.
The project, libextractor, compiles successfully using gcc-3.3 under
debian unstable on i386, ia64, hppa, powerpc and sparc, but fails on
arm, alpha, mipsel, m68k, and probably mips but it timed out first.
Build logs can be seen from
http://buildd.debian.org/build.php?pkg=libextractor
The files causing the problems are large static char arrays.
arm bombs out on a file which has aprox 1,000,000 entires, the others on
a file with with nearly 3,000,000 entries.
e.g.
mipsel-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../../../src/include
-I../../../src/include -fno-strict-aliasing -g -O2 -MT no.lo -MD -MP -MF
.deps/no.Tpo -c no.c -fPIC -DPIC -o .libs/no.lo
mipsel-linux-gcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
On an alpha (with 512MB ram) i did some manual compiles, the file
compiles successfully with gcc-2.95, but not gcc-3.2 or gcc-3.3
Compile time is quite slow, and it does a lot of disk swapping.
Is this code triggering a bug in gcc, or is gcc just running out of
resources ?
Thanks
Glenn