命令:emerge qtwebengine
COMMON_FLAGS="-march=native -O2 -pipe"
MAKEOPTS="-j3"
USE="-bindist"
内存:4 GB
我尝试过删除 -pipe,并设置 -j1,还将 -jumbo-build 添加到 USE 标志,但不能同时执行这两项操作。dmesg | grep oom
没有任何结果
x86_64-pc-linux-gnu-g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
some random gibberish
ninja: build stopped: subcommand failed.
make[3]: *** [Makefile.gn_run:510: run_ninja] Error 1
make[3]: Leaving directory '/var/tmp/portage/dev-qt/qtwebengine-5.11.3/work/qtwebengine-everywhere-src-5.11.3/src/core'
make[2]: *** [Makefile:80: sub-gn_run-pro-make_first] Error 2
make[2]: Leaving directory '/var/tmp/portage/dev-qt/qtwebengine-5.11.3/work/qtwebengine-everywhere-src-5.11.3/src/core'
make[1]: *** [Makefile:79: sub-core-make_first] Error 2
make[1]: Leaving directory '/var/tmp/portage/dev-qt/qtwebengine-5.11.3/work/qtwebengine-everywhere-src-5.11.3/src'
make: *** [Makefile:47: sub-src-make_first] Error 2
[31;01m*[0m ERROR: dev-qt/qtwebengine-5.11.3::gentoo failed (compile phase):
[31;01m*[0m emake failed
[31;01m*[0m
[31;01m*[0m If you need support, post the output of `emerge --info '=dev-qt/qtwebengine-5.11.3::gentoo'`,
[31;01m*[0m the complete build log and the output of `emerge -pqv '=dev-qt/qtwebengine-5.11.3::gentoo'`.
[31;01m*[0m The complete build log is located at '/var/tmp/portage/dev-qt/qtwebengine-5.11.3/temp/build.log'.
[31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/dev-qt/qtwebengine-5.11.3/temp/environment'.
[31;01m*[0m Working directory: '/var/tmp/portage/dev-qt/qtwebengine-5.11.3/work/qtwebengine-everywhere-src-5.11.3'
[31;01m*[0m S: '/var/tmp/portage/dev-qt/qtwebengine-5.11.3/work/qtwebengine-everywhere-src-5.11.3'
答案1
/var/tmp/portage 是一个 tmpfs,对吧?在编译之前卸载它,工作数据将存储在磁盘上。