I created a build environment for powerpc-nf using poke "warrior" branch.
I was able to run "bitbake core-image-minimal" successfully.
I was also able to run "bitbake core-image-minimal -c populate_sdk" 
successfully.

Then I added a new package from my internal team.
After adding this package, I was still able to execute  "bitbake 
core-image-minimal" successfully.
However, bitbake core-image-minimal -c populate_sdk"  failed with the following 
error message...

*****************************************************************************************************
NOTE: Executing RunQueue Tasks
*ERROR: core-image-minimal-1.0-r0 do_populate_sdk: Could not invoke dnf.* 
Command 
'/tmp/youhour/fips-build/b20200206b/fips-ppcnf/build/tmp/work/fips_ppcnf-poky-linux/core-image-minimal/1.0-r0/recipe-sysroot-native/usr/bin/dnf
 -v --rpmverbosity=info -y -c 
/tmp/youhour/fips-build/b20200206b/fips-ppcnf/build/tmp/work/fips_ppcnf-poky-linux/core-image-minimal/1.0-r0/sdk/image/etc/dnf/dnf.conf
 
--setopt=reposdir=/tmp/youhour/fips-build/b20200206b/fips-ppcnf/build/tmp/work/fips_ppcnf-poky-linux/core-image-minimal/1.0-r0/sdk/image/etc/yum.repos.d
 
--installroot=/tmp/youhour/fips-build/b20200206b/fips-ppcnf/build/tmp/work/fips_ppcnf-poky-linux/core-image-minimal/1.0-r0/sdk/image
 
--setopt=logdir=/tmp/youhour/fips-build/b20200206b/fips-ppcnf/build/tmp/work/fips_ppcnf-poky-linux/core-image-minimal/1.0-r0/temp
 
--repofrompath=oe-repo,/tmp/youhour/fips-build/b20200206b/fips-ppcnf/build/tmp/work/fips_ppcnf-poky-linux/core-image-minimal/1.0-r0/oe-sdk-repo
 --nogpgcheck install nativesdk-mdchroot nativesdk-packagegroup-sdk-host 
packagegroup-cross-canadian-fips-ppcnf' returned 1:
DNF version: 4.1.0
cachedir: 
/tmp/youhour/fips-build/b20200206b/fips-ppcnf/build/tmp/work/fips_ppcnf-poky-linux/core-image-minimal/1.0-r0/sdk/image/var/cache/dnf
Added oe-repo repo from 
/tmp/youhour/fips-build/b20200206b/fips-ppcnf/build/tmp/work/fips_ppcnf-poky-linux/core-image-minimal/1.0-r0/oe-sdk-repo
repo: using cache for: oe-repo
not found other for:
not found modules for:
not found deltainfo for:
not found updateinfo for:
oe-repo: using metadata from Fri 07 Feb 2020 02:56:24 PM UTC.
Last metadata expiration check: 0:00:01 ago on Fri 07 Feb 2020 02:56:25 PM UTC.
*No module defaults found*
*No match for argument: nativesdk-mdchroot*
*Error: Unable to find a match*

ERROR: core-image-minimal-1.0-r0 do_populate_sdk:
ERROR: core-image-minimal-1.0-r0 do_populate_sdk: Function failed: 
do_populate_sdk
ERROR: Logfile of failure stored in: 
/tmp/youhour/fips-build/b20200206b/fips-ppcnf/build/tmp/work/fips_ppcnf-poky-linux/core-image-minimal/1.0-r0/temp/log.do_populate_sdk.10934
ERROR: Task 
(/esw/san5/youhour/yocto_mcp/b20200206b/fips-build/meta/recipes-core/images/core-image-minimal.bb:do_populate_sdk)
 failed with exit code '1'
NOTE: Tasks Summary: Attempted 3715 tasks of which 3714 didn't need to be rerun 
and 1 failed.
****************************************************************************************************

I googled  " do_populate_sdk: Could not invoke dnf " and found many similar 
problems with suggested solutions.  However, only find one work around that 
resolve the issue.
This work around is to change PACKAGE_CLASSES = "package_rpm" in the 
conf/local.conf file to PACKAGE_CLASSES = "package_ipk package_rpm".  While 
working, this solution use almost double the space for the build directory.

Has any one seen this problem and have a solution other than setting the 
PACKAGE_CLASSES = "package_ipk package_rpm" ?

Thank you in advance.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#48331): https://lists.yoctoproject.org/g/yocto/message/48331
Mute This Topic: https://lists.yoctoproject.org/mt/71141467/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to