Bitbake full image failed by armnn-onnx and onnxruntime

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Bitbake full image failed by armnn-onnx and onnxruntime

Jump to solution
14,684 Views
khang_letruong
Senior Contributor III

Dear Community,

I'm bitbaking full image for imx8mpevk with BSP-5.4.70-2.3.2 and struggling with following error :

ERROR: onnxruntime-1.5.3-r0 do_unpack: gitsm: submodule unpack failed: UnpackError Unpack failure for URL: 'gitsm://github.com/onnx/onnx;protocol=https;name=cmake/external/onnx;subpath=cmake/external/onnx;bareclone=1;nobranch=1'. No up to date source found: clone directory not available or not up to date: /workdir/L4ES/spark-yocto-bsp-5_4_70-2_3_2/../../NXP/Boards/Common/Yocto/yocto_dl/v5.4//git2/github.com.onnx.onnx; shallow clone not enabled
ERROR: onnxruntime-1.5.3-r0 do_unpack: Unpack failure for URL: 'gitsm://github.com/onnx/onnx;protocol=https;name=cmake/external/onnx;subpath=cmake/external/onnx;bareclone=1;nobranch=1'. No up to date source found: clone directory not available or not up to date: /workdir/Dynimlabs/spark-yocto-bsp-5_4_70-2_3_2/../../NXP/Boards/Common/Yocto/yocto_dl/v5.4//git2/github.com.onnx.onnx; shallow clone not enabled
ERROR: Logfile of failure stored in: /workdir/L4ES/spark-yocto-bsp-5_4_70-2_3_2/build-xwayland/tmp/work/aarch64-poky-linux/onnxruntime/1.5.3-r0/temp/log.do_unpack.16020
ERROR: Task (/workdir/L4ES/spark-yocto-bsp-5_4_70-2_3_2/sources/meta-imx/meta-ml/recipes-libraries/onnxruntime/onnxruntime_1.5.3.bb:do_unpack) failed with exit code '1'
WARNING: armnn-onnx-1.3.0-r0 do_fetch: Failed to fetch URL git://github.com/onnx/onnx.git, attempting MIRRORS if available
ERROR: armnn-onnx-1.3.0-r0 do_fetch: Fetcher failure: Unable to find revision bae6333e149a59a3faa9c4d9c44974373dcf5256 in branch master even from upstream
ERROR: armnn-onnx-1.3.0-r0 do_fetch: Fetcher failure for URL: 'git://github.com/onnx/onnx.git'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /workdir/L4ES/spark-yocto-bsp-5_4_70-2_3_2/build-xwayland/tmp/work/aarch64-poky-linux/armnn-onnx/1.3.0-r0/temp/log.do_fetch.16006
ERROR: Task (/workdir/L4ES/spark-yocto-bsp-5_4_70-2_3_2/sources/meta-imx/meta-ml/recipes-libraries/armnn/armnn-onnx_1.3.0.bb:do_fetch) failed with exit code '1'

Meanwhile I cloned above repositories and checkouted the commits found in related recipes without problem.

Have you ever seen this issue? 

My host is Ubuntu-1804 (docker container).

 

Thanks and best regards,

Khang.

 

 

 

1 Solution
14,668 Views
sanjaikumar
Contributor II

Hi Khang,

           The Problem is because of the branch name. Branch name should the main not master (Since Github default branch name changed to main), if not mentioned it will look for master.

So change the SRC_URI in /workdir/L4ES/spark-yocto-bsp-5_4_70-2_3_2/sources/meta-imx/meta-ml/recipes-libraries/armnn/armnn-onnx_1.3.0.bb as below.

SRC_URI = "git://github.com/onnx/onnx.git;branch=main"

Regards,

Sanjaikumar

View solution in original post

22 Replies
781 Views
josephzhou1
Contributor V

1

 

 

branch=main

 

armnn-onnx_1.3.0.bb  is settled 

 

 

 

 

he now still stuck at onnxruntime lah. all folder and sub repos r ok , only gitsm issues lah i think.

/workdir/L4ES/spark-yocto-bsp-5_4_70-2_3_2/../../NXP/Boards/Common/Yocto/yocto_dl/v5.4//git2/github.com.onnx.onnx

 

2 idea 1

nvm i here give out my idea 1: before build onnxruntime, pls "bitbake -c cleanall recipe" sure ok, and 

3

idea2 

 due to gitsm itself bug, u try this below :

do_configure_prepend() {
  cd ${WORKDIR}/git
  git submodule update --init --recursive
  cd -
}

 

Best Regards,
Joseph Zhou Jianhui / Senior Embedded Software Engineer, Singapore
0 Kudos
Reply
790 Views
josephzhou1
Contributor V

great!

 

this is wat i mean: if you config correctly and fellowed all steps , shld be ok . 

 

dun mk mistakes in the first point lah (such as small things like separate download folder 

DL_DIR ?= 

and so on)

Best Regards,
Joseph Zhou Jianhui / Senior Embedded Software Engineer, Singapore
0 Kudos
Reply