PDA

View Full Version : NVIDIA compiler error message


BlackEagle
12-30-02, 03:27 AM
Hi there!
If i try to install the NVIDIA kernel package i get this strange error:
You appear to be compiling the NVIDIA kernel module with
a compiler different from the one that was used to compile
the running kernel. This may be perfectly fine, but there
are cases where this can lead to unexpected behaviour and
system crashes.

If you know what you are doing and want to override this
check, you can do so by setting IGNORE_CC_MISMATCH.

In any other case, set the CC environment variable to the
name of the compiler that was used to compile the kernel.

*** Failed cc sanity check. Bailing out! ***
How do i set "IGNORE_CC_MISMATCH" to get rid of it? The NVIDIA GLX Package is installed...no problems...

thx, BlackEagle.

crimsun
12-30-02, 04:42 AM
Depending on the shell you use, it's either:

setenv IGNORE_CC_MISMATCH 1
(for csh-based)
or

export IGNORE_CC_MISMATCH=1
(for sh-based)

You should probably take a closer look at why the error is popping up, however. Please paste the output of:

cat /proc/version

cc -v

It also helps tremendously to list your current cpu, motherboard chipset, video card, amount of RAM, and Linux distribution & version.

BlackEagle
12-30-02, 05:27 AM
thx for the quick reply, crimsun. :D

export IGNORE_CC_MISMATCH=1 works! I could install the kernel package with "make install".
I just edited my XF86Config-4, but i have to load the nvidia module every time i reboot...(insmod nvidia). How can i automatically load it on startup?

Cya, BlackEagle.

P.S: using Debian 3.0 with 2.4.20 kernel...

bwkaz
12-30-02, 02:00 PM
In Debian, you add "nvidia" to /etc/modules to get it to load on bootup.

However, I'm surprised that this worked. Most of the time, IGNORE_CC_MISMATCH causes errors later...

As crimson asked, what do cat /proc/version and cc -v both tell you?