All of lore.kernel.org
 help / color / mirror / Atom feed
* systemd support?
@ 2013-08-15 22:29 Gary Thomas
  2013-08-16 11:07 ` Gary Thomas
  0 siblings, 1 reply; 3+ messages in thread
From: Gary Thomas @ 2013-08-15 22:29 UTC (permalink / raw)
  To: Yocto Project

I tried to take my existing Poky/Yocto system (using my own $DISTRO
which is a derivative of poky) and enable systemd.  I'm using today's
master:
   meta              = "cutting-edge:ff10f72abda52315b892c64f711096772d9a4c1c"

Sadly, building the simplest image fails with this error:

| update-alternatives: Linking /local/p60_systemd/tmp/work/cobra3530p60-amltd-linux-gnueabi/amltd-console-image/1.0-r0/rootfs//sbin/poweroff to /sbin/poweroff.sysvinit
| update-alternatives: Linking /local/p60_systemd/tmp/work/cobra3530p60-amltd-linux-gnueabi/amltd-console-image/1.0-r0/rootfs//usr/bin/last to /usr/bin/last.sysvinit
| update-alternatives: Linking /local/p60_systemd/tmp/work/cobra3530p60-amltd-linux-gnueabi/amltd-console-image/1.0-r0/rootfs//usr/bin/mesg to /usr/bin/mesg.sysvinit
| update-alternatives: Linking /local/p60_systemd/tmp/work/cobra3530p60-amltd-linux-gnueabi/amltd-console-image/1.0-r0/rootfs//usr/bin/utmpdump to /usr/bin/utmpdump.sysvinit
| update-alternatives: Linking /local/p60_systemd/tmp/work/cobra3530p60-amltd-linux-gnueabi/amltd-console-image/1.0-r0/rootfs//usr/bin/wall to /usr/bin/wall.sysvinit
| ERROR: ld.so: object 'libpseudo.so' from LD_PRELOAD cannot be preloaded: ignored.
|  Adding system startup for /local/p60_systemd/tmp/work/cobra3530p60-amltd-linux-gnueabi/amltd-console-image/1.0-r0/rootfs/etc/init.d/systemd-udevd.
| update-alternatives: Linking /local/p60_systemd/tmp/work/cobra3530p60-amltd-linux-gnueabi/amltd-console-image/1.0-r0/rootfs//usr/bin/scp to /usr/sbin/dropbearmulti
| update-alternatives: Linking /local/p60_systemd/tmp/work/cobra3530p60-amltd-linux-gnueabi/amltd-console-image/1.0-r0/rootfs//usr/bin/ssh to /usr/sbin/dropbearmulti
|  Adding system startup for /local/p60_systemd/tmp/work/cobra3530p60-amltd-linux-gnueabi/amltd-console-image/1.0-r0/rootfs/etc/init.d/dropbear.
|  Adding system startup for /local/p60_systemd/tmp/work/cobra3530p60-amltd-linux-gnueabi/amltd-console-image/1.0-r0/rootfs/etc/init.d/networking.

I wasn't sure what brought in the error so I pasted a number of lines
of context.

Note: building the same image with 'sysvinit' in DISTRO_FEATURES
instead of 'systemd' works fine.

Any ideas what's going on here?

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


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

* Re: systemd support?
  2013-08-15 22:29 systemd support? Gary Thomas
@ 2013-08-16 11:07 ` Gary Thomas
  2013-08-16 12:07   ` Erik Botö
  0 siblings, 1 reply; 3+ messages in thread
From: Gary Thomas @ 2013-08-16 11:07 UTC (permalink / raw)
  To: Yocto Project

On 2013-08-15 16:29, Gary Thomas wrote:
> I tried to take my existing Poky/Yocto system (using my own $DISTRO
> which is a derivative of poky) and enable systemd.  I'm using today's
> master:
>    meta              = "cutting-edge:ff10f72abda52315b892c64f711096772d9a4c1c"
>
> Sadly, building the simplest image fails with this error:
>
> | update-alternatives: Linking /local/p60_systemd/tmp/work/cobra3530p60-amltd-linux-gnueabi/amltd-console-image/1.0-r0/rootfs//sbin/poweroff to /sbin/poweroff.sysvinit
> | update-alternatives: Linking /local/p60_systemd/tmp/work/cobra3530p60-amltd-linux-gnueabi/amltd-console-image/1.0-r0/rootfs//usr/bin/last to /usr/bin/last.sysvinit
> | update-alternatives: Linking /local/p60_systemd/tmp/work/cobra3530p60-amltd-linux-gnueabi/amltd-console-image/1.0-r0/rootfs//usr/bin/mesg to /usr/bin/mesg.sysvinit
> | update-alternatives: Linking /local/p60_systemd/tmp/work/cobra3530p60-amltd-linux-gnueabi/amltd-console-image/1.0-r0/rootfs//usr/bin/utmpdump to /usr/bin/utmpdump.sysvinit
> | update-alternatives: Linking /local/p60_systemd/tmp/work/cobra3530p60-amltd-linux-gnueabi/amltd-console-image/1.0-r0/rootfs//usr/bin/wall to /usr/bin/wall.sysvinit
> | ERROR: ld.so: object 'libpseudo.so' from LD_PRELOAD cannot be preloaded: ignored.
> |  Adding system startup for /local/p60_systemd/tmp/work/cobra3530p60-amltd-linux-gnueabi/amltd-console-image/1.0-r0/rootfs/etc/init.d/systemd-udevd.
> | update-alternatives: Linking /local/p60_systemd/tmp/work/cobra3530p60-amltd-linux-gnueabi/amltd-console-image/1.0-r0/rootfs//usr/bin/scp to /usr/sbin/dropbearmulti
> | update-alternatives: Linking /local/p60_systemd/tmp/work/cobra3530p60-amltd-linux-gnueabi/amltd-console-image/1.0-r0/rootfs//usr/bin/ssh to /usr/sbin/dropbearmulti
> |  Adding system startup for /local/p60_systemd/tmp/work/cobra3530p60-amltd-linux-gnueabi/amltd-console-image/1.0-r0/rootfs/etc/init.d/dropbear.
> |  Adding system startup for /local/p60_systemd/tmp/work/cobra3530p60-amltd-linux-gnueabi/amltd-console-image/1.0-r0/rootfs/etc/init.d/networking.
>
> I wasn't sure what brought in the error so I pasted a number of lines
> of context.
>
> Note: building the same image with 'sysvinit' in DISTRO_FEATURES
> instead of 'systemd' works fine.
>
> Any ideas what's going on here?
>

Interesting - this seems to be a host bug.  I got the above error
when building on Ubuntu 12.04/x86_64.  I do not get the error when
using Fedora 13/i386.  I've not yet tried any other host.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


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

* Re: systemd support?
  2013-08-16 11:07 ` Gary Thomas
