Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
solution: nvidia driver + gcc 3.4
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
haz3l
n00b
n00b


Joined: 11 Dec 2003
Posts: 39
Location: San Francisco

PostPosted: Wed Sep 29, 2004 11:17 pm    Post subject: solution: nvidia driver + gcc 3.4 Reply with quote

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 :D Is there something I'm missing here or is it as stupid as it looks?
Back to top
View user's profile Send private message
blaster999
l33t
l33t


Joined: 09 May 2004
Posts: 902
Location: Between keyboard and chair

PostPosted: Sat Oct 02, 2004 11:26 am    Post subject: Reply with quote

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
View user's profile Send private message
desertstalker
Apprentice
Apprentice


Joined: 18 Sep 2004
Posts: 209

PostPosted: Sat Oct 02, 2004 12:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
blaster999
l33t
l33t


Joined: 09 May 2004
Posts: 902
Location: Between keyboard and chair

PostPosted: Sat Oct 02, 2004 12:28 pm    Post subject: Reply with quote

Then it is strange that it works.
_________________
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
View user's profile Send private message
AstralStorm
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2003
Posts: 80
Location: /dev/null

PostPosted: Sat Oct 02, 2004 2:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
graadz
n00b
n00b


Joined: 12 Aug 2002
Posts: 55
Location: Enschede, Netherlands

PostPosted: Sat Oct 02, 2004 4:05 pm    Post subject: nvidia sucks Reply with quote

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
View user's profile Send private message
MetatronX99
n00b
n00b


Joined: 24 Jul 2004
Posts: 70
Location: Warren, MI

PostPosted: Sat Oct 02, 2004 4:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
graadz
n00b
n00b


Joined: 12 Aug 2002
Posts: 55
Location: Enschede, Netherlands

PostPosted: Sat Oct 02, 2004 4:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
coondog
n00b
n00b


Joined: 28 Sep 2003
Posts: 69
Location: Tallahassee, Florida

PostPosted: Sat Oct 02, 2004 8:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
AstralStorm
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2003
Posts: 80
Location: /dev/null

PostPosted: Sat Oct 02, 2004 8:25 pm    Post subject: Reply with quote

Get this, includes remap_pfn_range patch.
http://geki.ath.cx/nvidia-kernel-1.0.6111-r1.tar.bz2
(it got updated)
Works fine here with 2.6.9-rc3-mm1.

Another option: http://kernel.damouse.co.uk/nvidia-kernel-1.0.6111-r3.tar.bz2
(haven't tried that)
Back to top
View user's profile Send private message
coondog
n00b
n00b


Joined: 28 Sep 2003
Posts: 69
Location: Tallahassee, Florida

PostPosted: Sat Oct 02, 2004 11:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
tj
Apprentice
Apprentice


Joined: 10 Aug 2002
Posts: 199
Location: tokyo, japan

PostPosted: Sun Oct 03, 2004 7:38 am    Post subject: Reply with quote

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
View user's profile Send private message
graadz
n00b
n00b


Joined: 12 Aug 2002
Posts: 55
Location: Enschede, Netherlands

PostPosted: Sun Oct 03, 2004 12:34 pm    Post subject: Reply with quote

:-) :-)

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
View user's profile Send private message
coondog
n00b
n00b


Joined: 28 Sep 2003
Posts: 69
Location: Tallahassee, Florida

PostPosted: Mon Oct 04, 2004 2:14 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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