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

Newegg Daily Deals

Reply
 
Thread Tools
Old 06-28-03, 09:34 AM   #1
ervalerio
Registered User
 
Join Date: Jun 2003
Posts: 7
Default Ignore_cc_mismatch

using the installer of 1.0-4363 i got in /var/log/nvidia-installer.log the message about setting that option...
where do I have to do it?

Distr: Debian Unstable
Kernel: 2.4.21-k7 debian image
gcc = 3.3.1 debian prerelease

i already builded a deb package for the 2.4.20, but this time i'd like to use the nvidia installer...
ervalerio is offline   Reply With Quote
Old 06-28-03, 09:47 AM   #2
Thunderbird
 
Join Date: Jul 2002
Location: Netherlands, Europe
Posts: 2,105
Default

IGNORE_CC_MATCH can be set as an environment variable but really don't use it.

The nvidia installer reports the error you described because the kernel you are using was likely compiled using a different gcc version as the current gcc version on your system. If the kernel was build using gcc 3.2 and your current is 3.3 you can safely set that variable but if it was build using 2.9x it can cause serious troubles. You might get nice kernel oopses
Thunderbird is offline   Reply With Quote
Old 06-28-03, 11:31 AM   #3
bwkaz
Registered User
 
Join Date: Sep 2002
Posts: 2,262
Default

cat /proc/version

What does that say about the gcc version? If it says 2.XX, then as Thunderbird said, you DEFINITELY do not want to set that variable. Actually, even if it said 3.0 or 3.1, I wouldn't set that variable -- too much has changed in the compiler for my tastes.

The "simple" way around it (it is actually simpler than changing compilers, and it WILL work, too, unlike setting the "ignore-mismatch" variable) is to just recompile your kernel with the system compiler (v3.3.1), boot to it, and then rerun the installer.
__________________
Registered Linux User #219692
bwkaz is offline   Reply With Quote
Old 06-28-03, 11:42 AM   #4
ervalerio
Registered User
 
Join Date: Jun 2003
Posts: 7
Default gcc 3.3

i got that cat /proc/version
gcc version 3.3 (Debian)

so i did:
export IGNORE_CC_MISMATCH

but still...
i cannot compile anything.
any other suggestions?
ervalerio is offline   Reply With Quote
Old 06-28-03, 04:03 PM   #5
bwkaz
Registered User
 
Join Date: Sep 2002
Posts: 2,262
Default

Yeah, if your kernel was compiled with gcc 3.3, and your current gcc is 3.3.1, then it's perfectly OK to do export IGNORE_CC_MISMATCH=1 before running the installer.

When you say "it still wouldn't compile", what happened? The same error? If you got a different error, then post it (actually, post /var/log/nvidia-installer.log).
__________________
Registered Linux User #219692
bwkaz is offline   Reply With Quote
Old 06-29-03, 06:48 AM   #6
ervalerio
Registered User
 
Join Date: Jun 2003
Posts: 7
Default thanks!

it worked perfectly!
thanks a lot
ervalerio 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 10:58 AM.


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