imx8mp enable multilib

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

imx8mp enable multilib

3,305 Views
shao-gaoyan
Contributor II

local.conf file content:

MACHINE ??= 'imx8mp-lpddr4-evk'
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-system-native = " sdl"
CONF_VERSION = "1"

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

# Switch to Debian packaging and include package-management in the image
# PACKAGE_CLASSES = "package_deb"
# EXTRA_IMAGE_FEATURES += "package-management"

# 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-bash"
IMAGE_INSTALL_append = "lib32-glibc lib32-libgcc lib32-libstdc++"

 

ERROR message:

bitbake -k imx-image-full

NOTE: Resolving any missing task queue dependencies

ERROR: Nothing PROVIDES 'virtual/arm-pokymllib32-linux-gnueabi-binutils'. Close matches: virtual/lib32-arm-pokymllib32-linux-gnueabi-binutils

virtual/lib32-arm-pokymllib32-linux-gnueabi-gcc

virtual/lib32-arm-pokymllib32-linux-gnueabi-go-runtime

ERROR: Nothing PROVIDES 'virtual/arm-pokymllib32-linux-gnueabi-gcc'. Close matches:

virtual/lib32-arm-pokymllib32-linux-gnueabi-g++

virtual/lib32-arm-pokymllib32-linux-gnueabi-gcc

virtual/lib32-arm-pokymllib32-linux-gnueabi-go-runtime

NOTE: Executing Tasks

ERROR: gstreamer1.0-plugins-base-1.18.5.imx-r0 do_compile: Execution of '/home/feadmin/work/imx-yocto-bsp/build-xwayland/tmp/work/cortexa53-crypto-mx8mp-poky-linux/gstreamer1.0-plugins-base/1.18.5.imx-r0/temp/run.do_compile.873673' failed with exit code 1

ERROR: Logfile of failure stored in: /home/feadmin/work/imx-yocto-bsp/build-xwayland/tmp/work/cortexa53-crypto-mx8mp-poky-linux/gstreamer1.0-plugins-base/1.18.5.imx-r0/temp/log.do_compile.873673

ERROR: Task (/home/feadmin/work/imx-yocto-bsp/sources/meta-imx/meta-bsp/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.18.5.imx.bb:do_compile) failed with exit code '1'

ERROR: imx-gpu-g2d-6.4.3.p2.4-r0 do_package: QA Issue: imx-gpu-g2d: Files/directories were installed but not shipped in any package: /usr/lib/libg2d-viv.so.1.6.0 /usr/lib/libg2d.so /usr/lib/libg2d.so.1 Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install. imx-gpu-g2d: 3 installed and not shipped files. [installed-vs-shipped]

ERROR: imx-gpu-g2d-6.4.3.p2.4-r0 do_package: Fatal QA errors found, failing task.

ERROR: Logfile of failure stored in: /home/feadmin/work/imx-yocto-bsp/build-xwayland/tmp/work/cortexa53-crypto-mx8mp-poky-linux/imx-gpu-g2d/6.4.3.p2.4-r0/temp/log.do_package.873741

ERROR: Task (/home/feadmin/work/imx-yocto-bsp/sources/meta-imx/meta-bsp/recipes-graphics/imx-g2d/imx-gpu-g2d_6.4.3.p2.4.bb:do_package) failed with exit code '1'

ERROR: nfs-utils-2.5.3-r0 do_configure: oe_runmake failed ERROR: nfs-utils-2.5.3-r0 do_configure: Execution of '/home/feadmin/work/imx-yocto-bsp/build-xwayland/tmp/work/cortexa53-crypto-poky-linux/nfs-utils/2.5.3-r0/temp/run.autotools_preconfigure.873790' failed with exit code 1

ERROR: Logfile of failure stored in: /home/feadmin/work/imx-yocto-bsp/build-xwayland/tmp/work/cortexa53-crypto-poky-linux/nfs-utils/2.5.3-r0/temp/log.do_configure.873790

Tags (1)
0 Kudos
Reply
9 Replies

3,046 Views
KenKurematsu
Contributor I

ERROR: imx-gpu-g2d-6.4.3.p2.4-r0 do_package: QA Issue: imx-gpu-g2d: Files/directories were installed but not shipped in any package:
/usr/lib/libg2d-viv.so.1.6.0

