All of lore.kernel.org
 help / color / mirror / Atom feed
* Can not build SDK in rocko 'nothing provides /usr/bin/python...'
@ 2018-11-02  7:28 Peter Bergin
  2018-11-02  8:54 ` Erik Botö
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Bergin @ 2018-11-02  7:28 UTC (permalink / raw)
  To: yocto

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

Hi,

I'm working in rocko branch and trying to build a SDK with kernel-devsrc 
on a standard qemux86 machine. During task populate_sdk I get the 
following error:

ERROR: core-image-base-1.0-r0 do_populate_sdk: Could not invoke dnf. Command '/work/yocto/rocko/qemux86/tmp/work/qemux86-poky-linux/core-image-base/1.0-r0/recipe-sysroot-native/usr/bin/dnf -y -c /work/yocto/rocko/qemux86/tmp/work/qemux86-poky-linux/core-image-base/1.0-r0/sdk/image/opt/poky/2.4.3/sysroots/i586-poky-linux/etc/dnf/dnf.conf --setopt=reposdir=/work/yocto/rocko/qemux86/tmp/work/qemux86-poky-linux/core-image-base/1.0-r0/sdk/image/opt/poky/2.4.3/sysroots/i586-poky-linux/etc/yum.repos.d --repofrompath=oe-repo,/work/yocto/rocko/qemux86/tmp/work/qemux86-poky-linux/core-image-base/1.0-r0/oe-sdk-repo --installroot=/work/yocto/rocko/qemux86/tmp/work/qemux86-poky-linux/core-image-base/1.0-r0/sdk/image/opt/poky/2.4.3/sysroots/i586-poky-linux --setopt=logdir=/work/yocto/rocko/qemux86/tmp/work/qemux86-poky-linux/core-image-base/1.0-r0/temp --nogpgcheck install packagegroup-core-standalone-sdk-target run-postinsts psplash packagegroup-base-extended packagegroup-core-boot linux-libc-headers-dev kernel-devsrc' returned 1:
Added oe-repo repo from /work/yocto/rocko/qemux86/tmp/work/qemux86-poky-linux/core-image-base/1.0-r0/oe-sdk-repo
Last metadata expiration check: 0:00:00 ago on Fri 02 Nov 2018 07:14:37 AM UTC.
Error:
  Problem: conflicting requests
   - nothing provides /usr/bin/python needed by kernel-devsrc-1.0-r0.qemux86

ERROR: core-image-base-1.0-r0 do_populate_sdk: Function failed: do_populate_sdk
ERROR: Logfile of failure stored in: /work/yocto/rocko/qemux86/tmp/work/qemux86-poky-linux/core-image-base/1.0-r0/temp/log.do_populate_sdk.25760
ERROR: Task (/work/yocto/rocko/layers/poky/meta/recipes-core/images/core-image-base.bb:do_populate_sdk) failed with exit code '1'

Any ideas about what the problem is and how to fix?

My addition to standard Yocto configuration is:

TOOLCHAIN_TARGET_TASK_append = " \
     kernel-devsrc \
     linux-libc-headers-dev \
"

I first build image with 'bitbake core-image-base' then I got the error 
when building SDK with 'bitbake core-image-base -c populate_sdk'


Thanks,
/Peter

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

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

* Re: Can not build SDK in rocko 'nothing provides /usr/bin/python...'
  2018-11-02  7:28 Can not build SDK in rocko 'nothing provides /usr/bin/python...' Peter Bergin
@ 2018-11-02  8:54 ` Erik Botö
  2018-11-02 10:02   ` Peter Bergin
  0 siblings, 1 reply; 3+ messages in thread
From: Erik Botö @ 2018-11-02  8:54 UTC (permalink / raw)
  To: peter; +Cc: yocto

On Fri, Nov 2, 2018 at 8:30 AM Peter Bergin <peter@berginkonsult.se> wrote:
>
> Hi,
>
> I'm working in rocko branch and trying to build a SDK with kernel-devsrc on a standard qemux86 machine. During task populate_sdk I get the following error:
>
> ERROR: core-image-base-1.0-r0 do_populate_sdk: Could not invoke dnf. Command '/work/yocto/rocko/qemux86/tmp/work/qemux86-poky-linux/core-image-base/1.0-r0/recipe-sysroot-native/usr/bin/dnf -y -c /work/yocto/rocko/qemux86/tmp/work/qemux86-poky-linux/core-image-base/1.0-r0/sdk/image/opt/poky/2.4.3/sysroots/i586-poky-linux/etc/dnf/dnf.conf --setopt=reposdir=/work/yocto/rocko/qemux86/tmp/work/qemux86-poky-linux/core-image-base/1.0-r0/sdk/image/opt/poky/2.4.3/sysroots/i586-poky-linux/etc/yum.repos.d --repofrompath=oe-repo,/work/yocto/rocko/qemux86/tmp/work/qemux86-poky-linux/core-image-base/1.0-r0/oe-sdk-repo --installroot=/work/yocto/rocko/qemux86/tmp/work/qemux86-poky-linux/core-image-base/1.0-r0/sdk/image/opt/poky/2.4.3/sysroots/i586-poky-linux --setopt=logdir=/work/yocto/rocko/qemux86/tmp/work/qemux86-poky-linux/core-image-base/1.0-r0/temp --nogpgcheck install packagegroup-core-standalone-sdk-target run-postinsts psplash packagegroup-base-extended packagegroup-core-boot linux-libc-headers-dev kernel-devsrc' returned 1:
> Added oe-repo repo from /work/yocto/rocko/qemux86/tmp/work/qemux86-poky-linux/core-image-base/1.0-r0/oe-sdk-repo
> Last metadata expiration check: 0:00:00 ago on Fri 02 Nov 2018 07:14:37 AM UTC.
> Error:
>  Problem: conflicting requests
>   - nothing provides /usr/bin/python needed by kernel-devsrc-1.0-r0.qemux86
>
> ERROR: core-image-base-1.0-r0 do_populate_sdk: Function failed: do_populate_sdk
> ERROR: Logfile of failure stored in: /work/yocto/rocko/qemux86/tmp/work/qemux86-poky-linux/core-image-base/1.0-r0/temp/log.do_populate_sdk.25760
> ERROR: Task (/work/yocto/rocko/layers/poky/meta/recipes-core/images/core-image-base.bb:do_populate_sdk) failed with exit code '1'
>
> Any ideas about what the problem is and how to fix?

I had a quick look at how the kernel-devsrc recipe looks in master,
and there they have added python to RDEPENDS. Adding that should pull
python in to the SDK as well.

See http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-kernel/linux/kernel-devsrc.bb?h=master#n234

Cheers,
Erik
>
> My addition to standard Yocto configuration is:
>
> TOOLCHAIN_TARGET_TASK_append = " \
>     kernel-devsrc \
>     linux-libc-headers-dev \
> "
>
> I first build image with 'bitbake core-image-base' then I got the error when building SDK with 'bitbake core-image-base -c populate_sdk'
>
>
> Thanks,
> /Peter
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


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

* Re: Can not build SDK in rocko 'nothing provides /usr/bin/python...'
  2018-11-02  8:54 ` Erik Botö
@ 2018-11-02 10:02   ` Peter Bergin
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Bergin @ 2018-11-02 10:02 UTC (permalink / raw)
  To: Erik Botö; +Cc: yocto

On 2018-11-02 09:54, Erik Botö wrote:
> and there they have added python to RDEPENDS. Adding that should pull
> python in to the SDK as well.
Thank you Erik!

Yes, adding python to RDEPENDS_kernel-devsrc solved the problem.

/Peter


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

end of thread, other threads:[~2018-11-02 10:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-02  7:28 Can not build SDK in rocko 'nothing provides /usr/bin/python...' Peter Bergin
2018-11-02  8:54 ` Erik Botö
2018-11-02 10:02   ` Peter Bergin

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.