Daniel Iliev wrote:
> Sean wrote:
>> Mathieu Seigneurin wrote:
>>> On Tuesday 31 October 2006 16:23, Daniel Iliev wrote:
>>>> Sean wrote:
>>>>> Thanks, forgot the -C is clean or remove.
>>>>> Followed your steps and on the modprobe line received the following
>>>>> 'FATAL: Error inserting nvidia
>>>>> (/lib/modules/2.6.16-gentoo-r9/video/nvidia.ko): Invalid module
>>>>> format'
>>>> That is not supposed to happen. ;-(
>>>> Did you get any errors from "emerge nvidia-drivers"?
>>>>
>>>> Please, re-emege nvidia-drivers again and watch its output. I
>>>> suppose it
>>>> should say something about your "kernel tree/sources".
>>>>
>>>> -- 
>>>> Best regards,
>>>> Daniel
>>> Also look at what dmesg says - you probably have more details about the
>>> error there.
>>> And make sure you emerge nvidia-drivers with the same version of GCC as
>>> you used to build your active kernel.
>>>
>>> Regards,
>>> Mat
>> I already had looked at dmesg. Since upgrading gcc many, if not all my
>> modules are now having problems. I wanted to try to get X working
>> first, then the others.
> 
> I would say that upgrading gcc and the problems with your kernel modules
> are not related but if you have such problems, you have to rebuild the
> kernel no matter the reason.
> 

The above is wrong.

The kernel (and modules) record what version of GCC they were compiled
with.  This version is checked at module load.  If the kernel's GCC
version doesn't match the modules GCC version, the module loading fails.
  This only becomes an issue with modules that are compiled outside of
the kernel tree [1].

To fix this you have two options.  either switch out which version of
gcc you are using and recompile modules that are maintained outside of
the tree, or recompile your kernel with the current version of gcc.

First though, you need info:

# modinfo <modname> | grep vermagic

# cat /proc/version

# gcc-config -l

I would recommend recompiling the kernel, but it's up to you.

hth,

Jason

[1] - The caveat being when the GCC version has changed after the kernel
tree was already compiled and installed, and you are recompiling the
kernel tree for one module, without cleaning the tree.
-- 
gentoo-amd64@gentoo.org mailing list

Reply via email to