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

Newegg Daily Deals

Reply
 
Thread Tools
Old 07-25-11, 11:45 AM   #37
weltall
Registered User
 
Join Date: Feb 2007
Posts: 115
Default Re: Driver fails to compile with gcc 4.6.0 on kernel 2.6.39-git11/-git12

No idea back some years ago I attempted it and it became impossible to build any module. I'd consider it a bug (or maybe design decision?) of the tool. As I didn't try any more I don't know if it got fixed since.

For sure deploying the standard debian procedure will allow to avoid them, at the cost of an higher complexity.
weltall is offline   Reply With Quote
Old 07-25-11, 09:20 PM   #38
Dizzle7677
Registered User
 
Dizzle7677's Avatar
 
Join Date: May 2008
Location: Relativity
Posts: 194
Default Re: Driver fails to compile with gcc 4.6.0 on kernel 2.6.39-git11/-git12

Quote:
Originally Posted by RUSTY View Post
is there a way to delete the source folder later and still be able to install nvidia driver ?
'Source folder' meaning the directory where you actually built the kernel? If you built and installed the headers,modules,etc and they are in /usr/src then you have no need for the directory where you built the linux source from.
__________________
Elephants can fly but they have no reason to.
------------------------------------------
Phenom II X3 720 @ 3.5Ghz | Asus M4A785-M | 2 Gig Crucial DDR2 @ 960 Mhz | GeForce GT 440 1024 MB | Linux 3.6.1 / Ubuntu 12.04 / W.I.N.E v1.5.14
Dizzle7677 is offline   Reply With Quote
Old 07-25-11, 09:27 PM   #39
Dizzle7677
Registered User
 
Dizzle7677's Avatar
 
Join Date: May 2008
Location: Relativity
Posts: 194
Default Re: Driver fails to compile with gcc 4.6.0 on kernel 2.6.39-git11/-git12

Quote:
Originally Posted by weltall View Post
It works here with ubuntu/debian and using vanilla kernels builds with make-kpkg (installed headers/image and avoided deleting the source folder which was used to build it) using 280.* series you might give a try to this solution. Personally I'd start by trying 280.x even though by checking driver sources it seems the required patches are in place for the current stable.
Actually here's my handy-dandy script for building linux kernels for everyone with an ubuntu system. Adjust to your needs and system.
Attached Files
File Type: txt build_kernel.txt (2.3 KB, 119 views)
__________________
Elephants can fly but they have no reason to.
------------------------------------------
Phenom II X3 720 @ 3.5Ghz | Asus M4A785-M | 2 Gig Crucial DDR2 @ 960 Mhz | GeForce GT 440 1024 MB | Linux 3.6.1 / Ubuntu 12.04 / W.I.N.E v1.5.14
Dizzle7677 is offline   Reply With Quote
Old 08-17-11, 04:18 PM   #40
Dizzle7677
Registered User
 
Dizzle7677's Avatar
 
Join Date: May 2008
Location: Relativity
Posts: 194
Default Re: Driver fails to compile with gcc 4.6.0 on kernel 2.6.39-git11/-git12

Finally got the nvidia modules(280.13) to build and install on 3.1.0-rc2 by the changing the relevant portion in {nvidia driver}/kernel/nv-linux.h to the below:

Code:
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 7)
#  error This driver does not support 2.4 kernels older than 2.4.7!
#elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 0)
#  define KERNEL_2_4
#elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0)
#  error This driver does not support 2.5 kernels!
/*#elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 7, 0)*/
#elif LINUX_VERSION_CODE < KERNEL_VERSION(4, 0, 0)
#  define KERNEL_2_6
#else
#  error This driver does not support development kernels!
#endif
Got this tip from looking at a launchpad patch for the driver to build on Linux 3.0.
__________________
Elephants can fly but they have no reason to.
------------------------------------------
Phenom II X3 720 @ 3.5Ghz | Asus M4A785-M | 2 Gig Crucial DDR2 @ 960 Mhz | GeForce GT 440 1024 MB | Linux 3.6.1 / Ubuntu 12.04 / W.I.N.E v1.5.14
Dizzle7677 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 06:18 AM.


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