编译报错
gcc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
dmesg
可以看到系统有提示 out of memory
free -m
可以看到 memory基本被吃光了
原来是我的VMware分配的内存太少啦, 而编译project要消耗更多硬件性能
关掉系统,设定到 4G 内存,果然可以了
网络搜索错误原因,也有提及:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87316
This means GCC ran out of memory.
Hmm, yeah, increasing the memory a bit (4GB -> 5GB) leads to a successful compile.
I guess it is expected that newer versions use more memory – more features, etc.