Building nvidia driver with dkms fails on debian jessie/sid 3.14-rc8 (git)

Bjørn Mork bjorn at mork.no
Thu Mar 27 16:12:37 EDT 2014


Tyrell Keene <tyrell.wkeene at gmail.com> writes:

> make KBUILD_VERBOSE=1 -C /lib/modules/3.14.0-rc8-00011-gf217c44/build M=/var/lib/dkms/nvidia-current/331.49/build modules
> make[1]: Entering directory `/home/savior/code/eudyptula-challenge/linux'

This looks like /lib/modules/3.14.0-rc8-00011-gf217c44/build is a
symlink to /home/savior/code/eudyptula-challenge/linux


> test -e include/generated/autoconf.h -a -e include/config/auto.conf || (		\
> 	echo >&2;							\
> 	echo >&2 "  ERROR: Kernel configuration is invalid.";		\
> 	echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
> 	echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";	\
> 	echo >&2 ;							\
> 	/bin/false)
>
>   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.
>
> mkdir -p /var/lib/dkms/nvidia-current/331.49/build/.tmp_versions ; rm -f /var/lib/dkms/nvidia-current/331.49/build/.tmp_versions/*
>
>   WARNING: Symbol version dump /home/savior/code/eudyptula-challenge/linux/Module.symvers
>            is missing; modules will have no dependencies and modversions.


And /home/savior/code/eudyptula-challenge/linux does not contain the
expected kernel headers from your installed kernel. Since
3.14.0-rc8-00011-gf217c44 doesn't look like any Debian kernel version,
I'm going to assume you broke this yourself...

If you want to have dkms working, then you need to install the kernel
headers matching the kernel you are building out-of-tree modules for.

One very easy way to make this work, at the cost of installing the
kernel via a package, is building debian packages from the mainline
kernel by simply doing (possibly with the appropriate -jX option):

 make deb-pkg

Then you just install the resulting linux-image-*.deb and
linux-headers-*.deb and you are all set to run dkms.


Bjørn



More information about the Kernelnewbies mailing list