我遇到的问题是我正在尝试使用 bitbake 从头开始构建 Angstrom 图像(因为 Angstrom 现在与 Yocto 兼容)但是我在运行时遇到了错误bitbake systemd-image
Traceback (most recent call last):
File "/usr/bin/bitbake", line 234, in <module>
ret = main()
File "/usr/bin/bitbake", line 197, in main
server = ProcessServer(server_channel, event_queue, configuration)
File "/usr/lib/pymodules/python2.7/bb/server/process.py", line 78, in __init__
self.cooker = BBCooker(configuration, self.register_idle_function)
File "/usr/lib/pymodules/python2.7/bb/cooker.py", line 76, in __init__
self.parseConfigurationFiles(self.configuration.file)
File "/usr/lib/pymodules/python2.7/bb/cooker.py", line 510, in parseConfigurationFiles
data = _parse(os.path.join("conf", "bitbake.conf"), data)
TypeError: getVar() takes exactly 3 arguments (2 given)
ERROR: Error evaluating '${TARGET_OS}:${TRANSLATED_TARGET_ARCH}:build-${BUILD_OS}:pn-${PN}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}:${CLASSOVERRIDE}:forcevariable${@bb.utils.contains("TUNE_FEATURES", "thumb", ":thumb", "", d)}${@bb.utils.contains("TUNE_FEATURES", "no-thumb-interwork", ":thumb-interwork", "", d)}'
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 116, in expandWithRefs
s = __expand_var_regexp__.sub(varparse.var_sub, s)
File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 60, in var_sub
var = self.d.getVar(key, 1)
File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 260, in getVar
return self.expand(value, var)
File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 132, in expand
return self.expandWithRefs(s, varname).value
File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 117, in expandWithRefs
s = __expand_python_regexp__.sub(varparse.python_sub, s)
TypeError: getVar() takes exactly 3 arguments (2 given)
ERROR: Error evaluating '${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE'),d)[0] or 'defaultpkgname'}'
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 117, in expandWithRefs
s = __expand_python_regexp__.sub(varparse.python_sub, s)
File "/usr/lib/pymodules/python2.7/bb/data_smart.py", line 76, in python_sub
value = utils.better_eval(codeobj, DataContext(self.d))
File "/usr/lib/pymodules/python2.7/bb/utils.py", line 387, in better_eval
return eval(source, _context, locals)
File "PN", line 1, in <module>
TypeError: getVar() takes exactly 3 arguments (2 given)
我已经有一段时间了,在不同的网站上搜索。最初我尝试按照 Angstrom 网站上开发人员部分的指南进行操作,但是一旦我遇到一些错误(在我放在这里之前),我发现了 Derek Molloy 的网站http://derekmolloy.ie/building-angstrom- for-beaglebone-from-source/解决了这些错误,并为该过程提供了更多细节。
最终,我偶然发现了另一个描述我的问题的论坛帖子,但不幸的是,答案并不是很清楚(无论如何对我来说)http://comments.gmane.org/gmane.linux.distributions.angstrom.devel/7431。我不知道可能出了什么问题,而且我对 Yocto 项目还很陌生,所以我不确定是否有任何步骤丢失或我忽略了一些隐含的东西,所以我非常感谢任何能指出的人我在这个正确的方向。
作为旁注,我一直认为这可能与我拥有的 environment-angstrom-... 文件有关,因为我的是 environment-angstrom-v2013.12 并且所有其他示例都使用以前的版本,我想知道在处理这个问题时是否涉及到一个新的步骤。