From: Doug Goldstein <cardoe@cardoe.com>
To: Chris Patterson <cjp256@gmail.com>
Cc: "meta-virtualization@yoctoproject.org"
<meta-virtualization@yoctoproject.org>
Subject: Re: [PATCH 2/5] xen: drop explicit DEPEND on libgcc
Date: Tue, 26 Jan 2016 09:19:14 -0600 [thread overview]
Message-ID: <56A78E72.6030906@cardoe.com> (raw)
In-Reply-To: <CABZSBQcLHD9Kz56ysb-xe1jHWoAH7gvQYswOXsv4gmBJBJafeA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3074 bytes --]
On 1/25/16 5:24 PM, Chris Patterson wrote:
> On Mon, Jan 25, 2016 at 10:29 AM, Doug Goldstein <cardoe@cardoe.com> wrote:
>> The ELFs that get built in the 'xen-xl' package do not have a NEEDED
>> entry on libgcc. 'xen-base' is a meta package and itself should not
>> depend on a library like this. Yocto checks the NEEDED of the dynamic
>> section and automatically includes those libraries as dependencies.
>>
>> Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
>> ---
>> recipes-extended/xen/xen.inc | 4 +---
>> 1 file changed, 1 insertion(+), 3 deletions(-)
>>
>> diff --git a/recipes-extended/xen/xen.inc b/recipes-extended/xen/xen.inc
>> index c63cb2c..c0acbcd 100644
>> --- a/recipes-extended/xen/xen.inc
>> +++ b/recipes-extended/xen/xen.inc
>> @@ -54,7 +54,7 @@ DEPENDS = " \
>> RDEPENDS_${PN} = ""
>>
>> RDEPENDS_${PN}-base = "\
>> - libgcc bash perl xz \
>> + bash perl xz \
>
> Makes sense to remove from the meta package, +1.
>
>> ${PN}-blktap \
>> ${PN}-console \
>> ${PN}-libblktapctl \
>> @@ -137,8 +137,6 @@ RDEPENDS_${PN}-xendomains = "\
>> ${PN}-xenstored \
>> "
>>
>> -RDEPENDS_${PN}-xl = "libgcc"
>> -
>
> The commit that added libgcc warned some operations may not work:
>
> commit c93bc0c0185da21482164d9f76047715349cbb17
> Author: Philip Tricca <flihp@twobit.us>
> Date: Thu Jan 23 03:19:33 2014 +0000
>
> xen: Add libgcc as runtime dependency of xen-xl package.
>
> Much of xl operates fine without libgcc but some operations complain
> that pthread_cancel won't work properly without libgcc_s.so.1
> installed. The exact text is:
>
> libgcc_s.so.1 must be installed for pthread_cancel to work
>
> Signed-off-by: Philip Tricca <flihp@twobit.us>
> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
>
>
> Given the above warning, I went ahead a did a test. I took my image
> which had libgcc-s installed anyways, moved /lib/libgcc-s.so.1 to
> /tmp, then attempted to create a VM:
>
> ...
> domainbuilder: detail: xc_dom_gnttab_hvm_seed: called, pfn=0x10f000
> libxl: error: libxl_dm.c:1854:device_model_spawn_outcome: domain 4
> device model: spawn failed (rc=-3)
> libxl: error: libxl_create.c:1341:domcreate_devmodel_started: device
> model did not start: -3
> libxl: error: libxl_dm.c:1964:kill_device_model: Device Model already exited
>
> libxl: error: libxl.c:1591:libxl__destroy_domid: non-existant domain 4
> libxl: error: libxl.c:1549:domain_destroy_callback: unable to destroy
> guest with domid 4
> libxl: error: libxl.c:1476:domain_destroy_cb: destruction of domain 4 failed
> libgcc_s.so.1 must be installed for pthread_cancel to work
> Aborted
> ...
>
> So, I imagine that this patch is probably not wise, at least for my
> environment :) Although, it would appear that qemu pulls libgcc into
> my image regardless.
>
hmm. I'd rather respin it without that change then. Interesting that the
NEEDED check doesn't pick it up as a dependency.
--
Doug Goldstein
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 978 bytes --]
next prev parent reply other threads:[~2016-01-26 15:19 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-25 15:29 [PATCH 1/5] xen: update git version to 4.6.x Doug Goldstein
2016-01-25 15:29 ` [PATCH 2/5] xen: drop explicit DEPEND on libgcc Doug Goldstein
2016-01-25 23:24 ` Chris Patterson
2016-01-26 15:19 ` Doug Goldstein [this message]
2016-01-26 23:14 ` Richard Purdie
2016-01-25 15:29 ` [PATCH 3/5] xen: fix up typo in XSM comments Doug Goldstein
2016-01-25 22:21 ` Chris Patterson
2016-01-25 15:29 ` [PATCH 4/5] xen: separate the extra steps into their own tasks Doug Goldstein
2016-01-25 22:30 ` Chris Patterson
2016-01-25 15:29 ` [PATCH 5/5] xen: move bits common to all Xen versions to xen.inc Doug Goldstein
2016-01-25 22:34 ` Chris Patterson
2016-01-25 22:20 ` [PATCH 1/5] xen: update git version to 4.6.x Chris Patterson
2016-01-26 15:58 ` Doug Goldstein
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=56A78E72.6030906@cardoe.com \
--to=cardoe@cardoe.com \
--cc=cjp256@gmail.com \
--cc=meta-virtualization@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.