cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
mage
Explorer
Explorer
454 Views
Registered: ‎05-25-2016

ERROR: ExpansionError during parsing /home/zkf/meta-adi/meta-adi-xilinx/recipes-core/busybox/busybox_1.27.2.bb

I am buliding petalinux following https://wiki.analog.com/resources/tools-software/linux-build/generic/petalinux

When I run 'petalinux-build' , an error occured, the log is as following:

zkf@ubuntu:~/projects/zed_ad9361$ petalinux-build
[INFO] building project
[INFO] sourcing bitbake
INFO: bitbake petalinux-user-image
Loading cache: 100% |############################################| Time: 0:00:00
Loaded 688 entries from dependency cache.
ERROR: ExpansionError during parsing /home/zkf/meta-adi/meta-adi-xilinx/recipes-core/busybox/busybox_1.27.2.bb
Traceback (most recent call last):
  File "/home/zkf/petalinux/components/yocto/source/arm/layers/core/meta/classes/base.bbclass", line 555, in __anon_656__home_zkf_petalinux_components_yocto_source_arm_layers_core_meta_classes_base_bbclass(d=<bb.data_smart.DataSmart object at 0x7f2a44aac9e8>):
         srcuri = d.getVar('SRC_URI', True)
    >    for uri in srcuri.split():
             (scheme, _ , path) = bb.fetch.decodeurl(uri)[:3]
  File "/home/zkf/petalinux/components/yocto/source/arm/layers/core/bitbake/lib/bb/data_smart.py", line 569, in DataSmart.getVar(var='SRC_URI', expand=True, noweakdefault=False, parsing=False):
         def getVar(self, var, expand, noweakdefault=False, parsing=False):
    >        return self.getVarFlag(var, "_content", expand, noweakdefault, parsing)
     
  File "/home/zkf/petalinux/components/yocto/source/arm/layers/core/bitbake/lib/bb/data_smart.py", line 737, in DataSmart.getVarFlag(var='SRC_URI', flag='_content', expand=True, noweakdefault=False, parsing=False):
                     cachename = var + "[" + flag + "]"
    >            value = self.expand(value, cachename)
     
  File "/home/zkf/petalinux/components/yocto/source/arm/layers/core/bitbake/lib/bb/data_smart.py", line 410, in DataSmart.expand(s='http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball            file://busybox-udhcpc-no_deconfig.patch            file://find-touchscreen.sh            file://busybox-cron            file://busybox-httpd            file://busybox-udhcpd            file://default.script            file://simple.script            file://hwclock.sh            file://mount.busybox            file://syslog            file://syslog-startup.conf            file://syslog.conf            file://busybox-syslog.default            file://mdev            file://mdev.conf            file://mdev-mount.sh            file://umount.busybox            file://defconfig            file://busybox-syslog.service.in            file://busybox-klogd.service.in            file://fail_on_no_media.patch            file://run-ptest            file://inetd.conf            file://inetd            file://login-utilities.cfg            file://recognize_connmand.patch            file://busybox-cross-menuconfig.patch            file://0001-Use-CC-when-linking-instead-of-LD-and-use-CFLAGS-and.patch            file://mount-via-label.cfg            file://sha1sum.cfg            file://sha256sum.cfg            file://getopts.cfg            file://resize.cfg            ${@["", "file://init.cfg"][(d.getVar(\'VIRTUAL-RUNTIME_init_manager\') == \'busybox\')]}            ${@["", "file://mdev.cfg"][(d.getVar(\'VIRTUAL-RUNTIME_dev_manager\') == \'busybox-mdev\')]}            file://syslog.cfg            file://inittab            file://rcS            file://rcK            file://runlevel            file://makefile-libbb-race.patch            file://CVE-2011-5325.patch            file://CVE-2017-15873.patch            file://busybox-CVE-2017-16544.patch            file://busybox-fix-lzma-segfaults.patch            file://umount-ignore-c.patch            file://CVE-2017-15874.patch   \t    file://lspci.cfg \t    file://lsusb.cfg \t    file://mdev.cfg \t    file://mount-cifs.cfg \t    file://ps-extras.cfg \t    file://getopt.cfg                              file://inetd.conf                 file://petalinux.cfg                 file://ftp.cfg                 file://ftpd.cfg                 file://hexdump.cfg                 file://httpd.cfg                 file://inetd.cfg                 file://nc.cfg                 file://telnetd.cfg                 file://tftpd.cfg                 ', varname='SRC_URI'):
         def expand(self, s, varname = None):
    >        return self.expandWithRefs(s, varname).value
     
  File "/home/zkf/petalinux/components/yocto/source/arm/layers/core/bitbake/lib/bb/data_smart.py", line 400, in DataSmart.expandWithRefs(s='http://www.busybox.net/downloads/busybox-1.27.2.tar.bz2;name=tarball            file://busybox-udhcpc-no_deconfig.patch            file://find-touchscreen.sh            file://busybox-cron            file://busybox-httpd            file://busybox-udhcpd            file://default.script            file://simple.script            file://hwclock.sh            file://mount.busybox            file://syslog            file://syslog-startup.conf            file://syslog.conf            file://busybox-syslog.default            file://mdev            file://mdev.conf            file://mdev-mount.sh            file://umount.busybox            file://defconfig            file://busybox-syslog.service.in            file://busybox-klogd.service.in            file://fail_on_no_media.patch            file://run-ptest            file://inetd.conf            file://inetd            file://login-utilities.cfg            file://recognize_connmand.patch            file://busybox-cross-menuconfig.patch            file://0001-Use-CC-when-linking-instead-of-LD-and-use-CFLAGS-and.patch            file://mount-via-label.cfg            file://sha1sum.cfg            file://sha256sum.cfg            file://getopts.cfg            file://resize.cfg            ${@["", "file://init.cfg"][(d.getVar(\'VIRTUAL-RUNTIME_init_manager\') == \'busybox\')]}            ${@["", "file://mdev.cfg"][(d.getVar(\'VIRTUAL-RUNTIME_dev_manager\') == \'busybox-mdev\')]}            file://syslog.cfg            file://inittab            file://rcS            file://rcK            file://runlevel            file://makefile-libbb-race.patch            file://CVE-2011-5325.patch            file://CVE-2017-15873.patch            file://busybox-CVE-2017-16544.patch            file://busybox-fix-lzma-segfaults.patch            file://umount-ignore-c.patch            file://CVE-2017-15874.patch   \t    file://lspci.cfg \t    file://lsusb.cfg \t    file://mdev.cfg \t    file://mount-cifs.cfg \t    file://ps-extras.cfg \t    file://getopt.cfg                              file://inetd.conf                 file://petalinux.cfg                 file://ftp.cfg                 file://ftpd.cfg                 file://hexdump.cfg                 file://httpd.cfg                 file://inetd.cfg                 file://nc.cfg                 file://telnetd.cfg                 file://tftpd.cfg                 ', varname='SRC_URI'):
                 except Exception as exc:
    >                raise ExpansionError(varname, s, exc) from exc
     
