[Bug driver/68038] New: "Internal compiler error: Killed: program cc1" should read "Virtual memory exhausted"
zackw at panix dot com
gcc-bugzilla@gcc.gnu.org
Wed Oct 21 02:31:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68038
Bug ID: 68038
Summary: "Internal compiler error: Killed: program cc1" should
read "Virtual memory exhausted"
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: driver
Assignee: unassigned at gcc dot gnu.org
Reporter: zackw at panix dot com
Target Milestone: ---
99+% of the time, when the compiler proper dies on signal 9, it's because we're
on Linux and the out-of-memory killer has killed the compiler proper because it
ate all available RAM. But the error message you get when this happens
*sounds* like there's a bug in GCC.
I suggest the driver be changed to special-case SIGKILL and print a different
message, along the lines of
gcc: compilation process (cc1) killed by SIGKILL
This almost always means your computer does not have enough RAM to
compile this program. Try adding swap space or reducing the
number of concurrent compile jobs.
More information about the Gcc-bugs
mailing list