Error building legacy Nvidia module

imrazor

Member
Nov 3, 2015
40
0
6
I am attempting to install a legacy Nvidia driver (version 340.102 for a Quadro FX 3800) on kernel version 4.13.4-1-pve and running into a brick wall. Installing the legacy driver per the Debian wiki produced no errors, so I ran the nvidia-xconfig utility and rebooted. However the driver did not load on reboot, leaving me at the command line.

I then attempted to run:
Code:
# dkms build nvidia-legacy-340xx/340.102
That failed and directed me to the make.log file. Examining make.log revealed the following output:
Code:
ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel source to fix it.
So I checked the kernel source (or maybe it's just headers) in /usr/src/linux-headers-4.13.4-1-pve and the autoconf.h file was where it was supposed to be. I then ran
Code:
# make oldconfig && make prepare
That generated this output:
Code:
 make[1]: *** No rule to make target 'arch/x86/entry/syscalls/syscall_32.tbl', needed by 'arch/x86/entry/syscalls/../../include/generated/asm/syscalls.h'. Stop.
arch/x86/Makefile:245: recipe for target 'archheaders' failed
make: *** [archheaders] Error 2
Not entirely sure what to make of that, except that it's referencing x86. Architecture i386 is enabled on this machine, but 'dpkg --remove-architecture i386' will not remove it.

Any suggestions?