LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-23-2009, 04:45 AM   #1
knobby67
Member
 
Registered: Mar 2006
Posts: 627

Rep: Reputation: 43
Lenny :Nvidia install kernel does not match GCC version


Hi all
I've went to install the Nvidia drivers on my new install of Debian Lenny only to find the kernel provided with Lenny does not match the version of GCC.
This is a bit of a problem as I need to install nvidia as well as 2 other sets of .ko's.
What's my best solution to this?
1. Download an old version of GCC (4.1) which the kernel is compiled with and do some links so it works, I'm a bit worried about this idea?

2. Is there a newer kernel image in the repositories that works with the provided compiler (GCC 4.3), nice if anyone know if this has been done?

3. Download a kernel and make it myself, bit long winded?

4. Is there a simple solution I'm over looking

Thanks all, one last thing WTF made the Debian team release Lenny with a kernel compiled on a different compiler to the provided?
 
Old 04-23-2009, 06:01 AM   #2
987687
Member
 
Registered: Oct 2007
Location: 127.0.0.1
Distribution: Debian
Posts: 35

Rep: Reputation: 15
I actually ignore that warning, and have never had a problem...
 
Old 04-23-2009, 06:30 AM   #3
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 60
You have a couple of easy options:
  • Use the version of gcc that your kernel was compiled with (install it if necessary and then export CC=/usr/bin/gcc-4.1 before you do the Nvidia build). This is safe and very simple.
  • Ignore the warning. This seems reasonably safe, too. And it's even simpler.
I've done both. The type A person in me prefers the first method, but I've never had trouble either way. (So far as I know even the kernels from Squeeze or Sid are often compiled with a version of gcc other than the most current one in those branches. The problem may be that gcc is a reasonably fast-moving target, but I've often wondered about the policy.)

Last edited by Telemachos; 04-23-2009 at 06:32 AM.
 
Old 04-23-2009, 06:42 AM   #4
Qew
Member
 
Registered: Feb 2005
Location: Sussex, UK
Distribution: Debian Lenny
Posts: 35

Rep: Reputation: 17
First: aptitude install gcc-4.1

Then: export CC=/usr/bin/gcc-4.1

After that, do your compiling. After you logout or reboot, the GCC version will be returned to what it originally was (in your case, 4.3). If you want to change that before logging out or rebooting, then just a simple export CC=/usr/bin/gcc-4.3 should suffice.

Edit - Umm... just do what Telemachos says.

Last edited by Qew; 04-23-2009 at 06:45 AM.
 
Old 04-23-2009, 06:47 AM   #5
gnudude
Member
 
Registered: Apr 2009
Posts: 46

Rep: Reputation: 28
I concur...

 
Old 04-23-2009, 07:43 AM   #6
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 60
Quote:
Originally Posted by gnudude View Post
I concur...
Me too. See, it feels like $HOME around here already. (But I do miss Qew's great Sonic Youth avatar, actually. And my swirl. I really miss my swirl.)
 
Old 04-23-2009, 07:45 AM   #7
knobby67
Member
 
Registered: Mar 2006
Posts: 627

Original Poster
Rep: Reputation: 43
Thanks everyone, I actually ended up using the old gcc and the CC=.
As ignoring stopped x starting, however I've found it was due to using an old version of nvdia drivers.

I do have a problem now as plugging in two monitors, it only runs one monitor, which is set to 640x480, no other resolutions are accepted either in nvida panel or gnome screen resolution. It will not even detect the second monitor. I presume this is either an x server or nvdia driver problem? Can anyone advise? Thanks.


Sorry admins I've opened a second thread on this I'll try to delete.
 
  


Reply



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
Kmod-nvidia and FC10 install kernel version rylan76 Fedora 2 01-09-2009 07:31 AM
Regarding distribution + kernel version + gcc version + glib version. JCipriani Linux - General 8 04-19-2008 02:54 PM
Installed GCC version doesn't match the version the kernel was compiled with AlucardZero Linux - Software 2 02-07-2008 10:24 AM
kernel build problems -how to install older gcc version? kpachopoulos Fedora 3 07-04-2005 08:56 AM
redhat fedora gcc version (compiled for 2.4.20) doesn't match kernel version 2.4.22 start1000 Linux - Software 0 03-16-2004 08:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:14 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration