Trying to build image with example proyect but getting (do_fetch: Fetcher failure for URL) error #bitbake #poky #zeus
Hi. I´m trying to build an image for a Beaglebone black using default poky recipes in the Zeus branch for core-image-minimal, but I´m getting the following errors:
WARNING: bmap-tools-native-3.5+gitAUTOINC+db7087b883-r0 do_fetch: Failed to fetch URL git://github.com/intel/bmap-tools, attempting MIRRORS if available
ERROR: bmap-tools-native-3.5+gitAUTOINC+db7087b883-r0 do_fetch: Fetcher failure: Unable to find revision db7087b883bf52cbff063ad17a41cc1cbb85104d in branch master even from upstream
ERROR: bmap-tools-native-3.5+gitAUTOINC+db7087b883-r0 do_fetch: Fetcher failure for URL: 'git://github.com/intel/bmap-tools'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/yocto/YCBuild/tmp/work/x86_64-linux/bmap-tools-native/3.5+gitAUTOINC+db7087b883-r0/temp/log.do_fetch.413495
ERROR: Task (virtual:native:/home/yocto/poky/meta/recipes-support/bmap-tools/bmap-tools_3.5.bb:do_fetch) failed with exit code '1'
WARNING: lz4-native-1_1.9.2-r0 do_fetch: Failed to fetch URL git://github.com/lz4/lz4.git, attempting MIRRORS if available
ERROR: lz4-native-1_1.9.2-r0 do_fetch: Fetcher failure: Unable to find revision fdf2ef5809ca875c454510610764d9125ef2ebbd in branch master even from upstream
ERROR: lz4-native-1_1.9.2-r0 do_fetch: Fetcher failure for URL: 'git://github.com/lz4/lz4.git'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/yocto/YCBuild/tmp/work/x86_64-linux/lz4-native/1_1.9.2-r0/temp/log.do_fetch.413501
ERROR: Task (virtual:native:/home/yocto/poky/meta/recipes-support/lz4/lz4_1.9.2.bb:do_fetch) failed with exit code '1'
I tried to clone manually and it was possible to download git://github.com/intel/bmap-tools and git://github.com/lz4/lz4.git
I'm using a docker container with ubuntu:18.04
I thought that should be enough get in the Zeus branch, configure the environment (with oe-init-build-env script, and modify local.conf to build for the desired machine), run bitbake (for core-image-minimal) and after 2hr of building you get your image. Im missing any step?
Also, I try bitbake with sato but it gives me similar errors but with different URL is there a proper way to manage this kind of errors (without modifying the recipes, in this case are recipes inside meta and meta-poky)
Cheers.
Quoted 1 line · juan.aguirre via lists.yoctoproject.org
I thought that should be enough get in the Zeus branch, configure the environment (with oe-init-build-env script, and modify local.conf to build for the desired machine), run bitbake (for core-image-minimal) and after 2hr of building you get your image. Im missing any step?
Zeus has been EOL since 2020 - and as most unmaintained things, unfortunately it starts rotting. This particular bmap-tools error comes from the "master" branch being renamed to "main" lately (but the recipe still expects "master" to exist).
You can try fixing these with bbappends and the like, but these old releases have also unfixed bugs and (since discovered) security problems, etc. - there are compelling reasons not to use them.
Try a newer, still maintainer release.
Quoted 10 lines · Gyorgy Sarvari via lists.yoctoproject.org
Zeus has been EOL since 2020 - and as most unmaintained things, unfortunately it starts rotting. This particular bmap-tools error comes from the "master" branch being renamed to "main" lately (but the recipe still expects "master" to exist).
You can try fixing these with bbappends and the like, but these old releases have also unfixed bugs and (since discovered) security problems, etc. - there are compelling reasons not to use them.
Try a newer, still maintainer release.
That said, the question of how to be able to reliably reproduce an old yocto build is a valid one. But one needs to prepare for it:
- preserve the download directory
- preserve all the layer checkouts
- not use AUTOREV for anything
- put the build in a container with an appropriate host distribution and no network access (so that recipes won't be able to fetch random things from the network)
- run test builds inside that container without sstate (e.g. once a week)
If this work isn't done, then one won't be able to rebuild things in the future :-/
Alex