New comment by Hoshpak on void-packages repository https://github.com/void-linux/void-packages/issues/12959#issuecomment-529855640 Comment: This is most likely caused by the gcc update and not by the kernel version. The nvidia driver checks if the gcc version used to compile the kernel matches with the gcc version used to compile the module and refuses to build otherwise. You can override this by setting `IGNORE_CC_MISMATCH=1` in the environment. I'm closing this issue since 5.2 is now the default kernel and the dkms status is thus no longer relevant.