Skip to content
Code Vì Thích

Code Vì Thích

Saved my learning code and solution for some bugs!!!

    • Home
    • Contents
      • Programming
        • Python
      • Technology Fields
      • Bugs and Solutions
      • Tools
      • Questions and Answers
    • About

    [Yocto] ERROR: The metadata is not deterministic and this needs to be fixed.

    Bugs and Solutions
    admin in 20 May 2022
    Post Views: 5,976

    I am facing “Taskhash mismatch ” & “The metadata is not deterministic and this needs to be fixed” & “Taskhash mismatch “ errors in Yocto project build. This issue occurred without any obvious reasons. There is no change in the source code/recipe or any other build parameters.

    Error log:

    ERROR: When reparsing /home/Yoctos/5.10.72_2.2.0/sources/meta-imx/meta-sdk/recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_5.8.0.bb:do_compile, the basehash value changed from c9a5e395231ebddcceb23cb3312e6658a038657173d8e603775fb10f6ed83395 to 98c5b2d2904c60d576ea88a2eb3a44bc8e0c61e72c15954e9ca2eee31ace0f3c. The metadata is not deterministic and this needs to be fixed.
    ERROR: The following commands may help:

    ERROR: $ bitbake imx-gpu-sdk -cdo_compile -Snone

    ERROR: Then:

    ERROR: $ bitbake imx-gpu-sdk -cdo_compile -Sprintdiff

    or

    ERROR: When reparsing /home/nxf71573/Yoctos/5.10.72_2.2.0/sources/meta-imx/meta-sdk/recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_5.8.0.bb:do_compile, the basehash value changed from c9a5e395231ebddcceb23cb3312e6658a038657173d8e603775fb10f6ed83395 to 98c5b2d2904c60d576ea88a2eb3a44bc8e0c61e72c15954e9ca2eee31ace0f3c. The metadata is not deterministic and this needs to be fixed.

    ERROR: The following commands may help:

    ERROR: $ bitbake imx-gpu-sdk -cdo_compile -Snone

    ERROR: Then:

    ERROR: $ bitbake imx-gpu-sdk -cdo_compile -Sprintdiff

    ERROR: Bitbake’s cached basehash does not match the one we just generated (/home/nxf71573/Yoctos/5.10.72_2.2.0/sources/meta-imx/meta-sdk/recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_5.8.0.bb:do_compile)!

    ERROR: The mismatched hashes were c9a5e395231ebddcceb23cb3312e6658a038657173d8e603775fb10f6ed83395 and 98c5b2d2904c60d576ea88a2eb3a44bc8e0c61e72c15954e9ca2eee31ace0f3c

    ERROR: Taskhash mismatch 540cf4f9ec55ea13ab8671eb9d15e923294edf15c4901d901e2198272f86a578 versus f470bf5f0b7758ac36c24e691112ffd09f5a398d6d1c6119d9274961fb01d973 for /home/nxf71573/Yoctos/5.10.72_2.2.0/sources/meta-imx/meta-sdk/recipes-graphics/imx-gpu-sdk/imx-gpu-sdk_5.8.0.bb:do_compile

    My temporary solution is changing old_basehash to new_basehash logged in the error log (the basehash value changed from old_basehash to new_basehash.) at  cache file in folder ./tmp/cache/

    In my case:

    old_basehash:c9a5e395231ebddcceb23cb3312e6658a038657173d8e603775fb10f6ed83395

    new_basehash:98c5b2d2904c60d576ea88a2eb3a44bc8e0c61e72c15954e9ca2eee31ace0f3c

    • Step1: search old_basehash in folder ./tmp/cache
      ~/Yoctos/5.10.72_2.2.0/build-imx8qxpc0$ grep -rn c9a5e395231ebddcceb23cb3312e6658a038657173d8e603775fb10f6ed83395 tmp/cache
      Binary file tmp/cache/default-glibc/imx8qxpc0mek/x86_64/bb_cache.dat.32802993559eecd8b079a9361443b2917b3bce4a2d54cfba659be1e813fc1769 matches
    • Step2: Replace old_basehash by new_basehash; open cache file had found in step 1 and replace 98c5b2d2904c60d576ea88a2eb3a44bc8e0c61e72c15954e9ca2eee31ace0f3c by 98c5b2d2904c60d576ea88a2eb3a44bc8e0c61e72c15954e9ca2eee31ace0f3c
      ~/Yoctos/5.10.72_2.2.0/build-imx8qxpc0$ vim ./tmp/cache/default-glibc/imx8qxpc0mek/x86_64/bb_cache.dat.32802993559eecd8b079a9361443b2917b3bce4a2d54cfba659be1e813fc1769
    • Step3: Rebuild yocto again==> it’s ok now

     

    I hope that it is useful for you!

    Tagsthe basehash value changed fromThe metadata is not deterministic and this needs to be fixedyocto

    24 Comments

    1. free movie full.cc says:
      21/01/2023 at 8:27 pm

      free movie full.cc

      Reply
    2. mexican pharmacies online says:
      06/03/2023 at 10:32 am

      cheap canadian drugs

      Reply
    3. Аллегория says:
      06/03/2023 at 1:05 pm

      Аллегория

      Reply
    4. online pharmacies legitimate says:
      03/04/2023 at 9:13 pm

      fda approved canadian online pharmacies

      Reply
    5. buy medicine canada says:
      05/04/2023 at 12:02 pm

      mail order pharmacies

      Reply
    6. aarp approved canadian online pharmacies says:
      06/04/2023 at 2:49 am

      meds canadian compounding pharmacy

      Reply
    7. Джон уик смотреть says:
      11/04/2023 at 4:03 pm

      Джон уик смотреть

      Reply
    8. most trusted canadian online pharmacy says:
      15/04/2023 at 12:10 am

      most reliable canadian pharmacies

      Reply
    9. online pharmacy usa says:
      15/04/2023 at 4:20 am

      canadian drug pharmacy

      Reply
    10. canada pharmacy reviews says:
      15/04/2023 at 9:00 am

      list of canadian pharmacies

      Reply
    11. Батя фильм says:
      16/04/2023 at 3:04 pm

      Батя фильм

      Reply
    12. legitimate online pharmacy usa says:
      17/04/2023 at 3:55 pm

      canadian pharmacies list

      Reply
    13. prescription drugs without the prescription says:
      17/04/2023 at 10:52 pm

      fda approved online pharmacies

      Reply
    14. accredited canadian pharmacies says:
      18/04/2023 at 1:50 am

      canada prescriptions online

      Reply
    15. no prescription pharmacies says:
      18/04/2023 at 8:50 am

      my discount pharmacy

      Reply
    16. trust online pharmacy says:
      19/04/2023 at 1:26 am

      no prior prescription needed

      Reply
    17. online canadian pharmacy with prescription says:
      21/04/2023 at 3:39 pm

      drugs from canada without prescription

      Reply
    18. reputable mexican pharmacies online says:
      21/04/2023 at 5:37 pm

      reputable canadian pharmacy online

      Reply
    19. global pharmacy canada says:
      21/04/2023 at 7:20 pm

      buy canadian drugs online

      Reply
    20. the best canadian pharmacy says:
      22/04/2023 at 6:11 pm

      viagra 100mg canadian pharmacy

      Reply
    21. canadian pharmacy in canada says:
      24/04/2023 at 2:51 am

      canadian pharmacies that ship to usa

      Reply
    22. canadian pharmacy voltaren says:
      06/05/2023 at 7:16 am

      non prescription drugs

      Reply
    23. list of canada online pharmacies says:
      07/05/2023 at 2:45 am

      drugs without a prescription

      Reply
    24. canadian pharmacy 24hr says:
      18/05/2023 at 3:06 am

      rx canada

      Reply

    Leave a Reply Cancel reply

    Your email address will not be published. Required fields are marked *

    ← Previous Post Next Post →

    Search

    Calendar

    Bài Viết gần đây

    • [Yocto] Error executing a python function in exec_python_func() autogenerated 02/06/2022
    • [Linux] clean shell environment Linux 25/05/2022
    • [Yocto] ERROR: The metadata is not deterministic and this needs to be fixed. 20/05/2022
    • [Yocto] fatal error: Killed signal terminated program cc1plus 20/05/2022
    • [Yocto] WIC Image Creation Error for Yocto … mmcblk0.direct set 1 boot on returned ‘1’ instead of 0 29/03/2022

    Tổng quan

    Recent Posts

    • [Yocto] Error executing a python function in exec_python_func() autogenerated
    • [Linux] clean shell environment Linux
    • [Yocto] ERROR: The metadata is not deterministic and this needs to be fixed.
    • [Yocto] fatal error: Killed signal terminated program cc1plus
    • [Yocto] WIC Image Creation Error for Yocto … mmcblk0.direct set 1 boot on returned ‘1’ instead of 0

    Recent Comments

    • mgfmail.ru on [Yocto] WIC Image Creation Error for Yocto … mmcblk0.direct set 1 boot on returned ‘1’ instead of 0
    • canadian pharmacy 24hr on [Yocto] ERROR: The metadata is not deterministic and this needs to be fixed.
    • company-blog.ru on [Linux] clean shell environment Linux
    • list of canada online pharmacies on [Yocto] ERROR: The metadata is not deterministic and this needs to be fixed.
    • canadian pharmacy voltaren on [Yocto] ERROR: The metadata is not deterministic and this needs to be fixed.

    Archives

    • June 2022 (1)
    • May 2022 (3)
    • March 2022 (1)

    Categories

    • Bugs and Solutions (5)

    Meta

    • Register
    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org

    © 2021-2022 Code Vì Thích

    Powered by WordPress Whiteboard Theme

    ↑