SRCREV = "${AUTOREV}" Error in NXP Yocto Rev. LF5.15.52_2.1.0

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

SRCREV = "${AUTOREV}" Error in NXP Yocto Rev. LF5.15.52_2.1.0

Jump to solution
4,638 Views
wang12zhe
Contributor III

Hi

I'm use NXP Yocto Rev. LF5.15.52_2.1.0 to build image for IMXQM but got error when do fetch task for nxp-demo-experience recipe:

ERROR: ExpansionError during parsing /home/wzg/8TB/Yocto/L5.15.52-2.1.0/sources/meta-nxp-demo-experience/recipes-nxp-demo-experience/nxp-demo-experience/nxp-demo-experience_git.bb
Traceback (most recent call last):
File "/home/wzg/8TB/Yocto/L5.15.52-2.1.0/sources/poky/bitbake/lib/bb/fetch2/__init__.py", line 1212, in srcrev_internal_helper(ud=<bb.fetch2.FetchData object at 0x7fe06c8b8280>, d=<bb.data_smart.DataSmart object at 0x7fe06c8c1040>, name='nxp-demo-experience'):
if srcrev == "AUTOINC":
> srcrev = ud.method.latest_revision(ud, d, name)

File "/home/wzg/8TB/Yocto/L5.15.52-2.1.0/sources/poky/bitbake/lib/bb/fetch2/__init__.py", line 1624, in Git.latest_revision(ud=<bb.fetch2.FetchData object at 0x7fe06c8b8280>, d=<bb.data_smart.DataSmart object at 0x7fe06c8c1040>, name='nxp-demo-experience'):
except KeyError:
> revs[key] = rev = self._latest_revision(ud, d, name)
return rev
File "/home/wzg/8TB/Yocto/L5.15.52-2.1.0/sources/poky/bitbake/lib/bb/fetch2/git.py", line 739, in Git._latest_revision(ud=<bb.fetch2.FetchData object at 0x7fe06c8b8280>, d=<bb.data_smart.DataSmart object at 0x7fe06c8c1040>, name='nxp-demo-experience'):

> output = self._lsremote(ud, d, "")
# Tags of the form ^{} may not work, need to fallback to other form
File "/home/wzg/8TB/Yocto/L5.15.52-2.1.0/sources/poky/bitbake/lib/bb/fetch2/git.py", line 722, in Git._lsremote(ud=<bb.fetch2.FetchData object at 0x7fe06c8b8280>, d=<bb.data_smart.DataSmart object at 0x7fe06c8c1040>, search=''):
bb.fetch2.check_network_access(d, cmd, repourl)
> output = runfetchcmd(cmd, d, True)
if not output:
File "/home/wzg/8TB/Yocto/L5.15.52-2.1.0/sources/poky/bitbake/lib/bb/fetch2/__init__.py", line 929, in runfetchcmd(cmd='export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export PATH="/home/wzg/8TB/Yocto/L5.15.52-2.1.0/build-wayland/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/wzg/8TB/Yocto/L5.15.52-2.1.0/sources/poky/scripts:/home/wzg/8TB/Yocto/L5.15.52-2.1.0/build-wayland/tmp/work/armv8a-poky-linux/nxp-demo-experience/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/usr/bin/aarch64-poky-linux:/home/wzg/8TB/Yocto/L5.15.52-2.1.0/build-wayland/tmp/work/armv8a-poky-linux/nxp-demo-experience/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot/usr/bin/crossscripts:/home/wzg/8TB/Yocto/L5.15.52-2.1.0/build-wayland/tmp/work/armv8a-poky-linux/nxp-demo-experience/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/usr/sbin:/home/wzg/8TB/Yocto/L5.15.52-2.1.0/build-wayland/tmp/work/armv8a-poky-linux/nxp-demo-experience/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/usr/bin:/home/wzg/8TB/Yocto/L5.15.52-2.1.0/build-wayland/tmp/work/armv8a-poky-linux/nxp-demo-experience/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/sbin:/home/wzg/8TB/Yocto/L5.15.52-2.1.0/build-wayland/tmp/work/armv8a-poky-linux/nxp-demo-experience/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/bin:/home/wzg/8TB/Yocto/L5.15.52-2.1.0/sources/poky/bitbake/bin:/home/wzg/8TB/Yocto/L5.15.52-2.1.0/build-wayland/tmp/hosttools"; export HOME="/home/wzg"; git -c core.fsyncobjectfiles=0 -c gc.autoDetach=false -c core.pager=cat ls-remote https://github.com/nxp-imx-support/nxp-demo-experience.git ', d=<bb.data_smart.DataSmart object at 0x7fe06c8b8d90>, quiet=True, cleanup=[], log=None, workdir=None):

