Skip to content

Error when trying to build the nvidia bootc containers.  #728

Open
@raravind007

Description

@raravind007

I got the following kernel errors when I tried to build nvidia bootc container on my Fedora 40 Workstation.
make nvidia-bootc

STEP 8/10: RUN if test -z "${KERNEL_VERSION}" ; then       echo "The KERNEL_VERSION argument is mandatory. Exiting" ;       exit 1 ;     fi     && echo "Kernel version: ${KERNEL_VERSION}"     && mv /etc/selinux /etc/selinux.tmp     && dnf -y install dnf-plugin-config-manager     && cp -a /etc/dnf/dnf.conf{,.tmp} && mv /etc/dnf/dnf.conf{.tmp,}     && dnf config-manager --best --nodocs --setopt=install_weak_deps=False --save     && dnf -y update --exclude kernel*     && dnf -y install         kernel-${KERNEL_VERSION}         kernel-devel-${KERNEL_VERSION}         kernel-modules-${KERNEL_VERSION}         kernel-modules-extra-${KERNEL_VERSION}     && if [ "${ENABLE_RT}" ] && [ $(arch) == "x86_64" ]; then         dnf -y --enablerepo=rt install             kernel-rt-${KERNEL_VERSION}             kernel-rt-devel-${KERNEL_VERSION}             kernel-rt-modules-${KERNEL_VERSION}             kernel-rt-modules-extra-${KERNEL_VERSION};     fi     && export INSTALLED_KERNEL=$(rpm -q --qf "%{VERSION}-%{RELEASE}.%{ARCH}" kernel-core-${KERNEL_VERSION})     && export GCC_VERSION=$(cat /lib/modules/${INSTALLED_KERNEL}/config | grep -Eo "gcc \(GCC\) ([0-9\.]+)" | grep -Eo "([0-9\.]+)")     && dnf -y install         binutils         diffutils         elfutils-libelf-devel         jq         kabi-dw kernel-abi-stablelists         keyutils         kmod         gcc-${GCC_VERSION}         git         make         mokutil         openssl         pinentry         rpm-build         xz     && dnf clean all     && mv /etc/selinux.tmp /etc/selinux     && useradd -u 1001 -m -s /bin/bash builder
The KERNEL_VERSION argument is mandatory. Exiting
Error: building at STEP "RUN if test -z "${KERNEL_VERSION}" ; then       echo "The KERNEL_VERSION argument is mandatory. Exiting" ;       exit 1 ;     fi     && echo "Kernel version: ${KERNEL_VERSION}"     && mv /etc/selinux /etc/selinux.tmp     && dnf -y install dnf-plugin-config-manager     && cp -a /etc/dnf/dnf.conf{,.tmp} && mv /etc/dnf/dnf.conf{.tmp,}     && dnf config-manager --best --nodocs --setopt=install_weak_deps=False --save     && dnf -y update --exclude kernel*     && dnf -y install         kernel-${KERNEL_VERSION}         kernel-devel-${KERNEL_VERSION}         kernel-modules-${KERNEL_VERSION}         kernel-modules-extra-${KERNEL_VERSION}     && if [ "${ENABLE_RT}" ] && [ $(arch) == "x86_64" ]; then         dnf -y --enablerepo=rt install             kernel-rt-${KERNEL_VERSION}             kernel-rt-devel-${KERNEL_VERSION}             kernel-rt-modules-${KERNEL_VERSION}             kernel-rt-modules-extra-${KERNEL_VERSION};     fi     && export INSTALLED_KERNEL=$(rpm -q --qf "%{VERSION}-%{RELEASE}.%{ARCH}" kernel-core-${KERNEL_VERSION})     && export GCC_VERSION=$(cat /lib/modules/${INSTALLED_KERNEL}/config | grep -Eo "gcc \(GCC\) ([0-9\.]+)" | grep -Eo "([0-9\.]+)")     && dnf -y install         binutils         diffutils         elfutils-libelf-devel         jq         kabi-dw kernel-abi-stablelists         keyutils         kmod         gcc-${GCC_VERSION}         git         make         mokutil         openssl         pinentry         rpm-build         xz     && dnf clean all     && mv /etc/selinux.tmp /etc/selinux     && useradd -u 1001 -m -s /bin/bash builder": while running runtime: exit status 1
make[1]: *** [../common/Makefile.common:112: driver-toolkit] Error 1
make[1]: Leaving directory '/home/test-ai/ai-lab-recipes/training/nvidia-bootc'
make: *** [Makefile:73: nvidia-bootc] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions