[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#763629: linux-headers-3.16-0.bpo.2-common: Building official NVidia driver on 3.16 (amd64) kernel fails to build the DKMS module



Package: linux-headers-3.16-0.bpo.2-common
Version: 3.16.3-2~bpo70+1
Severity: normal

Hello,

While attempting to install NVidia drivers v340.46 (x64) on the currentli running 3.16 Debian kernel, the auto installer fails during the build of the DKMS module.

It seems the Makefiles chain inside the linux-headers leads to the error.

Here are the relevant parts of the make.log file from the NVidia module (sorry for French locale, but file references and line numbers are common language! ;o) ):

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)

-> Is it expected? normal?


make -f /usr/src/linux-headers-3.16-0.bpo.2-common/scripts/Makefile.build obj=./..
/usr/src/linux-headers-3.16-0.bpo.2-common/scripts/Makefile.build:44: /usr/src/linux-headers-3.16-0.bpo.2-common/./../Makefile: Aucun fichier ou dossier de ce type
make[4]: *** Pas de règle pour fabriquer la cible « /usr/src/linux-headers-3.16-0.bpo.2-common/./../Makefile ». Arrêt.

-> It looks like something went wrong with the path here


- The installer has been collected from http://fr.download.nvidia.com/XFree86/Linux-x86_64/340.46/NVIDIA-Linux-x86_64-340.46.run
- It has been run with 'sudo', no option
- The DKMS module has been requested to be built
- The 32 bits compatibility libraries have not been requested to be built

Having read https://devtalk.nvidia.com/default/topic/769055/dkms-fails-to-compile-nvidia-modules-340-32-343-13-during-kernel-3-16-1-compile-process-on-debia/, I attempted to add the following to /etc/dkms/framework.conf:
unset MAKEFLAGS
unset ARCH
unset KBUILD_EXTMOD
unset obj

It did not succeed.

Log files are attached


-- System Information:
Debian Release: 7.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16-0.bpo.2-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

-- no debconf information
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Wed Oct  1 15:30:25 2014
installer version: 340.46

PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

nvidia-installer command line:
    ./nvidia-installer

Using: nvidia-installer ncurses user interface
-> License accepted.
-> Installing NVIDIA driver version 340.46.
-> Would you like to register the kernel module sources with DKMS? This will allow DKMS to automatically build a new module, if you install a different kernel later. (Answer: Yes)
-> Installing both new and classic TLS OpenGL libraries.
-> Installing classic TLS 32bit OpenGL libraries.
-> Install NVIDIA's 32-bit compatibility libraries? (Answer: No)
-> Skipping installation of the libvdpau wrapper library.
-> Searching for conflicting X files:
-> done.
-> Searching for conflicting OpenGL files:
-> done.
-> Searching for conflicting compat32 files:
-> done.
-> Installing 'NVIDIA Accelerated Graphics Driver for Linux-x86_64' (340.46):
   executing: '/sbin/ldconfig'...
-> done.
-> Driver file installation is complete.
-> Installing DKMS kernel module:
ERROR: Failed to run `/usr/sbin/dkms build -m nvidia -v 340.46 -k 3.16-0.bpo.2-amd64`: 
Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=3.16-0.bpo.2-amd64 module KERNEL_UNAME=3.16-0.bpo.2-amd64; make -C uvm module KERNEL_UNAME=3.16-0.bpo.2-amd64 KBUILD_EXTMOD=/var/lib/dkms/nvidia/340.46/build/uvm....(bad exit status: 2)
Error! Bad return status for module build on kernel: 3.16-0.bpo.2-amd64 (x86_64)
Consult /var/lib/dkms/nvidia/340.46/build/make.log for more information.
-> error.
ERROR: Failed to install the kernel module through DKMS. No kernel module was installed; please try installing again without DKMS, or check the DKMS logs for more information.
ERROR: Installation has failed.  Please see the file '/var/log/nvidia-installer.log' for details.  You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.
DKMS make.log for nvidia-340.46 for kernel 3.16-0.bpo.2-amd64 (x86_64)
mercredi 1 octobre 2014, 15:30:34 (UTC+0200)

gcc-version-check failed:

The compiler used to compile the kernel (gcc
4.6) does not exactly match the current compiler
(gcc 4.7).  The Linux 2.6 kernel module loader
rejects kernel modules built with a version of gcc
that does not exactly match that of the compiler
used to build the running kernel.

If you know what you are doing and want to override
the gcc version check, you can do so by setting the
IGNORE_CC_MISMATCH environment variable to "1".

In any other case, set the CC environment variable
to the name of the compiler that was used to compile
the kernel.

*** Failed CC version check. Bailing out! ***

make: *** [build-sanity-checks] Erreur 1
make: entrant dans le répertoire « /var/lib/dkms/nvidia/340.46/build/uvm »
cd ./..; make module SYSSRC=/lib/modules/3.16-0.bpo.2-amd64/source SYSOUT=/lib/modules/3.16-0.bpo.2-amd64/build KBUILD_EXTMOD=./..
make[1]: entrant dans le répertoire « /var/lib/dkms/nvidia/340.46/build »
NVIDIA: calling KBUILD...
make[2]: entrant dans le répertoire « /usr/src/linux-headers-3.16-0.bpo.2-common »
make[1]: Entering directory `/lib/modules/3.16-0.bpo.2-amd64/build'
make -C /lib/modules/3.16-0.bpo.2-amd64/build \
	KBUILD_SRC=/usr/src/linux-headers-3.16-0.bpo.2-common \
	KBUILD_EXTMOD="./.." -f /usr/src/linux-headers-3.16-0.bpo.2-common/Makefile \
	modules
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)
mkdir -p ./../.tmp_versions ; rm -f ./../.tmp_versions/*
make -f /usr/src/linux-headers-3.16-0.bpo.2-common/scripts/Makefile.build obj=./..
/usr/src/linux-headers-3.16-0.bpo.2-common/scripts/Makefile.build:44: /usr/src/linux-headers-3.16-0.bpo.2-common/./../Makefile: Aucun fichier ou dossier de ce type
make[4]: *** Pas de règle pour fabriquer la cible « /usr/src/linux-headers-3.16-0.bpo.2-common/./../Makefile ». Arrêt.
make[3]: *** [_module_./..] Erreur 2
make[2]: *** [sub-make] Erreur 2
make[2]: quittant le répertoire « /usr/src/linux-headers-3.16-0.bpo.2-common »
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [nvidia.ko] Erreur 1
make[1]: quittant le répertoire « /var/lib/dkms/nvidia/340.46/build »
make: *** [../Module.symvers] Erreur 2
make: quittant le répertoire « /var/lib/dkms/nvidia/340.46/build/uvm »

Reply to: