From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailrelay1-2.pub.mailoutpod1-cph3.one.com (mailrelay1-2.pub.mailoutpod1-cph3.one.com [46.30.212.0]) by mx.groups.io with SMTP id smtpd.web10.3647.1614896260873829352 for ; Thu, 04 Mar 2021 14:17:41 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@berginkonsult.se header.s=20191106 header.b=xnV8dcSx; spf=none, err=permanent DNS error (domain: berginkonsult.se, ip: 46.30.212.0, mailfrom: peter@berginkonsult.se) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=berginkonsult.se; s=20191106; h=content-type:in-reply-to:mime-version:date:message-id:from:references:to: subject:from; bh=kPltBZR8KVbk8BIKNR2OySoMUI+PrVwTjfK3AbDuFzc=; b=xnV8dcSxuMrFM2I1B72s69ZiUnybC4STffHf3+FIdJINlg6NrZBDC1slZfnBGsSpoOfUIlNFClDRh jkxurFIOanlYxeiC43/mOV+LyXYGFfcCYUZ0Y7DsAiXAR+pY1Ly8gDr48IZpDcnOxRHvH+ZvibOmdH S2Q9iTvbZBHAFmVsE3uMWpt7hHdmOaF4tT3X5Xasnn5DPhRhaLaUrpa+4waAKcfW3ASPnryCZn2Ty1 TvSeuMmOibvZ0Y8ysivsXBkkOakVv5Ym9R3uRJV+xtPSvIrG+r9gDYLtT0qhZZppOfVu6WhRCiEemE nyyMJvdcOlNMTHiuvvmfAnisUmo44pg== X-HalOne-Cookie: 013f1c2020a1e06d83048d5552a52010cd35c6c6 X-HalOne-ID: 6de44ba1-7d37-11eb-924c-d0431ea8a283 Received: from [192.168.100.132] (c188-151-59-206.bredband.comhem.se [188.151.59.206]) by mailrelay1.pub.mailoutpod1-cph3.one.com (Halon) with ESMTPSA id 6de44ba1-7d37-11eb-924c-d0431ea8a283; Thu, 04 Mar 2021 22:17:38 +0000 (UTC) Subject: Re: [meta-freescale] Strange build error first time on community bsp master branch To: meta-freescale@lists.yoctoproject.org References: <16694378CDC56C0B.22430@lists.yoctoproject.org> From: "Peter Bergin" Message-ID: Date: Thu, 4 Mar 2021 23:18:12 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <16694378CDC56C0B.22430@lists.yoctoproject.org> Content-Type: multipart/alternative; boundary="------------F28A1FE2690DA30513C6F8AE" Content-Language: en-US --------------F28A1FE2690DA30513C6F8AE Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Hi again, On 2021-03-04 23:15, Peter Bergin wrote: > Hi, > > following these steps to build master branch has a really strange > behavior. First build with bitbake bails out hard with tons of > WARNINGS and ends up with an error in sstate.bbclass. > >     $ repo init -u > https://github.com/Freescale/fsl-community-bsp-platform -b master >     $ repo sync >     $ EULA=1 MACHINE=imx8mm-lpddr4-evk DISTRO=poky source > setup-environment build >     $ bitbake core-image-base > > > Here are examples of the WARNING: > > ---------------- > > WARNING: > /storage/yocto/test2/sources/poky/meta/recipes-extended/shadow/shadow_4.8.1.bb: > Variable key PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}compilerlibs > (gcc-runtime) replaces original key > PREFERRED_PROVIDER_virtual/x86_64-pokysdk-linux-compilerlibs > (nativesdk-gcc-runtime). > WARNING: > /storage/yocto/test2/sources/meta-openembedded/meta-python/recipes-devtools/python/python3-dateutil_2.8.1.bb: > Variable key PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}compilerlibs > (gcc-runtime) replaces original key > PREFERRED_PROVIDER_virtual/x86_64-pokysdk-linux-compilerlibs > (nativesdk-gcc-runtime). > > ----------------- > > and in the end of the parsing: > > ----------------- > >     >        spec, extrapath, tname = getpathcomponents(tid, d) > >   File > "/storage/yocto/test2/sources/poky/meta/classes/sstate.bbclass", line > 877, in > getpathcomponents(task='virtual:native:/storage/yocto/test2/sources/poky/meta/recipes-devtools/perl/libxml-parser-perl_2.46.bb:do_populate_sysroot', > d=): >              if splithashfn[0] == "True": >     >            extrapath = d.getVar("NATIVELSBSTRING") + "/" >              else: > TypeError: unsupported operand type(s) for +: 'NoneType' and 'str' > > > Summary: There were 1675 WARNING messages shown. > Summary: There were 6 ERROR messages shown, returning a non-zero exit > code. > > ----------------- > > The strange thing is that if the build is restarted again with > 'bitbake core-image-base' the build starts fine and works as expected. > > I have tried to narrow this down a bit and my wild guess is that this > has something with setup-environment script to do. My build host is > Ubuntu 20.10 (that I know is not a validated build host). > > Here is an experiment where I create one build dir with > setup-environment this ends up in the error described above and works > the second time. Then I create a new build dir with oe-init-build-env > and then copy local.conf and bblayers.conf from the first build dir. > >     $ EULA=1 MACHINE=imx6qdlsabresd DISTRO=poky source > setup-environment build >     $ bitbake core-image-base >     >     $ cd .. >     $ . ./sources/poky/oe-init-build-env build2 >     $ cp ../build/conf/bblayers.conf conf/ >     $ cp ../build/conf/local.conf conf/ >     $ bitbake core-image-base >     > > Someone with more insight in setup-environment script and bitbake that > have an idea? > > Regards, > /Peter > > > > > > > > > I was too fast sending this before I realized that Andrey already reported this in https://github.com/Freescale/fsl-community-bsp-base/issues/17. Will continue there. Regards, /Peter --------------F28A1FE2690DA30513C6F8AE Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

