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