PDA

View Full Version : Ignore_cc_mismatch Mdk 9.1


mfred
04-03-03, 07:49 AM
I get this error described in the FAQ with the Answer:

You should compile the NVIDIA kernel module with the same compiler
version that was used to compile your kernel. Some Linux kernel data
structures are dependent on the version of gcc used to compile it;
for example, in include/linux/spinlock.h:

...
* Most gcc versions have a nasty bug with empty initializers.
*/
#if (__GNUC__ > 2)
typedef struct { } rwlock_t;
#define RW_LOCK_UNLOCKED (rwlock_t) { }
#else
typedef struct { int gcc_is_buggy; } rwlock_t;
#define RW_LOCK_UNLOCKED (rwlock_t) { 0 }
#endif


UH ?
What should I do there ???

bwkaz
04-03-03, 08:43 AM
What it says to do. ;)

Find out which compiler you have installed (run gcc -dumpversion), and find out which compiler was used to compile your kernel (cat /proc/version), and then either:

1) Install the kernel compiler as your main system compiler, or

2) Recompile your kernel with your current system compiler.

#2 is preferable, because most of the time when there's a compiler version mismatch, it's because the compiler used on the kernel is older. Using a more recent compiler is preferable.