Slackware 14.2x86 stable Cannot build nvidia kernel module
by SaabGripen from LinuxQuestions.org on (#4Q1BT)
Hello!
My GPU is GeForce G102M, proprietary driver version 340.107, system - Slackware 14.2 stable, 32 bit.
Now I'm using kernel 4.4.157, and there's no problem with nvidia driver. Yesterday I installed a new kernel version - 4.4.190 including sources and headers, but the driver installer refuses to build module. In the interface it says:
"ERROR: Kernel configuration is invalid. include/generated/autoconf.h or include/config/auto.conf are missing. Run 'make oldconfig && make prepare' on kernel src to fix it."
At first I looked for files
/usr/src/linux-4.4.190/include/generated/autoconf.h and the second one, and found out there were both of them in the right place.
make oldconfig && make prepare didn't help, neither did README on nvidia download page.
In the /var/log/nvidia-installer.log I found some errors:
-Werror-implicit-function-declaration;
-Werror=implicit-int;
-Werror=strict-prototypes etc.
Does it require any patch or what should I do?
Sorry, I couldn't attach my logfile for its size exceeded the forum's limit.


My GPU is GeForce G102M, proprietary driver version 340.107, system - Slackware 14.2 stable, 32 bit.
Now I'm using kernel 4.4.157, and there's no problem with nvidia driver. Yesterday I installed a new kernel version - 4.4.190 including sources and headers, but the driver installer refuses to build module. In the interface it says:
"ERROR: Kernel configuration is invalid. include/generated/autoconf.h or include/config/auto.conf are missing. Run 'make oldconfig && make prepare' on kernel src to fix it."
At first I looked for files
/usr/src/linux-4.4.190/include/generated/autoconf.h and the second one, and found out there were both of them in the right place.
make oldconfig && make prepare didn't help, neither did README on nvidia download page.
In the /var/log/nvidia-installer.log I found some errors:
-Werror-implicit-function-declaration;
-Werror=implicit-int;
-Werror=strict-prototypes etc.
Does it require any patch or what should I do?
Sorry, I couldn't attach my logfile for its size exceeded the forum's limit.