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

Newegg Daily Deals

Reply
 
Thread Tools
Old 05-31-11, 10:52 PM   #25
RUSTY
Registered User
 
Join Date: Dec 2002
Posts: 44
Default Re: Driver fails to compile with gcc 4.6.0 on kernel 2.6.39-git11/-git12

Quote:
Originally Posted by gun26 View Post
Sorry if the patch is giving people problems. I diffed in the kernel directory because the PKGBUILD (a.k.a. build script) for my Arch distro changes to that directory to compile the Nvidia module. It doesn't directly use the Nvidia installer.

For those using the Nvidia installer, here are step by step instructions, assuming both NVIDIA-Linux-x86_64-270.41.19.run (or whatever version you're using - sub in the right name if necessary in the instructions) and kernel-3.0-rc1.patch.txt are in your home directory, and that you use sudo to run the Nvidia installer:
Code:
$ sh .NVIDIA-Linux-x86_64-270.41.19.run --extract-only
$ cd NVIDIA-Linux-x86_64-270.41.19.run/kernel
$ cat ../../kernel-3.0-rc1.patch.txt | patch -p0
$ cd ..
$ sudo ./nvidia-installer
I just tried it and still get the same message I posted above.
RUSTY is offline   Reply With Quote
Old 06-01-11, 08:16 AM   #26
gun26
Registered User
 
Join Date: Oct 2004
Posts: 17
Default Re: Driver fails to compile with gcc 4.6.0 on kernel 2.6.39-git11/-git12

Rusty, when you apply the patch are you seeing output from the patch program? It should respond like this when you apply the patch:
Code:
patching file conftest.h
patching file nv-linux.h
Assuming the patch is being applied properly (you could also try editing conftest.h and nv-linux.h from the posts above - it's a change to one line for each file - just to be sure) there must be something else going on. What distro are you on, and how did you build and install your kernel? The sources should be available and there should be a link called /lib/modules/<whatever-the-version-is>/build that points to the source directory.
gun26 is offline   Reply With Quote
Old 06-02-11, 11:30 AM   #27
RUSTY
Registered User
 
Join Date: Dec 2002
Posts: 44
Default Re: Driver fails to compile with gcc 4.6.0 on kernel 2.6.39-git11/-git12

sorry for delay.
I run ubuntu 10.10 x64. when patching the same message came up "patching file conftest.h
patching file nv-linux.h" so I guess it patched those files. I didn't check those files. Where would I insert those lines and should they substitute some other ones ?
I used kernelcheck to compile my kernel and headers.
RUSTY is offline   Reply With Quote
Old 07-22-11, 05:40 PM   #28
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

Anyone have any luck installing the 275* or 280* drivers with Linux 3.0? Personally it still doesn't install even though it looks the newer drivers provide support for compiling against 3.0 when looking at the nv-linux.h.
__________________
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-22-11, 07:58 PM   #29
siddly
Registered User
 
Join Date: Jul 2003
Location: West Midlands, UK
Posts: 125
Default Re: Driver fails to compile with gcc 4.6.0 on kernel 2.6.39-git11/-git12

Quote:
Originally Posted by Dizzle7677 View Post
Anyone have any luck installing the 275* or 280* drivers with Linux 3.0? Personally it still doesn't install even though it looks the newer drivers provide support for compiling against 3.0 when looking at the nv-linux.h.
Sure, no problem with 3.0-rc kernels or the new 3.0 kernel.
# uname -r
3.0.0-smp
# cat /proc/driver/nvidia/version
NVRM version: NVIDIA UNIX x86_64 Kernel Module 280.04 Fri Jun 24 10:26:51 PDT 2011
GCC version: gcc version 4.6.1 20110701 [gcc-4_6-branch revision 175746] (SUSE Linux)

What's the error?
siddly is offline   Reply With Quote
Old 07-23-11, 02:31 PM   #30
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

Well here's my nvidia-installer.log which probably doesn't provide much info. /build and /source both point to the linux-headers in /usr/src.
Attached Files
File Type: log nvidia-installer.log (4.9 KB, 77 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 07-23-11, 05:12 PM   #31
siddly
Registered User
 
Join Date: Jul 2003
Location: West Midlands, UK
Posts: 125
Default Re: Driver fails to compile with gcc 4.6.0 on kernel 2.6.39-git11/-git12

I can't remember which was the last 275 and with what kernel I used as that was some time ago.
With a 3.0 kernel try 280.04 or 280.11 which I am now running.
# uname -r
3.0.0-git2-smp
# cat /proc/driver/nvidia/version
NVRM version: NVIDIA UNIX x86_64 Kernel Module 280.11 Thu Jul 21 13:54:36 PDT 2011
GCC version: gcc version 4.6.1 20110701 [gcc-4_6-branch revision 175746] (SUSE Linux)
siddly is offline   Reply With Quote
Old 07-23-11, 09:35 PM   #32
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

It would be nice if there was a verbose option in the installer to see what was going on and why it bombs out.
__________________
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-23-11, 11:47 PM   #33
siddly
Registered User
 
Join Date: Jul 2003
Location: West Midlands, UK
Posts: 125
Default Re: Driver fails to compile with gcc 4.6.0 on kernel 2.6.39-git11/-git12

There have been 3 releases since 275.19 and they all work. Certainly 280.04 and 280.11 work with 3.0 kernels.
siddly is offline   Reply With Quote
Old 07-24-11, 07:42 PM   #34
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 siddly View Post
There have been 3 releases since 275.19 and they all work. Certainly 280.04 and 280.11 work with 3.0 kernels.
They work for you personally. If I can't build the kernel module in an Ubuntu/Debian system then there is a problem somewhere either in my personal custom built kernel or how it interacts with the headers,etc. This is what I'd like to get more information about in the log file. Are they listening?
__________________
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, 02:58 AM   #35
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

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.
weltall is offline   Reply With Quote
Old 07-25-11, 03:25 AM   #36
RUSTY
Registered User
 
Join Date: Dec 2002
Posts: 44
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.
is there a way to delete the source folder later and still be able to install nvidia driver ?
RUSTY 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 09:59 PM.


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