Closed issue by patoski on void-packages repository https://github.com/void-linux/void-packages/issues/13128 Description: ### System * xuname: Void 4.19.59_1 x86_64 GenuineIntel * package: nvidia340-340.107_3 ### Expected behavior When updating system with xbps-install -Syu the nvidia DKMS should build. ### Actual behavior While trying to build the nvidia module comes back with "... FAILED!" System will not reboot into X Windows unless using an old kernel. ### Steps to reproduce the behavior Try to build nvidia340 module with linux4.19-4.19.59_1 and linux4.19-headers-4.19.59_1 ### Notes to fix Log in as root an run: `export IGNORE_CC_MISMATCH=1` then run: `xbps-install -Sf linux4.19-*` The nvidia dkms kernel module will compile successfully. When trying to build the nvidia module manually in /var/lib/nvidia `make` complains that the current compiler version is different than that used to build the kernel or something like that. The error message advises to set IGNORE_CC_MISMATCH to 1 This issue has been happening for me for a few months or so.