The imx-gpu-g2d of imx-linux-hardknott (imx-5.10.72-2.2.2.xml) doesn't seem to backport the following fixes:

https://source.codeaurora.org/external/imx/meta-imx/commit/meta-bsp/recipes-graphics/imx-g2d/imx-gpu...

I think that the effect will cause a link error in the multilib environment.
Backporting this fix fixed the imx-gpu-g2d issue.

 

Similarly, if you build imx-image-multimedia in the multilib environment with imx-linux-hardknott (imx-5.10.72-2.2.2.xml),
It seems that isp-imx_4.2.2.16.0.bb has a build error due to a library path issue.

| make[2]: *** No rule to make target '/home/user/work/yocto-tools/imx/imx-yocto-bsp/build-xwayland/tmp/work/cortexa53-crypto-mx8mp-poky-linux/isp-imx/4.2.2.16.0-r0/recipe-sysroot/usr/lib/libtinyxml2.so', needed by 'generated/release/bin/isp_media_server'. Stop.

I'm not sure if this fix is ​​correct, but I've avoided it by adding the following patch to isp-imx_4.2.2.16.0 with bbappend.

diff -ur isp-imx-4.2.2.16.0/mediacontrol/daemon/CMakeLists.txt isp-imx-4.2.2.16.0.mod/mediacontrol/daemon/CMakeLists.txt
--- isp-imx-4.2.2.16.0/mediacontrol/daemon/CMakeLists.txt       2021-11-25 16:40:29.000000000 +0900
+++ isp-imx-4.2.2.16.0.mod/mediacontrol/daemon/CMakeLists.txt   2022-07-28 12:51:04.428904994 +0900
@@ -80,7 +80,7 @@
         ${LIB_ROOT}/${CMAKE_BUILD_TYPE}/lib/libcameric_drv.so
         ${LIB_ROOT}/${CMAKE_BUILD_TYPE}/lib/libhal.so
         ${LIB_ROOT}/${CMAKE_BUILD_TYPE}/lib/libbase64.so
-        ${SDKTARGETSYSROOT}/usr/lib/libtinyxml2.so
+       ${SDKTARGETSYSROOT}/usr/${CMAKE_INSTALL_LIBDIR}/libtinyxml2.so
         ${LIB_ROOT}/${CMAKE_BUILD_TYPE}/lib/libbufferpool.so
         ${LIB_ROOT}/${CMAKE_BUILD_TYPE}/lib/libcameric_reg_drv.so
         ${LIB_ROOT}/${CMAKE_BUILD_TYPE}/lib/libisi.s

 

0 Kudos
Reply

3,033 Views
shao-gaoyan
Contributor II

thank you

My current practice is similar to yours, which can solve the problem

0 Kudos
Reply

3,288 Views
joanxie
NXP TechSupport
NXP TechSupport

try to install the packages before you building the bsp

$ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \
build-essential chrpath socat cpio python python3 python3-pip python3-pexpect \
xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev \
pylint3 xterm rsync curl

then in  local.conf you can un-comment the lines regarding packaging to look like:

#Switch to Debian packaging and include package-management in the image
PACKAGE_CLASSES = "package_deb"
EXTRA_IMAGE_FEATURES += "package-management"

try to use clean environment before you building the bsp, install all of packages

 

0 Kudos
Reply

3,227 Views
shao-gaoyan
Contributor II

Hello
As you said, I try again.
problem still occurs.

 

ERROR: imx-gpu-g2d-6.4.3.p2.4-r0 do_package: QA Issue: imx-gpu-g2d: Files/directories were installed but not shipped in any package:
/usr/lib/libg2d-viv.so.1.6.0
/usr/lib/libg2d.so
/usr/lib/libg2d.so.1
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
imx-gpu-g2d: 3 installed and not shipped files. [installed-vs-shipped]
ERROR: imx-gpu-g2d-6.4.3.p2.4-r0 do_package: Fatal QA errors found, failing task.

ERROR: imx-gpu-apitrace-10.0.0-r0 do_configure: Execution of '/home/feadmin/work/imx-yocto-bsp/build-xwayland/tmp/work/cortexa53-crypto-mx8mp-poky-linux/imx-gpu-apitrace/10.0.0-r0/temp/run.do_configure.2076126' failed with exit code 1

ERROR: gstreamer1.0-plugins-base-1.18.5.imx-r0 do_compile: Execution of '/home/feadmin/work/imx-yocto-bsp/build-xwayland/tmp/work/cortexa53-crypto-mx8mp-poky-linux/gstreamer1.0-plugins-base/1.18.5.imx-r0/temp/run.do_compile.2076003' failed with exit code 1

 

i modified imx-gpu-g2d_6.4.3.p2.4.bb file

do_install () {
 install -d ${D}${libdir}
 install -d ${D}${includedir}
 cp ${S}/g2d/usr/lib/*.so* ${D}${libdir}
 cp -Pr ${S}/g2d/usr/include/* ${D}${includedir}

# cp -r -d --no-preserve=ownership ${S}/g2d/* ${D}

}
FILES_${PN} += "lib/libg2d* /opt"
FILES_${PN}-dev = "${includedir}"
 
usr |——include  after modifyusr |——include  
        |——lib|——libg2d-viv.so.1.6.0          |——lib64|——libg2d-viv.so.1.6.0 
 |——libg2d.so.1   |——libg2d.so.1 
 |——libg2d.so   |——libg2d.so 

 

After modification I solved the above problem

Is this correct?

 

 

ERROR: Task (/home/feadmin/work/imx-yocto-bsp/sources/meta-imx/meta-bsp/recipes-bsp/isp-imx/isp-imx_4.2.2.16.0.bb:do_compile) failed with exit code '1'

read the do_compile log 

I found that the following three dynamic libraries have an error in their lookup paths

|—libtinyxml2.so
|—libtinyxml2.so.8
|—libtinyxml2.so.8.0.0

 

lookup path :/tmp/work/cortexa53-crypto-mx8mp-poky-linux/isp-imx/4.2.2.16.0-r0/recipe-sysroot/usr/lib

The actual path of the file:/tmp/work/cortexa53-crypto-mx8mp-poky-linux/isp-imx/4.2.2.16.0-r0/recipe-sysroot/usr/lib64

What can I modify the BB file to fix this?

 

0 Kudos
Reply

3,279 Views
shao-gaoyan
Contributor II

try to use clean environment before you building the bsp, install all of packages

 

it means -c cleanall?

0 Kudos
Reply

3,247 Views
joanxie
NXP TechSupport
NXP TechSupport

I mean you delete the folder and install and build again

 

0 Kudos
Reply

3,280 Views
shao-gaoyan
Contributor II
  1. $ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \
    build-essential chrpath socat cpio python python3 python3-pip python3-pexpect \
    xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev \
    pylint3 xterm rsync curl
  2. #Switch to Debian packaging and include package-management in the image
    PACKAGE_CLASSES = "package_deb"
    EXTRA_IMAGE_FEATURES += "package-management"
  3. bitbake -c clean imx-image-full
  4. bitbake imx-image-full

NOTE: Resolving any missing task queue dependencies
ERROR: Nothing PROVIDES 'virtual/arm-pokymllib32-linux-gnueabi-binutils'. Close matches:
virtual/lib32-arm-pokymllib32-linux-gnueabi-binutils
virtual/lib32-arm-pokymllib32-linux-gnueabi-gcc
virtual/lib32-arm-pokymllib32-linux-gnueabi-go-runtime
ERROR: Nothing PROVIDES 'virtual/arm-pokymllib32-linux-gnueabi-gcc'. Close matches:
virtual/lib32-arm-pokymllib32-linux-gnueabi-g++
virtual/lib32-arm-pokymllib32-linux-gnueabi-gcc
virtual/lib32-arm-pokymllib32-linux-gnueabi-go-runtime

This problem still exists

Since it is still compiling, other issues are unknown

0 Kudos
Reply

3,297 Views
shao-gaoyan
Contributor II

some recipe in imx-image-full  not support lib32?

0 Kudos
Reply

3,157 Views
joanxie
NXP TechSupport
NXP TechSupport

try to add this in the local.conf

local.conf file.

#PACKAGE_CLASSES = "package_deb"
#EXTRA_IMAGE_FEATURES += "package-management"

 

 

0 Kudos
Reply