Building nvidia driver with dkms fails on debian jessie/sid 3.14-rc8 (git)
Hello everyone, Not sure if I should send this here since this deals with a proprietary driver but i'll give it a try. I'm trying to build the nvidia driver with: $ sudo dkms build -m nvidia-current -v 331.49 -k 3.14.0-rc8-00011-gf217c44 it fails with output: Building module: cleaning build area.... env CCACHE_DISABLE=1 make -C .SYSSRC=/lib/modules/3.14.0-rc8-00011-gf217c44/build....(bad exit status:2) Error! Bad return status for module build on kernel: 3.14.0-rc8-00011-gf217c44 (x86_64) Consult /var/lib/dkms/nvidia-current/331.49/build/make.log for more information. make.log (attached) tells me the kernel config is invalid and to make oldconfig && make prepare I do so but I still get the same error. Any ideas? Thanks, Tyrell
On Thu, 27 Mar 2014 08:29:32 -0600, Tyrell Keene said:
make.log (attached) tells me the kernel config is invalid and to make oldconf ig && make prepare I do so but I still get the same error. Any ideas?
What happens if you ignore dkms, and cd to wherever you extracted the NVidia source tree, 'cd kernel', and just do 'make install' there?
Tyrell Keene <tyrell.wkeene@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
participants (3)
-
Bjørn Mork -
Tyrell Keene -
Valdis.Kletnieks@vt.edu