> raise FetchError(error_message)

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/wzg/8TB/Yocto/L5.15.52-2.1.0/build-wayland/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/wzg/8TB/Yocto/L5.15.52-2.1.0/sources/poky/scripts:/home/wzg/8TB/Yocto/L5.15.52-2.1.0/build-wayland/tmp/work/armv8a-poky-linux/nxp-demo-experience/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/usr/bin/aarch64-poky-linux:/home/wzg/8TB/Yocto/L5.15.52-2.1.0/build-wayland/tmp/work/armv8a-poky-linux/nxp-demo-experience/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot/usr/bin/crossscripts:/home/wzg/8TB/Yocto/L5.15.52-2.1.0/build-wayland/tmp/work/armv8a-poky-linux/nxp-demo-experience/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/usr/sbin:/home/wzg/8TB/Yocto/L5.15.52-2.1.0/build-wayland/tmp/work/armv8a-poky-linux/nxp-demo-experience/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/usr/bin:/home/wzg/8TB/Yocto/L5.15.52-2.1.0/build-wayland/tmp/work/armv8a-poky-linux/nxp-demo-experience/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/sbin:/home/wzg/8TB/Yocto/L5.15.52-2.1.0/build-wayland/tmp/work/armv8a-poky-linux/nxp-demo-experience/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/bin:/home/wzg/8TB/Yocto/L5.15.52-2.1.0/sources/poky/bitbake/bin:/home/wzg/8TB/Yocto/L5.15.52-2.1.0/build-wayland/tmp/hosttools"; export HOME="/home/wzg"; git -c core.fsyncobjectfiles=0 -c gc.autoDetach=false -c core.pager=cat ls-remote https://github.com/nxp-imx-support/nxp-demo-experience.git failed with exit code 128, output:
fatal: unable to access 'https://github.com/nxp-imx-support/nxp-demo-experience.git/': GnuTLS recv error (-110): The TLS connection was non-properly terminated.

The variable dependency chain for the failure is: SRCPV -> PV -> BP -> FILESPATH

ERROR: Parsing halted due to errors, see error messages above

 

I think the root case is SRCREV = "${AUTOREV}"   in nxp-demo-experience_git.bb ,

How to it? 

anybody can help me and thanks very much

0 Kudos
1 Solution
3,906 Views
tomhochstein
NXP Employee
NXP Employee

I just ran into a similar issue. To debug, I ended up changing the failing command to a command that just finds where the git command is from:

