New comment by Duncaen on void-packages repository https://github.com/void-linux/void-packages/issues/14377#issuecomment-529942368 Comment: This should be resolved by https://github.com/void-linux/void-packages/commit/9861370eef3b325ef1b716b31cc91ac58fee1c3e. `xbps-reconfigure -f nvidia-dkms` triggers the xbps dkms hook `/usr/libexec/xbps-triggers/dkms`, which already exported `IGNORE_CC_MISMATCH=1`, while the `/etc/kernel.d` hook which triggers dkms rebuilds on kernel updates/installs didn't export it. So `xbps-install -Su` would rebuild the module using the kernel hook and fails, while `xbps-reconfigure -f nvidia-dkms` uses the other trigger which already makes the dkms script ignore the mismatch.