New comment by wael444 on void-packages repository https://github.com/void-linux/void-packages/issues/37123#issuecomment-1179659085 Comment: it seems i am getting somewhere: ``` ~ $ doas dkms install -m nvidia-open -v 515.49.06 Kernel preparation unnecessary for this kernel. Skipping... Building module: cleaning build area... 'make' -j6 NV_EXCLUDE_BUILD_MODULES='' KERNEL_UNAME=5.18.9_1 modules...(bad exit status: 2) Error! Bad return status for module build on kernel: 5.18.9_1 (x86_64) Consult /var/lib/dkms/nvidia-open/515.49.06/build/make.log for more information. ``` i am building manually for logging. ```make make[1]: Entering directory '/usr/src/kernel-headers-5.18.9_1' warning: the compiler differs from the one used to build the kernel The kernel was built by: gcc (GCC) 10.2.1 20201203 You are using: cc (GCC) 10.2.1 20201203 make[2]: *** No rule to make target '/var/lib/dkms/nvidia-open/515.49.06/build/nvidia/nv-kernel.o_binary', needed by '/var/lib/dkms/nvidia-open/515.49.06/build/nvidia/nv-kernel.o'. Stop. make[2]: *** Waiting for unfinished jobs.... make[1]: *** [Makefile:1838: /var/lib/dkms/nvidia-open/515.49.06/build] Error 2 make[1]: Leaving directory '/usr/src/kernel-headers-5.18.9_1' make: *** [Makefile:82: modules] Error 2 ```