运行bitbake时出现异常

问题描述 投票:1回答:2

使用this guide在BitBake中完成我的第一步,安装工作正常,直到我运行bitbake world,我得到这个 -

    WARNING: python should use 4 spaces indentation, but found tabs in base.bbclass, line 41
....
    WARNING: python should use 4 spaces indentation, but found tabs in base.bbclass, line 64
    Parsing recipes: 100% |###########################################################################################################################################################################| Time: 0:00:00
    Parsing of 1 .bb files complete (0 cached, 1 parsed). 1 targets, 0 skipped, 0 masked, 0 errors.
    NOTE: Resolving any missing task queue dependencies
    ERROR: An uncaught exception occurred in runqueue###################################################                                                                                              | ETA:  0:00:00
    Traceback (most recent call last):
      File "/home/ubuntu/bitbake/lib/bb/runqueue.py", line 1508, in RunQueue.execute_runqueue():
                 try:
        >            return self._execute_runqueue()
                 except bb.runqueue.TaskFailure:
      File "/home/ubuntu/bitbake/lib/bb/runqueue.py", line 1428, in RunQueue._execute_runqueue():
                                                                     [43, 967, 4, 3, 1, 5, 3, 7, 13, 1, 2, 1, 1, 246, 35, 1, 38, 1, 35, 2, 338, 204, 142, 3, 3, 37, 244])
        >            if self.rqdata.prepare() == 0:
                         self.state = runQueueComplete
      File "/home/ubuntu/bitbake/lib/bb/runqueue.py", line 1164, in RunQueueData.prepare():
                             todeal.remove(tid)
        >                    self.prepare_task_hash(tid)

      File "/home/ubuntu/bitbake/lib/bb/runqueue.py", line 1177, in RunQueueData.prepare_task_hash(tid='/home/ubuntu/Poky/poky/meta-tutorial/recipes-tutorial/first/first_0.1.bb:do_build'):
                 self.runtaskentries[tid].hash = bb.parse.siggen.get_taskhash(taskfn, taskname, procdep, self.dataCaches[mc])
        >        self.runtaskentries[tid].unihash = bb.parse.siggen.get_unihash(taskfn + "." + taskname)

      File "/home/ubuntu/bitbake/lib/bb/siggen.py", line 45, in SignatureGenerator.get_unihash(task='/home/ubuntu/Poky/poky/meta-tutorial/recipes-tutorial/first/first_0.1.bb.do_build'):
             def get_unihash(self, task):
        >        return self.taskhash[task]

    KeyError: '/home/ubuntu/Poky/poky/meta-tutorial/recipes-tutorial/first/first_0.1.bb.do_build'


    Summary: There were 13 WARNING messages shown.
    Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

是的 - 我从github中提取了最新的BitBake:

bitbake --version
BitBake Build Tool Core version 1.40.0

我的python代码出了什么问题?

bitbake
2个回答
0
投票

我面临完全相同的问题,终于找到了由于bitbake版本。

如果你从https://github.com/openembedded/bitbake git clone bitbake,你可以结账到早期版本:

git checkout标签/1.26.0 -b 1.26.0

然后问题就消失了。


1
投票

https://www.yoctoproject.org/docs/2.1/bitbake-user-manual/bitbake-user-manual.html#var-BB_SIGNATURE_HANDLER

似乎使用BB_SIGNATURE_HANDLER noop(默认情况下)

我通过在meta-tutorial / conf / bitbake.conf中添加BB_SIGNATURE_HANDLER define来修复此错误

BB_SIGNATURE_HANDLER ?= "basichash"

0
投票

教程代码被破坏了。 bitbake.conf存储在

ch04/meta-tutorial/conf/bitbake.conf

但它属于

ch04/build/conf/bitbake.conf 

将文件移动到那里就可以了

我开了一个问题:https://bitbucket.org/a4z/bitbakeguide/issues/17/bitbakeconf-stored-in-the-wrong-place

© www.soinside.com 2019 - 2024. All rights reserved.