Discussion:
[yocto] ERROR: gtest not found in the base feed
Kevyn-Alexandre Paré
2014-11-06 23:01:26 UTC
Permalink
Hi,

I'm just trying to add a recipe that I found here

https://github.com/webOS-ports/meta-webos-ports/blob/master/recipes-upstreamable/gtest/gtest_1.7.0.bb

for gtest as part of my image:

bitbake -e gtest | grep ^PACKAGES=
PACKAGES="gtest-dbg gtest-staticdev gtest-dev gtest-doc gtest-locale gtest"

Adding it:
IMAGE_INSTALL += "gtest"

ERROR: gtest not found in the base feeds (overo armv7a-vfp-neon
armv7a-vfp armv7a armv6-vfp armv6 armv5e-vfp armv5e armv5-vfp armv5
armv4 arm noarch any all).

Since in

ls tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/gtest/1.7.0-r0/deploy-rpms/armv7a_vfp_neon/
gtest-dbg-1.7.0-r0.armv7a_vfp_neon.rpm gtest-dev-1.7.0-r0.armv7a_vfp_neon.rpm

and

tree tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/gtest/1.7.0-r0/packages-split/
tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/gtest/1.7.0-r0/packages-split/
├── gtest
├── gtest-dbg
├── gtest-dev
│ └── usr
│ ├── include
│ │ └── gtest
│ │ ├── gtest-death-test.h
│ │ ├── gtest.h
│ │ ├── gtest-message.h
│ │ ├── gtest-param-test.h
│ │ ├── gtest_pred_impl.h
│ │ ├── gtest-printers.h
│ │ ├── gtest_prod.h
│ │ ├── gtest-spi.h
│ │ ├── gtest-test-part.h
│ │ ├── gtest-typed-test.h
│ │ └── internal
│ │ ├── gtest-death-test-internal.h
│ │ ├── gtest-filepath.h
│ │ ├── gtest-internal.h
│ │ ├── gtest-linked_ptr.h
│ │ ├── gtest-param-util-generated.h
│ │ ├── gtest-param-util.h
│ │ ├── gtest-port.h
│ │ ├── gtest-string.h
│ │ ├── gtest-tuple.h
│ │ └── gtest-type-util.h
│ └── src
│ └── gtest
│ ├── cmake
│ │ └── internal_utils.cmake
│ ├── CMakeLists.txt
│ └── src
│ ├── gtest-all.cc
│ ├── gtest.h
│ └── gtest_main.cc
├── gtest-doc
├── gtest-locale
└── gtest-staticdev

I replace gtest with gtest-dev.


ERROR: Unable to install packages. Command
'/home/knight/SVN/rogue/3rdParty/Yocto/trunk/starting_point/yocto_build/src/build/tmp/sysroots/x86_64-linux/usr/bin/smart
--data-dir=/home/knight/SVN/rogue/3rdParty/Yocto/trunk/starting_point/yocto_build/src/build/tmp/work/overo-poky-linux-gnueabi/builder-console-image/1.0-r0/rootfs/var/lib/smart
install -y alsa-***@armv7a_vfp_neon ***@armv7a_vfp_neon
***@armv7a_vfp_neon ***@armv7a_vfp_neon ***@armv7a_vfp_neon
***@armv7a_vfp_neon mtd-utils-***@armv7a_vfp_neon
***@armv7a_vfp_neon ***@armv7a_vfp_neon u-boot-fw-***@overo
***@armv7a_vfp_neon ***@armv7a_vfp_neon
media-***@armv7a_vfp_neon ***@armv7a_vfp_neon
***@armv7a_vfp_neon ***@armv7a_vfp_neon
packagegroup-cli-***@all ***@armv7a_vfp_neon
v4l-***@armv7a_vfp_neon ***@armv7a_vfp_neon ***@armv7a_vfp_neon
g++-***@armv7a_vfp_neon gcc-***@armv7a_vfp_neon
gcc-***@armv7a_vfp_neon psplash-***@armv7a_vfp_neon ***@all
***@armv7a_vfp_neon g++@armv7a_vfp_neon ***@armv7a_vfp_neon
init-***@overo ***@armv7a_vfp_neon
systemd-***@armv7a_vfp_neon packagegroup-core-***@overo
***@armv7a_vfp_neon ***@armv7a_vfp_neon
cpp-***@armv7a_vfp_neon libts-1.0-***@armv7a_vfp_neon
gcc-plugin-***@armv7a_vfp_neon ***@armv7a_vfp_neon
packagegroup-core-ssh-***@all ***@armv7a_vfp_neon
***@armv7a_vfp_neon packagegroup-cli-tools-***@all
***@armv7a_vfp_neon u-***@overo ***@armv7a_vfp_neon
gtest-***@armv7a_vfp_neon ***@armv7a_vfp_neon ***@armv7a_vfp_neon
***@armv7a_vfp_neon ***@armv7a_vfp_neon
gcc-***@armv7a_vfp_neon ***@armv7a_vfp_neon ***@armv7a_vfp_neon
***@armv7a_vfp_neon ***@armv7a_vfp_neon
linux-firmware-***@all linux-firmware-***@all
***@armv7a_vfp_neon gcc-***@armv7a_vfp_neon
gcc-***@armv7a_vfp_neon packagegroup-base-***@overo
u-boot-***@armv7a_vfp_neon base-***@armv7a_vfp_neon
locale-base-en-***@armv7a_vfp_neon' returned 1:
Loading cache...
Updating cache... ######################################## [100%]

