View previous topic :: View next topic |
Author |
Message |
haz3l n00b
Joined: 11 Dec 2003 Posts: 39 Location: San Francisco
|
Posted: Wed Sep 29, 2004 11:17 pm Post subject: solution: nvidia driver + gcc 3.4 |
|
|
hello. I had a problem and found an odd solution that I wished to share (incase others were in my same position)- and possibly get insight on what's wrong? (Someone may have already posted this. If so, I apologize.)
My system is a 2ghz p4 running kernel version 2.6.7.
I had mistakenly unmerged nvidia-kernel, no biggy. I then 'emerge -uD world' and merged nvidia-kernel again. I found that nvidia.ko didn't work. The nvidia module was giving me an odd "invalid module format" error when I attempted to modprobe it and xorg said it couldn't load it.. hmm. In /var/log/messages I was seeing:
Code: | korea nvidia: version magic '2.6.7-gentoo-r6 preempt PENTIUM4 4KSTACKS gcc-3.4' should be '2.6.7-gentoo-r6 preempt PENTIUM4 4KSTACKS gcc-3.3 |
Seemed kinda stupid to me. I opened up nvidia.ko with nano and found a line in the middle that had:
Code: | (other stuff) vermagic=2.6.7-gentoo-r6 preempt PENTIUM4 4KSTACKS gcc-3.4^@depends= (other stuff) |
I simply changed the 3.4 to 3.3 and viola Is there something I'm missing here or is it as stupid as it looks? |
|
Back to top |
|
|
blaster999 l33t
Joined: 09 May 2004 Posts: 902 Location: Between keyboard and chair
|
Posted: Sat Oct 02, 2004 11:26 am Post subject: |
|
|
And does 3d work? If everything is ok, then you are right, it is as stupid as it looks. _________________ 60s: sex, drugs, rock'n'roll
90s: sux, bugs, drag'n'drop
---
Some multimedia keys refuse to work? See my mini-howto:
https://forums.gentoo.org/viewtopic.php?p=1896734#1896734 |
|
Back to top |
|
|
desertstalker Apprentice
Joined: 18 Sep 2004 Posts: 209
|
Posted: Sat Oct 02, 2004 12:05 pm Post subject: |
|
|
The version magic errors are because the kernel and ALL modules need to be compiled with the same version of gcc. In your case when you did emerge -uD world you emerged a new version of gcc and in this situation should recompile the kernel. |
|
Back to top |
|
|
blaster999 l33t
Joined: 09 May 2004 Posts: 902 Location: Between keyboard and chair
|
|
Back to top |
|
|
AstralStorm Tux's lil' helper
Joined: 06 Nov 2003 Posts: 80 Location: /dev/null
|
Posted: Sat Oct 02, 2004 2:13 pm Post subject: |
|
|
It's not strange, there had been no ABI changes between gcc-3.3 and 3.4 yet.
Anyway, your gcc got updated and you ought to recompile the kernel with it. |
|
Back to top |
|
|
graadz n00b
Joined: 12 Aug 2002 Posts: 55 Location: Enschede, Netherlands
|
Posted: Sat Oct 02, 2004 4:05 pm Post subject: nvidia sucks |
|
|
True. But even then nvidia-kernel-1.0.6111-r1 does not insert into a 2.6.9 kernel (using GCC 3.3.4). Everything works with 2.6.8 though. The error I get is:
Code: |
root@blahnik # insmod nvidia.ko
insmod: error inserting 'nvidia.ko': -1 Unknown symbol in module
root@blahnik #
|
G
AstralStorm wrote: | It's not strange, there had been no ABI changes between gcc-3.3 and 3.4 yet.
Anyway, your gcc got updated and you ought to recompile the kernel with it. |
|
|
Back to top |
|
|
MetatronX99 n00b
Joined: 24 Jul 2004 Posts: 70 Location: Warren, MI
|
Posted: Sat Oct 02, 2004 4:16 pm Post subject: |
|
|
dont use -r1 for vanilla kernels, use vanilla 1.0.6111
Code: |
emerge =nvidia-kernel-1.0.6111
|
_________________ GCC 3.4.2-r2
Glibc 20040808 +NPTL +Prelink
Linux 2.6.9-rc2-love4
~x86 System |
|
Back to top |
|
|
graadz n00b
Joined: 12 Aug 2002 Posts: 55 Location: Enschede, Netherlands
|
Posted: Sat Oct 02, 2004 4:58 pm Post subject: |
|
|
I am not using vanilla sources, I am using mm-sources. In anycase, found the solution here.
G
MetatronX99 wrote: | dont use -r1 for vanilla kernels, use vanilla 1.0.6111
Code: |
emerge =nvidia-kernel-1.0.6111
|
|
|
|
Back to top |
|
|
coondog n00b
Joined: 28 Sep 2003 Posts: 69 Location: Tallahassee, Florida
|
Posted: Sat Oct 02, 2004 8:03 pm Post subject: |
|
|
who's the chick in the picture ?
OH and I'm experiencing the same problems ?
I think a developer needs to take a look at this shite! |
|
Back to top |
|
|
AstralStorm Tux's lil' helper
Joined: 06 Nov 2003 Posts: 80 Location: /dev/null
|
|
Back to top |
|
|
coondog n00b
Joined: 28 Sep 2003 Posts: 69 Location: Tallahassee, Florida
|
Posted: Sat Oct 02, 2004 11:27 pm Post subject: |
|
|
i saw both those earlier and I have not had success with either one. Oh yeah that's cause they give us files but don't tell us what to do with them. |
|
Back to top |
|
|
tj Apprentice
Joined: 10 Aug 2002 Posts: 199 Location: tokyo, japan
|
Posted: Sun Oct 03, 2004 7:38 am Post subject: |
|
|
there are instructions in this thread https://forums.gentoo.org/viewtopic.php?t=216985
you need to create a portage overlay directory so that you don't wipe out your changes at the next emerge sync
add the overlay directory to /etc/make.conf
download and extract one of the tarballs linked above to your overlay directory
create the digest then emerge /path/to/extracted/ebuild/in full
All of the code is in the link above on the 2nd page, see logic's post _________________ I tried installing Suse Linux off the Internet. It got stuck in the middle somewhere.Installing off the Internet is for the birds. |
|
Back to top |
|
|
graadz n00b
Joined: 12 Aug 2002 Posts: 55 Location: Enschede, Netherlands
|
Posted: Sun Oct 03, 2004 12:34 pm Post subject: |
|
|
The chick in the picture is Shahrzad Sepanlou. I confess: I have a weekness for middle-eastern women
The post from me a little further in this thread should solve your problem if you are running mm-sources. If you run GCC 3.4.2, then you might want to rebuild your kernel image, modules and re-merge nvidia-kernel...-r2 with GCC 3.3.4 and see if that will help.
G
coondog wrote: | who's the chick in the picture ?
OH and I'm experiencing the same problems ?
I think a developer needs to take a look at this shite! |
|
|
Back to top |
|
|
coondog n00b
Joined: 28 Sep 2003 Posts: 69 Location: Tallahassee, Florida
|
Posted: Mon Oct 04, 2004 2:14 am Post subject: |
|
|
same nothing like a middle eastern woman. Anyway I fixed the problem for me atleasat. I just downloaded the binary file right from NVIDIA. Then said no to the download a module for my kernel. Then told it to build a custom one for my kernel and it worked like a charm. |
|
Back to top |
|
|
|