我已经配置了具有8个处理器核心和256 MB RAM且没有交换的KVM虚拟机(VM)。完成了基于文本的最小化Ubuntu Saucy 13.10 amd64。已安装了用于构建/重新编译3.11.0内核的基本软件包。
执行命令时:
fakeroot make-kpkg -j 8 --initrd --append-to-version=-custom kernel_image kernel_headers"
最后以:
make: *** [debian/stamp/build/kernel] Error 2
控制台输出中的第一个错误是:
CC drivers/gpio/gpio-stmpe.o
{standard input}: Assembler messages:
{standard input}:2242: Warning: end of file not at end of a line; newline inserted
{standard input}:4413: Error: unknown pseudo-op: `.l'
{standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
gcc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
make[3]: *** [net/ipv6/udp.o] Error 4
make[2]: *** [net/ipv6] Error 2
make[2]: *** Waiting for unfinished jobs....
我的第一个想法是将随机存取存储器(RAM)的容量设置为低(256MB)。
看完控制台后,我确定构建机器的RAM太少了:
Out of memory: Kill process 8128 (cc1) score 117 or sacrifice child
Killed process 8128 (cc1) total-vm:102432kB, anon-rss:23184kB, file-rss:0kB
增加到384MB,512甚至640MB的RAM不足以停止“内存不足”错误消息。
什么是最小的量RAM要求,以构建内核?
768MB的RAM足以编译ARCH = x86_64的3.11.0内核。
请注意,640MB是不够的。
在这种情况下,.config文件被修改为localmodconfig,随后某些选项被禁用,而其他选项被启用。生成的.config文件大小为86458字节。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句