[yocto] Error in do_rootfs while builing on sumo with cmake the library called "libfmt" 4.1.0 (on rocko it was ok)

Stefano Cappa stefano.cappa.ks89 at gmail.com
Wed Sep 5 14:36:43 PDT 2018


I created a custom meta-layer to build libfmt 4.1.0 (
https://github.com/fmtlib/fmt).
Since this library uses cmake, I created this receipe:

--------------------------------
*SUMMARY = "fmt"*
*SECTION = "base"*

*SRC_URI = "https://github.com/fmtlib/fmt/archive/${PV}.tar.gz
<https://github.com/fmtlib/fmt/archive/${PV}.tar.gz>"*
*S = "${WORKDIR}/fmt-${PV}"*

*SRC_URI[md5sum] = "057d1fc49f6d3114e29e8cc72cf70e08"*
*SRC_URI[sha256sum] =
"46628a2f068d0e33c716be0ed9dcae4370242df135aed663a180b9fd8e36733d"*

*inherit cmake*
*EXTRA_OECMAKE = ""*
--------------------------------

Adding fmt as a dependency into my local.conf and running "bitbake fmt" I'm
able to build the library without issues.

But, when I run "bitbake my-image-name" to bundle everything I receive the
error below (ONLY WITH SUMO, on ROCKO everything was perfect).
The same receipe on rocko is absolutely ok. This error appears only on sumo.

--------------------------------
*ERROR: my-image-develop-1.0-r0 do_rootfs: Could not invoke dnf. Command
'/home/ks89/git/poky/build/tmp/work/imx6ullevk-poky-linux-gnueabi/my-image-develop/1.0-r0/recipe-sysroot-native/usr/bin/dnf
-y -c
/home/ks89/git/poky/build/tmp/work/imx6ullevk-poky-linux-gnueabi/my-image-develop/1.0-r0/rootfs/etc/dnf/dnf.conf
--setopt=reposdir=/home/ks89/git/poky/build/tmp/work/imx6ullevk-poky-linux-gnueabi/my-image-develop/1.0-r0/rootfs/etc/yum.repos.d
--repofrompath=oe-repo,/home/ks89/git/poky/build/tmp/work/imx6ullevk-poky-linux-gnueabi/my-image-develop/1.0-r0/oe-rootfs-repo
--installroot=/home/ks89/git/poky/build/tmp/work/imx6ullevk-poky-linux-gnueabi/my-image-develop/1.0-r0/rootfs
--setopt=logdir=/home/ks89/git/poky/build/tmp/work/imx6ullevk-poky-linux-gnueabi/my-image-develop/1.0-r0/temp
--nogpgcheck install mender rpm fmt shadow base-passwd dnf
packagegroup-core-sdk packagegroup-core-boot run-postinsts
packagegroup-core-standalone-sdk-target packagegroup-my-deps-develop'
returned 1:*
*Added oe-repo repo from
/home/ks89/git/poky/build/tmp/work/imx6ullevk-poky-linux-gnueabi/my-image-develop/1.0-r0/oe-rootfs-repo*
*Last metadata expiration check: 0:00:00 ago on Wed 05 Sep 2018 08:05:11 PM
UTC.*
*No match for argument: fmt*
*Error: Unable to find a match*

*ERROR: my-image-develop-1.0-r0 do_rootfs: Function failed: do_rootfs*
*ERROR: Logfile of failure stored in:
/home/ks89/git/poky/build/tmp/work/imx6ullevk-poky-linux-gnueabi/my-image-develop/1.0-r0/temp/log.do_rootfs.64931*
*ERROR: Task
(/home/ks89/git/poky/meta-custom-layer-sumo/meta-custom-layer-dev/recipes-core/images/my-image-develop.bb:do_rootfs)
failed with exit code '1'*
*NOTE: Tasks Summary: Attempted 3973 tasks of which 3655 didn't need to be
rerun and 1 failed.*

*Summary: 1 task failed:*
*
/home/ks89/git/poky/meta-custom-layer-sumo/meta-custom-layer-dev/recipes-core/images/my-image-develop.bb:do_rootfs*
*Summary: There were 2 ERROR messages shown, returning a non-zero exit
code.*
--------------------------------


*Do you have any suggestions? I'm completely blocked and I cannot update my
device to sumo because this library is a dependency of another important
library that I'm using.*
*So, I have to add fmt.*

Thank u,
Ks89
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180905/251fb730/attachment.html>


More information about the yocto mailing list