Computing transaction...error: Can't install
gtest-dev-1.7.0-***@armv7a_vfp_neon: no package provides gtest =
1.7.0-r0


ERROR: Function failed: do_rootfs
ERROR: Logfile of failure stored in:
/home/knight/SVN/rogue/3rdParty/Yocto/trunk/starting_point/yocto_build/src/build/tmp/work/overo-poky-linux-gnueabi/builder-console-image/1.0-r0/temp/log.do_rootfs.11446
ERROR: Task 7 (/home/knight/SVN/rogue/3rdParty/Yocto/trunk/starting_point/yocto_build/src/poky/meta-nirs/recipes-images/gumstix/builder-console-image.bb,
do_rootfs) failed with exit code '1'


But I see them
ls tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/gtest/1.7.0-r0/deploy-rpms/armv7a_vfp_neon/
gtest-dbg-1.7.0-r0.armv7a_vfp_neon.rpm gtest-dev-1.7.0-r0.armv7a_vfp_neon.rpm

Any clue what I'm missing?

BR,

-KA
--
Gary Thomas
2014-11-06 23:26:15 UTC
Permalink
Post by Kevyn-Alexandre Paré
Hi,
I'm just trying to add a recipe that I found here
https://github.com/webOS-ports/meta-webos-ports/blob/master/recipes-upstreamable/gtest/gtest_1.7.0.bb
bitbake -e gtest | grep ^PACKAGES=
PACKAGES="gtest-dbg gtest-staticdev gtest-dev gtest-doc gtest-locale gtest"
IMAGE_INSTALL += "gtest"
ERROR: gtest not found in the base feeds (overo armv7a-vfp-neon
armv7a-vfp armv7a armv6-vfp armv6 armv5e-vfp armv5e armv5-vfp armv5
armv4 arm noarch any all).
Since in
ls tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/gtest/1.7.0-r0/deploy-rpms/armv7a_vfp_neon/
gtest-dbg-1.7.0-r0.armv7a_vfp_neon.rpm gtest-dev-1.7.0-r0.armv7a_vfp_neon.rpm
Where is the gtest-1.7.0-r0.armv7a_vfp_neon.rpm??

