nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   what changed with the way nvidia detects kernel version? (http://www.nvnews.net/vbulletin/showthread.php?t=141873)

Tonglebeqk 11-26-09 11:32 AM

what changed with the way nvidia detects kernel version?
 
On Gentoo, emerging 190.42 works just fine. When I take that same ebuild and bump the version to 195.22, the compile always fails with the following message:

Code:

>>> Emerging (1 of 1) x11-drivers/nvidia-drivers-195.22 from unknown repo
 * NVIDIA-Linux-x86_64-195.22-pkg2.run RMD160 SHA1 SHA256 size ;-) ...                                                                              [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                              [ ok ]
 * Determining the location of the kernel source code                                                                                                     
 * Found kernel source directory:                                                                                                                         
 *    /usr/src/linux                                                                                                                                     
 * Found kernel object directory:                                                                                                                         
 *    /lib/modules/2.6.31-gentoo-r6/build                                                                                                               
 * Found sources for kernel version:                                                                                                                     
 *    2.6.31-gentoo-r6                                                                                                                                   
 * Checking for MTRR support ...                                                                                                                      [ ok ]
>>> Unpacking source...                                                                                                                                   
>>> Unpacking NVIDIA-Linux-x86_64-195.22-pkg2.run to /var/tmp/portage/x11-drivers/nvidia-drivers-195.22/work/NVIDIA-Linux-x86_64-195.22-pkg2               
>>> Source unpacked in /var/tmp/portage/x11-drivers/nvidia-drivers-195.22/work                                                                             
>>> Preparing source in /var/tmp/portage/x11-drivers/nvidia-drivers-195.22/work/NVIDIA-Linux-x86_64-195.22-pkg2 ...                                       
 * Applying NVIDIA_glx-defines.patch ...                                                                                                              [ ok ]
 * Applying NVIDIA_glx-glheader.patch ...                                                                                                            [ ok ]
 * Converting NVIDIA-Linux-x86_64-195.22-pkg2/usr/src/nv/Makefile.kbuild to use M= instead of SUBDIRS= ...                                            [ ok ]
>>> Source prepared.                                                                                                                                       
>>> Configuring source in /var/tmp/portage/x11-drivers/nvidia-drivers-195.22/work/NVIDIA-Linux-x86_64-195.22-pkg2 ...                                     
>>> Source configured.                                                                                                                                     
>>> Compiling source in /var/tmp/portage/x11-drivers/nvidia-drivers-195.22/work/NVIDIA-Linux-x86_64-195.22-pkg2 ...                                       
 * Preparing nvidia module                                                                                                                                 
make -j4 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/lib/modules/2.6.31-gentoo-r6/build HOST_CC=x86_64-pc-linux-gnu-gcc clean module                                                                                           
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. 

*** Unable to determine the target kernel version. ***

So I have to ask: did anything change as far as how nvidia detects the kernel? Even though at the beginning it looks like nvidia already detects the kernel...

I've never had an issue with bumping the ebuild version until this driver. As I said before, 190.42 still emerges fine, so I don't want to hear any "your config is screwed up" replies please :)

HelAu 11-26-09 03:00 PM

Re: what changed with the way nvidia detects kernel version?
 
1 Attachment(s)
That took me also some time ;)
I've attached a solution

Tonglebeqk 11-26-09 07:35 PM

Re: what changed with the way nvidia detects kernel version?
 
Thanks! Works just fine.

kmare 11-26-09 08:47 PM

Re: what changed with the way nvidia detects kernel version?
 
Thanx HelAu! Your hack worked fine here..

hansen 11-26-09 09:27 PM

Re: what changed with the way nvidia detects kernel version?
 
HelAU, Thank you!
++

ctr 11-27-09 04:48 PM

Re: what changed with the way nvidia detects kernel version?
 
Using this ebuild it seems libvdpau_nvidia.so is not installed, any ideas?

fldc 11-27-09 05:12 PM

Re: what changed with the way nvidia detects kernel version?
 
Quote:

Originally Posted by ctr (Post 2132261)
Using this ebuild it seems libvdpau_nvidia.so is not installed, any ideas?

Some install source paths has changed, just edit the ebuild with these changes :)

(starts at line 430, the two ${libdir}/libvdpau_nvidia.so.${sover} should read ${libdir}/vdpau/libvdpau_nvidia.so.${sover})

hansen 11-27-09 09:00 PM

Re: what changed with the way nvidia detects kernel version?
 
Quote:

Originally Posted by fldc (Post 2132265)
Some install source paths has changed, just edit the ebuild with these changes :)

(starts at line 430, the two ${libdir}/libvdpau_nvidia.so.${sover} should read ${libdir}/vdpau/libvdpau_nvidia.so.${sover})

Nice! Thank you too!

Txema 12-05-09 08:22 AM

Re: what changed with the way nvidia detects kernel version?
 
Hi, thanks for the ebuild and patch, it works like a charm, but i have a little "problem" i get this error or warning:

Quote:

!!! dolib: usr/lib32/libnvcompiler.so.195.22 does not exist
!!! dolib: usr/lib/libnvcompiler.so.195.22 does not exist
Though /usr/lib/libOpenCL.so* do are created, what do i do? simply ignore that message?

hdas 12-06-09 12:28 AM

Re: what changed with the way nvidia detects kernel version?
 
Thanks for the ARCH detection fix :).

@ Txema: For the bug that "libnvcompiler.so.195.22 does not exist", please change all the references of "libnvcompiler" in the ebuild to "libnvidia-compiler". (Figured out by peeping into installer using "--extract-only" option.)

Also, if you already emerged the ebuild before, you may want to remove the bad links in /usr/lib/nvcompiler* and /usr/lib32/nvcompiler* .

Txema 12-06-09 03:18 AM

Re: what changed with the way nvidia detects kernel version?
 
Perfect! Thanks hdas ^^


All times are GMT -5. The time now is 09:22 PM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.