Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 11-26-09, 12:32 PM   #1
Tonglebeqk
Registered User
 
Join Date: Jun 2008
Posts: 30
Default 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
Tonglebeqk is offline   Reply With Quote
Old 11-26-09, 04:00 PM   #2
HelAu
Registered User
 
Join Date: Nov 2009
Posts: 1
Default Re: what changed with the way nvidia detects kernel version?

That took me also some time
I've attached a solution
Attached Files
File Type: gz nv.tar.gz (5.2 KB, 313 views)
HelAu is offline   Reply With Quote
Old 11-26-09, 08:35 PM   #3
Tonglebeqk
Registered User
 
Join Date: Jun 2008
Posts: 30
Default Re: what changed with the way nvidia detects kernel version?

Thanks! Works just fine.
Tonglebeqk is offline   Reply With Quote
Old 11-26-09, 09:47 PM   #4
kmare
Registered User
 
Join Date: Jul 2003
Location: greece
Posts: 180
Send a message via ICQ to kmare
Default Re: what changed with the way nvidia detects kernel version?

Thanx HelAu! Your hack worked fine here..
kmare is offline   Reply With Quote
Old 11-26-09, 10:27 PM   #5
hansen
Registered User
 
Join Date: Feb 2009
Posts: 16
Default Re: what changed with the way nvidia detects kernel version?

HelAU, Thank you!
++
hansen is offline   Reply With Quote
Old 11-27-09, 05:48 PM   #6
ctr
Registered User
 
Join Date: Nov 2009
Posts: 6
Default Re: what changed with the way nvidia detects kernel version?

Using this ebuild it seems libvdpau_nvidia.so is not installed, any ideas?
ctr is offline   Reply With Quote
Old 11-27-09, 06:12 PM   #7
fldc
Registered User
 
fldc's Avatar
 
Join Date: Jun 2006
Location: Motala, Sweden
Posts: 39
Send a message via ICQ to fldc Send a message via MSN to fldc Send a message via Yahoo to fldc
Default Re: what changed with the way nvidia detects kernel version?

Quote:
Originally Posted by ctr View Post
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})
fldc is offline   Reply With Quote
Old 11-27-09, 10:00 PM   #8
hansen
Registered User
 
Join Date: Feb 2009
Posts: 16
Default Re: what changed with the way nvidia detects kernel version?

Quote:
Originally Posted by fldc View Post
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!
hansen is offline   Reply With Quote

Old 12-05-09, 09:22 AM   #9
Txema
Registered User
 
Join Date: Aug 2008
Posts: 50
Default 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?
Txema is offline   Reply With Quote
Old 12-06-09, 01:28 AM   #10
hdas
Registered User
 
Join Date: Aug 2007
Posts: 17
Default 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* .
hdas is offline   Reply With Quote
Old 12-06-09, 04:18 AM   #11
Txema
Registered User
 
Join Date: Aug 2008
Posts: 50
Default Re: what changed with the way nvidia detects kernel version?

Perfect! Thanks hdas ^^
Txema is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 01:15 PM.


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