This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM625: AM62xx-evm: tisdk-default-image yocto build failed for onnxruntime

Part Number: AM625

Hello Team,

I am building yocto for AM6254-SK EVM with target MACHINE=am62xx-evm (based on config configs/processor-sdk/processor-sdk-08.03.00.19-config.txt)

I am facing build issue for package "onnxruntime"  for target image "tisdk-default-image" as below:


[1/6] cd /home/anilpatel/ti_yocto/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/onnxruntime/1.7.0-r0.tisdk0/build/pybind11/src/pybind11 && /home/anilpatel/ti_yocto/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/onnxruntime/1.7.0-r0.tisdk0/recipe-sysroot-native/usr/bin/cmake -P /home/anilpatel/ti_yocto/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/onnxruntime/1.7.0-r0.tisdk0/build/pybind11/tmp/pybind11-gitupdate.cmake
FAILED: pybind11/src/pybind11-stamp/pybind11-update
cd /home/anilpatel/ti_yocto/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/onnxruntime/1.7.0-r0.tisdk0/build/pybind11/src/pybind11 && /home/anilpatel/ti_yocto/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/onnxruntime/1.7.0-r0.tisdk0/recipe-sysroot-native/usr/bin/cmake -P /home/anilpatel/ti_yocto/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/onnxruntime/1.7.0-r0.tisdk0/build/pybind11/tmp/pybind11-gitupdate.cmake
fatal: detected dubious ownership in repository at '/home/anilpatel/ti_yocto/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/onnxruntime/1.7.0-r0.tisdk0/build/pybind11/src/pybind11'
To add an exception for this directory, call:

git config --global --add safe.directory /home/anilpatel/ti_yocto/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/onnxruntime/1.7.0-r0.tisdk0/build/pybind11/src/pybind11
CMake Error at /home/anilpatel/ti_yocto/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/onnxruntime/1.7.0-r0.tisdk0/build/pybind11/tmp/pybind11-gitupdate.cmake:10 (message):
Failed to get the hash for HEAD


ninja: build stopped: subcommand failed.

+ bb_exit_handler
+ ret=1
+ case $ret in
+ case $BASH_VERSION in

+ echo 'WARNING: /home/anilpatel/ti_yocto/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/onnxruntime/1.7.0-r0.tisdk0/temp/run.do_install.247239:1 exit 1 from '\''eval ${DESTDIR:+DESTDIR=${DESTDIR} }VERBOSE=1 cmake --build '\''/home/anilpatel/ti_yocto/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/onnxruntime/1.7.0-r0.tisdk0/build'\'' "$@" -- ${EXTRA_OECMAKE_BUILD}'\'''
WARNING: /home/anilpatel/ti_yocto/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/onnxruntime/1.7.0-r0.tisdk0/temp/run.do_install.247239:1 exit 1 from 'eval ${DESTDIR:+DESTDIR=${DESTDIR} }VERBOSE=1 cmake --build '/home/anilpatel/ti_yocto/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/onnxruntime/1.7.0-r0.tisdk0/build' "$@" -- ${EXTRA_OECMAKE_BUILD}'
+ exit 1

ERROR: onnxruntime-1.7.0-r0.tisdk0 do_install: Execution of '/home/anilpatel/ti_yocto/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/onnxruntime/1.7.0-r0.tisdk0/temp/run.do_install.247239' failed with exit code 1
ERROR: Logfile of failure stored in: /home/anilpatel/ti_yocto/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/onnxruntime/1.7.0-r0.tisdk0/temp/log.do_install.247239
ERROR: Task (/home/anilpatel/ti_yocto/tisdk/sources/meta-processor-sdk/recipes-core/onnxruntime/onnxruntime.bb:do_install) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1128 tasks of which 1127 didn't need to be rerun and 1 failed.

Can someone please help me resolve this do_install error?

Thanks and Regards,

Anil Patel

  • hello team,

    any updates on this?

    Thanks and Regards,

    Anil Patel

  • Hello Anil,

    The Yocto owner is on vacation for the rest of this week. Please ping the thread if you do not receive a response within the first day or so of next week.

    Regards,

    Nick

  • Thanks for reply Nick.

    Still No updates.

    Is Yocto Owner is back?

  • Hi Anil,

    can you please try the git command given in the error message. I remember encountering something similar a while ago. There is an incompatibility that arose when git was updated to a later version which is now more strict about certain things, resulting in the error you see. The command will essentially add an exception for this. You can search for more info/background on this on the web if you are interested.

    git config --global --add safe.directory /home/anilpatel/ti_yocto/tisdk/build/arago-tmp-external-arm-glibc/work/aarch64-linux/onnxruntime/1.7.0-r0.tisdk0/build/pybind11/src/pybind11

    Alternatively, you could downgrade your git to an older version (would not recommend). Or you can remove the package from the recipe if you don't need it either by removing onnxruntime from meta-processor-sdk/recipes-core/packagegroups/packagegroup-dl.bb or removing the entire packagegroup-dl "deep learning" package group (that also includes opencv, tensorflow-lite for example) from meta-processor-sdk/recipes-core/images/tisdk-default-image.bbappend. If you don't need that stuff that will save you a lot of space/build time.

    Regards, Andreas
  • Thank you very much, Andreas.

    Mention git config global setting works for me.


    Thanks and Regards,

    Anil Patel