All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Siegumfeldt <mns@gomspace.com>
To: Andrea Galbusera <gizero@gmail.com>
Cc: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: Recipe availability through eSDK (cppzmq)
Date: Tue, 1 May 2018 18:49:17 +0000	[thread overview]
Message-ID: <AM5PR0402MB2721423A92FAD6DD6409AA3EC4810@AM5PR0402MB2721.eurprd04.prod.outlook.com> (raw)
In-Reply-To: <CAC+thW3R88fkjU4Gk6xH3=y1BMPLJAb0zvVhpDEPS+yiR7rW7w@mail.gmail.com>

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

Hi Andrea,


________________________________
From: Andrea Galbusera <gizero@gmail.com>
Sent: Tuesday, May 1, 2018 16:06
To: Martin Siegumfeldt
Cc: yocto@yoctoproject.org
Subject: Re: [yocto] Recipe availability through eSDK (cppzmq)

Hi Martin,

On Mon, Apr 30, 2018 at 9:10 PM, Martin Siegumfeldt <mns@gomspace.com> wrote:
> Hi,
>
> I am trying to build cppzmq through a Yocto (Rocko) generated eSDK. The search function does not return anything, despite the recipe being available through local recipe:
>
> martin@dell:~/gomspace_sdk$ ls layers/meta-openembedded/meta-oe/recipes-connectivity/zeromq/
> cppzmq_git.bb  files  zeromq_4.1.6.bb
>
> I assume this is expected since it does not come prebuilt as part of the eSDK - is this correct understood?
>
> Fortunately, 'devtool modify/build/package' generates the package - unfortunately it is not included in the subsequent image generation:
>
> martin@dell:~/gomspace_sdk$ devtool package cppzmq
> NOTE: Starting bitbake server...
> NOTE: Starting bitbake server...
> WARNING: Host distribution "ubuntu-17.10" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
> Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:03
> Loaded 2773 entries from dependency cache.
> Parsing recipes: 100% |######################################################################################################################################################################| Time: 0:00:01
> Parsing of 1968 .bb files complete (1960 cached, 8 parsed). 2780 targets, 305 skipped, 11 masked, 0 errors.
> NOTE: Resolving any missing task queue dependencies
> Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:00
> Checking sstate mirror object availability: 100% |###########################################################################################################################################| Time: 0:00:00
> NOTE: Executing SetScene Tasks
> NOTE: Executing RunQueue Tasks
> NOTE: Tasks Summary: Attempted 492 tasks of which 491 didn't need to be rerun and all succeeded.
>
> Summary: There was 1 WARNING message shown.
> NOTE: Your packages are in /home/martin/gomspace_sdk/tmp/deploy/ipk
>
> martin@dell:~/gomspace_sdk$ devtool build-image
> NOTE: Starting bitbake server...
> WARNING: Host distribution "ubuntu-17.10" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
> Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:00
> Loaded 2773 entries from dependency cache.
> Parsing recipes: 100% |######################################################################################################################################################################| Time: 0:00:02
> Parsing of 1968 .bb files complete (1960 cached, 8 parsed). 2780 targets, 305 skipped, 11 masked, 0 errors.
>
> Summary: There was 1 WARNING message shown.
> WARNING: Skipping recipe cppzmq as it doesn't produce a package with the same name

This is the suspicious bit... If you look at the recipe, you'll notice
it's re-defining the PACKAGES variable. Then, it's not generating a
package called 'cppzmq', but only one named 'cppzmq-dev'. That said,
I'm not sure why you'd want to add a package which only provides
development headers to your target image...

I understand your doubt here. The header file installed is a wrapper around zeromq and thus DEPENDS/RDEPENDS on this library. zeromq is included in the image, for which the SDK is generated, hence I would expect this to be a valid use case?

Anyhow, I realized that the recipe does not even work in a BB environment - the following is encountered for an image including the package:

ERROR: Nothing RPROVIDES 'cppzmq' (but /home/martin/work/z7000-distro-zcu102/poky/meta/recipes-core/images/core-image-minimal.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'cppzmq' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['cppzmq']
ERROR: Required build target 'core-image-minimal' has no buildable providers.
Missing or unbuildable dependency chain was: ['core-image-minimal', 'cppzmq']

I wonder why this occurs when the recipe is indeed present:

martin@dell:~/work/z7000-distro-zcu102/build$ bitbake-layers  show-recipes cppzmq
NOTE: Starting bitbake server...
WARNING: Host distribution "ubuntu-17.10" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:00
Loaded 2773 entries from dependency cache.
Parsing recipes: 100% |######################################################################################################################################################################| Time: 0:00:01
Parsing of 1968 .bb files complete (1961 cached, 7 parsed). 2780 targets, 305 skipped, 11 masked, 0 errors.

Summary: There was 1 WARNING message shown.
=== Matching recipes: ===
cppzmq:
  meta-oe              4.1.5+gitAUTOINC+68a7b09cfc

Br,
Martin

>
> Inspecting the manifest file confirms that the package is not installed - any idea why not? I also tried installing though sdk-install:
>
> martin@dell:~/gomspace_sdk$ devtool sdk-install -s cppzmq
> NOTE: Starting bitbake server...
> WARNING: Host distribution "ubuntu-17.10" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
> Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:00
> Loaded 2773 entries from dependency cache.
> Parsing recipes: 100% |######################################################################################################################################################################| Time: 0:00:02
> Parsing of 1968 .bb files complete (1961 cached, 7 parsed). 2780 targets, 305 skipped, 11 masked, 0 errors.
>
> Summary: There was 1 WARNING message shown.
> NOTE: Installing cppzmq...
> WARNING: Host distribution "ubuntu-17.10" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
> Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:03
> Loaded 2773 entries from dependency cache.
> Parsing recipes: 100% |######################################################################################################################################################################| Time: 0:00:01
> Parsing of 1968 .bb files complete (1961 cached, 7 parsed). 2780 targets, 305 skipped, 11 masked, 0 errors.
> NOTE: Resolving any missing task queue dependencies
> Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:00
> Checking sstate mirror object availability: 100% |###########################################################################################################################################| Time: 0:00:00
> NOTE: Executing SetScene Tasks
> NOTE: Executing RunQueue Tasks
> NOTE: Tasks Summary: Attempted 487 tasks of which 477 didn't need to be rerun and all succeeded.
>
> Summary: There was 1 WARNING message shown.
> NOTE: Successfully installed cppzmq
>
> Which also does not pick up the package upon image building:
>
> martin@dell:~/gomspace_sdk$ IMAGE_INSTALL_append="cppzmq" devtool build-image
> NOTE: Starting bitbake server...
> WARNING: Host distribution "ubuntu-17.10" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
> Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:00
> Loaded 2773 entries from dependency cache.
> Parsing recipes: 100% |######################################################################################################################################################################| Time: 0:00:02
> Parsing of 1968 .bb files complete (1961 cached, 7 parsed). 2780 targets, 305 skipped, 11 masked, 0 errors.
>
> Summary: There was 1 WARNING message shown.
> WARNING: No packages to add, building image nanocom-sdr-image unmodified
>
> What am I missing here?
>
> Thanks,
> Martin
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

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

  reply	other threads:[~2018-05-01 21:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-30 19:10 Recipe availability through eSDK (cppzmq) Martin Siegumfeldt
2018-05-01 14:06 ` Andrea Galbusera
2018-05-01 18:49   ` Martin Siegumfeldt [this message]
2018-05-02  7:52     ` Martin Siegumfeldt
2018-05-02  8:33       ` Andrea Galbusera
2018-05-02 12:33         ` Martin Siegumfeldt
2018-05-02 14:22           ` Andrea Galbusera
2018-05-02 21:19         ` Paul Eggleton
2018-05-04  3:26           ` Trevor Woerner
2018-05-04  3:27             ` Paul Eggleton
2018-05-02  8:00     ` Andrea Galbusera

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AM5PR0402MB2721423A92FAD6DD6409AA3EC4810@AM5PR0402MB2721.eurprd04.prod.outlook.com \
    --to=mns@gomspace.com \
    --cc=gizero@gmail.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.