[LLVMdev] gcc running out of memory on ARMAsmParser.cpp

Duncan Sands baldrick at free.fr
Mon Feb 28 11:49:26 PST 2011


Hi Rob,

> I tried to compile LLVM on an Amazon EC2 Linux instance that doesn't
> have a ton of memory (~600 MB).  It keeps failing with:
>
>     llvm[4]: Compiling ARMAsmParser.cpp for Release build
>     g++: Internal error: Killed (program cc1plus)
>
> It's getting killed for using all the system memory.  Is this file
> known to trigger any bugs in gcc?  (version 4.1.2)

try compiling without optimization (configure with --disable-optimized).
While gcc-4.1.x has been known to miscompile LLVM, I never heard of it
going into an infinite loop during the LLVM compile, so presumably it
would finish eventually if you had enough memory.

Ciao, Duncan.



More information about the llvm-dev mailing list