IMX-IMAGE-FULL error SHA mismatch onnxruntime

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX-IMAGE-FULL error SHA mismatch onnxruntime

608 Views
yulyur1
Contributor II

Hello, I'm building a Yocto image for i.MX 8M Plus (based on imx-image-full and meta-imx-ml) and I consistently hit a failure when building onnxruntime 1.17.1.bb. The failure occurs during do_configure, specifically when CMake tries to fetch and verify the Eigen dependency using FetchContent.
It seems to be due to a SHA1 hash mismatch for the downloaded Eigen zip file:

-- Using src='https://gitlab.com/libeigen/eigen/-/archive/e7248b26a1ed53fa030c5c459f7ea095dfd276ac/eigen-e7248b26a...'
-- verifying file...
-- SHA1 hash of eigen-e7248b26a1ed53fa030c5c459f7ea095dfd276ac.zip does not match expected value
expected: be8be39fdbc6e60e94fa7870b280707069b5b81a
actual: 32b145f525a8308d7ab1c09388b2e288312d8eba
-- Hash mismatch, removing...
(repeats several times)
CMake Error at eigen-subbuild/eigen-populate-prefix/src/eigen-populate-stamp/download-eigen-populate.cmake:163 (message): Each download failed!

The build then fails completely for ONNX Runtime at do_configure.

What I have  tried: I tried cleaning and rebuilding, including bitbake -c cleanall onnxruntime

Build info:
32 Gb RAM 
fsl-imx-xwayland 
Host: Ubuntu 22.04
imx8mp-lpddr4-evk
I am fairly new to embedded systesm and 
any help is greatly appreciated ! Thank you very much
Full error log is as attached 

Tags (1)
0 Kudos
Reply
9 Replies

472 Views
Harvey021
NXP TechSupport
NXP TechSupport

Hi @yulyur1 

Have you tried to manually download one and have a copy of that with a suffix .done?

 

Regards

Harvey

 

0 Kudos
Reply

428 Views
yulyur1
Contributor II

Hello thanks or the suggestion. However, the same problem still persists. I should have included it from the start but attached below is the full error log. 

And unfortunately , I found another user facing the exact same problem as me. 
https://community.nxp.com/t5/i-MX-Processors/Yocto-Build-Fail-onnxruntime-Fails-on-do-configure-with...

0 Kudos
Reply

346 Views
Harvey021
NXP TechSupport
NXP TechSupport

Hi

I've just tried to test it and the build without issue.

The branch 6.6.52-2.2.0

Host: 22.04.1-Ubuntu

repo init -u https://github.com/nxp-imx/imx-manifest -b imx-linux-scarthgap -m imx-6.6.52-2.2.0.xml

repo sync

MACHINE=imx8mp-lpddr4-evk DISTRO=fsl-imx-xwayland source imx-setup-release.sh -b build-onnx

bitbake imx-image-full

Make sure that you've followed up the Yocto User Guide, like Host setup.

Can try to remove the current one and rebuild.

Can firstly run bitbake onnxruntime before running bitbake imx-image-full

 

Regards

Harvey

 

 

0 Kudos
Reply

308 Views
yulyur1
Contributor II
Hello Harvey,
I dont quite know what i am doing wrong. Ive tried bitbakinng onnxruntime and i am still getting the same error log. I tried on different versions of ubuntu , restarted on a new VM , on wsl, my laptop and they produced the same error. I have succesfully built imx-image-full a month ago so I am sure I have followed the yocto user guide carefully. Please advice thanks ...
0 Kudos
Reply

150 Views
Harvey021
NXP TechSupport
NXP TechSupport

Hi,

Have you checked the hash value when you manually download it?

Can also have a reference this one you mentioned earlier. 

Regards

Harvey

0 Kudos
Reply

559 Views
RaghavaSanikam
Contributor II

The error log is attached

0 Kudos
Reply

486 Views
yulyur1
Contributor II

Hello, did you manage to solve it?

Tags (1)
0 Kudos
Reply

477 Views
RaghavaSanikam
Contributor II

I have masked "onnxruntime" from the build 

BBMASK = "onnxruntime_1.17.1.bb"   in conf/local.conf

566 Views
RaghavaSanikam
Contributor II
Hello, I am having exactly the same issue. Any help is appreciated.
0 Kudos
Reply