@ 2013-08-16 12:07   ` Erik Botö
  0 siblings, 0 replies; 3+ messages in thread
From: Erik Botö @ 2013-08-16 12:07 UTC (permalink / raw)
  To: Gary Thomas; +Cc: Yocto Project

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

Hi,

There's a bug in the bugzilla for this,
https://bugzilla.yoctoproject.org/show_bug.cgi?id=4843 . You can also look
at a mail thread,
http://lists.openembedded.org/pipermail/openembedded-core/2013-June/080328.html
for
some more context.

If you just want to get past it you can do something like the below. It's
not a real fix but a work around.

diff --git a/meta/classes/qemu.bbclass b/meta/classes/qemu.bbclass
index 3d437b0..0f6e882 100644
--- a/meta/classes/qemu.bbclass
+++ b/meta/classes/qemu.bbclass
@@ -30,6 +30,6 @@ def qemu_run_binary(data, rootfs_path, binary):
     libdir = rootfs_path + data.getVar("libdir", False)
     base_libdir = rootfs_path + data.getVar("base_libdir", False)
-    return "PSEUDO_UNLOAD=1 " + qemu_binary + " -L " + rootfs_path\
+    return "PSEUDO_UNLOAD=1 " + qemu_binary + " -U LD_PRELOAD -L " +
rootfs_path\
             + " -E LD_LIBRARY_PATH=" + libdir + ":" + base_libdir + " "\
             + rootfs_path + binary


Cheers,
Erik Botö



On Fri, Aug 16, 2013 at 1:07 PM, Gary Thomas <gary@mlbassoc.com> wrote:

> On 2013-08-15 16:29, Gary Thomas wrote:
>
>> I tried to take my existing Poky/Yocto system (using my own $DISTRO
>> which is a derivative of poky) and enable systemd.  I'm using today's
>> master:
>>    meta              = "cutting-edge:**ff10f72abda52315b892c64f711096**
>> 772d9a4c1c"
>>
>> Sadly, building the simplest image fails with this error:
>>
>> | update-alternatives: Linking /local/p60_systemd/tmp/work/**
>> cobra3530p60-amltd-linux-**gnueabi/amltd-console-image/1.**0-r0/rootfs//sbin/poweroff
>> to /sbin/poweroff.sysvinit
>> | update-alternatives: Linking /local/p60_systemd/tmp/work/**
>> cobra3530p60-amltd-linux-**gnueabi/amltd-console-image/1.**0-r0/rootfs//usr/bin/last
>> to /usr/bin/last.sysvinit
>> | update-alternatives: Linking /local/p60_systemd/tmp/work/**
>> cobra3530p60-amltd-linux-**gnueabi/amltd-console-image/1.**0-r0/rootfs//usr/bin/mesg
>> to /usr/bin/mesg.sysvinit
>> | update-alternatives: Linking /local/p60_systemd/tmp/work/**
>> cobra3530p60-amltd-linux-**gnueabi/amltd-console-image/1.**0-r0/rootfs//usr/bin/utmpdump
>> to /usr/bin/utmpdump.sysvinit
>> | update-alternatives: Linking /local/p60_systemd/tmp/work/**
>> cobra3530p60-amltd-linux-**gnueabi/amltd-console-image/1.**0-r0/rootfs//usr/bin/wall
>> to /usr/bin/wall.sysvinit
>> | ERROR: ld.so: object 'libpseudo.so' from LD_PRELOAD cannot be
>> preloaded: ignored.
>> |  Adding system startup for /local/p60_systemd/tmp/work/**
>> cobra3530p60-amltd-linux-**gnueabi/amltd-console-image/1.**
>> 0-r0/rootfs/etc/init.d/**systemd-udevd.
>> | update-alternatives: Linking /local/p60_systemd/tmp/work/**
>> cobra3530p60-amltd-linux-**gnueabi/amltd-console-image/1.**0-r0/rootfs//usr/bin/scp
>> to /usr/sbin/dropbearmulti
>> | update-alternatives: Linking /local/p60_systemd/tmp/work/**
>> cobra3530p60-amltd-linux-**gnueabi/amltd-console-image/1.**0-r0/rootfs//usr/bin/ssh
>> to /usr/sbin/dropbearmulti
>> |  Adding system startup for /local/p60_systemd/tmp/work/**
>> cobra3530p60-amltd-linux-**gnueabi/amltd-console-image/1.**
>> 0-r0/rootfs/etc/init.d/**dropbear.
>> |  Adding system startup for /local/p60_systemd/tmp/work/**
>> cobra3530p60-amltd-linux-**gnueabi/amltd-console-image/1.**
>> 0-r0/rootfs/etc/init.d/**networking.
>>
>> I wasn't sure what brought in the error so I pasted a number of lines
>> of context.
>>
>> Note: building the same image with 'sysvinit' in DISTRO_FEATURES
>> instead of 'systemd' works fine.
>>
>> Any ideas what's going on here?
>>
>>
> Interesting - this seems to be a host bug.  I got the above error
> when building on Ubuntu 12.04/x86_64.  I do not get the error when
> using Fedora 13/i386.  I've not yet tried any other host.
>
>
> --
> ------------------------------**------------------------------
> Gary Thomas                 |  Consulting for the
> MLB Associates              |    Embedded world
> ------------------------------**------------------------------
> ______________________________**_________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.**org/listinfo/yocto<https://lists.yoctoproject.org/listinfo/yocto>
>



-- 
=============================================
Erik Botö
Senior Software Engineer
Pelagicore AB
Ekelundsgatan 4, 6tr, SE-411 18 Gothenburg, Sweden
Mobile: +46 (0)76 881 72 03
E-Mail: erik.boto@pelagicore.com
=============================================

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

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

end of thread, other threads:[~2013-08-16 12:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-15 22:29 systemd support? Gary Thomas
2013-08-16 11:07 ` Gary Thomas
2013-08-16 12:07   ` Erik Botö

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.