$ export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export PATH="/home/wzg/8TB/Yocto/L5.15.52-2.1.0/build-wayland/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/wzg/8TB/Yocto/L5.15.52-2.1.0/sources/poky/scripts:/home/wzg/8TB/Yocto/L5.15.52-2.1.0/build-wayland/tmp/work/armv8a-poky-linux/nxp-demo-experience/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/usr/bin/aarch64-poky-linux:/home/wzg/8TB/Yocto/L5.15.52-2.1.0/build-wayland/tmp/work/armv8a-poky-linux/nxp-demo-experience/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot/usr/bin/crossscripts:/home/wzg/8TB/Yocto/L5.15.52-2.1.0/build-wayland/tmp/work/armv8a-poky-linux/nxp-demo-experience/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/usr/sbin:/home/wzg/8TB/Yocto/L5.15.52-2.1.0/build-wayland/tmp/work/armv8a-poky-linux/nxp-demo-experience/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/usr/bin:/home/wzg/8TB/Yocto/L5.15.52-2.1.0/build-wayland/tmp/work/armv8a-poky-linux/nxp-demo-experience/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/sbin:/home/wzg/8TB/Yocto/L5.15.52-2.1.0/build-wayland/tmp/work/armv8a-poky-linux/nxp-demo-experience/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/bin:/home/wzg/8TB/Yocto/L5.15.52-2.1.0/sources/poky/bitbake/bin:/home/wzg/8TB/Yocto/L5.15.52-2.1.0/build-wayland/tmp/hosttools"; export HOME="/home/wzg"; which git

That showed that the git command was a link in tmp/hosttools. The problem was the link was in fact pointing into a different Yocto folder that I had recently used. I simply did remove the tmp folder and everything was fine again.

View solution in original post

0 Kudos
4 Replies
3,907 Views
tomhochstein
NXP Employee
NXP Employee

I just ran into a similar issue. To debug, I ended up changing the failing command to a command that just finds where the git command is from:

$ export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export PATH="/home/wzg/8TB/Yocto/L5.15.52-2.1.0/build-wayland/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/wzg/8TB/Yocto/L5.15.52-2.1.0/sources/poky/scripts:/home/wzg/8TB/Yocto/L5.15.52-2.1.0/build-wayland/tmp/work/armv8a-poky-linux/nxp-demo-experience/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/usr/bin/aarch64-poky-linux:/home/wzg/8TB/Yocto/L5.15.52-2.1.0/build-wayland/tmp/work/armv8a-poky-linux/nxp-demo-experience/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot/usr/bin/crossscripts:/home/wzg/8TB/Yocto/L5.15.52-2.1.0/build-wayland/tmp/work/armv8a-poky-linux/nxp-demo-experience/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/usr/sbin:/home/wzg/8TB/Yocto/L5.15.52-2.1.0/build-wayland/tmp/work/armv8a-poky-linux/nxp-demo-experience/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/usr/bin:/home/wzg/8TB/Yocto/L5.15.52-2.1.0/build-wayland/tmp/work/armv8a-poky-linux/nxp-demo-experience/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/sbin:/home/wzg/8TB/Yocto/L5.15.52-2.1.0/build-wayland/tmp/work/armv8a-poky-linux/nxp-demo-experience/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/bin:/home/wzg/8TB/Yocto/L5.15.52-2.1.0/sources/poky/bitbake/bin:/home/wzg/8TB/Yocto/L5.15.52-2.1.0/build-wayland/tmp/hosttools"; export HOME="/home/wzg"; which git

That showed that the git command was a link in tmp/hosttools. The problem was the link was in fact pointing into a different Yocto folder that I had recently used. I simply did remove the tmp folder and everything was fine again.

0 Kudos
1,084 Views
Safak28
Contributor II

Hello,

I got a related problem with nxp-demo-experience repo. If you looked at demo-experience-demo.bb recipe you can see SRCREV_model = "${AUTOREV}". If you have a network issue or you tried to building offline, this recipe is trying to access githun page and you can get fetch error for nxp-demo-experience-repo.

Instead, you can use a commit id in the github repo. I did not get fetch error with this method.

 

0 Kudos
4,630 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @wang12zhe 

Please clean all files about this package, use 'bitbake nxp-demo-experience -c cleanall' and then rebuild it .

0 Kudos
4,618 Views
wang12zhe
Contributor III

@Zhiming_Liu 

I had do it, but still got the same error massage

 

Tags (1)
0 Kudos