Same behavior with vanilla kernel 6.10:
Building module:
Cleaning build area…
‘make’ -j4 NV_EXCLUDE_BUILD_MODULES=‘’ KERNEL_UNAME=6.10.0 IGNORE_CC_MISMATCH=‘’ modules…(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.10.0 (x86_64)
Consult /var/lib/dkms/nvidia/470.256.02/build/make.log for more information.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
dkms: autoinstall for kernel: 6.10.0 failed!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
this does not happen with vanilla 6.9.9.