https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61860
--- Comment #1 from Mikael Pettersson <mikpelinux at gmail dot com> --- You ran out of RAM during the g++ job so the kernel killed it. You need more RAM (preferably), or to add some swap (unpleasant but sometimes necessary).