New comment by Hoshpak on void-packages repository https://github.com/void-linux/void-packages/issues/15882#issuecomment-547309967 Comment: Please check what `/usr/bin/cc` is linked to. Usually issues compiling the kernel module stem from the symlink pointing to clang while the kernel is compiled with gcc. If this is the case, you can use `xbps-alternatives` to correct that and then recompile the kernel module.