bb.data_smart.ExpansionError: Failure expanding variable SRC_URI, expression was http://www.busybox.net/downloads/busybox-1.27.2.tar.bz2;name=tarball            file://busybox-udhcpc-no_deconfig.patch            file://find-touchscreen.sh            file://busybox-cron            file://busybox-httpd            file://busybox-udhcpd            file://default.script            file://simple.script            file://hwclock.sh            file://mount.busybox            file://syslog            file://syslog-startup.conf            file://syslog.conf            file://busybox-syslog.default            file://mdev            file://mdev.conf            file://mdev-mount.sh            file://umount.busybox            file://defconfig            file://busybox-syslog.service.in            file://busybox-klogd.service.in            file://fail_on_no_media.patch            file://run-ptest            file://inetd.conf            file://inetd            file://login-utilities.cfg            file://recognize_connmand.patch            file://busybox-cross-menuconfig.patch            file://0001-Use-CC-when-linking-instead-of-LD-and-use-CFLAGS-and.patch            file://mount-via-label.cfg            file://sha1sum.cfg            file://sha256sum.cfg            file://getopts.cfg            file://resize.cfg            ${@["", "file://init.cfg"][(d.getVar('VIRTUAL-RUNTIME_init_manager') == 'busybox')]}            ${@["", "file://mdev.cfg"][(d.getVar('VIRTUAL-RUNTIME_dev_manager') == 'busybox-mdev')]}            file://syslog.cfg            file://inittab            file://rcS            file://rcK            file://runlevel            file://makefile-libbb-race.patch            file://CVE-2011-5325.patch            file://CVE-2017-15873.patch            file://busybox-CVE-2017-16544.patch            file://busybox-fix-lzma-segfaults.patch            file://umount-ignore-c.patch            file://CVE-2017-15874.patch   	    file://lspci.cfg 	    file://lsusb.cfg 	    file://mdev.cfg 	    file://mount-cifs.cfg 	    file://ps-extras.cfg 	    file://getopt.cfg                              file://inetd.conf                 file://petalinux.cfg                 file://ftp.cfg                 file://ftpd.cfg                 file://hexdump.cfg                 file://httpd.cfg                 file://inetd.cfg                 file://nc.cfg                 file://telnetd.cfg                 file://tftpd.cfg                  which triggered exception TypeError: getVar() missing 1 required positional argument: 'expand'


Summary: There was 1 ERROR message shown, returning a non-zero exit code.
ERROR: Failed to build project

Could anyone help me ?

My petaliunx vesrion is 2017.4.

Thanks!

0 Kudos
0 Replies