Multilib enablement iMX8 yocto

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Multilib enablement iMX8 yocto

6,346 Views
davidvescovi
Contributor V

Building with yocto following instructions in imx-yocto-L4.14.98_2.0.0_ga "Yocto project users guide"

I modified my local.conf and added:

require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE_virtclass-multilib-lib32 = "armv7athf-neon"

but when I add the line:

IMAGE_INSTALL_append = "lib32-glibc lib32-libgcc lib32-libstdc++"

and do a core-image-minimal I always get errors like:

Error: Transaction check error:
  file /usr/include/asm/kvm_para.h from install of lib32-linux-libc-headers-dev-4.14-r0.armv7ahf_neon conflicts with file from package linux-libc-headers-dev-4.14-r0.aarch64
Error Summary
-------------

ERROR: core-image-minimal-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /datadrive/imx-yocto-bsp/bld8mq_xwayland/tmp/work/imx8mqevk-poky-linux/core-image-minimal/1.0-r0/temp/log.do_rootfs.15787
ERROR: Task (/datadrive/imx-yocto-bsp/sources/poky/meta/recipes-core/images/core-image-minimal.bb:do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3896 tasks of which 3895 didn't need to be rerun and 1 failed.
any idea on how to fix?
Labels (1)
0 Kudos
Reply
5 Replies

5,577 Views
davidvescovi
Contributor V

If you got it working I would love to see your local.conf. Can you post it?

I repo synced the imx-yocto-bsp built standard core-image-minimal no problem. Then added the mods for multi and tried to rebuild core-image-minimal and get all kinds of errors. like:

ERROR: core-image-minimal-1.0-r0 do_rootfs: Could not invoke dnf. Command '/datadrive/imx-yocto-bsp/bld8mq_xwaylandmulti/tmp/work/imx8mqevk-poky-linux/core-image-minimal/1.0-r0/recipe-sysroot-native/usr/bin/dnf -y -c /datadrive/imx-yocto-bsp/bld8mq_xwaylandmulti/tmp/work/imx8mqevk-poky-linux/core-image-minimal/1.0-r0/rootfs/etc/dnf/dnf.conf --setopt=reposdir=/datadrive/imx-yocto-bsp/bld8mq_xwaylandmulti/tmp/work/imx8mqevk-poky-linux/core-image-minimal/1.0-r0/rootfs/etc/yum.repos.d --repofrompath=oe-repo,/datadrive/imx-yocto-bsp/bld8mq_xwaylandmulti/tmp/work/imx8mqevk-poky-linux/core-image-minimal/1.0-r0/oe-rootfs-repo --installroot=/datadrive/imx-yocto-bsp/bld8mq_xwaylandmulti/tmp/work/imx8mqevk-poky-linux/core-image-minimal/1.0-r0/rootfs --setopt=logdir=/datadrive/imx-yocto-bsp/bld8mq_xwaylandmulti/tmp/work/imx8mqevk-poky-linux/core-image-minimal/1.0-r0/temp --skip-broken --nogpgcheck install lib32-libstdc++-dev rpm-dev glibc-mtrace-dev ca-certificates-dev libtsan-dev libcomps-dev packagegroup-core-buildessential-dev run-postinsts-dev openssh-dev pinentry-dev python3-iniparse-dev pkgconfig-dev automake-dev dnf-dev python3-six-dev diffstat-dev libunistring-dev lib32-base-files-dev systemd-compat-units-dev os-release-dev gnupg-dev busybox-dev tcl-dev strace-dev libmpfr-dev nss-dev libsolv-dev curl-dev netbase-dev lib32-libc6-dev gdb-dev elfutils-dev libarchive-dev liblsan-dev intltool-dev libgpg-error-dev packagegroup-core-ssh-openssh-dev libgcrypt-dev ccache-dev lib32-bash-dev binutils-dev file-dev gpgme-dev libksba-dev libnpth-dev lib32-ncurses-dev librepo-dev gcc-dev nspr-dev libxml-parser-perl-dev packagegroup-core-tools-debug-dev optee-test-imx-dev patch-dev libmpc-dev packagegroup-fsl-optee-imx-dev packagegroup-core-boot-dev packagegroup-core-standalone-sdk-target-dev less-dev libpopt-dev libdnf-dev kbd-dev libassuan-dev optee-client-imx-dev quilt-dev libgnutls-dev packagegroup-core-sdk-dev lib32-libgcc-s-dev findutils-dev nettle-dev optee-os-imx-dev libtool-dev autoconf-dev' returned 1:
Added oe-repo repo from /datadrive/imx-yocto-bsp/bld8mq_xwaylandmulti/tmp/work/imx8mqevk-poky-linux/core-image-minimal/1.0-r0/oe-rootfs-repo
Last metadata expiration check: 0:01:49 ago on Fri 12 Jul 2019 12:39:29 PM UTC.
Dependencies resolved.
================================================================================
 Package                   Arch          Version                  Repository
                                                                           Size
================================================================================
Installing:
 autoconf-dev              aarch64       2.69-r11                 oe-repo 6.6 k
 automake-dev              aarch64       1.15.1-r0                oe-repo 7.2 k
 binutils-dev              aarch64       2.30-r0                  oe-repo  94 k
 busybox-dev               aarch64       1.27.2-r0                oe-repo 6.4 k
 ca-certificates-dev       noarch        20170717-r0              oe-repo 6.0 k
 ccache-dev                aarch64       3.3.5-r0                 oe-repo 6.0 k
 curl-dev                  aarch64       7.61.0-r0                oe-repo  49 k
 diffstat-dev              aarch64       1.61-r0                  oe-repo 6.0 k
 dnf-dev                   aarch64       2.7.5-r0                 oe-repo 6.3 k
 elfutils-dev              aarch64       0.170-r0                 oe-repo  49 k
 file-dev                  aarch64       5.32-r0                  oe-repo 8.7 k
 findutils-dev             aarch64       4.6.0-r0                 oe-repo 6.1 k
 gcc-dev                   aarch64       7.3.0-r0                 oe-repo  75 k
 gdb-dev                   aarch64       8.0.1-r0                 oe-repo 6.0 k
 glibc-mtrace-dev          aarch64       2.27-r0                  oe-repo 5.8 k
 gnupg-dev                 aarch64       2.2.4-r0                 oe-repo 6.0 k
 gpgme-dev                 aarch64       1.10.0-r0                oe-repo  51 k
 intltool-dev              aarch64       0.51.0-r0                oe-repo 5.8 k

My local.conf is:

MACHINE ??= 'imx8mqevk'
DISTRO ?= 'fsl-imx-xwayland'
PACKAGE_CLASSES ?= "package_rpm"
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS ??= "\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    STOPTASKS,/tmp,100M,100K \
    ABORT,${TMPDIR},100M,1K \
    ABORT,${DL_DIR},100M,1K \
    ABORT,${SSTATE_DIR},100M,1K \
    ABORT,/tmp,10M,1K"
PACKAGECONFIG_append_pn-qemu-native = " sdl"
PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
#CONF_VERSION = "1"
DL_DIR ?= "${BSPDIR}/downloads/"
ACCEPT_FSL_EULA = "1"
EXTRA_IMAGE_FEATURES = " dev-pkgs debug-tweaks tools-debug tools-sdk ssh-server-openssh package-management"
#IMAGE_INSTALL_append = " openssh-sftp-server rsync zip"
require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE_virtclass-multilib-lib32 = "armv7athf-neon"
# Add the multilib packages to the image
IMAGE_INSTALL_append += "lib32-bash lib32-glibc lib32-libgcc lib32-libstdc++"
INHERIT += "buildhistory"
INHERIT += "distrodata"
0 Kudos
Reply

5,577 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello David Vescovi,


Are you still experiencing issues?


Here are the contents of my conf/local.conf file:


MACHINE ??= 'imx8mqevk'
DISTRO ?= 'fsl-imx-wayland'
PACKAGE_CLASSES ?= "package_rpm"
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS ??= "\
STOPTASKS,${TMPDIR},1G,100K \
STOPTASKS,${DL_DIR},1G,100K \
STOPTASKS,${SSTATE_DIR},1G,100K \
STOPTASKS,/tmp,100M,100K \
ABORT,${TMPDIR},100M,1K \
ABORT,${DL_DIR},100M,1K \
ABORT,${SSTATE_DIR},100M,1K \
ABORT,/tmp,10M,1K"
PACKAGECONFIG_append_pn-qemu-native = " sdl"
PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
CONF_VERSION = "1"

# Define multilib target
require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE_virtclass-multilib-lib32 = "armv7athf-neon"
# Add the multilib packages to the image
IMAGE_INSTALL_append = " lib32-glibc lib32-libgcc lib32-libstdc++"

DL_DIR ?= "${BSPDIR}/downloads/"
ACCEPT_FSL_EULA = "1"

Regards,

0 Kudos
Reply

5,577 Views
jerry2
Contributor II

Hello,

Was there a resolution to this issue. I am having same issue. Tried your local.conf gusarambula‌ and still same error with libsolv.

ERROR: nativesdk-libsolv-0.6.33-r0 do_configure: Function failed: do_configure (log file is located at /home/jerry/...

0 Kudos
Reply

5,577 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Jerry Naidoo,

I fixed a missing space on the IMAGE_INSTALL_append (since we are appending a string it’s good to start with a space).

I tested building a core-image-minimal image using this configuration for the L4.14.98_2.0.0 BSP. Would you please provide more details on which BSP you are using?

 

Also, have you added additional packages? If you could also provide the error log it would also help.

Regards,

0 Kudos
Reply

5,577 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello David Vescovi,

Are you still experiencing these issues?

I couldn’t reproduce the problem. The additions to the conf/local.conf are correct, but I also added

IMAGE_INSTALL_append += "lib32-bash "

Perhaps this package is missing and thus the problem handling the 32 bit libraries. Would you please give it a try?

Regards,

0 Kudos
Reply