Lenny :Nvidia install kernel does not match GCC version
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.