我有一个在Docker容器(CentOS 7)上运行的BitBake构建过程。在我试用的每次运行中,bitBake在recipe gcc-cross-i586-5.2.0-r0: task do_compile
期间失败。
bitbake
输出的一个例子:
NOTE: recipe gcc-cross-i586-5.2.0-r0: task do_compile: Started
ERROR: Worker process (367) exited unexpectedly (-9), shutting down...
ERROR: Worker process (367) exited unexpectedly (-9), shutting down...
ERROR: Worker process (367) exited unexpectedly (-9), shutting down...
ERROR: Worker process (367) exited unexpectedly (-9), shutting down...
NOTE: Tasks Summary: Attempted 1538 tasks of which 17 didn't need to be rerun and all succeeded.
这是recipe gcc-cross-i586-5.2.0-r0: task do_compile
的问题吗?也许是内存不足的错误?我不知道-9
所指的是什么,或者如何找到有关它的更多信息。
尝试:
$ bitbake -c cleansstate gcc-cross ; bitbake -k gcc-cross
你对ram有多少记忆?
此处报告日志错误。
只需很长一段时间,内核中的-9表示EBADF(文件编号错误。)是否有可能以root身份执行某些操作,并且在构建期间无法访问某些文件?问题是否可重现?即。你能rm -rf tmp并再次发生吗?确保项目目录和关联的文件系统中没有任何权限问题。
这对我有用,
通过将以下内容添加到conf / local.conf文件(在构建目录下)来编辑conf / local.conf并减少工作线程数:
BB_NUMBER_THREADS =“6”