2004-06-12 00:38:49

by J.A. Magallon

[permalink] [raw]
Subject: Invalid module format ?

Hi all...

First of all, I'm aware of the 'ask the vendor' answer. I just would like
the reasons.

With gcc-3.4.1 cvs, the nvidia module is miscompiled or something.
The same sources that build and install with gcc-3.3, now build and give
me this:

werewolf:~# modinfo nvidia
filename: /lib/modules/2.6.7-rc3-jam1/video/nvidia.ko
license: NVIDIA
werewolf:~# modprobe nvidia
FATAL: Error inserting nvidia (/lib/modules/2.6.7-rc3-jam1/video/nvidia.ko): Invalid module format

syslog:

Jun 12 02:35:44 werewolf kernel: No module found in object

werewolf:~# cat /proc/version
Linux version 2.6.7-rc3-jam1 ([email protected]) (gcc version 3.4.1 (Mandrakelinux (Cooker) 3.4.1-0.2mdk)) #1 SMP Fri Jun 11 01:49:52 CEST 2004

Any idea ?


--
J.A. Magallon <jamagallon()able!es> \ Software is like sex:
werewolf!able!es \ It's better when it's free
Mandrakelinux release 10.1 (Cooker) for i586
Linux 2.6.7-rc3-jam1 (gcc 3.4.1 (Mandrakelinux (Cooker) 3.4.1-0.2mdk)) #1


2004-06-12 00:51:10

by Matt Heler

[permalink] [raw]
Subject: Re: Invalid module format ?

J.A. Magallon ,

Grab the latest offical nvidia driver 5336 , then patch it with the patch
aviable from http://www.minion.de/nvidia.html ( there patch allows the nvidia
driver to compile and work under gcc 3.4 ).

You also may want to make sure your using the latest module-init-tools.


Matt H.



On Friday 11 June 2004 5:38 pm, J.A. Magallon wrote:
> Hi all...
>
> First of all, I'm aware of the 'ask the vendor' answer. I just would like
> the reasons.
>
> With gcc-3.4.1 cvs, the nvidia module is miscompiled or something.
> The same sources that build and install with gcc-3.3, now build and give
> me this:
>
> werewolf:~# modinfo nvidia
> filename: /lib/modules/2.6.7-rc3-jam1/video/nvidia.ko
> license: NVIDIA
> werewolf:~# modprobe nvidia
> FATAL: Error inserting nvidia
> (/lib/modules/2.6.7-rc3-jam1/video/nvidia.ko): Invalid module format
>
> syslog:
>
> Jun 12 02:35:44 werewolf kernel: No module found in object
>
> werewolf:~# cat /proc/version
> Linux version 2.6.7-rc3-jam1 ([email protected]) (gcc version 3.4.1
> (Mandrakelinux (Cooker) 3.4.1-0.2mdk)) #1 SMP Fri Jun 11 01:49:52 CEST 2004
>
> Any idea ?

2004-06-12 00:55:38

by J.A. Magallon

[permalink] [raw]
Subject: Re: Invalid module format ?


On 06.12, Matt H. wrote:
> J.A. Magallon ,
>
> Grab the latest offical nvidia driver 5336 , then patch it with the patch
> aviable from http://www.minion.de/nvidia.html ( there patch allows the nvidia
> driver to compile and work under gcc 3.4 ).
>

I've got that patches ;).
I think the problem is gcc-3.4.1.

Why can a module give that error ?
Any header info, some MODULE_INFO, what ?

werewolf:~> rpm -q module-init-tools
module-init-tools-3.0-2mdk

TIA

--
J.A. Magallon <jamagallon()able!es> \ Software is like sex:
werewolf!able!es \ It's better when it's free
Mandrakelinux release 10.1 (Cooker) for i586
Linux 2.6.5-rc1-jam3 (gcc 3.4.1 (Mandrakelinux (Cooker) 3.4.1-0.3mdk)) #3