Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 03-05-10, 09:06 AM   #1
ant
A GeForced Ant
 
ant's Avatar
 
Join Date: Sep 2002
Location: An Ant Farm
Posts: 348
Question What am I missing to compile the latest stable NVIDIA driver in Debian?

Hello.

I can't seem to compile the latest stable NVIDIA driver after upgrading to Kernel 2.6.32 in my old Debian box with a GeForce 8800 GT video card (512 MB of RAM). What am I missing? It used to work in earlier Kernels like 2.6.30. I noticed Debian changed stuff around with its 2.6.32. Here are the logs:

# cat /var/log/nvidia-installer.log
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Fri Mar 5 06:59:53 2010
installer version: 1.0.7

option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
precompiled interfaces : true
no ncurses color : false
query latest version : false
OpenGL header files : true
no questions : false
silent : false
no recursion : false
no backup : false
kernel module only : false
sanity : false
add this kernel : false
no runlevel check : false
no network : false
no ABI note : false
no RPMs : false
no kernel module : false
force SELinux : default
no X server check : false
no cc version check : false
force tls : (not specified)
X install prefix : (not specified)
X library install path : (not specified)
X module install path : (not specified)
OpenGL install prefix : (not specified)
OpenGL install libdir : (not specified)
utility install prefix : (not specified)
utility install libdir : (not specified)
doc install prefix : (not specified)
kernel name : (not specified)
kernel include path : (not specified)
kernel source path : (not specified)
kernel output path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp mirror : ftp://download.nvidia.com
RPM file list : (not specified)

Using: nvidia-installer ncurses user interface
-> License accepted.
-> Installing NVIDIA driver version 195.36.08.
-> There appears to already be a driver installed on your system (version: 195.
36.08). As part of installing this driver (version: 195.36.08), the existin
g driver will be uninstalled. Are you sure you want to continue? ('no' will
abort installation) (Answer: Yes)
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> The CC version check failed:

The compiler used to compile the kernel (gcc 4.3) does not exactly match the
current compiler (gcc 4.4). The Linux 2.6 kernel module loader rejects kern
el modules built with a version of gcc that does not exactly match that of t
he compiler used to build the running kernel.

If you know what you are doing and want to ignore the gcc version check, sel
ect "No" to continue installation. Otherwise, select "Yes" to abort install
ation, set the CC environment variable to the name of the compiler used to c
ompile your kernel, and restart installation. Abort now? (Answer: No)
ERROR: Unable to find the kernel source tree for the currently running kernel.
Please make sure you have installed the kernel source files for your
kernel and that they are properly configured; on Red Hat Linux systems,
for example, be sure you have the 'kernel-source' or 'kernel-devel' RPM
installed. If you know the correct kernel source files are installed,
you may specify the kernel source path with the '--kernel-source-path'
command line option.
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.

--

$ dpkg -l | grep ^ii |grep 2.6.32
ii firmware-linux-free 2.6.32-5 Binary firmware for various drivers in the Linux kernel
ii linux-headers-2.6.32-trunk-common 2.6.32-5 Common header files for Linux 2.6.32-trunk
ii linux-image-2.6-686 2.6.32+23 Linux 2.6 image on modern PCs
ii linux-image-2.6.32-trunk-686 2.6.32-5 Linux 2.6.32 for modern PCs
ii linux-image-686 2.6.32+23 Linux image on modern PCs
ii linux-kbuild-2.6.32 2.6.32-1 Kbuild infrastructure for Linux 2.6.32
ii linux-libc-dev 2.6.32-5 Linux support headers for userspace development
ii linux-patch-debian-2.6.32 2.6.32-5 Debian patches to version 2.6.32 of the Linux kernel
ii linux-source-2.6.32 2.6.32-5 Linux kernel source for version 2.6.32 with Debian patc
ii linux-support-2.6.32-trunk 2.6.32-5 Support files for Linux 2.6.32
$ dpkg -l | grep ^ii |grep kernel
ii cpufrequtils 006-2 utilities to deal with the cpufreq Linux kernel feature
ii firmware-linux 0.22 Binary firmware for various drivers in the Linux kernel
ii firmware-linux-free 2.6.32-5 Binary firmware for various drivers in the Linux kernel
ii firmware-linux-nonfree 0.22 Binary firmware for various drivers in the Linux kernel
ii libapm1 3.2.2-14 Library for interacting with APM driver in kernel
ii libcpufreq0 006-2 shared library to deal with the cpufreq Linux kernel fe
ii libdrm-intel1 2.4.18-2 Userspace interface to intel-specific kernel DRM servic
ii libdrm2 2.4.18-2 Userspace interface to kernel DRM services -- runtime
ii linux-patch-debian-2.6.30 2.6.30-8squeeze1 Debian patches to version 2.6.30 of the Linux kernel
ii linux-patch-debian-2.6.32 2.6.32-5 Debian patches to version 2.6.32 of the Linux kernel
ii linux-source-2.6.30 2.6.30-8squeeze1 Linux kernel source for version 2.6.30 with Debian patc
ii linux-source-2.6.32 2.6.32-5 Linux kernel source for version 2.6.32 with Debian patc
ii module-init-tools 3.12~pre1-1 tools for managing Linux kernel modules

# uname -a
Linux FooBar 2.6.32-trunk-686 #1 SMP Sun Jan 10 06:32:16 UTC 2010 i686 GNU/Linux

