Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Compilation of Nvidia drivers fail
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
rsnfunky
n00b
n00b


Joined: 30 Dec 2007
Posts: 63

PostPosted: Sat Apr 19, 2008 8:39 am    Post subject: Compilation of Nvidia drivers fail Reply with quote

Dear All,

I am trying to emerge the Nvidia drivers (71.86.01) for my card (TNT2).

It fails giving the following error

Code:
*** Unable to determine the target kernel version. ***
If you are using a Linux 2.4 kernel, please make sure
you either have configured kernel sources matching your
kernel or the correct set of kernel headers installed
on your system.

If you are using a Linux 2.6 kernel, please make sure
you have configured kernel sources matching your kernel
installed on your system. If you specified a separate
output directory using either the "KBUILD_OUTPUT" or
the "O" KBUILD parameter, make sure to specify this
directory with the SYSOUT environment variable or with
the equivalent nvidia-installer command line option.

Depending on where and how the kernel sources (or the
kernel headers) were installed, you may need to specify
their location with the SYSSRC environment variable or
the equivalent nvidia-installer command line option.


the /usr/src/linux points to the correct kernel version. The kernel is compiled with the required options for nvidia (like mtrr support etc..)

What could be the problem?
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Sat Apr 19, 2008 9:54 am    Post subject: Reply with quote

checked your headers are there ?

Code:
emerge -pv linux-headers gentoo-sources

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-kernel/linux-headers-2.6.24  0 kB
[ebuild   R   ] sys-kernel/gentoo-sources-2.6.24-r5  USE="-build -symlink" 0 kB
Back to top
View user's profile Send private message
rsnfunky
n00b
n00b


Joined: 30 Dec 2007
Posts: 63

PostPosted: Sat Apr 19, 2008 3:38 pm    Post subject: Reply with quote

Yes the headers and kernel-source is there.
Back to top
View user's profile Send private message
ksp7498
Apprentice
Apprentice


Joined: 08 Jun 2006
Posts: 225
Location: North Carolina - US

PostPosted: Sat Apr 19, 2008 9:01 pm    Post subject: Reply with quote

I'm pretty sure that the current sets of nvidia drivers do not work with kernel 2.6.25, what kernel version are you running?
_________________
“Isn’t it enough to see that a garden is beautiful without having to believe that there are fairies at the bottom of it too?”
– Douglas Adams
Back to top
View user's profile Send private message
Evildad
Guru
Guru


Joined: 15 Apr 2004
Posts: 475

PostPosted: Sat Apr 19, 2008 10:30 pm    Post subject: Reply with quote

Had a similar problem with nvidia-drivers today. Only the Version 169.12 compiled and worked for me
Back to top
View user's profile Send private message
rsnfunky
n00b
n00b


Joined: 30 Dec 2007
Posts: 63

PostPosted: Sun Apr 20, 2008 4:50 am    Post subject: Reply with quote

I am using 2.6.24-gentoo-r3 kernel. The agp card is nvidia TNT2, that works only with 71.xx drivers. Please tell me what to do?
Back to top
View user's profile Send private message
AllenJB
Veteran
Veteran


Joined: 02 Sep 2005
Posts: 1285

PostPosted: Sun Apr 20, 2008 8:18 am    Post subject: Reply with quote

