failure building - cc1.exe requires an allocation of 3.5GB?

David Daney ddaney@caviumnetworks.com
Fri May 15 23:20:00 GMT 2009


Jim Hauxwell wrote:
> Hi All,
> 
> I'm building (or at least trying to) build a cross compiler for a mips 
> platform
> 
> make[2]: Entering directory `/c/cygwin/usr/src/mingw/gcc-mips/gcc'
> gcc -c   -g -O2 -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings 
> -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition 
> -Wmissing-format-attribute    -DHAVE_CONFIG_H -I. -I. 
> -I../../gcc-4.2.0/gcc -I../../gcc-4.2.0/gcc/. 
> -I../../gcc-4.2.0/gcc/../include -I../../gcc-4.2.0/gcc/../libcpp/include 
>  -I../../gcc-4.2.0/gcc/../libdecnumber -I../libdecnumber insn-modes.c -o 
> insn-modes.o
> cc1.exe: out of memory allocating 3433019875 bytes
> 

It isn't the gcc you are building that is out of memory, it is the build 
host compiler.  I would look into that instead.

That said, I build mips cross compilers often and have never had this 
type of problem when compiling insn-modes.c (or anything else for that 
matter).

David Daney



More information about the Gcc-help mailing list