All of lore.kernel.org
 help / color / mirror / Atom feed
* Building eSDK fails #sdk
@ 2021-02-04 17:43 alexander.troff
  2021-02-05  7:42 ` [yocto] " Robert Berger
  2021-02-05  9:49 ` Leon Woestenberg
  0 siblings, 2 replies; 3+ messages in thread
From: alexander.troff @ 2021-02-04 17:43 UTC (permalink / raw)
  To: yocto

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

Hello,
I build the SDK with bitbake core-image-base -c populate_sdk and it works just fine. But trying to build the eSDK with bitbake core-image-base -c populate_sdk_ext results in this error:

ERROR: buildtools-tarball-1.0-r0 do_populate_sdk: Unable to install packages. Command '/opt/build/tmp/work/x86_64-nativesdk-pokysdk-linux/buildtools-tarball/1.0-r0/recipe-sysroot-native/usr/bin/opkg --volatile-cache -f /opt/build/tmp/work/x86_64-nativesdk-pokysdk-linux/buildtools-tarball/1.0-r0/opkg.conf -t /opt/build/tmp/work/x86_64-nativesdk-pokysdk-linux/buildtools-tarball/1.0-r0/temp/ipktemp/ -o /opt/build/tmp/work/x86_64-nativesdk-pokysdk-linux/buildtools-tarball/1.0-r0/sdk/image/opt/my-os/0.1/sysroots/none  --force_postinstall --prefer-arch-to-version   install cppzmq-dev googletest-dev libappcommunicator-dev liblogger-dev libmodbus-dev libmyos-common-dev protobuf-c zeromq-staticdev' returned 255:
Collected errors:
* opkg_prepare_url_for_install: Couldn't find anything to satisfy 'cppzmq-dev'.

ERROR: Logfile of failure stored in: /opt/build/tmp/work/x86_64-nativesdk-pokysdk-linux/buildtools-tarball/1.0-r0/temp/log.do_populate_sdk.155
ERROR: Task (/opt/yocto/poky/meta/recipes-core/meta/buildtools-tarball.bb:do_populate_sdk) failed with exit code '1'

The listed Packeges are set in the TOOLCHAIN_TARGET_TASK variable. I tryed using IMAGE_INSTALL_append but this didn't help.
Does someone have an idea?

greetings
Alex

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

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

* Re: [yocto] Building eSDK fails #sdk
  2021-02-04 17:43 Building eSDK fails #sdk alexander.troff
@ 2021-02-05  7:42 ` Robert Berger
  2021-02-05  9:49 ` Leon Woestenberg
  1 sibling, 0 replies; 3+ messages in thread
From: Robert Berger @ 2021-02-05  7:42 UTC (permalink / raw)
  To: alexander.troff, yocto

Hi,

My comments are in-line

On 04/02/2021 19:43, alexander.troff@deveritec.com wrote:
> Hello,
> I build the SDK with bitbake core-image-base -c populate_sdk and it 
> works just fine. But trying to build the eSDK with bitbake 
> core-image-base -c populate_sdk_ext results in this error:
> 
> ERROR: buildtools-tarball-1.0-r0 do_populate_sdk: Unable to install 
> packages. Command 
> '/opt/build/tmp/work/x86_64-nativesdk-pokysdk-linux/buildtools-tarball/1.0-r0/recipe-sysroot-native/usr/bin/opkg 
> --volatile-cache -f 
> /opt/build/tmp/work/x86_64-nativesdk-pokysdk-linux/buildtools-tarball/1.0-r0/opkg.conf 
> -t 
> /opt/build/tmp/work/x86_64-nativesdk-pokysdk-linux/buildtools-tarball/1.0-r0/temp/ipktemp/ 
> -o 
> /opt/build/tmp/work/x86_64-nativesdk-pokysdk-linux/buildtools-tarball/1.0-r0/sdk/image/opt/my-os/0.1/sysroots/none  
> --force_postinstall --prefer-arch-to-version   install cppzmq-dev 
> googletest-dev libappcommunicator-dev liblogger-dev libmodbus-dev 
> libmyos-common-dev protobuf-c zeromq-staticdev' returned 255:
> Collected errors:
>   * opkg_prepare_url_for_install: Couldn't find anything to satisfy 
> 'cppzmq-dev'.
> 
> ERROR: Logfile of failure stored in: 
> /opt/build/tmp/work/x86_64-nativesdk-pokysdk-linux/buildtools-tarball/1.0-r0/temp/log.do_populate_sdk.155
> ERROR: Task 
> (/opt/yocto/poky/meta/recipes-core/meta/buildtools-tarball.bb:do_populate_sdk) 
> failed with exit code '1'

Which version is this?

Can it be reproduced?

If so you might want to add it to https://bugzilla.yoctoproject.org

> 
> 
> The listed Packeges are set in the TOOLCHAIN_TARGET_TASK variable. I 
> tryed using IMAGE_INSTALL_append but this didn't help.
> Does someone have an idea?
> 
> greetings
> Alex

Regards,

Robert

> 
> 
> 
> 


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

* Re: [yocto] Building eSDK fails #sdk
  2021-02-04 17:43 Building eSDK fails #sdk alexander.troff
  2021-02-05  7:42 ` [yocto] " Robert Berger
@ 2021-02-05  9:49 ` Leon Woestenberg
  1 sibling, 0 replies; 3+ messages in thread
From: Leon Woestenberg @ 2021-02-05  9:49 UTC (permalink / raw)
  To: alexander.troff; +Cc: yocto

Hello Alexander,

On Thu, Feb 4, 2021 at 6:43 PM <alexander.troff@deveritec.com> wrote:
>
> <...> trying to build the eSDK with bitbake core-image-base -c populate_sdk_ext results in this error:
> Collected errors:
>  * opkg_prepare_url_for_install: Couldn't find anything to satisfy 'cppzmq-dev'.
>
> The listed Packeges are set in the TOOLCHAIN_TARGET_TASK variable. I tryed using IMAGE_INSTALL_append but this didn't help.
> Does someone have an idea?
>
I have two ideas that might get you closer.

1) First, I noticed that using TOOLCHAIN_HOST_TASK += "xxx" is broken
on Yocto dunfell for me (non-extensible SDK). The issue is that even
when using += in local.conf, only "xxx" would end up in
TOOLCHAIN_HOST_TASK, removing the existing tasks.

I can test/prove this by running:
bitbake core-image-base -c populate_sdk -e | grep -e '^TOOLCHAIN_'

My local.conf thus look like this to work around this:

# @TODO Broken
#TOOLCHAIN_HOST_TASK += "nativesdk-cmake"
TOOLCHAIN_HOST_TASK_append = " nativesdk-cmake nativesdk-make"

TOOLCHAIN_TARGET_TASK_append = " concurrencykit-staticdev musl-staticdev"

2) There is something special with ''cppzmq-dev'; it is a header-only
package without libraries. Not sure if that has any impact for the
dependency resolution.

Probably useless info for you, but might trigger someone to help you further.

I minimal test case would be nice, against plain Yocto, so that devs
can investigate easier.

Regards,

Leon.

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

end of thread, other threads:[~2021-02-05  9:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-04 17:43 Building eSDK fails #sdk alexander.troff
2021-02-05  7:42 ` [yocto] " Robert Berger
2021-02-05  9:49 ` Leon Woestenberg

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.