Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 612714 - www-client/chromium-57.0.2987.98 x86_64-pc-linux-gnu-g++: internal compiler error: Killed (program cc1plus)
Summary: www-client/chromium-57.0.2987.98 x86_64-pc-linux-gnu-g++: internal compiler e...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-15 14:19 UTC by jhon
Modified: 2017-03-16 07:23 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build_log.txt,991.78 KB, text/plain)
2017-03-15 14:19 UTC, jhon
Details
emerge info (emrge_info.txt,5.54 KB, text/plain)
2017-03-15 14:20 UTC, jhon
Details
environment file (envir.txt,203.92 KB, text/plain)
2017-03-15 14:22 UTC, jhon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jhon 2017-03-15 14:19:07 UTC
Created attachment 467134 [details]
build.log

There's not much to say here, The complete build log is 38MiB, so I've included only the last 400 lines of it (I recall that previously I was requested not to post to other sites...).
Comment 1 jhon 2017-03-15 14:20:25 UTC
Created attachment 467136 [details]
emerge info
Comment 2 jhon 2017-03-15 14:22:25 UTC
Created attachment 467138 [details]
environment file
Comment 3 Mart Raudsepp gentoo-dev 2017-03-15 14:22:53 UTC
from the log:
x86_64-pc-linux-gnu-g++: internal compiler error: Killed (program cc1plus)

Can you check dmesg or something whether it was killed due to OOM?


PS: If full build.log is too large to attach, you may attached compressed build.log; the ending as-is seems to be sufficient in this case after looking, though.
Comment 4 Mike Gilbert gentoo-dev 2017-03-15 15:46:55 UTC
If the build got killed due to OOM, you might try reducing the number of jobs in MAKEOPTS.
Comment 5 jhon 2017-03-15 22:01:47 UTC
Hey guys thanks for the quick replies.
Seeing the errors, I had a hunch it might be memory related but I had no clue how to check it out.
Thanks to you referring me to dmesg I can confirm:

Out of memory: Kill process 29063 (cc1plus) score 114 or sacrifice child
[ 7525.265830] Killed process 29063 (cc1plus) total-vm:1202824kB, anon-rss:1050028kB, file-rss:960kB, shmem-rss:0kB

Can you believe that? this Chromium is a monster! if 8 GiB of RAM isn't enough.
I reduced to 6 jobs (from 9 initially) and monitored the RAM - it didn't get past the 4 GiB and compilation was successful.

P.S. for the record, I feel I must also leave my remark regarding: "you may attached compressed build.log"

Well, compressing a 38MiB obviously wouldn't be enough to reach 1000KB, that means I'll also have to split the file as well, and to be honest, I know I sound lazy and maybe even ungrateful - which I'm not by the way, but that's just too much work for me.
The truth is I really hate filling bug reports, I'm sure you guys hate getting them too...
Comment 6 Mart Raudsepp gentoo-dev 2017-03-15 22:11:31 UTC
(In reply to jhon from comment #5)
> P.S. for the record, I feel I must also leave my remark regarding: "you may
> attached compressed build.log"
> 
> Well, compressing a 38MiB obviously wouldn't be enough to reach 1000KB, that
> means I'll also have to split the file as well, and to be honest, I know I
> sound lazy and maybe even ungrateful - which I'm not by the way, but that's
> just too much work for me.
> The truth is I really hate filling bug reports, I'm sure you guys hate
> getting them too...

I said it was fine in this case :)
I don't have the 38MiB log to see if a simple xz on it makes it small enough, but if the problem was obvious, that's no problem. The start of the build.log can sometimes be nice though too, it has some information that "emerge --info <package>" would give (if the emerge were actually successful). In this case as we saw, it wasn't necessary, as I suspected and said :)

PS: You should be able to change the MAKEOPTS per-package via /etc/portage/env/ + /etc/portage/package.env/
Comment 7 Mike Gilbert gentoo-dev 2017-03-15 22:30:03 UTC
Chromium build logs actually compress surprisingly well; I usually end up with a 700KB xz file from a 50MB log file.
Comment 8 jhon 2017-03-16 07:23:09 UTC
> "PS: You should be able to change the MAKEOPTS per-package via /etc/portage/env/ + /etc/portage/package.env/"
> "Chromium build logs actually compress surprisingly well; I usually end up with a 700KB xz file from a 50MB log file."

Awesome guys, I'll look into that "package.env"

Nonetheless, Chromium is a MONSTER :P