kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: bjorn@mork.no (Bjørn Mork)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Building nvidia driver with dkms fails on debian jessie/sid 3.14-rc8 (git)
Date: Thu, 27 Mar 2014 21:12:37 +0100	[thread overview]
Message-ID: <87fvm38kp6.fsf@nemi.mork.no> (raw)
In-Reply-To: <20140327142932.GA2566@phoenix> (Tyrell Keene's message of "Thu, 27 Mar 2014 08:29:32 -0600")

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

      parent reply	other threads:[~2014-03-27 20:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-27 14:29 Building nvidia driver with dkms fails on debian jessie/sid 3.14-rc8 (git) Tyrell Keene
2014-03-27 16:43 ` Valdis.Kletnieks at vt.edu
2014-03-27 20:12 ` Bjørn Mork [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fvm38kp6.fsf@nemi.mork.no \
    --to=bjorn@mork.no \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).