Previous summary: dev-qt/qtwebengine can fail to build with 16GB RAM or less and >=12 "cores" (counting threads)
As per description, there are some common hardware configurations that will cause the OOM killer to do its thing when building dev-qt/qtwebengine. I experienced this when testing 5.15.2-r1 on one of my laptops.
This is caused by MAKEOPTS being set automatically by Portage based on the number of cores, but there not being sufficient RAM.
I have a workaround for this in several ebuilds such as webkit, which will set MAKEOPTS based on the number of real cores, not virtual cores, since this can half memory consumption with a minor performance impact, and also scale back number of cores further on systems with less memory. These should be applied to qtwebengine as well.
- is duplicated by
-
FL-10920 New eclass "memsaver"
- Closed
-
FL-10282 [feature-request] jobs-reduced option for cpu constrained systems
- Closed
- relates to
-
FL-10989 Build dev-qt/qtwebengine-5.15.7-r2::qt-kit failed due to "syntax error operand expected"
- Closed
-
FL-11100 net-libs/webkit-gtk-2.34.1 failed to compile
- Closed
-
FL-8590 Consider adding a dev-qt/qtwebengine-bin package
- Work Queue
-
FL-9142 KDE build instructions modification
- Work Queue