IMX-IMAGE-FULL error SHA mismatch onnxruntime

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

IMX-IMAGE-FULL error SHA mismatch onnxruntime

2,263 次查看
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 

标记 (1)
0 项奖励
回复
10 回复数

1,530 次查看
Tuitor
Contributor II

Hi,

I know this issue is 3 weeks old so I might be too late, but in case someone with the same issue hasn't found any solution yet, here is mine.

Edit

./tmp/work/armv8a-poky-linux/onnxruntime/1.17.1/git/cmake/external/eigen.cmake

Find this line

URL_HASH SHA1=${DEP_SHA1_eigen}

Either change it to

URL_HASH SHA1=32b145f525a8308d7ab1c09388b2e288312d8eba

or juste remove it, this will disable the hash check mechanism.

Hope this helps. 

0 项奖励
回复

2,127 次查看
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 项奖励
回复

2,053 次查看
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 项奖励
回复

1,971 次查看
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 项奖励
回复

1,933 次查看
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 项奖励
回复

1,775 次查看
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 项奖励
回复

2,184 次查看
RaghavaSanikam
Contributor II

The error log is attached

0 项奖励
回复

2,111 次查看
yulyur1
Contributor II

Hello, did you manage to solve it?

标记 (1)
0 项奖励
回复

2,102 次查看
RaghavaSanikam
Contributor II

I have masked "onnxruntime" from the build 

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

2,191 次查看
RaghavaSanikam
Contributor II
Hello, I am having exactly the same issue. Any help is appreciated.
0 项奖励
回复