[yocto] [yocto-builds] Newbe first build failure

Randy MacLeod randy.macleod at windriver.com
Mon Aug 27 15:46:46 PDT 2018


Welcome!

We have a few (too many?) lists:
    https://www.yoctoproject.org/community/mailing-lists/

For general discussion, start on:
    yocto at yoctoproject.org

On 08/26/2018 04:19 AM, Scott Wimberley wrote:
> First, thank you in advance for your help.
> 
> After cloning poky, I entered: bitbake core-image-sato

What branch are you using?
    https://wiki.yoctoproject.org/wiki/Releases

For production work you should be using a recent
stable branch such as yocto-2.5.1 which happens to also
include a fix for this problem as described below.

> 
> It went fine for quite awhile, but ultimately failed. I a using ubuntu 16.04
> 
> Here is the relevant output:
> 
> NOTE: Fetching uninative binary shim from http://downloads.yoctoproject.org/releases/uninative/1.9/x86_64-nativesdk-libc.tar.bz2;sha256sum=c26622a1f27dbf5b25de986b11584b5c5b2f322d9eb367f705a744f58a5561ec
> Initialising tasks: 100% |######################################################################################################| Time: 0:00:07
> NOTE: Executing SetScene Tasks
> NOTE: Executing RunQueue Tasks
> WARNING: bzip2-1.0.6-r5 do_fetch: Checksum mismatch for local file /home/scott/projects/yacto/poky/build/downloads/bzip2-1.0.6.tar.gz
> Cleaning and trying again.
> WARNING: bzip2-1.0.6-r5 do_fetch: Renaming /home/scott/projects/yacto/poky/build/downloads/bzip2-1.0.6.tar.gz to /home/scott/projects/yacto/poky/build/downloads/bzip2-1.0.6.tar.gz_bad-checksum_c043a22bb6ac55b54cb0827cb837bd61
> WARNING: bzip2-1.0.6-r5 do_fetch: Checksum failure encountered with download of http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz - will attempt other sources if available
> WARNING: shadow-4.2.1-r0 do_fetch: Failed to fetch URL http://pkg-shadow.alioth.debian.org/releases/shadow-4.2.1.tar.xz, attempting MIRRORS if available
> WARNING: chrpath-native-0.16-r0 do_fetch: Failed to fetch URL https://alioth.debian.org/frs/download.php/file/3979/chrpath-0.16.tar.gz, attempting MIRRORS if available
> WARNING: iso-codes-3.77-r0 do_fetch: Failed to fetch URL https://pkg-isocodes.alioth.debian.org/downloads/iso-codes-3.77.tar.xz, attempting MIRRORS if available
> ERROR: iso-codes-3.77-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-LVaJXG9LBf"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/scott/projects/yacto/poky/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/scott/projects/yacto/poky/scripts:/home/scott/projects/yacto/poky/build/tmp/work/all-poky-linux/iso-codes/3.77-r0/recipe-sysroot-native/usr/bin/allarch-poky-linux:/home/scott/projects/yacto/poky/build/tmp/work/all-poky-linux/iso-codes/3.77-r0/recipe-sysroot/usr/bin/crossscripts:/home/scott/projects/yacto/poky/build/tmp/work/all-poky-linux/iso-codes/3.77-r0/recipe-sysroot-native/usr/sbin:/home/scott/projects/yacto/poky/build/tmp/work/all-poky-linux/iso-codes/3.77-r0/recipe-sysroot-native/usr/bin:/home/scott/projects/yacto/poky/build/tmp/work/all-poky-linux/iso-codes/3.77-r0/recipe-sysroot-native/sbin:/home/scott/projects/yacto/poky/build/tmp/work/all-poky-linux/iso-codes/3.77-r0/recipe-sysroot-native/bin:/home/scott/projects/yacto/poky/bitbake/bin:/home/scott/projects/yacto/poky/build/tmp/hosttools"; export HOME="/home/scott"; /usr/bin/env wget -t 2 -T 30 -nv --passive-ftp --no-check-certificate -P /home/scott/projects/yacto/poky/build/downloads 'https://pkg-isocodes.alioth.debian.org/downloads/iso-codes-3.77.tar.xz' --progress=dot -v failed with exit code 4, output:
> --2018-08-26 07:41:22--  https://pkg-isocodes.alioth.debian.org/downloads/iso-codes-3.77.tar.xz
> Resolving pkg-isocodes.alioth.debian.org (pkg-isocodes.alioth.debian.org)... failed: Name or service not known.
> wget: unable to resolve host address ‘pkg-isocodes.alioth.debian.org’
> 
> ERROR: iso-codes-3.77-r0 do_fetch: Fetcher failure for URL: 'https://pkg-isocodes.alioth.debian.org/downloads/iso-codes-3.77.tar.xz'. Unable to fetch URL from any source.

Packages on the net move around, we've fixed this fetch problem
and it's in the release tagged as: yocto-2.5.1 :

 
https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=sumo&id=0f3409c19595d5fe7b1ffbf11dce651548808e6f

Does that help? See below for what I did to confirm that the
fetch really works. Basic stuff but you did say that you're a newbie! :)

../Randy

$ git checkout yocto-2.5.1
$ git log -3 --oneline
24a833f40d (HEAD, tag: yocto-2.5.1, tag: sumo-19.0.1)
            build-appliance-image: Update to sumo head revision
2464dd4040 poky.conf: Bump version for sumo 2.5.1
22e02daa5b binutls: Security fix CVE-2018-10534

$ git tag --contains 0f3409c19
sumo-19.0.1
yocto-2.5.1

$ git branch --contains 0f3409c19
* (HEAD detached at yocto-2.5.1)
   sumo

$ cd ../b
$ . ../poky.git/oe-init-build-env iso
$ bitbake -c fetch iso-codes
...
$ echo $?
0


../Randy


> ERROR: iso-codes-3.77-r0 do_fetch: Function failed: base_do_fetch
> ERROR: Logfile of failure stored in: /home/scott/projects/yacto/poky/build/tmp/work/all-poky-linux/iso-codes/3.77-r0/temp/log.do_fetch.19288
> ERROR: Task (/home/scott/projects/yacto/poky/meta/recipes-support/iso-codes/iso-codes_3.77.bb:do_fetch) failed with exit code '1'
> NOTE: Tasks Summary: Attempted 1403 tasks of which 0 didn't need to be rerun and 1 failed.
> 
> Summary: 1 task failed:
>    /home/scott/projects/yacto/poky/meta/recipes-support/iso-codes/iso-codes_3.77.bb:do_fetch
> Summary: There were 6 WARNING messages shown.
> Summary: There were 3 ERROR messages shown, returning a non-zero exit code.
> 


-- 
# Randy MacLeod
# Wind River Linux


More information about the yocto mailing list