<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Yocto Build Fail: onnxruntime Fails on do_configure with Eigen Download SHA1 Hash Mismatch in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Build-Fail-onnxruntime-Fails-on-do-configure-with-Eigen/m-p/2113766#M238053</link>
    <description>&lt;P&gt;I have attached the build log and error.&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jun 2025 17:05:09 GMT</pubDate>
    <dc:creator>davidruffen</dc:creator>
    <dc:date>2025-06-10T17:05:09Z</dc:date>
    <item>
      <title>Yocto Build Fail: onnxruntime Fails on do_configure with Eigen Download SHA1 Hash Mismatch</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Build-Fail-onnxruntime-Fails-on-do-configure-with-Eigen/m-p/2112857#M238006</link>
      <description>&lt;P&gt;&lt;LI-PRODUCT title="iMX95" id="iMX95"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;LI-PRODUCT title="IMX8MPLUS" id="IMX8MPLUS"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;BR /&gt;#yocto&lt;/P&gt;&lt;P&gt;Hello NXP Community,&lt;/P&gt;&lt;P&gt;I am working on a Yocto build for an &lt;STRONG&gt;i.MX 8M Plus&lt;/STRONG&gt; target and have run into a consistent build failure with the onnxruntime recipe from the meta-imx-ml layer.&lt;/P&gt;&lt;P&gt;The build fails during the do_configure task with a checksum mismatch when trying to download the Eigen library dependency.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Build Environment:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;BSP Version:&lt;/STRONG&gt; Based on imx-linux-kirkstone (or a recent styhead branch)&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Machine:&lt;/STRONG&gt; imx8mp-evk&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Distro:&lt;/STRONG&gt; fsl-imx-xwayland&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Host OS:&lt;/STRONG&gt; &lt;SPAN&gt;Ubuntu 20.04.3 LTS&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Build Command:&lt;/STRONG&gt; bitbake imx-image-full&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Problem Description:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The build process for onnxruntime uses CMake's FetchContent to download the Eigen library. The download appears successful, but it fails at the verification step because the SHA1 hash of the downloaded file does not match the expected hash in the build script.&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;Error Log Snippet:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Here is the relevant failure from the log:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Code snippet&lt;/SPAN&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;-- verifying file...
