[yocto] net-snmp_5.8.bb failed to compile

Martin Jansa martin.jansa at gmail.com
Tue Aug 28 08:43:21 PDT 2018


Follow the READMEs and don't mix layers from different branches.

You need to checkout all repositories with layers from the same branch to
be compatible. Now you're mixing newer meta-oe branch with older oe-core
branch which doesn't have bb.utils.filter function yet.

On Tue, Aug 28, 2018 at 5:17 PM Simon Chamlian <simon.chamlian at mpbc.ca>
wrote:

>
> Hi,
>
> Just download  net-snmp_5.8.bb but it failed to compile:
>
>
> $ bitbake net-snmp
> Loading cache: 100%
> |################################################################################################################################################################################|
> Time: 0:00:01
> Loaded 3093 entries from dependency cache.
> *ERROR:* ExpansionError during parsing
> /opt/PHYTEC_BSPs/yocto_imx7/sources/meta-openembedded/meta-networking/recipes-protocols/net-snmp/
> net-snmp_5.8.bb                                               | ETA:
> --:--:--
> Traceback (most recent call last):
>   File
> "/opt/PHYTEC_BSPs/yocto_imx7/sources/poky/meta/classes/base.bbclass", line
> 375, in
> __anon_656__opt_PHYTEC_BSPs_yocto_imx7_sources_poky_meta_classes_base_bbclass(d=<bb.data_smart.DataSmart
> object at 0x7fe0ee311be0>):
>              pkgconfig = (d.getVar('PACKAGECONFIG', True) or "").split()
>     >        pn = d.getVar("PN", True)
>
>   File
> "/opt/PHYTEC_BSPs/yocto_imx7/sources/poky/bitbake/lib/bb/data_smart.py",
> line 569, in DataSmart.getVar(var='PACKAGECONFIG', expand=True,
> noweakdefault=False, parsing=False):
>          def getVar(self, var, expand, noweakdefault=False, parsing=False):
>     >        return self.getVarFlag(var, "_content", expand,
> noweakdefault, parsing)
>
>   File
> "/opt/PHYTEC_BSPs/yocto_imx7/sources/poky/bitbake/lib/bb/data_smart.py",
> line 737, in DataSmart.getVarFlag(var='PACKAGECONFIG', flag='_content',
> expand=True, noweakdefault=False, parsing=False):
>                      cachename = var + "[" + flag + "]"
>     >            value = self.expand(value, cachename)
>
>   File
> "/opt/PHYTEC_BSPs/yocto_imx7/sources/poky/bitbake/lib/bb/data_smart.py",
> line 410, in DataSmart.expand(s="${@bb.utils.filter('DISTRO_FEATURES',
> 'ipv6', d)}", varname='PACKAGECONFIG'):
>          def expand(self, s, varname = None):
>     >        return self.expandWithRefs(s, varname).value
>
>   File
> "/opt/PHYTEC_BSPs/yocto_imx7/sources/poky/bitbake/lib/bb/data_smart.py",
> line 400, in
> DataSmart.expandWithRefs(s="${@bb.utils.filter('DISTRO_FEATURES', 'ipv6',
> d)}", varname='PACKAGECONFIG'):
>                  except Exception as exc:
>     >                raise ExpansionError(varname, s, exc) from exc
>
> bb.data_smart.ExpansionError: Failure expanding variable PACKAGECONFIG,
> expression was ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} which
> triggered exception AttributeError: module 'bb.utils' has no attribute
> 'filter'
>
>
> Summary: There was 1 ERROR message shown, returning a non-zero exit code.
> $
>
> Any hints would be greatly appreciated.
>
> S
>
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180828/da7a6ca6/attachment.html>


More information about the yocto mailing list