On 9/8/20 3:31 AM, [email protected] wrote: > Hello > I trying to create an image but when I add a library (opendnp3 > <https://github.com/dnp3/opendnp3>) to image I got below error. > > DEBUG: Executing python function extend_recipe_sysroot > NOTE: Direct dependencies are > ['virtual:native:/home/majid/myir-imx-manifest/sources/poky/meta/recipes-core/update-rc.d/update-rc.d_0.8.bb:do_populate_sysroot', > '/home/majid/myir-imx-manifest/sources/poky/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb:do_populate_sysroot', > '/home/majid/myir-imx-manifest/sources/poky/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb:do_populate_sysroot', > 'virtual:native:/home/majid/myir-imx-manifest/sources/poky/meta/recipes-extended/pbzip2/pbzip2_1.1.13.bb:do_populate_sysroot', > 'virtual:native:/home/majid/myir-imx-manifest/sources/poky/meta/recipes-devtools/dnf/dnf_4.2.2.bb:do_populate_sysroot', > '/home/majid/myir-imx-manifest/sources/meta-myir/meta-bsp/recipes-security/optee-imx/optee-os_3.7.0.imx.bb:do_populate_sysroot', > '/home/majid/myir-imx-manifest/sources/meta-myir/meta-bsp/recipes-bsp/u-boot/u-boot-imx_2019.04.bb:do_populate_sysroot', > '/home/majid/myir-imx-manifest/sources/poky/meta/recipes-core/glibc/cross-localedef-native_2.30.bb:do_populate_sysroot', > 'virtual:native:/home/majid/myir-imx-manifest/sources/poky/meta/recipes-devtools/opkg/opkg_0.4.1.bb:do_populate_sysroot', > 'virtual:native:/home/majid/myir-imx-manifest/sources/poky/meta/recipes-devtools/createrepo-c/createrepo-c_0.15.0.bb:do_populate_sysroot', > 'virtual:native:/home/majid/myir-imx-manifest/sources/poky/meta/recipes-support/bmap-tools/bmap-tools_3.5.bb:do_populate_sysroot', > 'virtual:native:/home/majid/myir-imx-manifest/sources/poky/meta/recipes-extended/pigz/pigz_2.4.bb:do_populate_sysroot', > 'virtual:native:/home/majid/myir-imx-manifest/sources/poky/meta/recipes-devtools/prelink/prelink_git.bb:do_populate_sysroot', > 'virtual:native:/home/majid/myir-imx-manifest/sources/poky/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.45.3.bb:do_populate_sysroot', > '/home/majid/myir-imx-manifest/sources/poky/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb:do_populate_sysroot', > 'virtual:native:/home/majid/myir-imx-manifest/sources/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', > 'virtual:native:/home/majid/myir-imx-manifest/sources/poky/meta/recipes-devtools/opkg-utils/opkg-utils_0.4.1.bb:do_populate_sysroot', > 'virtual:native:/home/majid/myir-imx-manifest/sources/poky/meta/recipes-devtools/makedevs/makedevs_1.0.1.bb:do_populate_sysroot', > '/home/majid/myir-imx-manifest/sources/poky/meta/recipes-devtools/mklibs/mklibs-native_0.1.44.bb:do_populate_sysroot', > 'virtual:native:/home/majid/myir-imx-manifest/sources/poky/meta/recipes-devtools/rpm/rpm_4.14.2.1.bb:do_populate_sysroot'] > NOTE: Installed into sysroot: [] > NOTE: Skipping as already exists in sysroot: ['update-rc.d-native', > 'qemuwrapper-cross', 'ldconfig-native', 'pbzip2-native', 'dnf-native', > 'optee-os', 'u-boot-imx', 'cross-localedef-native', 'opkg-native', > 'createrepo-c-native', 'bmap-tools-native', 'pigz-native', > 'prelink-native', 'e2fsprogs-native', 'depmodwrapper-cross', > 'pseudo-native', 'opkg-utils-native', 'makedevs-native', > 'mklibs-native', 'rpm-native', 'systemd-systemctl-native', > 'shadow-native', 'quilt-native', 'qemu-native', 'kmod-native', > 'bzip2-native', 'python3-native', 'ninja-native', > 'gettext-minimal-native', 'librepo-native', 'libcomps-native', > 'cmake-native', 'libdnf-native', 'python3-iniparse-native', > 'gcc-runtime', 'glibc', 'libtool-native', 'autoconf-native', > 'gnu-config-native', 'automake-native', 'libsolv-native', > 'pkgconfig-native', 'libarchive-native', 'curl-native', 'expat-native', > 'file-native', 'sqlite3-native', 'zlib-native', 'xz-native', > 'glib-2.0-native', 'libxml2-native', 'libmodulemd-native', > 'openssl-native', 'python3-setuptools-native', 'python3-six-native', > 'binutils-native', 'elfutils-native', 'texinfo-dummy-native', > 'util-linux-native', 'attr-native', 'perl-native', 'dbus-native', > 'nss-native', 'popt-native', 'db-native', 'debianutils-native', > 'gtk-doc-native', 'gdbm-native', 'libtirpc-native', 'libffi-native', > 'libnsl2-native', 'readline-native', 're2c-native', 'gpgme-native', > 'libcheck-native', 'ncurses-native', 'gobject-introspection-native', > 'swig-native', 'json-c-native', 'libgcc', 'linux-libc-headers', > 'm4-native', 'lzo-native', 'libpcre-native', 'gettext-native', > 'meson-native', 'libyaml-native', 'unzip-native', 'flex-native', > 'libcap-ng-native', 'nspr-native', 'libgpg-error-native', > 'libassuan-native'] > DEBUG: Python function extend_recipe_sysroot finished > DEBUG: Executing python function do_rootfs > NOTE: Initializing intercept dir for > /home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/rootfs > DEBUG: Collected intercepts: > > /home/majid/myir-imx-manifest/sources/poky/scripts/postinst-intercepts/delay_to_first_boot > > /home/majid/myir-imx-manifest/sources/poky/scripts/postinst-intercepts/postinst_intercept > > /home/majid/myir-imx-manifest/sources/poky/scripts/postinst-intercepts/update_font_cache > > /home/majid/myir-imx-manifest/sources/poky/scripts/postinst-intercepts/update_gio_module_cache > > /home/majid/myir-imx-manifest/sources/poky/scripts/postinst-intercepts/update_gtk_icon_cache > > /home/majid/myir-imx-manifest/sources/poky/scripts/postinst-intercepts/update_gtk_immodules_cache > > /home/majid/myir-imx-manifest/sources/poky/scripts/postinst-intercepts/update_pixbuf_cache > > /home/majid/myir-imx-manifest/sources/poky/scripts/postinst-intercepts/update_udev_hwdb > > NOTE: ###### Generate rootfs ####### > NOTE: Executing > '/home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/recipe-sysroot-native/usr/bin/createrepo_c > --update -q > /home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/oe-rootfs-repo' > ... > NOTE: Running > /home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/recipe-sysroot-native/usr/bin/dnf > -v --rpmverbosity=info -y -c > /home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/rootfs/etc/dnf/dnf.conf > --setopt=reposdir=/home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/rootfs/etc/yum.repos.d > --installroot=/home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/rootfs > --setopt=logdir=/home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/temp > --repofrompath=oe-repo,/home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/oe-rootfs-repo > makecache --refresh > DEBUG: DNF version: 4.2.2 > cachedir: > /home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/rootfs/var/cache/dnf > Added oe-repo repo from > /home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/oe-rootfs-repo > Making cache files for all metadata files. > oe-repo: has expired and will be refreshed. > repo: downloading from remote: oe-repo > oe-repo 127 MB/s | 1.3 MB > 00:00 > not found other for: > not found modules for: > not found deltainfo for: > not found updateinfo for: > oe-repo: using metadata from Tue 08 Sep 2020 09:48:47 AM UTC. > Last metadata expiration check: 0:00:01 ago on Tue 08 Sep 2020 09:48:47 > AM UTC. > No module defaults found > Metadata cache created. > > NOTE: Running > /home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/recipe-sysroot-native/usr/bin/dnf > -v --rpmverbosity=info -y -c > /home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/rootfs/etc/dnf/dnf.conf > --setopt=reposdir=/home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/rootfs/etc/yum.repos.d > --installroot=/home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/rootfs > --setopt=logdir=/home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/temp > --repofrompath=oe-repo,/home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/oe-rootfs-repo > --nogpgcheck install locale-base-en-us locale-base-en-gb psplash > start-service myir-rc-local staticip-network packagegroup-core-boot > packagegroup-base-extended ppp-quectel u-boot-imx-fw-utils opendnp3 > packagegroup-core-nfs-server alsa-utils packagegroup-core-ssh-dropbear > packagegroup-fsl-optee-imx run-postinsts > ERROR: Could not invoke dnf. Command > '/home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/recipe-sysroot-native/usr/bin/dnf > -v --rpmverbosity=info -y -c > /home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/rootfs/etc/dnf/dnf.conf > --setopt=reposdir=/home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/rootfs/etc/yum.repos.d > --installroot=/home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/rootfs > --setopt=logdir=/home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/temp > --repofrompath=oe-repo,/home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/oe-rootfs-repo > --nogpgcheck install locale-base-en-us locale-base-en-gb psplash > start-service myir-rc-local staticip-network packagegroup-core-boot > packagegroup-base-extended ppp-quectel u-boot-imx-fw-utils opendnp3 > packagegroup-core-nfs-server alsa-utils packagegroup-core-ssh-dropbear > packagegroup-fsl-optee-imx run-postinsts' returned 1: > DNF version: 4.2.2 > cachedir: > /home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/rootfs/var/cache/dnf > Added oe-repo repo from > /home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/oe-rootfs-repo > repo: using cache for: oe-repo > not found other for: > not found modules for: > not found deltainfo for: > not found updateinfo for: > oe-repo: using metadata from Tue 08 Sep 2020 09:48:47 AM UTC. > Last metadata expiration check: 0:00:01 ago on Tue 08 Sep 2020 09:48:47 > AM UTC. > No module defaults found > No match for argument: opendnp3 > Error: Unable to find a match > > DEBUG: Python function do_rootfs finished > > What is the problem?
Image builder uses debian naming for shared libs, and libraries are usually pulled in via shlibs resolver as a dependency so it would be good for you to ensure that this library has a use in image which means some application depends on it during runtime. > > Regards > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#50531): https://lists.yoctoproject.org/g/yocto/message/50531 Mute This Topic: https://lists.yoctoproject.org/mt/76705788/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
