Eugenio Diaz wrote:

> Mark Finlay wrote:
>
>> I'm running 8.2 with the cooker kernel cus the 8.2 kernel
>> only runs my via chipset as ata2.
>>
>> but now i cant compile the NVIDIA kernel driver cus the cooker kernel 
>> was compile with gcc3.1 AKAICT.
>>
>> Would someone do me a big favour and save me 36.6ing gcc3.1,
>> and do a rpm --rebuild on the NVIDIA kernel src.rpm and send me the 
>> resulting RPM.
>>
>> The src.rpm is here
>> http://download.nvidia.com/XFree86_40/1.0-2960/NVIDIA_kernel-1.0-2960.src.rpm 
>>
>>
>> CC: me
>>
>> Pretty Please :)
>>
> Just do this before compiling
>
> export IGNORE_CC_MISMATCH=1
>

Or better yet, compile it with the same version of gcc that was used to 
compile the kernel

[dmc@roc dmc]$ cat /proc/version
Linux version 2.4.18-6mdk ([EMAIL PROTECTED]) (gcc version 
2.96 20000731 (Mandrake Linux 8.2 2.96-0.76mdk)) #1 Fri Mar 15 02:59:08 
CET 2002

Then do something like

export CC=gcc-2.96

instead of the above.  Obviously you must install the gcc-2.96 
packages(rpms), which can happily live alongside whatever other versions 
of gcc/egcs you have installed.  Note, I haven't actually tried the 
above line, but either it, or something substantially similar will work 
for you, and I'm pretty sure it will be a much more robust solution than 
compiling the module with a different version of gcc than was used to 
compile your kernel.

-dmc





Reply via email to