Description of problem: The installation of gcc in the Driver Toolkit uses extract-vmlinux to determine the gcc version used to compile the installed kernel. This script does not work on aarch64 and s390x due to the kernel formats used. As a result, the gcc versions installed were different depending on architecture, which OSBS does not allow.
Verified on driver-tool kit image from https://openshift-release-artifacts.apps.ci.l2s4.p1.openshiftapps.com/4.9.0-0.nightly-2021-08-01-132055/release.txt # podman run -it fb1d35c13c56 /bin/bash [root@c1ed7039753d kmods-via-containers]# pwd /tmp/kmods-via-containers [root@c1ed7039753d kmods-via-containers]# [root@c1ed7039753d kmods-via-containers]# uname -a Linux c1ed7039753d 4.18.0-193.el8.x86_64 #1 SMP Fri Mar 27 14:35:58 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux [root@c1ed7039753d kmods-via-containers]# [root@c1ed7039753d kmods-via-containers]# ls -ltr total 40 -rw-r--r--. 1 root root 844 Jul 30 00:43 kmods-via-containers@.service -rw-r--r--. 1 root root 268 Jul 30 00:43 kmods-via-containers.conf -rwxr-xr-x. 1 root root 4716 Jul 30 00:43 kmods-via-containers -rw-r--r--. 1 root root 12599 Jul 30 00:43 README.md -rw-r--r--. 1 root root 679 Jul 30 00:43 Makefile -rw-r--r--. 1 root root 1067 Jul 30 00:43 LICENSE [root@c1ed7039753d kmods-via-containers]# [root@c1ed7039753d kmods-via-containers]# export INSTALLED_KERNEL=$(rpm -q --qf "%{VERSION}-%{RELEASE}.%{ARCH}" kernel-core) && GCC_VERSION=$(cat /lib/modules/${INSTALLED_KERNEL}/config | grep -Eo "Compiler: gcc \(GCC\) ([0-9\.]+)" | grep -Eo "([0-9\.]+)") [root@c1ed7039753d kmods-via-containers]# [root@c1ed7039753d kmods-via-containers]# dnf list installed | grep gcc gcc.x86_64 8.4.1-1.el8 @rhel-8-appstream-rpms-x86_64 libgcc.x86_64 8.4.1-1.el8 @System [root@c1ed7039753d kmods-via-containers]# [root@c1ed7039753d kmods-via-containers]# echo $GCC_VERSION 8.4.1
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: OpenShift Container Platform 4.9.0 bug fix and security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2021:3759