Thank you in advance.
__________________
Ant @ The Ant Farm (http://antfarm.ma.cx) and Ant's Quality Foraged Links (http://aqfl.net).
ant is offline   Reply With Quote
Old 03-05-10, 09:22 AM   #2
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: What am I missing to compile the latest stable NVIDIA driver in Debian?

From the error message you posted:
The compiler used to compile the kernel (gcc 4.3) does not exactly match the
current compiler (gcc 4.4). The Linux 2.6 kernel module loader rejects kern
el modules built with a version of gcc that does not exactly match that of t
he compiler used to build the running kernel.
You can get around this by setting CC to gcc-4.3, e.g. `CC=gcc-4.3 sh NVIDIA...`; you may need to install the gcc-4.3 package, first.
zander is offline   Reply With Quote
Old 03-05-10, 09:35 AM   #3
tadawson
Registered User
 
Join Date: May 2009
Posts: 44
Default Re: What am I missing to compile the latest stable NVIDIA driver in Debian?

Or recompile your kernel with what you have, so they all match . . .

- Tim
tadawson is offline   Reply With Quote
Old 03-05-10, 09:51 AM   #4
ant
A GeForced Ant
 
ant's Avatar
 
Join Date: Sep 2002
Location: An Ant Farm
Posts: 348
Unhappy Re: What am I missing to compile the latest stable NVIDIA driver in Debian?

Quote:
Originally Posted by zander View Post
From the error message you posted:
The compiler used to compile the kernel (gcc 4.3) does not exactly match the
current compiler (gcc 4.4). The Linux 2.6 kernel module loader rejects kern
el modules built with a version of gcc that does not exactly match that of t
he compiler used to build the running kernel.
You can get around this by setting CC to gcc-4.3, e.g. `CC=gcc-4.3 sh NVIDIA...`; you may need to install the gcc-4.3 package, first.
Thanks, but I still can't compile the driver:

$ cat /var/log/nvidia-installer.log
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Fri Mar 5 07:50:45 2010
installer version: 1.0.7

option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
precompiled interfaces : true
no ncurses color : false
query latest version : false
OpenGL header files : true
no questions : false
silent : false
no recursion : false
no backup : false
kernel module only : false
sanity : false
add this kernel : false
no runlevel check : false
no network : false
no ABI note : false
no RPMs : false
no kernel module : false
force SELinux : default
no X server check : false
no cc version check : false
force tls : (not specified)
X install prefix : (not specified)
X library install path : (not specified)
X module install path : (not specified)
OpenGL install prefix : (not specified)
OpenGL install libdir : (not specified)
utility install prefix : (not specified)
utility install libdir : (not specified)
doc install prefix : (not specified)
kernel name : (not specified)
kernel include path : (not specified)
kernel source path : (not specified)
kernel output path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp mirror : ftp://download.nvidia.com
RPM file list : (not specified)

Using: nvidia-installer ncurses user interface
-> License accepted.
-> Installing NVIDIA driver version 195.36.08.
-> There appears to already be a driver installed on your system (version: 195.
36.08). As part of installing this driver (version: 195.36.08), the existin
g driver will be uninstalled. Are you sure you want to continue? ('no' will
abort installation) (Answer: Yes)
-> Performing CC sanity check with CC="gcc-4.3".
-> Performing CC version check with CC="gcc-4.3".
ERROR: Unable to find the kernel source tree for the currently running kernel.
Please make sure you have installed the kernel source files for your
kernel and that they are properly configured; on Red Hat Linux systems,
for example, be sure you have the 'kernel-source' or 'kernel-devel' RPM
installed. If you know the correct kernel source files are installed,
you may specify the kernel source path with the '--kernel-source-path'
command line option.
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.
__________________
Ant @ The Ant Farm (http://antfarm.ma.cx) and Ant's Quality Foraged Links (http://aqfl.net).
ant is offline   Reply With Quote
Old 03-05-10, 09:59 AM   #5
ant
A GeForced Ant
 
ant's Avatar
 
Join Date: Sep 2002
Location: An Ant Farm
Posts: 348
Default Re: What am I missing to compile the latest stable NVIDIA driver in Debian?

Quote:
Originally Posted by tadawson View Post
Or recompile your kernel with what you have, so they all match . . .
I installed Debian's Kernel packages. I don't compile my own (too much work and tedious).
__________________
Ant @ The Ant Farm (http://antfarm.ma.cx) and Ant's Quality Foraged Links (http://aqfl.net).
ant is offline   Reply With Quote
Old 03-05-10, 10:31 AM   #6
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: What am I missing to compile the latest stable NVIDIA driver in Debian?

You're probably missing the correct linux-headers package.
zander is offline   Reply With Quote
Old 03-05-10, 10:37 AM   #7
ant
A GeForced Ant
 
ant's Avatar
 
Join Date: Sep 2002
Location: An Ant Farm
Posts: 348
Default Re: What am I missing to compile the latest stable NVIDIA driver in Debian?

Quote:
Originally Posted by zander View Post
You're probably missing the correct linux-headers package.
$ dpkg -l | grep ^ii |grep linux-headers
ii linux-headers-2.6.30-2-686 2.6.30-8squeeze1 Header files for Linux 2.6.30-2-686
ii linux-headers-2.6.30-2-common 2.6.30-8squeeze1 Common header files for Linux 2.6.30-2
ii linux-headers-2.6.32-trunk-common 2.6.32-5 Common header files for Linux 2.6.32-trunk

Then, I noticed I needed linux-headers-2.6.32-trunk-common package as well. Oops! Now, it worked. Thanks all!
__________________
Ant @ The Ant Farm (http://antfarm.ma.cx) and Ant's Quality Foraged Links (http://aqfl.net).
ant is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:11 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.