onnxruntime failed on imx95 yocto

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

onnxruntime failed on imx95 yocto

199 次查看
asuvath
Contributor I

Hi ,

we are trying to build the yocto image for imx95-evk with meta-eiq-genai-flow layer added to test LLM demo on imx95-evk ,
while trying to build the yocto image we have faced onnxruntime do_compile error, can you provide any fix for the issue?

error:-

/usr/include/python3.12/pyconfig.h:9:12: fatal error: aarch64-linux-gnu/python3.12/pyconfig.h: No such file or directory
| 9 | # include <aarch64-linux-gnu/python3.12/pyconfig.h>
| | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| cc1plus: all warnings being treated as errors
| In file included from /usr/include/python3.12/Python.h:12,
| from /home/adlink-ccoe8/Documents/BUILD/LEC-IMX95/imx95-yocto-bsp/build/tmp/work/armv8a-poky-linux/onnxruntime/1.20.1/recipe-sysroot/usr/include/pybind11/detail/common.h:266,
| from /home/adlink-ccoe8/Documents/BUILD/LEC-IMX95/imx95-yocto-bsp/build/tmp/work/armv8a-poky-linux/onnxruntime/1.20.1/recipe-sysroot/usr/include/pybind11/attr.h:13,
| from /home/adlink-ccoe8/Documents/BUILD/LEC-IMX95/imx95-yocto-bsp/build/tmp/work/armv8a-poky-linux/onnxruntime/1.20.1/recipe-sysroot/usr/include/pybind11/detail/class.h:12,
| from /home/adlink-ccoe8/Documents/BUILD/LEC-IMX95/imx95-yocto-bsp/build/tmp/work/armv8a-poky-linux/onnxruntime/1.20.1/recipe-sysroot/usr/include/pybind11/pybind11.h:13,
| from /home/adlink-ccoe8/Documents/BUILD/LEC-IMX95/imx95-yocto-bsp/build/tmp/work/armv8a-poky-linux/onnxruntime/1.20.1/git/onnxruntime/python/onnxruntime_pybind.h:18,
| from /home/adlink-ccoe8/Documents/BUILD/LEC-IMX95/imx95-yocto-bsp/build/tmp/work/armv8a-poky-linux/onnxruntime/1.20.1/git/onnxruntime/python/onnxruntime_pybind_module.cc:4:
| /usr/include/python3.12/pyconfig.h:9:12: fatal error: aarch64-linux-gnu/python3.12/pyconfig.h: No such file or directory
| 9 | # include <aarch64-linux-gnu/python3.12/pyconfig.h>
| | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| cc1plus: all warnings being treated as errors
| In file included from /usr/include/python3.12/Python.h:12,
| from /home/adlink-ccoe8/Documents/BUILD/LEC-IMX95/imx95-yocto-bsp/build/tmp/work/armv8a-poky-linux/onnxruntime/1.20.1/recipe-sysroot/usr/include/pybind11/detail/common.h:266,
| from /home/adlink-ccoe8/Documents/BUILD/LEC-IMX95/imx95-yocto-bsp/build/tmp/work/armv8a-poky-linux/onnxruntime/1.20.1/recipe-sysroot/usr/include/pybind11/attr.h:13,
| from /home/adlink-ccoe8/Documents/BUILD/LEC-IMX95/imx95-yocto-bsp/build/tmp/work/armv8a-poky-linux/onnxruntime/1.20.1/recipe-sysroot/usr/include/pybind11/detail/class.h:12,
| from /home/adlink-ccoe8/Documents/BUILD/LEC-IMX95/imx95-yocto-bsp/build/tmp/work/armv8a-poky-linux/onnxruntime/1.20.1/recipe-sysroot/usr/include/pybind11/pybind11.h:13,
| from /home/adlink-ccoe8/Documents/BUILD/LEC-IMX95/imx95-yocto-bsp/build/tmp/work/armv8a-poky-linux/onnxruntime/1.20.1/git/onnxruntime/python/onnxruntime_pybind.h:18,
| from /home/adlink-ccoe8/Documents/BUILD/LEC-IMX95/imx95-yocto-bsp/build/tmp/work/armv8a-poky-linux/onnxruntime/1.20.1/git/onnxruntime/python/onnxruntime_pybind_mlvalue.h:7,
| from /home/adlink-ccoe8/Documents/BUILD/LEC-IMX95/imx95-yocto-bsp/build/tmp/work/armv8a-poky-linux/onnxruntime/1.20.1/git/onnxruntime/python/onnxruntime_pybind_mlvalue.cc:3:
| /usr/include/python3.12/pyconfig.h:9:12: fatal error: aarch64-linux-gnu/python3.12/pyconfig.h: No such file or directory
| 9 | # include <aarch64-linux-gnu/python3.12/pyconfig.h>
| | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| In file included from /usr/include/python3.12/Python.h:12,
| from /home/adlink-ccoe8/Documents/BUILD/LEC-IMX95/imx95-yocto-bsp/build/tmp/work/armv8a-poky-linux/onnxruntime/1.20.1/recipe-sysroot/usr/include/pybind11/detail/common.h:266,
| from /home/adlink-ccoe8/Documents/BUILD/LEC-IMX95/imx95-yocto-bsp/build/tmp/work/armv8a-poky-linux/onnxruntime/1.20.1/recipe-sysroot/usr/include/pybind11/attr.h:13,
| from /home/adlink-ccoe8/Documents/BUILD/LEC-IMX95/imx95-yocto-bsp/build/tmp/work/armv8a-poky-linux/onnxruntime/1.20.1/recipe-sysroot/usr/include/pybind11/detail/class.h:12,
| from /home/adlink-ccoe8/Documents/BUILD/LEC-IMX95/imx95-yocto-bsp/build/tmp/work/armv8a-poky-linux/onnxruntime/1.20.1/recipe-sysroot/usr/include/pybind11/pybind11.h:13,
| from /home/adlink-ccoe8/Documents/BUILD/LEC-IMX95/imx95-yocto-bsp/build/tmp/work/armv8a-poky-linux/onnxruntime/1.20.1/git/onnxruntime/python/onnxruntime_pybind.h:18,
| from /home/adlink-ccoe8/Documents/BUILD/LEC-IMX95/imx95-yocto-bsp/build/tmp/work/armv8a-poky-linux/onnxruntime/1.20.1/git/onnxruntime/python/onnxruntime_pybind_exceptions.h:6,
| from /home/adlink-ccoe8/Documents/BUILD/LEC-IMX95/imx95-yocto-bsp/build/tmp/work/armv8a-poky-linux/onnxruntime/1.20.1/git/onnxruntime/python/onnxruntime_pybind_iobinding.cc:4:
| /usr/include/python3.12/pyconfig.h:9:12: fatal error: aarch64-linux-gnu/python3.12/pyconfig.h: No such file or directory
| 9 | # include <aarch64-linux-gnu/python3.12/pyconfig.h>
| | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| compilation terminated.
| cc1plus: all warnings being treated as errors
| cc1plus: all warnings being treated as errors
| cc1plus: all warnings being treated as errors
| cc1plus: all warnings being treated as errors
| compilation terminated.
| In file included from /usr/include/python3.12/Python.h:12,

标签 (2)
0 项奖励
回复
0 回复数