I suspect that the build didn't work correctly, or at least it generated
no installable objects which by default will not generate an empty package.
Post by Kevyn-Alexandre Paré
and
tree tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/gtest/1.7.0-r0/packages-split/
tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/gtest/1.7.0-r0/packages-split/
├── gtest
├── gtest-dbg
├── gtest-dev
│ └── usr
│ ├── include
│ │ └── gtest
│ │ ├── gtest-death-test.h
│ │ ├── gtest.h
│ │ ├── gtest-message.h
│ │ ├── gtest-param-test.h
│ │ ├── gtest_pred_impl.h
│ │ ├── gtest-printers.h
│ │ ├── gtest_prod.h
│ │ ├── gtest-spi.h
│ │ ├── gtest-test-part.h
│ │ ├── gtest-typed-test.h
│ │ └── internal
│ │ ├── gtest-death-test-internal.h
│ │ ├── gtest-filepath.h
│ │ ├── gtest-internal.h
│ │ ├── gtest-linked_ptr.h
│ │ ├── gtest-param-util-generated.h
│ │ ├── gtest-param-util.h
│ │ ├── gtest-port.h
│ │ ├── gtest-string.h
│ │ ├── gtest-tuple.h
│ │ └── gtest-type-util.h
│ └── src
│ └── gtest
│ ├── cmake
│ │ └── internal_utils.cmake
│ ├── CMakeLists.txt
│ └── src
│ ├── gtest-all.cc
│ ├── gtest.h
│ └── gtest_main.cc
├── gtest-doc
├── gtest-locale
└── gtest-staticdev
I replace gtest with gtest-dev.
ERROR: Unable to install packages. Command
'/home/knight/SVN/rogue/3rdParty/Yocto/trunk/starting_point/yocto_build/src/build/tmp/sysroots/x86_64-linux/usr/bin/smart
--data-dir=/home/knight/SVN/rogue/3rdParty/Yocto/trunk/starting_point/yocto_build/src/build/tmp/work/overo-poky-linux-gnueabi/builder-console-image/1.0-r0/rootfs/var/lib/smart
Loading cache...
Updating cache... ######################################## [100%]
Computing transaction...error: Can't install
1.7.0-r0
ERROR: Function failed: do_rootfs
/home/knight/SVN/rogue/3rdParty/Yocto/trunk/starting_point/yocto_build/src/build/tmp/work/overo-poky-linux-gnueabi/builder-console-image/1.0-r0/temp/log.do_rootfs.11446
ERROR: Task 7 (/home/knight/SVN/rogue/3rdParty/Yocto/trunk/starting_point/yocto_build/src/poky/meta-nirs/recipes-images/gumstix/builder-console-image.bb,
do_rootfs) failed with exit code '1'
But I see them
ls tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/gtest/1.7.0-r0/deploy-rpms/armv7a_vfp_neon/
gtest-dbg-1.7.0-r0.armv7a_vfp_neon.rpm gtest-dev-1.7.0-r0.armv7a_vfp_neon.rpm
Any clue what I'm missing?
BR,
-KA
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
Martin Jansa
2014-11-07 14:23:36 UTC
Permalink
Post by Gary Thomas
Post by Kevyn-Alexandre Paré
Hi,
I'm just trying to add a recipe that I found here
https://github.com/webOS-ports/meta-webos-ports/blob/master/recipes-upstreamable/gtest/gtest_1.7.0.bb
bitbake -e gtest | grep ^PACKAGES=
PACKAGES="gtest-dbg gtest-staticdev gtest-dev gtest-doc gtest-locale gtest"
IMAGE_INSTALL += "gtest"
ERROR: gtest not found in the base feeds (overo armv7a-vfp-neon
armv7a-vfp armv7a armv6-vfp armv6 armv5e-vfp armv5e armv5-vfp armv5
armv4 arm noarch any all).
Since in
ls tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/gtest/1.7.0-r0/deploy-rpms/armv7a_vfp_neon/
gtest-dbg-1.7.0-r0.armv7a_vfp_neon.rpm gtest-dev-1.7.0-r0.armv7a_vfp_neon.rpm
Where is the gtest-1.7.0-r0.armv7a_vfp_neon.rpm??
I suspect that the build didn't work correctly, or at least it generated
no installable objects which by default will not generate an empty package.
That's correct, all files are installed in gtest-dev package.

The problem is the default RDEPENDS from ${PN}-dev to ${PN}

meta/conf/bitbake.conf:RDEPENDS_${PN}-dev = "${PN} (= ${EXTENDPKGV})"

