gpt4 book ai didi

yocto - 比特烘焙: "The metadata is not deterministic and this needs to be fixed"

转载 作者:行者123 更新时间:2023-12-03 14:35:36 52 4
gpt4 key购买 nike

我正在构建一个 Bitbake 配方并收到以下错误消息:
ERROR: When reparsing virtual:native:/path/to/poky/meta/recipes-devtools/cve-check-tool/cve-check-tool_5.6.4.bb.do_populate_cve_db, the basehash value changed from 0b637979bcb5db4263f9ed97497a6330 to bcd28a5efe646ed4d327fefa349f889c. The metadata is not deterministic and this needs to be fixed.

这在干净的构建中重现(在 bitbake -c cleanall -c cleansstate <recipe> 之后)。

这个错误的原因是什么?配方尚未从上游版本修改。

最佳答案

以下是添加此诊断信息的 yocto 补丁
https://patchwork.openembedded.org/patch/133517/

这是提交消息,解释了其原因以及获取问题更多详细信息的可能方法:

Bitbake can parse metadata in the cooker and in the worker during builds. If the metadata isn't deterministic, it can change between these two parses and this confuses things a lot. It turns out to be hard to debug these issues currently.

This patch ensures the basehashes from the original parsing are passed into the workers and that these are checked when reparsing for consistency. The user is shown an error message if inconsistencies are found.

There is debug code in siggen.py (see the "Slow but can be useful for debugging mismatched basehashes" commented code), we don't enable this by default due to performance issues. If you run into this message, enable this code and you will find "sigbasedata" files in tmp/stamps which should correspond to the hashes shown in this error message. bitbake-diffsigs on the files should show which variables are changing.

Signed-off-by: Richard Purdie

关于yocto - 比特烘焙: "The metadata is not deterministic and this needs to be fixed",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48762459/

52 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com