When setting up an environment to test the impact of some changes on multilib I ran into build errors when using multilib + systemd. The dev manual suggests[1] that an easy way to enable & test multilib is to add the following to local.conf: MACHINE = "qemux86-64" require conf/multilib.conf MULTILIBS = "multilib:lib32" DEFAULTTUNE_virtclass-multilib-lib32 = "x86" IMAGE_INSTALL = "lib32-connman" As I'm developing changes to systemd my local.conf also includes the following entries to enable it as init manager: DISTRO_FEATURES_append = " systemd" VIRTUAL-RUNTIME_init_manager = "systemd" DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit" VIRTUAL-RUNTIME_initscripts = "" When building core-image-sato (with connman + lib32-connman from the IMAGE_INSTALL line pasted from the dev manual) I receive the following error: Multilib check error: duplicate files /srv/build/split-multilib/tmp/work/qemux86_64-poky-linux/core-image-sato/1.0-r0/multilib/lib32/lib/systemd/system/connman.service /srv/build/split-multilib/tmp/work/qemux86_64-poky-linux/core-image-sato/1.0-r0/ rootfs/lib/systemd/system/connman.service is not the same 1. https://www.yoctoproject.org/docs/1.8/dev-manual/dev-manual.html#using-multilib
Yes, the example is a terrible idea as you can't just swap a lib32 binary for a lib64 binary as the systemd unit files which need to be identical are not as they have references to $(libdir) in. We should change the documentation to install something that you'd actually install into a multilib image such as lib32-glib-2.0.
Hi, I have updated the YP Development Manual to use lib32-glib-2.0 rather than lib32-connman as suggested by Ross. You can review the section at http://www.yoctoproject.org/docs/1.9/dev-manual/dev-manual.html#using-multilib. Let me know if there are any issues or changes needed beyond this. Thanks
The lib32-glib-2.0 is good and I've verified that works, but the surrounding isn't right. IMAGE_INSTALL = "lib32-glib-2.0" will result in an image that *just* contains that library. The example should be IMAGE_INSTALL_append = " lib32-glib-2.0" (note the leading space in the value is important)
Ross, I fixed as directed. See http://www.yoctoproject.org/docs/1.9/dev-manual/dev-manual.html#using-multilib and let me know if I can set this to RESOLVED. Thanks, Scott
Setting to 1.0 days to get this off the red-flag list. The change is just waiting for approval from Ross.
Looks good!
Setting to RESOLVED/FIXED and turning Doc flag off.
Verified on http://www.yoctoproject.org/docs/2.0/dev-manual/dev-manual.html#using-multilib http://www.yoctoproject.org/docs/1.9/dev-manual/dev-manual.html#using-multilib