Re: [yocto] Find the cause of a hash mismatch
Rudolf J Streif <[email protected]>
| Newsgroups | org.yoctoproject.lists.yocto |
|---|---|
| Message-ID | <[email protected]> |
Hello Joerg, On 10/17/25 1:19 PM, Jörg Sommer via lists.yoctoproject.org wrote: > Hello, > > I have the problem that Bitbake tells me > > ERROR: When reparsing /build/…/hcpu-image.bb:do_rootfs, the basehash value changed from fdd865f9c6dc6cafdb8bf9889cfe2299fc8aa4fd2de39156556ae539fad55430 to 72b5f3ee3ec9d16cf4d1ac67cc445577778893044d0fa7de6072ccfd0cc3b11d. The metadata is not deterministic and this needs to be fixed. > ERROR: The following commands may help: > ERROR: $ bitbake hcpu-image -cdo_rootfs -Snone > ERROR: Then: > ERROR: $ bitbake hcpu-image -cdo_rootfs -Sprintdiff > > When I try this I get many messages like this > > ERROR: Bitbake's cached basehash does not match the one we just generated (/build/…/hcpu-image.bb:do_rootfs)! > ERROR: The mismatched hashes were fdd865f9c6dc6cafdb8bf9889cfe2299fc8aa4fd2de39156556ae539fad55430 and 72b5f3ee3ec9d16cf4d1ac67cc445577778893044d0fa7de6072ccfd0cc3b11d > ERROR: Taskhash mismatch f30533c7b6414e9bce8ae48a1c4a1bc426f6731b67ff4e840d0ffa25c931039d versus a85ef1dc5e75a38df2c8474316532ca315be6e2ef0977c466d74b0e2a9190718 for /build/…/hcpu-image.bb:do_rootfs > Writing locked sigs to /build/locked-sigs.inc It probably happens inside of this file locked-sigs.inc you are including with the image recipe. It probably does some operations that assigns variable data e.g. dates, times, etc. to a Bitbake variable. That would change the signature hash of the recipes meta data. [...] > How can I track down the cause of the hash mismatch? Any help is > appreciated, because this problem persists and it drives my crazy. > > > Thanks in advance, Jörg > > > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#65951): https://lists.yoctoproject.org/g/yocto/message/65951 > Mute This Topic: https://lists.yoctoproject.org/mt/115814322/3617932 > Group Owner: [email protected] > Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]] > -=-=-=-=-=-=-=-=-=-=-=- > -- Rudolf J Streif CEO/CTO 1.855.442.3386