All of lore.kernel.org
 help / color / mirror / Atom feed
* Error in do_rootfs while builing on sumo with cmake the library called "libfmt" 4.1.0 (on rocko it was ok)
@ 2018-09-05 21:36 Stefano Cappa
  0 siblings, 0 replies; 2+ messages in thread
From: Stefano Cappa @ 2018-09-05 21:36 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 3234 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 4821 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Error in do_rootfs while builing on sumo with cmake the library called "libfmt" 4.1.0 (on rocko it was ok)
@ 2019-02-26  9:47 Joanna
  0 siblings, 0 replies; 2+ messages in thread
From: Joanna @ 2019-02-26  9:47 UTC (permalink / raw)
  To: yocto

I had a similar problem where the rapidjson recipe was not working only on sumo.
The problem was that the default ${PN} package was empty so it would
not be generated, but do_rootfs would try to include it.
It helped to add a bbappend with the following line:
FILES_${PN} = " ${includedir}/ "

in your case you could possibly add ${libdir}/ as well,
This will create the rapidjson package and dnf will be happy.

I do not know if it is the right way to do that but it solves the
problem for me.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-02-26  9:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-05 21:36 Error in do_rootfs while builing on sumo with cmake the library called "libfmt" 4.1.0 (on rocko it was ok) Stefano Cappa
2019-02-26  9:47 Joanna

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.