[yocto] Using AUTOREV in PV triggers FetchError

Franz Forstmayr f.forstmayr at gmail.com
Mon Jun 24 05:27:05 PDT 2019


Hi,

i was using some simple recipes for kernel modules since rocko branch
successfully with AUTOREV and a release branch in my local gitlab
instance (over ssh). I was upgrading to thud these days, and now I'm
triggering some FetchErrors in recipes which are using AUTOREV.
My recipe looks like this:

inherit module

SRC_URI = "git://gitlab@gitlab.....:protocol=ssh"

SRCREV = "${AUTOREV}"
PV = "1.0+git${SRCPV}"

S = "${WORKDIR}/git"

Is there something wrong with this?
Is there a better way than getting the last revision of my release branch?
Sometimes I get this error:

> WARNING: .../recipes-kernel/dma-proxy/dma-proxy_git.bb: Exception during build_dependencies for WORKDIR           | ETA:  --:--:--
> WARNING: .../recipes-kernel/dma-proxy/dma-proxy_git.bb: Error during finalise of .../recipes-kernel/dma-proxy/dma-proxy_git.bb
> ERROR: ExpansionError during parsing .../recipes-kernel/dma-proxy/dma-proxy_git.bb                                 | ETA:  0:00:43
> Traceback (most recent call last):
> bb.data_smart.ExpansionError: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception FetchError: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export PATH="/home/ecs/Workspaces/yocto/projects/basic_zcu111/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/ecs/Workspaces/yocto/projects/basic_zcu111/layers/openembedded-core/scripts:/home/ecs/Workspaces/yocto/projects/basic_zcu111/tmp/work/ro_zcu111_usbm2-poky-linux/dma-proxy/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/usr/bin/aarch64-poky-linux:/home/ecs/Workspaces/yocto/projects/basic_zcu111/tmp/work/ro_zcu111_usbm2-poky-linux/dma-proxy/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot/usr/bin/crossscripts:/home/ecs/Workspaces/yocto/projects/basic_zcu111/tmp/work/ro_zcu111_usbm2-poky-linux/dma-proxy/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/usr/sbin:/home/ecs/Workspaces/yocto/projects/basic_zcu111/tmp/work/ro_zcu111_usbm2-poky-linux/dma-proxy/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/usr/bin:/home/ecs/Workspaces/yocto/projects/basic_zcu111/tmp/work/ro_zcu111_usbm2-poky-linux/dma-proxy/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/sbin:/home/ecs/Workspaces/yocto/projects/basic_zcu111/tmp/work/ro_zcu111_usbm2-poky-linux/dma-proxy/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/bin:/home/ecs/Workspaces/yocto/projects/basic_zcu111/tmp/sysroots-xsct/Scout/2019.1/bin:/home/ecs/Workspaces/yocto/projects/basic_zcu111/tmp/sysroots-xsct/Scout/2019.1/gnu/microblaze/lin/bin:/home/ecs/Workspaces/yocto/projects/basic_zcu111/tmp/sysroots-xsct/Scout/2019.1/gnu/aarch32/lin/gcc-arm-none-eabi/bin:/home/ecs/Workspaces/yocto/projects/basic_zcu111/tmp/sysroots-xsct/Scout/2019.1/gnu/armr5/lin/gcc-arm-none-eabi/bin:/home/ecs/Workspaces/yocto/projects/basic_zcu111/tmp/sysroots-xsct/Scout/2019.1/gnu/aarch64/lin/aarch64-none/bin:/home/ecs/Workspaces/yocto/projects/basic_zcu111/layers/poky/bitbake/bin:/home/ecs/Workspaces/yocto/projects/basic_zcu111/tmp/hosttools"; export HOME="/home/ecs"; git -c core.fsyncobjectfiles=0 ls-remote ssh://gitlab@blabla/Research_and_Development/RD_ECS/Drivers/dma-proxy.git  failed with exit code 128, output:
> ssh_exchange_identification: Connection closed by remote host
> fatal: Could not read from remote repository.

> Please make sure you have the correct access rights
> and the repository exists.

> Summary: There were 2 WARNING messages shown.
> Summary: There was 1 ERROR message shown, returning a non-zero exit code.



Regards Franz


More information about the yocto mailing list