LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   2.6.22-2-amd64 NVIDIA driver issues (https://www.linuxquestions.org/questions/debian-26/2-6-22-2-amd64-nvidia-driver-issues-595971/)

war1025 10-30-2007 11:20 PM

2.6.22-2-amd64 NVIDIA driver issues
 
Okay, so a while back the updates installed the 2.6.22-2 kernel. I hadn't restarted since then, so today I decided that I might as well get things all up to speed with a restart.

So, I restart my computer, and lo and behold the NVIDIA driver isn't working anymore. No big deal, I'll just reinstall it. And then it gives me this:

Your kernel was compiled using gcc 4.1, you are currently running gcc 4.2. You cannot run modules compiled using a different version of the compiler. Change your CC variable and try again.

Something to that effect.

So.. How do I make this work? Can I somehow install the new kernel compiled under 4.2? Can I change the CC environmental variable and make things work? Do I just have to sit here and cry?

Thanks.

HappyTux 10-31-2007 09:38 AM

Yes you can change it in the shell/terminal where you are compiling the driver either use export IGNORE_CC_MISMATCH=1 or export CC=/usr/bin/gcc-4.1 to have it ignore the mismatch or use the gcc-4.1 when compiling the driver.

war1025 10-31-2007 10:17 AM

Thanks. I got it working last night by downloading the latest driver from Nvidia. It still gave me the error, but when I had the option to compile anyways, it did so successfully. I don't know what difference there was in the newest driver that made it work, but I won't complain.

HappyTux 10-31-2007 10:31 AM

Quote:

Originally Posted by war1025 (Post 2943538)
Thanks. I got it working last night by downloading the latest driver from Nvidia. It still gave me the error, but when I had the option to compile anyways, it did so successfully. I don't know what difference there was in the newest driver that made it work, but I won't complain.

The new option was what did it, it looks like Nvidia now uses the IGNORE... variable when choosing this option much like the Debian driver compile does by default to get around this problem if present.


All times are GMT -5. The time now is 07:29 AM.