View previous topic :: View next topic |
Author |
Message |
rsnfunky Tux's lil' helper
Joined: 30 Dec 2007 Posts: 77
|
Posted: Sat Apr 19, 2008 8:39 am Post subject: Compilation of Nvidia drivers fail |
|
|
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 |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Sat Apr 19, 2008 9:54 am Post subject: |
|
|
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 |
|
|
rsnfunky Tux's lil' helper
Joined: 30 Dec 2007 Posts: 77
|
Posted: Sat Apr 19, 2008 3:38 pm Post subject: |
|
|
Yes the headers and kernel-source is there. |
|
Back to top |
|
|
ksp7498 Apprentice
Joined: 08 Jun 2006 Posts: 225 Location: North Carolina - US
|
Posted: Sat Apr 19, 2008 9:01 pm Post subject: |
|
|
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 |
|
|
Evildad Guru
Joined: 15 Apr 2004 Posts: 475
|
Posted: Sat Apr 19, 2008 10:30 pm Post subject: |
|
|
Had a similar problem with nvidia-drivers today. Only the Version 169.12 compiled and worked for me |
|
Back to top |
|
|
rsnfunky Tux's lil' helper
Joined: 30 Dec 2007 Posts: 77
|
Posted: Sun Apr 20, 2008 4:50 am Post subject: |
|
|
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 |
|
|
AllenJB Veteran
Joined: 02 Sep 2005 Posts: 1285
|
Posted: Sun Apr 20, 2008 8:18 am Post subject: |
|
|
What is the output of the following commands:
emerge --info
ls -ld /usr/src/* |
|
Back to top |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
Posted: Sun Apr 20, 2008 9:51 am Post subject: |
|
|
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 |
|
Back to top |
|
|
petty123 n00b
Joined: 17 Sep 2007 Posts: 30
|
Posted: Wed May 07, 2008 10:47 am Post subject: |
|
|
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 |
|
|
energyman76b Advocate
Joined: 26 Mar 2003 Posts: 2048 Location: Germany
|
Posted: Wed May 07, 2008 10:57 am Post subject: |
|
|
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 |
|
|
petty123 n00b
Joined: 17 Sep 2007 Posts: 30
|
Posted: Thu May 08, 2008 12:28 pm Post subject: |
|
|
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 |
|
|
energyman76b Advocate
Joined: 26 Mar 2003 Posts: 2048 Location: Germany
|
Posted: Thu May 08, 2008 1:42 pm Post subject: |
|
|
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 |
|
|
petty123 n00b
Joined: 17 Sep 2007 Posts: 30
|
Posted: Thu May 08, 2008 2:09 pm Post subject: |
|
|
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 |
|
|
energyman76b Advocate
Joined: 26 Mar 2003 Posts: 2048 Location: Germany
|
Posted: Thu May 08, 2008 2:28 pm Post subject: |
|
|
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 |
|
|
petty123 n00b
Joined: 17 Sep 2007 Posts: 30
|
Posted: Thu May 08, 2008 2:45 pm Post subject: |
|
|
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 |
|
|
energyman76b Advocate
Joined: 26 Mar 2003 Posts: 2048 Location: Germany
|
Posted: Thu May 08, 2008 2:46 pm Post subject: |
|
|
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 |
|
|
petty123 n00b
Joined: 17 Sep 2007 Posts: 30
|
Posted: Thu May 08, 2008 3:00 pm Post subject: |
|
|
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 |
|
|
energyman76b Advocate
Joined: 26 Mar 2003 Posts: 2048 Location: Germany
|
Posted: Thu May 08, 2008 3:55 pm Post subject: |
|
|
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 |
|
|
petty123 n00b
Joined: 17 Sep 2007 Posts: 30
|
Posted: Thu May 08, 2008 4:37 pm Post subject: |
|
|
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 |
|
|
energyman76b Advocate
Joined: 26 Mar 2003 Posts: 2048 Location: Germany
|
Posted: Thu May 08, 2008 6:15 pm Post subject: |
|
|
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 |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Thu May 08, 2008 7:50 pm Post subject: |
|
|
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 |
|
|
|