Summary: | dev-lang/spidermonkey-60.5.2_p0-r4::gentoo fails to compile | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | contact.tdw78 |
Component: | Current packages | Assignee: | Mozilla Gentoo Team <mozilla> |
Status: | RESOLVED TEST-REQUEST | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build log |
Description
contact.tdw78
2020-11-04 09:34:02 UTC
Created attachment 669986 [details]
build log
> x86_64-pc-linux-gnu-g++: fatal error: Killed signal terminated program cc1plus
In almost every cases this error means you ran out of RAM (`dmesg` would have a note about killing the process).
MAKEOPTS="-j13" is rather high for 8GB ram, a single cc1plus process can sometime use up to 2GB ram on larger packages.
^ agreed. OOM error should show up in dmesg at the time it happens. for C++ code golden rule is 2GB per 1 thread to be safe. so I would not set more than -j4 for 8GB ram system. maybe -j5 or -j6 will work, but still may fail. use -j4 to be on the safe side. same applies to other big c++ or c++/rust packages (llvm, browsers, rust, libreoffice, qtwebengine etc) (In reply to Ionen Wolkens from comment #2) > > x86_64-pc-linux-gnu-g++: fatal error: Killed signal terminated program cc1plus > In almost every cases this error means you ran out of RAM (`dmesg` would > have a note about killing the process). > > MAKEOPTS="-j13" is rather high for 8GB ram, a single cc1plus process can > sometime use up to 2GB ram on larger packages. ok I guess I'll give the VM 16GB of RAM. I'll update here when it finishes. (In reply to wolfemium from comment #4) > (In reply to Ionen Wolkens from comment #2) > > > x86_64-pc-linux-gnu-g++: fatal error: Killed signal terminated program cc1plus > > In almost every cases this error means you ran out of RAM (`dmesg` would > > have a note about killing the process). > > > > MAKEOPTS="-j13" is rather high for 8GB ram, a single cc1plus process can > > sometime use up to 2GB ram on larger packages. > > ok I guess I'll give the VM 16GB of RAM. I'll update here when it finishes. yep, gave the VM 16GB and it worked. Thanks y'all! |