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.

Reply via email to