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
Hi @yulyur1
Have you tried to manually download one and have a copy of that with a suffix .done?
Regards
Harvey
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...
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
Hi,
Have you checked the hash value when you manually download it?
Can also have a reference this one you mentioned earlier.
Regards
Harvey
I have masked "onnxruntime" from the build
BBMASK = "onnxruntime_1.17.1.bb" in conf/local.conf