Skip to main content
NPal.2
Associate III
June 16, 2022
Solved

Yocto build failure

  • June 16, 2022
  • 2 replies
  • 4599 views

Hi all,

I am trying perform build for yocto for the DK2.

But running into the following error. I am pretty sure this was working until a month back but now link appears to be broken.

ERROR: openocd-stm32mp-native-0.11.0-rc2.AUTOINC+a5e526d857-r0 do_fetch: Fetcher failure for URL: 'git://repo.or.cz/git2cl.git;destsuffix=git/tools/git2cl;name=git2cl'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/ubuntu/STM32/yocto-test/openstlinux-5.10-dunfell-mp1-21-03-31/build-openstlinuxweston-stm32mp157a-730isom-dsi-emmc-mx/tmp-glibc/work/x86_64-linux/openocd-stm32mp-native/0.11.0-rc2.AUTOINC+a5e526d857-r0/temp/log.do_fetch.1136774
ERROR: Task (virtual:native:/home/ubuntu/STM32/yocto-test/openstlinux-5.10-dunfell-mp1-21-03-31/layers/meta-st/meta-st-stm32mp/recipes-devtools/openocd/openocd-stm32mp_0.11.0.bb:do_fetch) failed with exit code '1'

Any idea how to fix this?

This topic has been closed for replies.
Best answer by Jean-Marc B

Hello @NPal.2​ 

In the recipe layers/meta-st/meta-st-stm32mp/recipes-devtools/openocd/openocd-stm32mp_0.11.0.bb, replace the git repository URL

git://repo.or.cz/git2cl.git

by

https://github.com/openocd-org/openocd.git

That should fix your error.

The next OpenSTLinux release that should be published soon will fix the recipe.

Best regards,

--JM

2 replies

Jean-Marc B
Jean-Marc BBest answer
ST Employee
June 16, 2022

Hello @NPal.2​ 

In the recipe layers/meta-st/meta-st-stm32mp/recipes-devtools/openocd/openocd-stm32mp_0.11.0.bb, replace the git repository URL

git://repo.or.cz/git2cl.git

by

https://github.com/openocd-org/openocd.git

That should fix your error.

The next OpenSTLinux release that should be published soon will fix the recipe.

Best regards,

--JM

NPal.2
NPal.2Author
Associate III
June 17, 2022

Thanks @Jean-Marc B​ . Will use this.

AntonioST
ST Employee
June 16, 2022

Recently http://repo.or.cz is unreachable too often!

Please use the following in the recipe:

git://git.savannah.nongnu.org/git/git2cl.git;protocol=https;destsuffix=git/tools/git2cl;name=git2cl \
git://github.com/msteveb/jimtcl.git;protocol=https;destsuffix=git/jimtcl;name=jimtcl \
git://gitlab.zapb.de/libjaylink/libjaylink.git;protocol=https;destsuffix=git/src/jtag/drivers/libjaylink;name=libjaylink \

NPal.2
NPal.2Author
Associate III
June 17, 2022

Hi @AntonioST​ : Thank you for your response. Will try this as well.