Found the akmods log and ran “akmods --force” as it suggested. Also tried “akmods --force --rebuild”.
2024/09/11 17:37:51 akmods: Checking kmods exist for 6.10.8-200.fc40.x86_64
2024/09/11 17:37:51 akmods: Building and installing nvidia-kmod
2024/09/11 17:37:51 akmods: Building RPM using the command '/usr/sbin/akmodsbuild --kernels 6.10.8-200.fc40.x86_64 /usr/src/akmods/nvidia-kmod.latest'
2024/09/11 17:38:11 akmods: Building rpms failed; see /var/cache/akmods/nvidia/550.67-1-for-6.10.8-200.fc40.x86_64.failed.log for details
2024/09/11 17:38:11 akmods: Hint: Some kmods were ignored or failed to build or install.
2024/09/11 17:38:11 akmods: You can try to rebuild and install them by by calling
2024/09/11 17:38:11 akmods: '/usr/sbin/akmods --force' as root.
The top part of /var/cache/akmods/nvidia/550.67-1-for-6.10.8-200.fc40.x86_64.failed.log is:
2024/09/11 17:37:51 akmods: Building RPM using the command '/usr/sbin/akmodsbuild --kernels 6.10.8-200.fc40.x86_64 /usr/src/akmods/nvidia-kmod.latest'
/tmp/akmodsbuild.PlEYnPA9/BUILD/nvidia-kmod-550.67/_kmod_build_6.10.8-200.fc40.x86_64/nvidia/nv-ibmnpu.c:428:5: warning: no previous prototype for ‘nv_get_ibmnpu_chip_id’ [-Wmissing-prototypes]
428 | int nv_get_ibmnpu_chip_id(nv_state_t *nv)
| ^~~~~~~~~~~~~~~~~~~~~
/tmp/akmodsbuild.PlEYnPA9/BUILD/nvidia-kmod-550.67/_kmod_build_6.10.8-200.fc40.x86_64/nvidia/nv-ibmnpu.c:437:6: warning: no previous prototype for ‘nv_ibmnpu_cache_flush_numa_region’ [-Wmissing-prototypes]
437 | void nv_ibmnpu_cache_flush_numa_region(nv_state_t *nv)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/akmodsbuild.PlEYnPA9/BUILD/nvidia-kmod-550.67/_kmod_build_6.10.8-200.fc40.x86_64/nvidia/nv-report-err.c:25:
/tmp/akmodsbuild.PlEYnPA9/BUILD/nvidia-kmod-550.67/_kmod_build_6.10.8-200.fc40.x86_64/common/inc/nv-linux.h: In function ‘nv_vmalloc’:
/tmp/akmodsbuild.PlEYnPA9/BUILD/nvidia-kmod-550.67/_kmod_build_6.10.8-200.fc40.x86_64/common/inc/nv-linux.h:477:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
477 | NV_MEMDBG_ADD(ptr, size);
| ^
/tmp/akmodsbuild.PlEYnPA9/BUILD/nvidia-kmod-550.67/_kmod_build_6.10.8-200.fc40.x86_64/common/inc/nv-linux.h: In function ‘nv_ioremap’:
/tmp/akmodsbuild.PlEYnPA9/BUILD/nvidia-kmod-550.67/_kmod_build_6.10.8-200.fc40.x86_64/common/inc/nv-linux.h:495:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
495 | NV_MEMDBG_ADD(ptr, size);
| ^
/tmp/akmodsbuild.PlEYnPA9/BUILD/nvidia-kmod-550.67/_kmod_build_6.10.8-200.fc40.x86_64/common/inc/nv-linux.h: In function ‘nv_ioremap_cache’:
/tmp/akmodsbuild.PlEYnPA9/BUILD/nvidia-kmod-550.67/_kmod_build_6.10.8-200.fc40.x86_64/common/inc/nv-linux.h:531:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
531 | NV_MEMDBG_ADD(ptr, size);
| ^
/tmp/akmodsbuild.PlEYnPA9/BUILD/nvidia-kmod-550.67/_kmod_build_6.10.8-200.fc40.x86_64/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’:
/tmp/akmodsbuild.PlEYnPA9/BUILD/nvidia-kmod-550.67/_kmod_build_6.10.8-200.fc40.x86_64/common/inc/nv-linux.h:548:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
548 | NV_MEMDBG_ADD(ptr, size);
| ^
/tmp/akmodsbuild.PlEYnPA9/BUILD/nvidia-kmod-550.67/_kmod_build_6.10.8-200.fc40.x86_64/common/inc/nv-linux.h: In function ‘nv_vmap’:
/tmp/akmodsbuild.PlEYnPA9/BUILD/nvidia-kmod-550.67/_kmod_build_6.10.8-200.fc40.x86_64/common/inc/nv-linux.h:674:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
674 | NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
| ^
make[2]: *** [/usr/src/kernels/6.10.8-200.fc40.x86_64/Makefile:1946: /tmp/akmodsbuild.PlEYnPA9/BUILD/nvidia-kmod-550.67/_kmod_build_6.10.8-200.fc40.x86_64] Error 2
make[1]: *** [Makefile:252: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/kernels/6.10.8-200.fc40.x86_64'
make: *** [Makefile:85: modules] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.nO2j1i (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.nO2j1i (%build)
And /var/tmp/rpm-tmp.nO2j1i:
#!/bin/sh
RPM_SOURCE_DIR="/tmp/akmodsbuild.PlEYnPA9/SOURCES"
RPM_BUILD_DIR="/tmp/akmodsbuild.PlEYnPA9//BUILD"
RPM_OPT_FLAGS="-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"
RPM_LD_FLAGS="-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes "
RPM_ARCH="x86_64"
RPM_OS="linux"
RPM_BUILD_NCPUS="12"
RPM_SPECPARTS_DIR="/tmp/akmodsbuild.PlEYnPA9//BUILD/nvidia-kmod-550.67-SPECPARTS"
export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS RPM_BUILD_NCPUS RPM_SPECPARTS_DIR RPM_LD_FLAGS
RPM_DOC_DIR="/usr/share/doc"
export RPM_DOC_DIR
RPM_PACKAGE_NAME="nvidia-kmod"
RPM_PACKAGE_VERSION="550.67"
RPM_PACKAGE_RELEASE="1.fc40"
export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE
LANG=C.UTF-8
export LANG
unset CDPATH DISPLAY ||:
unset DEBUGINFOD_URLS ||:
unset RPM_CONFIG_DIR ||:
RPM_BUILD_ROOT="/tmp/akmodsbuild.PlEYnPA9/BUILDROOT/nvidia-kmod-550.67-1.fc40.x86_64"
export RPM_BUILD_ROOT
PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:/usr/lib64/pkgconfig:/usr/share/pkgconfig"
export PKG_CONFIG_PATH
CONFIG_SITE=${CONFIG_SITE:-NONE}
export CONFIG_SITE
set -x
umask 022
cd "/tmp/akmodsbuild.PlEYnPA9//BUILD"
CFLAGS="${CFLAGS:--O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer }" ; export CFLAGS ;
CXXFLAGS="${CXXFLAGS:--O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer }" ; export CXXFLAGS ;
FFLAGS="${FFLAGS:--O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules }" ; export FFLAGS ;
FCFLAGS="${FCFLAGS:--O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules }" ; export FCFLAGS ;
VALAFLAGS="${VALAFLAGS:--g}" ; export VALAFLAGS ;
RUSTFLAGS="${RUSTFLAGS:--Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn}" ; export RUSTFLAGS ;
LDFLAGS="${LDFLAGS:--Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes }" ; export LDFLAGS ;
LT_SYS_LIBRARY_PATH="${LT_SYS_LIBRARY_PATH:-/usr/lib64:}" ; export LT_SYS_LIBRARY_PATH ;
CC="${CC:-gcc}" ; export CC ;
CXX="${CXX:-g++}" ; export CXX
cd 'nvidia-kmod-550.67'
for kernel_version in 6.10.8-200.fc40.x86_64___/usr/src/kernels/6.10.8-200.fc40.x86_64; do
pushd _kmod_build_${kernel_version%___*}/
make V=1 -j12 \
KERNEL_UNAME="${kernel_version%___*}" SYSSRC="${kernel_version##*___}" \
IGNORE_CC_MISMATCH=1 IGNORE_XEN_PRESENCE=1 IGNORE_PREEMPT_RT_PRESENCE=1 \
module
popd
done
RPM_EC=$?
for pid in $(jobs -p); do kill -9 ${pid} || continue; done
exit ${RPM_EC}