PDA

View Full Version : Error message! "Failed cc sanity check."


alian
10-27-02, 05:49 PM
I use the Debian 3.0 with kernel 2.5.39, gcc-3.2. I had en error:

You appear to be compiling the NVdriver kernel module with a compiler different from the one that was used to compile the running kernel. This way be perfectly fine, but there are cases where this can lead to unexpected behaviour and system crashed.

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! *** make: *** [gcc-check] error1.

Please guys, help! What to do?

bwkaz
10-27-02, 09:15 PM
Are you running kernel 2.5.39 when you do the NVIDIA_kernel compiling? If not, you will have to be. But if you are, you should be getting "the nVidia driver does not work with 2.5 kernels", because it doesn't.

Unless you applied one of the community patches for 2.5...

Anyway, the reason for the error message you're getting is that the compiler used to compile the kernel (which can be looked at by doing a cat /proc/version) is different than the current compiler (cc -v). These must be the same for anything to work, basically.