Hi again,

On 2021-03-04 23:15, Peter Bergin wrote:
Hi,

following these steps to build master branch has a really strange behavior. First build with bitbake bails out hard with tons of WARNINGS and ends up with an error in sstate.bbclass.

    $ repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b master
    $ repo sync
    $ EULA=1 MACHINE=imx8mm-lpddr4-evk DISTRO=poky source setup-environment build
    $ bitbake core-image-base


Here are examples of the WARNING:

----------------

WARNING: /storage/yocto/test2/sources/poky/meta/recipes-extended/shadow/shadow_4.8.1.bb: Variable key PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}compilerlibs (gcc-runtime) replaces original key PREFERRED_PROVIDER_virtual/x86_64-pokysdk-linux-compilerlibs (nativesdk-gcc-runtime).
WARNING: /storage/yocto/test2/sources/meta-openembedded/meta-python/recipes-devtools/python/python3-dateutil_2.8.1.bb: Variable key PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}compilerlibs (gcc-runtime) replaces original key PREFERRED_PROVIDER_virtual/x86_64-pokysdk-linux-compilerlibs (nativesdk-gcc-runtime).

-----------------

and in the end of the parsing:

-----------------

    >        spec, extrapath, tname = getpathcomponents(tid, d)

  File "/storage/yocto/test2/sources/poky/meta/classes/sstate.bbclass", line 877, in getpathcomponents(task='virtual:native:/storage/yocto/test2/sources/poky/meta/recipes-devtools/perl/libxml-parser-perl_2.46.bb:do_populate_sysroot', d=<bb.data_smart.DataSmart object at 0x7fd579d6adf0>):
             if splithashfn[0] == "True":
    >            extrapath = d.getVar("NATIVELSBSTRING") + "/"
             else:
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'


Summary: There were 1675 WARNING messages shown.
Summary: There were 6 ERROR messages shown, returning a non-zero exit code.

-----------------

The strange thing is that if the build is restarted again with 'bitbake core-image-base' the build starts fine and works as expected.

I have tried to narrow this down a bit and my wild guess is that this has something with setup-environment script to do. My build host is Ubuntu 20.10 (that I know is not a validated build host).

Here is an experiment where I create one build dir with setup-environment this ends up in the error described above and works the second time. Then I create a new build dir with oe-init-build-env and then copy local.conf and bblayers.conf from the first build dir.

    $ EULA=1 MACHINE=imx6qdlsabresd DISTRO=poky source setup-environment build
    $ bitbake core-image-base
    <ERROR>
    $ cd ..
    $ . ./sources/poky/oe-init-build-env build2
    $ cp ../build/conf/bblayers.conf conf/
    $ cp ../build/conf/local.conf conf/
    $ bitbake core-image-base
    <OK>

Someone with more insight in setup-environment script and bitbake that have an idea?

Regards,
/Peter









I was too fast sending this before I realized that Andrey already reported this in https://github.com/Freescale/fsl-community-bsp-base/issues/17. Will continue there.

Regards,
/Peter

--------------F28A1FE2690DA30513C6F8AE--