LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-07-2012, 07:59 PM   #1
voidbreath
LQ Newbie
 
Registered: Dec 2012
Posts: 4

Rep: Reputation: Disabled
Lightbulb NVIDIA Linux Display Driver - x86 GCC compatibility error


I've been trying to install the driver for a nvidia geforce 9400 gt on debian squeeze, but when i try it doesnt get past a GCC check. Has anyone been able to solve this? Here's the installer log, and i can get anything else that will help it get solved

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Tue Dec 4 23:26:27 2012
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)
force compat32 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)
compat32 install chroot : (not specified)
compat32 install prefix : (not specified)
compat32 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 180.51.
-> No precompiled kernel interface was found to match your kernel; would you li
ke the installer to attempt to download a kernel interface for your kernel f
rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: Yes)
-> No matching precompiled kernel interface was found on the NVIDIA ftp site;
this means that the installer will need to compile a kernel interface for
your kernel.
-> 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: Yes)
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.
 
Old 12-07-2012, 10:09 PM   #2
descendant_command
Member
 
Registered: Mar 2012
Posts: 828

Rep: Reputation: 186Reputation: 186
My advice is don't use the nvidia installer.
Use the debian DKMS method. It is very easy and copes with kernel upgrades automatically.
http://wiki.debian.org/NvidiaGraphicsDrivers#Use_DKMS

... or just say 'no' when asked to abort and ignore the gcc warning.
 
Old 12-07-2012, 10:15 PM   #3
273
Senior Member
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 3,502

Rep: Reputation: 799Reputation: 799Reputation: 799Reputation: 799Reputation: 799Reputation: 799Reputation: 799
Does it work if you choose "no"? If you choose "yes" it will not ever work as things are.
If it fails when choosing "no" have you though about using the Debian repositories for your drivers?
(there are other options)
 
Old 12-08-2012, 12:26 AM   #4
John VV
Guru
 
Registered: Aug 2005
Posts: 13,217

Rep: Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773
A few things

you are using "squeeze" and with one post here ???
odd but fine

now the Nvidia.run is a "fun" monster
SO unless you DO have a bunch of experience with it
IT IS RECOMMENDED that you use the driver that is in your package manager !!!!
-- VERY RECOMMENDED ----

that said

the .run REQUIRES !!!
you have the current source for the current RUNNING KERNEL INSTALLED !!!!!!!!!
and have the SAME version of GCC installed ( normally right now gcc 4.1 or 4.3 )

so after all that IS installed
run the normal "telinit 3 "( debian is VERY DIFFERENT than RedHat so ??? "telinit 1" ? i think )
non single user BUT no x11 running

then run the .run

BUT using your package manager WILL BE 50% easier
 
Old 12-08-2012, 03:04 AM   #5
voidbreath
LQ Newbie
 
Registered: Dec 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks for the response decendant, it worked like a charm. Also to everyone else who gave suggestions
 
Old 12-09-2012, 06:44 AM   #6
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,718

Rep: Reputation: 904Reputation: 904Reputation: 904Reputation: 904Reputation: 904Reputation: 904Reputation: 904Reputation: 904
Quote:
Originally Posted by voidbreath View Post
-> Installing NVIDIA driver version 180.51.
If you ever try installing the nVidia drivers '.run' its much better to use a current version.

180.51 is from april 2009!

http://www.nvidia.com/object/linux_display_ia32_180.51

Where did you find those 180.XX drivers?

IMO its easier and better in several ways to use the repo drivers.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Install Nvidia Driver NVIDIA-Linux-x86-270.41.19.run ryan20fun Linux - Newbie 19 05-31-2011 08:07 PM
Xorg crash after installing "ATI Catalyst™ 9.6 Proprietary Linux x86 Display Driver" mennowo Linux - Software 9 01-18-2010 10:31 AM
LXer: NVIDIA 169.07 Linux Display Driver LXer Syndicated Linux News 0 12-21-2007 04:00 PM
LXer: ATI Linux x86 Display Driver 8.37.6 Released LXer Syndicated Linux News 0 06-01-2007 11:18 PM
kernel 2.6.3--bk8 and NVIDIA-Linux-x86-1.0-5336 video driver from Nvidia zdenkod Linux - Hardware 2 03-09-2004 06:38 AM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration