Fixed
Created: Mar 27, 2024
Updated: Apr 28, 2024
Resolved Date: Apr 28, 2024
Found In Version: 10.21.20.22
Severity: Standard
Applicable for: Wind River Linux LTS 21
Component/s: Build & Config
When building on LTS21 RCPL 22 on a RHEL7 machine we see this build problem:
16:24:30 ERROR: rootfs-dev-1.0-r0.meta-xcs-dev-1.meta-xcs-rootfs-inc-1.legacy-R85.xcs-update-1.legacy-dev-r92 do_rootfs: Could not invoke dnf. Command '/repo/ngrbuilder/jenkins/E2C_SDC9_2/xcs-build/build/xenon-plf/build/tmp-glibc/work/xenon-wrs-linux-gnueabi/rootfs-dev/1.0-r0.meta-xcs-dev-1.meta-xcs-rootfs-inc-1.legacy-R85.xcs-update-1.legacy-dev-r92/recipe-sysroot-native/usr/bin/dnf -v --rpmverbosity=info -y -c /repo/ngrbuilder/jenkins/E2C_SDC9_2/xcs-build/build/xenon-plf/build/tmp-glibc/work/xenon-wrs-linux-gnueabi/rootfs-dev/1.0-r0.meta-xcs-dev-1.meta-xcs-rootfs-inc-1.legacy-R85.xcs-update-1.legacy-dev-r92/rootfs/etc/dnf/dnf.conf --setopt=reposdir=/repo/ngrbuilder/jenkins/E2C_SDC9_2/xcs-build/build/xenon-plf/build/tmp-glibc/work/xenon-wrs-linux-gnueabi/rootfs-dev/1.0-r0.meta-xcs-dev-1.meta-xcs-rootfs-inc-1.legacy-R85.xcs-update-1.legacy-dev-r92/rootfs/etc/yum.repos.d --installroot=/repo/ngrbuilder/jenkins/E2C_SDC9_2/xcs-build/build/xenon-plf/build/tmp-glibc/work/xenon-wrs-linux-gnueabi/rootfs-dev/1.0-r0.meta-xcs-dev-1.meta-xcs-rootfs-inc-1.legacy-R85.xcs-update-1.legacy-dev-r92/rootfs --setopt=logdir=/repo/ngrbuilder/jenkins/E2C_SDC9_2/xcs-build/build/xenon-plf/build/tmp-glibc/work/xenon-wrs-linux-gnueabi/rootfs-dev/1.0-r0.meta-xcs-dev-1.meta-xcs-rootfs-inc-1.legacy-R85.xcs-update-1.legacy-dev-r92/temp --repofrompath=oe-repo,/repo/ngrbuilder/jenkins/E2C_SDC9_2/xcs-build/build/xenon-plf/build/tmp-glibc/work/xenon-wrs-linux-gnueabi/rootfs-dev/1.0-r0.meta-xcs-dev-1.meta-xcs-rootfs-inc-1.legacy-R85.xcs-update-1.legacy-dev-r92/oe-rootfs-repo makecache --refresh' returned 1:
16:24:30 Traceback (most recent call last):
16:24:30 File "/repo/ngrbuilder/jenkins/E2C_SDC9_2/xcs-build/build/xenon-plf/build/tmp-glibc/work/xenon-wrs-linux-gnueabi/rootfs-dev/1.0-r0.meta-xcs-dev-1.meta-xcs-rootfs-inc-1.legacy-R85.xcs-update-1.legacy-dev-r92/recipe-sysroot-native/usr/bin/dnf.real", line 57, in <module>
16:24:30 from dnf.cli import main
16:24:30 File "/repo/ngrbuilder/jenkins/E2C_SDC9_2/xcs-build/build/xenon-plf/build/tmp-glibc/work/xenon-wrs-linux-gnueabi/rootfs-dev/1.0-r0.meta-xcs-dev-1.meta-xcs-rootfs-inc-1.legacy-R85.xcs-update-1.legacy-dev-r92/recipe-sysroot-native/usr/lib/python3.9/site-packages/dnf/_{_}init{_}_.py", line 30, in <module>
16:24:30 import dnf.base
16:24:30 File "/repo/ngrbuilder/jenkins/E2C_SDC9_2/xcs-build/build/xenon-plf/build/tmp-glibc/work/xenon-wrs-linux-gnueabi/rootfs-dev/1.0-r0.meta-xcs-dev-1.meta-xcs-rootfs-inc-1.legacy-R85.xcs-update-1.legacy-dev-r92/recipe-sysroot-native/usr/lib/python3.9/site-packages/dnf/base.py", line 32, in <module>
16:24:30 from dnf.comps import CompsQuery
16:24:30 File "/repo/ngrbuilder/jenkins/E2C_SDC9_2/xcs-build/build/xenon-plf/build/tmp-glibc/work/xenon-wrs-linux-gnueabi/rootfs-dev/1.0-r0.meta-xcs-dev-1.meta-xcs-rootfs-inc-1.legacy-R85.xcs-update-1.legacy-dev-r92/recipe-sysroot-native/usr/lib/python3.9/site-packages/dnf/comps.py", line 27, in <module>
16:24:30 from dnf.exceptions import CompsError
16:24:30 File "/repo/ngrbuilder/jenkins/E2C_SDC9_2/xcs-build/build/xenon-plf/build/tmp-glibc/work/xenon-wrs-linux-gnueabi/rootfs-dev/1.0-r0.meta-xcs-dev-1.meta-xcs-rootfs-inc-1.legacy-R85.xcs-update-1.legacy-dev-r92/recipe-sysroot-native/usr/lib/python3.9/site-packages/dnf/exceptions.py", line 22, in <module>
16:24:30 import dnf.util
16:24:30 File "/repo/ngrbuilder/jenkins/E2C_SDC9_2/xcs-build/build/xenon-plf/build/tmp-glibc/work/xenon-wrs-linux-gnueabi/rootfs-dev/1.0-r0.meta-xcs-dev-1.meta-xcs-rootfs-inc-1.legacy-R85.xcs-update-1.legacy-dev-r92/recipe-sysroot-native/usr/lib/python3.9/site-packages/dnf/util.py", line 29, in <module>
16:24:30 import dnf.callback
16:24:30 File "/repo/ngrbuilder/jenkins/E2C_SDC9_2/xcs-build/build/xenon-plf/build/tmp-glibc/work/xenon-wrs-linux-gnueabi/rootfs-dev/1.0-r0.meta-xcs-dev-1.meta-xcs-rootfs-inc-1.legacy-R85.xcs-update-1.legacy-dev-r92/recipe-sysroot-native/usr/lib/python3.9/site-packages/dnf/callback.py", line 22, in <module>
16:24:30 import dnf.yum.rpmtrans
16:24:30 File "/repo/ngrbuilder/jenkins/E2C_SDC9_2/xcs-build/build/xenon-plf/build/tmp-glibc/work/xenon-wrs-linux-gnueabi/rootfs-dev/1.0-r0.meta-xcs-dev-1.meta-xcs-rootfs-inc-1.legacy-R85.xcs-update-1.legacy-dev-r92/recipe-sysroot-native/usr/lib/python3.9/site-packages/dnf/yum/rpmtrans.py", line 26, in <module>
16:24:30 import rpm
16:24:30 File "/repo/ngrbuilder/jenkins/E2C_SDC9_2/xcs-build/build/xenon-plf/build/tmp-glibc/work/xenon-wrs-linux-gnueabi/rootfs-dev/1.0-r0.meta-xcs-dev-1.meta-xcs-rootfs-inc-1.legacy-R85.xcs-update-1.legacy-dev-r92/recipe-sysroot-native/usr/lib/python3.9/site-packages/rpm/_{_}init{_}_.py", line 38, in <module>
16:24:30 from rpm._rpm import *
16:24:30 ImportError: libzstd.so.1: cannot open shared object file: No such file or directory
16:24:30
16:24:30 ERROR: Logfile of failure stored in: /repo/ngrbuilder/jenkins/E2C_SDC9_2/xcs-build/build/xenon-plf/build/tmp-glibc/work/xenon-wrs-linux-gnueabi/rootfs-dev/1.0-r0.meta-xcs-dev-1.meta-xcs-rootfs-inc-1.legacy-R85.xcs-update-1.legacy-dev-r92/temp/log.do_rootfs.8549
16:24:30 NOTE: recipe rootfs-dev-1.0-r0.meta-xcs-dev-1.meta-xcs-rootfs-inc-1.legacy-R85.xcs-update-1.legacy-dev-r92: task do_rootfs: Failed
16:24:30 ERROR: Task (/repo/ngrbuilder/jenkins/E2C_SDC9_2/xcs-build/build/xenon-plf/layers/meta-xcs-common/recipes-images/rootfs/rootfs-dev.bb:do_rootfs) failed with exit code '1'
It seems that rpm-native is missing some dependency packages, the following workaround was applied to make it build:
DEPENDS:pn-rpm-native:append = " zstd-native libgcrypt-native popt-native openldap-native"