Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Nvidia: Invalid Module Format
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
u2mike
Apprentice
Apprentice


Joined: 06 Nov 2003
Posts: 209

PostPosted: Tue Sep 14, 2004 2:59 am    Post subject: Nvidia: Invalid Module Format Reply with quote

Hi

I emerged the nvidia-kernel-6111 ebuild but the module will not load. When I try modprobe nvidia I get an error saying invalid module format.

I'm using
ck-sources-2.6.8.1-r7
gcc-3.4.2-r1
4K stacks are off
Back to top
View user's profile Send private message
DawgG
l33t
l33t


Joined: 17 Sep 2003
Posts: 866

PostPosted: Tue Sep 14, 2004 8:04 am    Post subject: same problem with 2.6.9-rc1 Reply with quote

when i try to load nvidia i get the same error:
Code:

 modprobe nvidia
FATAL: Error inserting nvidia (/lib/modules/2.6.9-rc1/video/nvidia.ko): Invalid module format

i re-emerged the module and the 26-headers (with ~x86)- same prob

before that updated glibc and gcc (and a lot of other stuff); could it have sth. to do with that or some option that is set wrong?
could it help to recompile or downgrade gcc again?
Code:

gcc version 3.4.1 20040803 (Gentoo Linux 3.4.1-r2, ssp-3.4-2, pie-8.7.6.5)
libc-2.3.4.so


the rest of the system runs fine (well, didn't check X yet ;-) ); the GPL-kernel-modules load properly.

i don't really know what to do - other people seem to have this problem but i could find no solution to it.


Code:

# gcc -v
Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.1/specs
Configured with: /var/tmp/portage/gcc-3.4.1-r2/work/gcc-3.4.1/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.4 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.1/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4/info --enable-shared --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib --enable-languages=c,c++ --enable-threads=posix --enable-long-long --disable-checking --disable-libunwind-exceptions --enable-cstdio=stdio --enable-version-specific-runtime-libs --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.1/include/g++-v3 --with-local-prefix=/usr/local --disable-werror --enable-shared --enable-nls --without-included-gettext --disable-multilib --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
Back to top
View user's profile Send private message
Anarky
n00b
n00b


Joined: 25 May 2003
Posts: 30
Location: France

PostPosted: Tue Sep 14, 2004 9:06 am    Post subject: Reply with quote

I had the same problem with gentoo-sources (still using XFree)
I don't know if there is another solution but i've added the ligne
Code:
nvidia-kernel      ~x86
in /etc/portage/package.keywords and now it just works fine...
Back to top
View user's profile Send private message
DawgG
l33t
l33t


Joined: 17 Sep 2003
Posts: 866

PostPosted: Tue Sep 14, 2004 11:41 am    Post subject: [ :S O L V E D: ] IT IS (WAS) A GCC-PROBLEM Reply with quote

excuse my stupidity ...
dmesg tells me THIS:
Code:

nvidia: version magic '2.6.9-rc1 preempt PENTIUM4 gcc-3.4' should be '2.6.9-rc1 preempt PENTIUM4 gcc-3.3'


what can i do?
downgrade GCC to 3.x.x??
NO!

===================================
!!! SOLVED !!!
===================================


i just had to recompile the kernel with the appropriate (new) gcc-version on my system.
works now!!!

Code:

hoibele linux # uname -a
Linux hoibele 2.6.9-rc1 #2 Tue Sep 14 12:18:35 CEST 2004 i686 AMD Athlon(tm) Processor AuthenticAMD GNU/Linux

hoibele linux # lsmod
Module                  Size  Used by
nvidia               4819540  8

hoibele linux # modinfo nvidia
license:        NVIDIA
alias:          char-major-195-*
vermagic:       2.6.9-rc1 preempt PENTIUM4 gcc-3.4
depends:
alias:          pci:v000010DEd*sv*sd*bc03sc00i00*

hoibele linux # gcc -v
Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.1/specs
Configured with: /var/tmp/portage/gcc-3.4.1-r2/work/gcc-3.4.1/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.4 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.1/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4/info --enable-shared --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib --enable-languages=c,c++ --enable-threads=posix --enable-long-long --disable-checking --disable-libunwind-exceptions --enable-cstdio=stdio --enable-version-specific-runtime-libs --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.1/include/g++-v3 --with-local-prefix=/usr/local --disable-werror --enable-shared --enable-nls --without-included-gettext --disable-multilib --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 3.4.1 20040803 (Gentoo Linux 3.4.1-r2, ssp-3.4-2, pie-8.7.6.5)
Back to top
View user's profile Send private message
ghostn9e
Tux's lil' helper
Tux's lil' helper


Joined: 09 Apr 2004
Posts: 109
Location: El Pueblo de Nuestra Señora la Reina de los Ángeles de la Porciúncula

PostPosted: Wed Sep 15, 2004 6:57 am    Post subject: Reply with quote

uh, i have the same problem
however further complicated by the fact that im using reiser4 for my main partion, now if i enable 4kstacks, reiser4 (module in kernel) is disabled, wondering if anyone got (i know this is a lot) their system to work with:

reiser4
gcc 3.4 (entire system compiled with 3.4)
nvidia
2.6.8.1-ck-r7 kernel
Back to top
View user's profile Send private message
silencio
n00b
n00b


Joined: 16 Sep 2004
Posts: 14
Location: New Mexico, USA

PostPosted: Thu Sep 16, 2004 10:19 pm    Post subject: Reply with quote

ghostn9e wrote:
uh, i have the same problem
however further complicated by the fact that im using reiser4 for my main partion, now if i enable 4kstacks, reiser4 (module in kernel) is disabled, wondering if anyone got (i know this is a lot) their system to work with:

reiser4
gcc 3.4 (entire system compiled with 3.4)
nvidia
2.6.8.1-ck-r7 kernel


My stats:
reiser4
gcc version 3.4.1 20040803 (Gentoo Linux 3.4.1-r2, ssp-3.4-2, pie-8.7.6.5)
2.6.9-rc1-mm4

I'll let you know if I can get it working with reiser4.
Back to top
View user's profile Send private message
silencio
n00b
n00b


Joined: 16 Sep 2004
Posts: 14
Location: New Mexico, USA

PostPosted: Thu Sep 16, 2004 10:36 pm    Post subject: Reply with quote

yeah, works.

just my fonts are small again =/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum