Frogging-Family / nvidia-all

Nvidia driver latest to 396 series AIO installer
733 stars 64 forks source link

Build error on latest kernel #150

Closed Martmists-GH closed 1 year ago

Martmists-GH commented 1 year ago

Compilation terminates with fatal error: generated/autoconf.h: no such file or directory from ././include/Linux/kconfig.h:5:10

Tk-Glitch commented 1 year ago

Make sure you have kernel headers installed for all currently installed kernels.

Martmists-GH commented 1 year ago

I had the kernel headers installed, but it seems while the dkms modules were present (even during reinstall of linux-headers) it would always remove the autoconf header. Removing the dkms modules and rebooting, then reinstalling headers and rebooting, and finally reinstalling dkms modules solved the issue.