systemd support?
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?
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------
Quoted 19 lines · Gary Thomas
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.
Quoted 8 lines
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_FEATURESinstead 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.
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------
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.
meta/classes/qemu.bbclass +1 -1
@@ -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ö
Quoted 67 lines · Gary Thomas
Quoted 41 lines · Gary Thomas
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' fromLD_PRELOADcannot 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.Quoted 9 lines
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_FEATURESinstead 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
[email protected]
https://lists.yoctoproject.**org/listinfo/yocto<https://lists.yoctoproject.org/listinfo/yocto>
Signature · 8 lines
============================================= Erik Botö Senior Software Engineer Pelagicore AB Ekelundsgatan 4, 6tr, SE-411 18 Gothenburg, Sweden Mobile: +46 (0)76 881 72 03 E-Mail: [email protected] =============================================