On Wed, 2022-12-28 at 07:44 -0800, Ron Eggler wrote:
> On 2022-12-28 03:42, Richard Purdie wrote:
> > On Mon, 2022-12-26 at 18:54 -0800, Mistyron wrote:
> > > Hi,
> > > 
> > > I'm want to write a recipe to compile phytool but I'm getting the below
> > > error when building it with:
> > > $ bitbake -b phytool_2.0
> > > ERROR: Failed to spawn fakeroot worker to run
> > > /home/yocto/rzg_vlp_v3.0.0/build/../meta-mistysom/recipes-bringup/phytool/phytool_2.0.bb:do_install:
> > > [Errno 2] No such file or directory:
> > > '/home/yocto/rzg_vlp_v3.0.0/build/tmp/sysroots-components/x86_64/pseudo-native/usr/bin/pseudo'
> > > 
> > > my bb file looks like:
> > > 
> > > [phytool_2.0.bb]
> > > DESCRIPTION = "Recipe builds phytool utility"
> > > # Needs to be changed to GPLv2
> > > LICENSE = "MIT"
> > > SRC_URI = "git://github.com/MistySOM/phytool.git"
> > > SRCREV = "8882328c08ba2efb13c049812098f1d0cb8adf0c"
> > > LIC_FILES_CHKSUM =
> > > "file://../git/LICENSE;md5=39bba7d2cf0ba1036f2a6e2be52fe3f0"
> > > INHERIT += " pseudo"
> > > 
> > > python do_display_banner() {
> > >       bb.plain("some message")
> > > }
> > > 
> > > addtask display_banner before do_build
> > > [/phytool_2.0.bb]
> > > 
> > > It appears like my INHERIT line does not satsify the requirement.
> > > How can I resolve this?
> > There is no class called "pseudo" so the inherit line is wrong. Why do
> > you think you need to inherit such a class?
> Because bitbake gave me an error that it could not find it, hence I 
> added it as a dependency.

A dependency would be something like:

DEPENDS += "pseudo-native"

however that isn't your problem.

> > Pseudo is usually used by tasks as needed by default.

The problem is your -b option usage. To quote bitbake --help:

  -b BUILDFILE, --buildfile BUILDFILE
                        Execute tasks from a specific .bb recipe directly. 
WARNING: Does not handle any dependencies from other
                        recipes.

As it says, it doesn't handle dependencies from other recipes like pseudo.

Cheers,

Richard

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#58883): https://lists.yoctoproject.org/g/yocto/message/58883
Mute This Topic: https://lists.yoctoproject.org/mt/95898174/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to