|        file='/home2/anil/IMX8MP/build-xwayland/tmp/work/armv8a-poky-linux/onnxruntime/1.17.1/build/_deps/eigen-subbuild/eigen-populate-prefix/src/eigen-e7248b26a1ed53fa030c5c459f7ea095dfd276ac.zip'
| -- SHA1 hash of
|      /home2/anil/IMX8MP/build-xwayland/tmp/work/armv8a-poky-linux/onnxruntime/1.17.1/build/_deps/eigen-subbuild/eigen-populate-prefix/src/eigen-e7248b26a1ed53fa030c5c459f7ea095dfd276ac.zip
|   does not match expected value
|      expected: 'be8be39fdbc6e60e94fa7870b280707069b5b81a'
|        actual: '32b145f525a8308d7ab1c09388b2e288312d8eba'
| -- &lt;SPAN class=""&gt;Hash mismatch, removing...
| CMake Error at eigen-subbuild/eigen-populate-prefix/src/eigen-populate-stamp/download-eigen-populate.cmake:163&lt;/SPAN&gt; (message):
|   Each download failed!
|
|
| make[&lt;SPAN class=""&gt;2]: *** [CMakeFiles/eigen-populate.dir/build.make:100: eigen-populate-prefix/src/eigen-populate-stamp/eigen-populate-download] Error&lt;/SPAN&gt; 1
| make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/eigen-populate.dir/all] Error 2
| make: *** [Makefile:91: all] Error 2
|
| CMake Error at /home2/anil/IMX8MP/build-xwayland/tmp/work/armv8a-poky-linux/onnxruntime/1.17.1/recipe-sysroot-native/usr/share/cmake-3.30/Modules/FetchContent.cmake:1918 (message):
|   Build step for eigen failed: 2&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;Troubleshooting Steps Already Taken:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Full Clean:&lt;/STRONG&gt; I have run bitbake -c cleanall onnxruntime to remove all cached sstate and work directory files.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Manual Download Cache Clearing:&lt;/STRONG&gt; I have manually deleted the eigen-*.zip file from my downloads directory to ensure the build attempts a fresh download.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Network Check:&lt;/STRONG&gt; I have confirmed that this is not a network proxy issue. Manually downloading the file with wget and checking its hash with sha1sum confirms that the "actual" hash (32b145f...) is what is being served from GitLab, indicating the file upstream may have changed or been re-packaged.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;My Questions:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Is this a known issue with the onnxruntime recipe in the meta-imx-ml layer?&lt;/LI&gt;&lt;LI&gt;What is the recommended "Yocto-way" to resolve this? Is there an official patch available that updates the checksum or, preferably, adds Eigen as a proper SRC_URI dependency to avoid the FetchContent download during do_configure?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Any help or guidance on how to properly patch this recipe would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thank you,&lt;BR /&gt;Anil Dongare.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 09 Jun 2025 13:25:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-Build-Fail-onnxruntime-Fails-on-do-configure-with-Eigen/m-p/2112857#M238006</guid>
      <dc:creator>dongare_anil</dc:creator>
      <dc:date>2025-06-09T13:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto Build Fail: onnxruntime Fails on do_configure with Eigen Download SHA1 Hash Mismatch</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Build-Fail-onnxruntime-Fails-on-do-configure-with-Eigen/m-p/2113738#M238046</link>
      <description>&lt;P&gt;I am also seeing the same issue trying to build IMX95 (build information below) and also looking for a solution to this.&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Build Environment:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;BSP Version:&lt;/STRONG&gt; Based on imx-linux-scarthgap -m&amp;nbsp;imx-6.6.52-2.2.0.xml&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Machine:&lt;/STRONG&gt;&amp;nbsp;imx95-19x19-verdin&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Distro:&lt;/STRONG&gt; fsl-imx-xwayland&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Host OS:&lt;/STRONG&gt; &lt;SPAN&gt;Ubuntu 22.04.05. LTS&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Build Command:&lt;/STRONG&gt; bitbake imx-image-full&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 10 Jun 2025 15:58:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-Build-Fail-onnxruntime-Fails-on-do-configure-with-Eigen/m-p/2113738#M238046</guid>
      <dc:creator>davidruffen</dc:creator>
      <dc:date>2025-06-10T15:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto Build Fail: onnxruntime Fails on do_configure with Eigen Download SHA1 Hash Mismatch</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Build-Fail-onnxruntime-Fails-on-do-configure-with-Eigen/m-p/2113759#M238050</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;This fail also with full-image on iMX95? this is probable a bug let's check it, since I can not reproduce this issue, is probably a bad package on your host.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2025 16:49:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-Build-Fail-onnxruntime-Fails-on-do-configure-with-Eigen/m-p/2113759#M238050</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2025-06-10T16:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto Build Fail: onnxruntime Fails on do_configure with Eigen Download SHA1 Hash Mismatch</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Build-Fail-onnxruntime-Fails-on-do-configure-with-Eigen/m-p/2113762#M238051</link>
      <description>It is very reproducible.&lt;BR /&gt;I did bitbake -f -c cleanall onnxruntime to try to clean it out.&lt;BR /&gt;Any other suggestions?</description>
      <pubDate>Tue, 10 Jun 2025 16:56:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-Build-Fail-onnxruntime-Fails-on-do-configure-with-Eigen/m-p/2113762#M238051</guid>
      <dc:creator>davidruffen</dc:creator>
      <dc:date>2025-06-10T16:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto Build Fail: onnxruntime Fails on do_configure with Eigen Download SHA1 Hash Mismatch</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Build-Fail-onnxruntime-Fails-on-do-configure-with-Eigen/m-p/2113766#M238053</link>
      <description>&lt;P&gt;I have attached the build log and error.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2025 17:05:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-Build-Fail-onnxruntime-Fails-on-do-configure-with-Eigen/m-p/2113766#M238053</guid>
      <dc:creator>davidruffen</dc:creator>
      <dc:date>2025-06-10T17:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto Build Fail: onnxruntime Fails on do_configure with Eigen Download SHA1 Hash Mismatch</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Build-Fail-onnxruntime-Fails-on-do-configure-with-Eigen/m-p/2113767#M238054</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Just remove the onnx and clean all:&lt;/P&gt;