What is the output of the following commands:
emerge --info
ls -ld /usr/src/*
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sun Apr 20, 2008 9:51 am    Post subject: Reply with quote

you aren't using hardened-compiler, are you?

in that case switch from

Quote:
[8] x86_64-pc-linux-gnu-4.2.3 *
[9] x86_64-pc-linux-gnu-4.2.3-hardenednopiessp
[10] x86_64-pc-linux-gnu-4.2.3-hardenednossp
[11] x86_64-pc-linux-gnu-4.2.3-vanilla


to

Quote:
[8] x86_64-pc-linux-gnu-4.2.3
[9] x86_64-pc-linux-gnu-4.2.3-hardenednopiessp *
[10] x86_64-pc-linux-gnu-4.2.3-hardenednossp
[11] x86_64-pc-linux-gnu-4.2.3-vanilla


otherwise

Code:
cd /usr/src/linux && chmod -R go+rX .


then try again :)
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
petty123
n00b
n00b


Joined: 17 Sep 2007
Posts: 30

PostPosted: Wed May 07, 2008 10:47 am    Post subject: Reply with quote

Try:

Code:

# export SYSSRC="/usr/src/linux" && sh /usr/portage/distfiles/NVIDIA-Linux-x86-XX.XX.XX-pkg0.run -k $(uname -r)

and follow the screen instruction.

Let me know if works.
Back to top
View user's profile Send private message
energyman76b
Advocate
Advocate


Joined: 26 Mar 2003
Posts: 2048
Location: Germany

PostPosted: Wed May 07, 2008 10:57 am    Post subject: Reply with quote

yeah, don't use the installer.

Always use the ebuilds.
_________________
Study finds stunning lack of racial, gender, and economic diversity among middle-class white males

I identify as a dirty penismensch.
Back to top
View user's profile Send private message
petty123
n00b
n00b


Joined: 17 Sep 2007
Posts: 30

PostPosted: Thu May 08, 2008 12:28 pm    Post subject: Reply with quote

energyman76b wrote:
yeah, don't use the installer.

Always use the ebuilds.


I see nothing wrong with the installer particularly for emergencies...

However if somebody really hates the installer, and believe the ebuilds are a better choice, there is an alternate sollution:

1. Remove module versioning and module CRC in the kernel, recompile it and re-install it.

2. Do: export SYSSRC="/usr/src/linux" && emerge nvidia-drivers
Back to top
View user's profile Send private message
energyman76b
Advocate
Advocate


Joined: 26 Mar 2003
Posts: 2048
Location: Germany

PostPosted: Thu May 08, 2008 1:42 pm    Post subject: Reply with quote

it is not about 'hate'.

In the past the installer liked to 'forget' files - not good.
Also, if you use the installer and later ebuilds, you will get version mismatches, which lead to all kind of problems.
And as a last point, in the past, a lot of packages did not compile against the nvidia libGL libs. Set opengl to x11 with eselect, emerge, set back, worked around that. If you use the installer you loose that.

You see, there are good reasons not to use the installer. Ever.
_________________
Study finds stunning lack of racial, gender, and economic diversity among middle-class white males

I identify as a dirty penismensch.
Back to top
View user's profile Send private message
petty123
n00b
n00b


Joined: 17 Sep 2007
Posts: 30

PostPosted: Thu May 08, 2008 2:09 pm    Post subject: Reply with quote

energyman76b wrote:
it is not about 'hate'.

In the past the installer liked to 'forget' files - not good.
Also, if you use the installer and later ebuilds, you will get version mismatches, which lead to all kind of problems.
And as a last point, in the past, a lot of packages did not compile against the nvidia libGL libs. Set opengl to x11 with eselect, emerge, set back, worked around that. If you use the installer you loose that.

You see, there are good reasons not to use the installer. Ever.


OK, you've got a lot of arguments...but I don't see your solution to the original poster's problem....
Back to top
View user's profile Send private message
energyman76b
Advocate
Advocate


Joined: 26 Mar 2003
Posts: 2048
Location: Germany

PostPosted: Thu May 08, 2008 2:28 pm    Post subject: Reply with quote

solution is a bug report at bugs.gentoo.org

EDIT:
first read this:
https://bugs.gentoo.org/show_bug.cgi?id=186490
_________________
Study finds stunning lack of racial, gender, and economic diversity among middle-class white males

I identify as a dirty penismensch.
Back to top
View user's profile Send private message
petty123
n00b
n00b


Joined: 17 Sep 2007
Posts: 30

PostPosted: Thu May 08, 2008 2:45 pm    Post subject: Reply with quote

energyman76b wrote:
solution is a bug report at bugs.gentoo.org

EDIT:
first read this:
https://bugs.gentoo.org/show_bug.cgi?id=186490


LOL....that bug report is from last year. They claimed to have made a patch that "works"....and here we are 5 months later with the same problem!

Give me a break. Nobody has the time and patience to wait for those bugzilla jokers!

Under the circumstances, prolly the installer is the best solution.


Last edited by petty123 on Thu May 08, 2008 2:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
energyman76b
Advocate
Advocate


Joined: 26 Mar 2003
Posts: 2048
Location: Germany

PostPosted: Thu May 08, 2008 2:46 pm    Post subject: Reply with quote

the installer comes without any patches at all. So no, it is not the right thing to do.

You can lol as much as you want. It just makes you look bad.
_________________
Study finds stunning lack of racial, gender, and economic diversity among middle-class white males

I identify as a dirty penismensch.
Back to top
View user's profile Send private message
petty123
n00b
n00b


Joined: 17 Sep 2007
Posts: 30

PostPosted: Thu May 08, 2008 3:00 pm    Post subject: Reply with quote

energyman76b wrote:
the installer comes without any patches at all. So no, it is not the right thing to do.

You can lol as much as you want. It just makes you look bad.


Obviously you don't do programming for living, coz you have no understanding of deadlines and fees.

I refrained myself of any personal attacks....however looks like other people here have no decency.
Back to top
View user's profile Send private message
energyman76b
Advocate
Advocate


Joined: 26 Mar 2003
Posts: 2048
Location: Germany

PostPosted: Thu May 08, 2008 3:55 pm    Post subject: Reply with quote

petty123 wrote:
energyman76b wrote:
the installer comes without any patches at all. So no, it is not the right thing to do.

You can lol as much as you want. It just makes you look bad.


Obviously you don't do programming for living, coz you have no understanding of deadlines and fees.



but you do?

then I might you remind you of thre facts:
1)you don't pay for using gentoo. There are no fees.
2)all devs are volunteers.
3)there are no deadlines because of 1&2

So what was your point again? Oh wait, you don't have any.

petty123 wrote:

I refrained myself of any personal attacks....however looks like other people here have no decency.


no, you didn't. And now you topped it. Great work.
_________________
Study finds stunning lack of racial, gender, and economic diversity among middle-class white males

I identify as a dirty penismensch.
Back to top
View user's profile Send private message
petty123
n00b
n00b


Joined: 17 Sep 2007
Posts: 30

PostPosted: Thu May 08, 2008 4:37 pm    Post subject: Reply with quote

I'm so sick of BS-ers like you, polluting various forums, writing over a thousand messages full of hot air, pretending to know everything and having an answer for everybody.

In fact all you do is to waste everybody's time and bandwidth.

From now on, please spare me of your ridiculous comments. I'm not interested!
Back to top
View user's profile Send private message
energyman76b
Advocate
Advocate


Joined: 26 Mar 2003
Posts: 2048
Location: Germany

PostPosted: Thu May 08, 2008 6:15 pm    Post subject: Reply with quote

petty123 wrote:
I'm so sick of BS-ers like you, polluting various forums, writing over a thousand messages full of hot air, pretending to know everything and having an answer for everybody.

In fact all you do is to waste everybody's time and bandwidth.

From now on, please spare me of your ridiculous comments. I'm not interested!


you know what? you don't own this place.

There was nothing wrong with my postings. You started to behave like a 5 year old. So if your little tandrum is over, we can act like adults again, ok?

The correct way for the OP is to open a bug report. Obviously the legacy driver is missing a patch
(http://www.nvnews.net/vbulletin/showthread.php?t=110088)

maybe because non of the devs involved uses such an old card and missed it. Either way, the driver or the kernel package should block each other if one does not work with the other.
_________________
Study finds stunning lack of racial, gender, and economic diversity among middle-class white males

I identify as a dirty penismensch.
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Thu May 08, 2008 7:50 pm    Post subject: Reply with quote

This is getting nowhere. Some other more experienced moderator can open it if needed. for now I lock it.

Personal affairs should stay away of the thread.

Besides that. petty123: what you suggest is completely unsupported, and you shouldn't be suggesting that to a newbie without at least a warning. You don't understand the serious implications that have had in the past using that installer instead of the ebuilds. If something breaks in long term, it will take much more to solve it than it would take to wait for a revised ebuild, becase, in first place, no one will know where the problem came from.

If a given ebuild does not work, the correct procedure is to report it.

You are free to do whatever you want, but if you do things on your own, you got to keep the pieces.

rsnfunky: Feel free to open a new thread if you need it. This one is now useless.
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Desktop Environments 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