You can either set
ALLOW_EMPTY_${PN} = "1"
or
RDEPENDS_${PN}-dev = ""
Post by Gary Thomas
Post by Kevyn-Alexandre Paré
tree tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/gtest/1.7.0-r0/packages-split/
tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/gtest/1.7.0-r0/packages-split/
├── gtest
├── gtest-dbg
├── gtest-dev
│ └── usr
│ ├── include
│ │ └── gtest
│ │ ├── gtest-death-test.h
│ │ ├── gtest.h
│ │ ├── gtest-message.h
│ │ ├── gtest-param-test.h
│ │ ├── gtest_pred_impl.h
│ │ ├── gtest-printers.h
│ │ ├── gtest_prod.h
│ │ ├── gtest-spi.h
│ │ ├── gtest-test-part.h
│ │ ├── gtest-typed-test.h
│ │ └── internal
│ │ ├── gtest-death-test-internal.h
│ │ ├── gtest-filepath.h
│ │ ├── gtest-internal.h
│ │ ├── gtest-linked_ptr.h
│ │ ├── gtest-param-util-generated.h
│ │ ├── gtest-param-util.h
│ │ ├── gtest-port.h
│ │ ├── gtest-string.h
│ │ ├── gtest-tuple.h
│ │ └── gtest-type-util.h
│ └── src
│ └── gtest
│ ├── cmake
│ │ └── internal_utils.cmake
│ ├── CMakeLists.txt
│ └── src
│ ├── gtest-all.cc
│ ├── gtest.h
│ └── gtest_main.cc
├── gtest-doc
├── gtest-locale
└── gtest-staticdev
I replace gtest with gtest-dev.
ERROR: Unable to install packages. Command
'/home/knight/SVN/rogue/3rdParty/Yocto/trunk/starting_point/yocto_build/src/build/tmp/sysroots/x86_64-linux/usr/bin/smart
--data-dir=/home/knight/SVN/rogue/3rdParty/Yocto/trunk/starting_point/yocto_build/src/build/tmp/work/overo-poky-linux-gnueabi/builder-console-image/1.0-r0/rootfs/var/lib/smart
Loading cache...
Updating cache... ######################################## [100%]
Computing transaction...error: Can't install
1.7.0-r0
ERROR: Function failed: do_rootfs
/home/knight/SVN/rogue/3rdParty/Yocto/trunk/starting_point/yocto_build/src/build/tmp/work/overo-poky-linux-gnueabi/builder-console-image/1.0-r0/temp/log.do_rootfs.11446
ERROR: Task 7 (/home/knight/SVN/rogue/3rdParty/Yocto/trunk/starting_point/yocto_build/src/poky/meta-nirs/recipes-images/gumstix/builder-console-image.bb,
do_rootfs) failed with exit code '1'
But I see them
ls tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/gtest/1.7.0-r0/deploy-rpms/armv7a_vfp_neon/
gtest-dbg-1.7.0-r0.armv7a_vfp_neon.rpm gtest-dev-1.7.0-r0.armv7a_vfp_neon.rpm
Any clue what I'm missing?
BR,
-KA
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
_______________________________________________
yocto mailing list
https://lists.yoctoproject.org/listinfo/yocto
--
Martin 'JaMa' Jansa jabber: ***@gmail.com
Burton, Ross
2014-11-07 14:39:23 UTC
Permalink
Post by Martin Jansa
You can either set
ALLOW_EMPTY_${PN} = "1"
or
RDEPENDS_${PN}-dev = ""
FWIW, I'm a *massive* fan of using RDEPENDS here - instead of creating
empty packages which will only confuse in the future, remove the dependency
that is problematic.

Ross
Kevyn-Alexandre Paré
2014-11-08 00:03:37 UTC
Permalink
Martin,
Post by Martin Jansa
Post by Gary Thomas
Post by Kevyn-Alexandre Paré
Hi,
I'm just trying to add a recipe that I found here
https://github.com/webOS-ports/meta-webos-ports/blob/master/recipes-upstreamable/gtest/gtest_1.7.0.bb
bitbake -e gtest | grep ^PACKAGES=
PACKAGES="gtest-dbg gtest-staticdev gtest-dev gtest-doc gtest-locale gtest"
IMAGE_INSTALL += "gtest"
ERROR: gtest not found in the base feeds (overo armv7a-vfp-neon
armv7a-vfp armv7a armv6-vfp armv6 armv5e-vfp armv5e armv5-vfp armv5
armv4 arm noarch any all).
Since in
ls tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/gtest/1.7.0-r0/deploy-rpms/armv7a_vfp_neon/
gtest-dbg-1.7.0-r0.armv7a_vfp_neon.rpm gtest-dev-1.7.0-r0.armv7a_vfp_neon.rpm
Where is the gtest-1.7.0-r0.armv7a_vfp_neon.rpm??
I suspect that the build didn't work correctly, or at least it generated
no installable objects which by default will not generate an empty package.
That's correct, all files are installed in gtest-dev package.
The problem is the default RDEPENDS from ${PN}-dev to ${PN}
meta/conf/bitbake.conf:RDEPENDS_${PN}-dev = "${PN} (= ${EXTENDPKGV})"
k now I understand more this one:
Computing transaction...error: Can't install
gtest-dev-1.7.0-***@armv7a_vfp_neon: no package provides gtest =
1.7.0-r0


198 EXTENDPRAUTO = "${@['.${PRAUTO\x7d',''][d.getVar('PRAUTO',1) is None]}"
199 PRAUTOINX = "${PF}"
200
201 PKGV ?= "${PV}"
202 PKGR ?= "${PR}${EXTENDPRAUTO}"
203 PKGE ?= "${@['','${PE\x7d'][int(d.getVar('PE',1) or 0) > 0]}"
204 EXTENDPKGEVER = "${@['','${PKGE\x7d:'][d.getVar('PKGE',1).strip() != '']}"
205 EXTENDPKGV ?= "${EXTENDPKGEVER}${PKGV}-${PKGR}"

So this EXTENDPKGEVER is :

-1.7.0-r0.armv7a_vfp_neon

?
Post by Martin Jansa
You can either set
ALLOW_EMPTY_${PN} = "1"
http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#var-ALLOW_EMPTY

Adding this in my recipe and gtest-dev in my image create gtest
package and it succeed in creating the rootfs.

build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/gtest/1.7.0-r0/deploy-rpms/armv7a_vfp_neon$
ls
gtest-1.7.0-r0.armv7a_vfp_neon.rpm
gtest-dbg-1.7.0-r0.armv7a_vfp_neon.rpm
gtest-dev-1.7.0-r0.armv7a_vfp_neon.rpm
Post by Martin Jansa
or
RDEPENDS_${PN}-dev = ""
That works nicely but why this is not part of the recipe by default?
Could it be interesting to add it?

thx,

-KA
--

Kevyn-Alexandre Paré
2014-11-07 23:11:47 UTC
Permalink
Hi Gary,
Post by Gary Thomas
Post by Kevyn-Alexandre Paré
ls
tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/gtest/1.7.0-r0/deploy-rpms/armv7a_vfp_neon/
gtest-dbg-1.7.0-r0.armv7a_vfp_neon.rpm
gtest-dev-1.7.0-r0.armv7a_vfp_neon.rpm
Where is the gtest-1.7.0-r0.armv7a_vfp_neon.rpm??
This is a part that I don't yet understand about packaging... Why the
gtest-dbg-1.7.0-r0.armv7a_vfp_neon.rpm is there and empty and and
other empty package are not? I think I have read that -dbg is always
there ? Anyone can point my to documentation about that didn't found
it.
Post by Gary Thomas
I suspect that the build didn't work correctly, or at least it generated
no installable objects which by default will not generate an empty package.
hmm thx

-KA
--
Martin Jansa
2014-11-07 23:35:38 UTC
Permalink
Post by Kevyn-Alexandre Paré
Hi Gary,
Post by Gary Thomas
Post by Kevyn-Alexandre Paré
ls
tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/gtest/1.7.0-r0/deploy-rpms/armv7a_vfp_neon/
gtest-dbg-1.7.0-r0.armv7a_vfp_neon.rpm
gtest-dev-1.7.0-r0.armv7a_vfp_neon.rpm
Where is the gtest-1.7.0-r0.armv7a_vfp_neon.rpm??
This is a part that I don't yet understand about packaging... Why the
gtest-dbg-1.7.0-r0.armv7a_vfp_neon.rpm is there and empty and and
other empty package are not? I think I have read that -dbg is always
there ? Anyone can point my to documentation about that didn't found
it.
I don't know about any documentation of this, but there is:
meta/conf/bitbake.conf:ALLOW_EMPTY_${PN}-dev = "1"
meta/conf/bitbake.conf:ALLOW_EMPTY_${PN}-dbg = "1"

and ${PN}-dev and ${PN}-dbg are in default PACKAGES value, that's what
makes them always created (even when empty), unless the recipe defines
PACKAGES variable (not recommended).

The default runtime dependency from PN-dev is IMHO more annoying than
PN-dev existence.
--
Martin 'JaMa' Jansa jabber: ***@gmail.com
Loading...