&lt;P&gt;bitbake -c cleanall&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2025 17:05:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-Build-Fail-onnxruntime-Fails-on-do-configure-with-Eigen/m-p/2113767#M238054</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2025-06-10T17:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto Build Fail: onnxruntime Fails on do_configure with Eigen Download SHA1 Hash Mismatch</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Build-Fail-onnxruntime-Fails-on-do-configure-with-Eigen/m-p/2114163#M238073</link>
      <description>Yes, this also fail with full-image on imx8mp and its reproducible.</description>
      <pubDate>Wed, 11 Jun 2025 05:58:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-Build-Fail-onnxruntime-Fails-on-do-configure-with-Eigen/m-p/2114163#M238073</guid>
      <dc:creator>dongare_anil</dc:creator>
      <dc:date>2025-06-11T05:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto Build Fail: onnxruntime Fails on do_configure with Eigen Download SHA1 Hash Mismatch</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Build-Fail-onnxruntime-Fails-on-do-configure-with-Eigen/m-p/2114476#M238090</link>
      <description>&lt;P&gt;I have tried building in a new workspace and this error continues to happen.&lt;/P&gt;&lt;P&gt;bitbake -c clean onnxruntime does not resolve this.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2025 12:31:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-Build-Fail-onnxruntime-Fails-on-do-configure-with-Eigen/m-p/2114476#M238090</guid>
      <dc:creator>davidruffen</dc:creator>
      <dc:date>2025-06-11T12:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto Build Fail: onnxruntime Fails on do_configure with Eigen Download SHA1 Hash Mismatch</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Build-Fail-onnxruntime-Fails-on-do-configure-with-Eigen/m-p/2115512#M238148</link>
      <description>&lt;P&gt;I just found this post which looks to be the error -- not totally sure?&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/microsoft/onnxruntime/issues/24861" target="_blank"&gt;https://github.com/microsoft/onnxruntime/issues/24861&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just not sure how to pull in this fix from imx-linux-scarthgap.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 15:29:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-Build-Fail-onnxruntime-Fails-on-do-configure-with-Eigen/m-p/2115512#M238148</guid>
      <dc:creator>davidruffen</dc:creator>
      <dc:date>2025-06-12T15:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto Build Fail: onnxruntime Fails on do_configure with Eigen Download SHA1 Hash Mismatch</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Build-Fail-onnxruntime-Fails-on-do-configure-with-Eigen/m-p/2116120#M238191</link>
      <description>I can confirm that a full clean build will replicate this issue.</description>
      <pubDate>Fri, 13 Jun 2025 12:34:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-Build-Fail-onnxruntime-Fails-on-do-configure-with-Eigen/m-p/2116120#M238191</guid>
      <dc:creator>tatula</dc:creator>
      <dc:date>2025-06-13T12:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto Build Fail: onnxruntime Fails on do_configure with Eigen Download SHA1 Hash Mismatch</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Build-Fail-onnxruntime-Fails-on-do-configure-with-Eigen/m-p/2116190#M238199</link>
      <description>&lt;P&gt;Looks like the problem is related to the eigen package versionning and it's well known on ubuntu as it can be described from&amp;nbsp;&lt;A href="https://github.com/microsoft/onnxruntime/issues/18286" target="_blank" rel="noopener"&gt;https://github.com/microsoft/onnxruntime/issues/18286&lt;/A&gt;.&lt;BR /&gt;A gross temporary fix&amp;nbsp; is to edit the hash used to verfy the download. I prepare a patch for the onnxruntime package to edit the hash value of the eigen package so that it corresponds to what the hash of the online branch currently gives, which is&amp;nbsp;&amp;nbsp;32b145f525a8308d7ab1c09388b2e288312d8eba.&lt;BR /&gt;You can also find below the bbapend file for onnxruntime. So go to the onnxruntime package source folder located here: &lt;STRONG&gt;sources/meta-imx/meta-imx-ml/recipes-libraries/onnxruntime&lt;/STRONG&gt;, and paste the bbappend file. while there, Create a folder named &lt;STRONG&gt;files&lt;/STRONG&gt; and paste the patch inside.&lt;BR /&gt;Rerun bitbake -c configure onnxruntime, and it should be ok.&lt;BR /&gt;It may be the ugliest way to deal with but I don't have much time to investigate further.&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2025 15:19:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-Build-Fail-onnxruntime-Fails-on-do-configure-with-Eigen/m-p/2116190#M238199</guid>
      <dc:creator>guepy</dc:creator>
      <dc:date>2025-06-13T15:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto Build Fail: onnxruntime Fails on do_configure with Eigen Download SHA1 Hash Mismatch</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Build-Fail-onnxruntime-Fails-on-do-configure-with-Eigen/m-p/2125037#M238813</link>
      <description>&lt;P&gt;Bumped into the same issue today with the Full build for FRDM-IMX93. cleaning does not fix it.&lt;/P&gt;&lt;P&gt;When this is going to be resolved. Stuck now. Building full image takes days. Don't want to start all over again and bumped into the same issue due to a potential upstream faulty source code&lt;/P&gt;&lt;P&gt;-- SHA1 hash of&lt;BR /&gt;| /home/build/yocto/frdm-imx93/tmp/work/armv8a-poky-linux/onnxruntime/1.17.1/build/_deps/eigen-subbuild/eigen-populate-prefix/src/eigen-e7248b26a1ed53fa030c5c459f7ea095dfd276ac.zip&lt;BR /&gt;| does not match expected value&lt;BR /&gt;| expected: 'be8be39fdbc6e60e94fa7870b280707069b5b81a'&lt;BR /&gt;| actual: '32b145f525a8308d7ab1c09388b2e288312d8eba'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jun 2025 01:42:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-Build-Fail-onnxruntime-Fails-on-do-configure-with-Eigen/m-p/2125037#M238813</guid>
      <dc:creator>Bugger</dc:creator>
      <dc:date>2025-06-28T01:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto Build Fail: onnxruntime Fails on do_configure with Eigen Download SHA1 Hash Mismatch</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Build-Fail-onnxruntime-Fails-on-do-configure-with-Eigen/m-p/2125043#M238814</link>
      <description>&lt;P&gt;The patch changes&amp;nbsp;&amp;nbsp;git/cmake/deps.txt,&lt;/P&gt;&lt;P&gt;I can't seem to find this file in the yocto repo... (?)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jun 2025 02:43:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-Build-Fail-onnxruntime-Fails-on-do-configure-with-Eigen/m-p/2125043#M238814</guid>
      <dc:creator>Bugger</dc:creator>
      <dc:date>2025-06-28T02:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto Build Fail: onnxruntime Fails on do_configure with Eigen Download SHA1 Hash Mismatch</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Build-Fail-onnxruntime-Fails-on-do-configure-with-Eigen/m-p/2125045#M238815</link>
      <description>Found it. ~/yocto/frdm-imx93/tmp/work/armv8a-poky-linux/onnxruntime/1.17.1/git/cmake</description>
      <pubDate>Sat, 28 Jun 2025 02:50:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-Build-Fail-onnxruntime-Fails-on-do-configure-with-Eigen/m-p/2125045#M238815</guid>
      <dc:creator>Bugger</dc:creator>
      <dc:date>2025-06-28T02:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto Build Fail: onnxruntime Fails on do_configure with Eigen Download SHA1 Hash Mismatch</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Build-Fail-onnxruntime-Fails-on-do-configure-with-Eigen/m-p/2125079#M238823</link>
      <description>&lt;P&gt;My process that worked since I wanted to understand how the patch above worked and how to handle future occasions of similar issues.&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&amp;nbsp;bitbake -c cleanall onnxruntime&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;clean or cleanall resets the checksum in the dept.txt file&amp;nbsp; to the wrong value.&amp;nbsp;&amp;nbsp;Don't run this after patching.&lt;/P&gt;&lt;P&gt;2. cat ~/yocto/frdm-imx93/tmp/work/armv8a-poky-linux/onnxruntime/1.17.1/git/cmake/deps.txt&lt;/P&gt;&lt;P&gt;3. find the line with "eigen"&amp;nbsp;&lt;/P&gt;&lt;P&gt;eigen;&lt;A href="https://gitlab.com/libeigen/eigen/-/archive/e7248b26a1ed53fa030c5c459f7ea095dfd276ac/eigen-e7248b26a1ed53fa030c5c459f7ea095dfd276ac.zip;be8be39fdbc6e60e94fa7870b280707069b5b81a" target="_blank"&gt;https://gitlab.com/libeigen/eigen/-/archive/e7248b26a1ed53fa030c5c459f7ea095dfd276ac/eigen-e7248b26a1ed53fa030c5c459f7ea095dfd276ac.zip;be8be39fdbc6e60e94fa7870b280707069b5b81a&lt;/A&gt;&lt;/P&gt;&lt;P&gt;4. wget &lt;A href="https://gitlab.com/libeigen/eigen/-/archive/e7248b26a1ed53fa030c5c459f7ea095dfd276ac/eigen-e7248b26a1ed53fa030c5c459f7ea095dfd276ac.zip" target="_blank"&gt;https://gitlab.com/libeigen/eigen/-/archive/e7248b26a1ed53fa030c5c459f7ea095dfd276ac/eigen-e7248b26a1ed53fa030c5c459f7ea095dfd276ac.zip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;5. sha1sum&amp;nbsp;eigen-e7248b26a1ed53fa030c5c459f7ea095dfd276ac.zip&lt;/P&gt;&lt;P&gt;will report as checksum&amp;nbsp;32b145f525a8308d7ab1c09388b2e288312d8eba&lt;/P&gt;&lt;P&gt;6. edit deps.txt and change eigen line to&amp;nbsp;&lt;/P&gt;&lt;P&gt;eigen;&lt;A href="https://gitlab.com/libeigen/eigen/-/archive/e7248b26a1ed53fa030c5c459f7ea095dfd276ac/eigen-e7248b26a1ed53fa030c5c459f7ea095dfd276ac.zip;32b145f525a8308d7ab1c09388b2e288312d8eba" target="_blank"&gt;https://gitlab.com/libeigen/eigen/-/archive/e7248b26a1ed53fa030c5c459f7ea095dfd276ac/eigen-e7248b26a1ed53fa030c5c459f7ea095dfd276ac.zip;32b145f525a8308d7ab1c09388b2e288312d8eba&lt;/A&gt;&lt;/P&gt;&lt;P&gt;7. continue the yocto build&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best way would be if NXP makes an announcement and releases a patch that does this all&amp;nbsp; (or create an AI agent that will confirm for this well known problem.. "you are absolutely right, this is a problem in yocto and here is the way to fix it", &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&amp;nbsp; That would be better than assuming the download image is corrupt. BTW Instead of patching the checksum, Yocto could use the latest eigen package release ?&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jun 2025 13:53:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-Build-Fail-onnxruntime-Fails-on-do-configure-with-Eigen/m-p/2125079#M238823</guid>
      <dc:creator>Bugger</dc:creator>
      <dc:date>2025-06-28T13:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto Build Fail: onnxruntime Fails on do_configure with Eigen Download SHA1 Hash Mismatch</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Build-Fail-onnxruntime-Fails-on-do-configure-with-Eigen/m-p/2125116#M238829</link>
      <description>&lt;P&gt;Looked at the skyhead Yocto repo for IMX and found that this issue is not fixed in there. Since I am just starting off with Yocto perhaps my interpretation is wrong.&amp;nbsp; So as I estimate, with the NXP skyhead Yocto repo the build will fail on onnxruntime as well.&lt;/P&gt;&lt;P&gt;NXP uses own onnxruntime repo which version is directly linked to the Yotco image version:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NXP IMX scarthgap 6.6.36.2.1.0 Yocto&lt;/STRONG&gt;&lt;BR /&gt;meta-imx/meta-imx-ml/recipes-libraries/onnxruntime/onnxruntime_1.17.1.bb&lt;/P&gt;&lt;P&gt;ONNXRUNTIME_SRC ?= "gitsm://github.com/nxp-imx/onnxruntime-imx.git;protocol=https"&lt;BR /&gt;SRCBRANCH = "lf-6.6.36_2.1.0"&lt;BR /&gt;SRCREV = "813b93f64103847a21227725cb5ab04b6ca5b5ed"&lt;/P&gt;&lt;P&gt;The onnx repo points to the specific onnx repo which has the faulty cmake depts.txt with eigen&lt;/P&gt;&lt;P&gt;onnxruntime-imx/cmake/deps.txt&lt;BR /&gt;eigen;&lt;A href="https://gitlab.com/libeigen/eigen/-/archive/e7248b26a1ed53fa030c5c459f7ea095dfd276ac/eigen-e7248b26a1ed53fa030c5c459f7ea095dfd276ac.zip;be8be39fdbc6e60e94fa7870b280707069b5b81a" target="_blank" rel="noopener"&gt;https://gitlab.com/libeigen/eigen/-/archive/e7248b26a1ed53fa030c5c459f7ea095dfd276ac/eigen-e7248b26a1ed53fa030c5c459f7ea095dfd276ac.zip;be8be39fdbc6e60e94fa7870b280707069b5b81a&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NXP IMX skyhead 6.12.3.1.0 Yocto&lt;/STRONG&gt;&lt;BR /&gt;meta-imx/meta-imx-ml/recipes-libraries/onnxruntime/onnxruntime_1.17.1.bb&lt;BR /&gt;ONNXRUNTIME_SRC ?= "gitsm://github.com/nxp-imx/onnxruntime-imx.git;protocol=https"&lt;BR /&gt;SRCBRANCH = "lf-6.12.3_1.0.0"&lt;BR /&gt;SRCREV = "3616ba2f9cd2b7b882252a95e171f0c0c0f1826f"&lt;/P&gt;&lt;P&gt;In imx skyhead Yocto repo the onnxruntime is still the faulty one as well&lt;/P&gt;&lt;P&gt;eigen;&lt;A href="https://gitlab.com/libeigen/eigen/-/archive/e7248b26a1ed53fa030c5c459f7ea095dfd276ac/eigen-e7248b26a1ed53fa030c5c459f7ea095dfd276ac.zip;be8be39fdbc6e60e94fa7870b280707069b5b81a" target="_blank" rel="noopener"&gt;https://gitlab.com/libeigen/eigen/-/archive/e7248b26a1ed53fa030c5c459f7ea095dfd276ac/eigen-e7248b26a1ed53fa030c5c459f7ea095dfd276ac.zip;be8be39fdbc6e60e94fa7870b280707069b5b81a&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;There is a newer NXP imx onnxruntime branch lf.6.12.20-2.00 that has the correct eigen checksum for cmake devs.txt&lt;BR /&gt;but this has not been included in NXP's the latest Yocto skyhead repo&lt;/P&gt;&lt;P&gt;eigen;&lt;A href="https://gitlab.com/libeigen/eigen/-/archive/1d8b82b0740839c0de7f1242a3585e3390ff5f33/eigen-1d8b82b0740839c0de7f1242a3585e3390ff5f33.zip;5ea4d05e62d7f954a46b3213f9b2535bdd866803" target="_blank" rel="noopener"&gt;https://gitlab.com/libeigen/eigen/-/archive/1d8b82b0740839c0de7f1242a3585e3390ff5f33/eigen-1d8b82b0740839c0de7f1242a3585e3390ff5f33.zip;5ea4d05e62d7f954a46b3213f9b2535bdd866803&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jun 2025 02:32:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-Build-Fail-onnxruntime-Fails-on-do-configure-with-Eigen/m-p/2125116#M238829</guid>
      <dc:creator>Bugger</dc:creator>
      <dc:date>2025-06-29T02:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto Build Fail: onnxruntime Fails on do_configure with Eigen Download SHA1 Hash Mismatch</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Build-Fail-onnxruntime-Fails-on-do-configure-with-Eigen/m-p/2139113#M239494</link>
      <description>Worked for me. The patch format has changed slightly, need to add&lt;BR /&gt;Upstream-Status: Pending&lt;BR /&gt;but otherwise this worked.</description>
      <pubDate>Wed, 23 Jul 2025 07:43:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-Build-Fail-onnxruntime-Fails-on-do-configure-with-Eigen/m-p/2139113#M239494</guid>
      <dc:creator>Vince100</dc:creator>
      <dc:date>2025-07-23T07:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto Build Fail: onnxruntime Fails on do_configure with Eigen Download SHA1 Hash Mismatch</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-Build-Fail-onnxruntime-Fails-on-do-configure-with-Eigen/m-p/2342840#M244698</link>
      <description>&lt;P&gt;I'm building&amp;nbsp; Yocto Scarthgap 6.6.119 for iMX8MP (in Docker), and I ran into this same issue as of 31st of March 2026.&lt;BR /&gt;&lt;BR /&gt;With help from &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/125108"&gt;@Bugger&lt;/a&gt;'s solution and one of my robot-friends, I have distilled a simple procedure which worked perfectly for me. I executed these commands from my build directory (let's just call it BUILD_DIR):&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;(BUILD_DIR)$ cd tmp/work/armv8a-poky-linux/onnxruntime/1.17.1/git/cmake&lt;/LI&gt;&lt;LI&gt;(BUILD_DIR)/tmp/work/armv8a-poky-linux/onnxruntime/1.17.1/git/cmake$ sed -i 's/be8be39fdbc6e60e94fa7870b280707069b5b81a/32b145f525a8308d7ab1c09388b2e288312d8eba/' deps.txt&lt;/LI&gt;&lt;LI&gt;(BUILD_DIR)/tmp/work/armv8a-poky-linux/onnxruntime/1.17.1/git/cmake$ cd (BUILD_DIR)&lt;/LI&gt;&lt;LI&gt;(BUILD_DIR)$ bitbake -c configure onnxruntime &amp;amp;&amp;amp; bitbake fsl-image-gui&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This replaces the erroneous hash in deps.txt, and configures onnxruntime when running bitbake again. You can also do "grep eigen deps.txt" before and after the hash replacement to check that your actions take effect.&lt;BR /&gt;&lt;BR /&gt;Thanks &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/125108"&gt;@Bugger&lt;/a&gt;&amp;nbsp;for finding this solution, and for sharing it with the community &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2026 09:48:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-Build-Fail-onnxruntime-Fails-on-do-configure-with-Eigen/m-p/2342840#M244698</guid>
      <dc:creator>maxborglowe</dc:creator>
      <dc:date>2026-03-31T09:48:53Z</dc:date>
    </item>
  </channel>
</rss>

