bitbake-layers 挂起启动服务器

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

我对构建 yocto 相当陌生,但我已经构建了几个,并且正在学习如何将环境组合在一起。

我已经构建了一个用于构建的 docker 容器,但我一直遇到 bitbake-layers 的问题

如果我尝试创建、添加或显示图层,我看到的只是:

$ bitbake-layers show-layers
NOTE: Starting bitbake server...

...就是这样。 通过其他搜索,人们说“查看 bitbake-cookerdaemon.log 看看它挂起的原因”

好的...

-rw-rw-r--  1 username group    0 Sep 11 12:14 bitbake-cookerdaemon.log

看起来很有用。 在我终止进程后,我得到一个异常并且日志被刷新。

Traceback (most recent call last):
  File "/usr/lib/python3.12/threading.py", line 1622, in _shutdown
    lock.acquire()
61 16:14:09.189081 --- Starting bitbake server pid 61 at 2024-09-11 16:14:09.189036 ---
61 16:14:09.190818 Started bitbake server pid 61
61 16:14:09.191145 Entering server connection loop
61 16:14:09.191199 Lockfile is: /home/username/myir/myir_build/bitbake.lock
Socket is /home/username/myir/myir_build/bitbake.sock (True)
61 16:14:09.191966 Accepting [<socket.socket fd=6, family=1, type=1, proto=0, laddr=bitbake.sock>] ([])
61 16:14:09.192875 Processing Client
61 16:14:09.192947 Connecting Client
61 16:14:09.193583 Running command ['setFeatures', [2, 1]]
61 16:14:09.193656 Sending reply (None, None)
61 16:14:09.193780 Command Completed (socket: True)
61 16:14:09.194723 Running command ['updateConfig', ... ]
61 16:14:09.203470 Sending reply (None, 'bb.BBHandledException()\nTraceback (most recent call last):\n  File "/home/username/myir/myir_build/sources/bitbake/lib/bb/command.py", line 90, in runCommand\n    result = command_method(self, commandline)\n             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/home/username/myir/myir_build/sources/bitbake/lib/bb/command.py", line 290, in updateConfig\n    command.cooker.updateConfigOpts(options, environment, cmdline)\n  File "/home/username/myir/myir_build/sources/bitbake/lib/bb/cooker.py", line 466, in updateConfigOpts\n    self.reset()\n  File "/home/username/myir/myir_build/sources/bitbake/lib/bb/cooker.py", line 1739, in reset\n    self.initConfigurationData()\n  File "/home/username/myir/myir_build/sources/bitbake/lib/bb/cooker.py", line 282, in initConfigurationData\n    self.databuilder.parseBaseConfiguration()\n  File "/home/username/myir/myir_build/sources/bitbake/lib/bb/cookerdata.py", line 268, in parseBaseConfiguration\n    self.data = self.parseConfigurationFiles(self.prefiles, self.postfiles)\n                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/home/username/myir/myir_build/sources/bitbake/lib/bb/cookerdata.py", line 468, in parseConfigurationFiles\n    bb.fatal(msg)\n  File "/home/username/myir/myir_build/sources/bitbake/lib/bb/__init__.py", line 170, in fatal\n    raise BBHandledException()\nbb.BBHandledException\n')
61 16:14:09.203591 Command Completed (socket: True)
61 16:15:34.828883 Processing Client
61 16:15:34.829026 Disconnecting Client (socket: True)
61 16:15:34.829217 No timeout, exiting.
61 16:15:34.929608 Exiting (socket: True)
61 16:15:34.930370 Exiting as we could obtain the lock
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name='/home/username/myir/myir_build/bitbake-cookerdaemon.log' mode='a+' encoding='UTF-8'>
bitbake
1个回答
0
投票

我也有同样的问题。就我而言,系统中缺少软件包。尝试

bitbake core-image-minimal
给了我更好的诊断(抱歉,我没有复制确切的输出)。

我安装了缺少的软件包。就我而言,它是

# apt install chrpath diffstat lz4
。然后
bitbake-layers
开始工作。

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