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

Newegg Daily Deals

Reply
 
Thread Tools
Old 10-06-04, 09:24 AM   #1
omry_y
Registered User
 
Join Date: Oct 2004
Posts: 11
Default Compiling linux drivers on Debian

I am having problems to compile LINUX kernel drivers.
I extracted then to a directory under ~/download/, and when I try to make them, I get a long list of compilation errors, which begins with what follows.
what am I missing?

omry@omry:~/download/NVIDIA_kernel-1.0-3123$ make
cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wcast-qual -Wno-multichar -O -MD -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -DNTRM -D_GNU_SOURCE -DRM_HEAPMGR -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=3123 -DNV_UNIX -DNV_LINUX -DNVCPU_X86 -I. -I/usr/src/linux/include -Wno-cast-qual nv.c
In file included from /usr/include/asm/smp.h:18,
from /usr/include/linux/smp.h:17,
from /usr/include/linux/sched.h:23,
from /usr/include/linux/module.h:10,
from nv-linux.h:28,
from nv.c:14:
omry_y is offline   Reply With Quote
Old 10-06-04, 11:29 AM   #2
Soluzar
Registered User
 
Join Date: Oct 2004
Posts: 34
Default Re: Compiling linux drivers on Debian

May I ask you frankly: Are you wedded to Debian? That is to say, would you rather stick with Debian than have everything work? If not, try switching to Gentoo. The driver installation process on gentoo is one single command.
Code:
emerge nvidia-kernel nvidia-glx
Then it's done. You still need to setup your config file, and resolve any kernel issues that you may have, but it's a lot less painfull than under some distros for my money.
Soluzar is offline   Reply With Quote
Old 10-06-04, 01:21 PM   #3
Lithorus
Registered User
 
Lithorus's Avatar
 
Join Date: Sep 2004
Posts: 783
Default Re: Compiling linux drivers on Debian

You seems to be missing the actual error message.

Also the driver you are compiling seems to be quite old.
Lithorus is offline   Reply With Quote
Old 10-06-04, 01:22 PM   #4
Lithorus
Registered User
 
Lithorus's Avatar
 
Join Date: Sep 2004
Posts: 783
Default Re: Compiling linux drivers on Debian

Quote:
Originally Posted by Soluzar
May I ask you frankly: Are you wedded to Debian? That is to say, would you rather stick with Debian than have everything work? If not, try switching to Gentoo. The driver installation process on gentoo is one single command.
Code:
emerge nvidia-kernel nvidia-glx
Then it's done. You still need to setup your config file, and resolve any kernel issues that you may have, but it's a lot less painfull than under some distros for my money.
Lol, you HAVE to be kidding, right?

I tried gentoo not long ago and I returned to debian because THERE everything worked. Please, the guy is asking for help and leave your zealoting elsewhere...
Lithorus is offline   Reply With Quote
Old 10-06-04, 01:59 PM   #5
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: Compiling linux drivers on Debian

@omry_y: you're attempting to install a very old NVIDIA driver release, please try 1.0-6111 instead. If this also fails, please attach the complete nvidia-installer log file.
zander is offline   Reply With Quote
Old 10-06-04, 02:23 PM   #6
Soluzar
Registered User
 
Join Date: Oct 2004
Posts: 34
Default Re: Compiling linux drivers on Debian

Quote:
Originally Posted by Lithorus
Lol, you HAVE to be kidding, right?

I tried Gentoo not long ago and I returned to debian because THERE everything worked. Please, the guy is asking for help and leave your zealoting elsewhere...
That _is_ help. I used debian for a long time. NOTHING EVER WORKED. I couldn't get ALSA, or the nvidia driver to work. It's not 'zealoting' -- I just know that with Debian's religious attitude to OSS/FS the nvidia driver will always be a problem.

For me, everything on my Gentoo box works as well as can ever be expected. Plus I sort of like having versions of things like Gnome that were released this century.
Soluzar is offline   Reply With Quote
Old 10-07-04, 02:16 AM   #7
gabuzo
Registered User
 
gabuzo's Avatar
 
Join Date: Sep 2004
Posts: 15
Lightbulb Re: Compiling linux drivers on Debian

Quote:
Originally Posted by omry_y
omry@omry:~/download/NVIDIA_kernel-1.0-3123$ make
As someone told you you are trying to install a pretty old version of the Nvidia drivers. You should try to get the latest version. Beside this, packages for the nvidia are available through apt-get at least for testing (sarge) and unstable (sid).
__________________
Avatar by the GruikMaster
gabuzo is offline   Reply With Quote
Old 10-07-04, 02:23 AM   #8
gabuzo
Registered User
 
gabuzo's Avatar
 
Join Date: Sep 2004
Posts: 15
Angry Re: Compiling linux drivers on Debian

Quote:
Originally Posted by Soluzar
That _is_ help.
I do know that Gentoo is a killing distro and that Debian (especially the stable branch) may be frustrating if you want you have the bleeding edge features. However if you wanna help, how about mentionning that he was trying to install a really old version of the drivers first?
__________________
Avatar by the GruikMaster
gabuzo is offline   Reply With Quote

Old 10-07-04, 05:16 AM   #9
Soluzar
Registered User
 
Join Date: Oct 2004
Posts: 34
Default Re: Compiling linux drivers on Debian

Quote:
Originally Posted by gabuzo
I do know that Gentoo is a killing distro and that Debian (especially the stable branch) may be frustrating if you want you have the bleeding edge features. However if you wanna help, how about mentionning that he was trying to install a really old version of the drivers first?
OK. sure. Try this. On Debian, since they have their religious attitude towards non-OSS/FS, there's no automatic installation for the drivers. This means that they won't be automatically updated, to the most recent version.

On Gentoo, there is an ebuild, which (as standard) installs a 5x.xx version. That's newer than what the OP was using. Also, if you unmask the newer version in package.keywords, there is a new ebuild for 6111. It works flawlessly. First time, every time. It is by far and away the easiest distro I have found to install the drivers on. I have tried RH9, SUSE, Mandrake, Debian, and Gentoo, BTW. This is not zealotry for me. I could care less if you or anyone else wanna use Debian. Or even the toy operating systems that MS put out. OTOH if you have having problems installing the drivers under linux, then gentoo is one cure.

As for the older version, some people require to install an old version. On some systems, the new drivers won't work at all.

I'm not getting involved in a protracted debate, so I'm gonna leave it here. Next time I see someone struggling along with a 20th century OS, I'll just ignore it.
Soluzar is offline   Reply With Quote
Old 10-07-04, 08:15 AM   #10
Lithorus
Registered User
 
Lithorus's Avatar
 
Join Date: Sep 2004
Posts: 783
Default Re: Compiling linux drivers on Debian

Quote:
Originally Posted by Soluzar
OK. sure. Try this. On Debian, since they have their religious attitude towards non-OSS/FS, there's no automatic installation for the drivers. This means that they won't be automatically updated, to the most recent version.
I think you have misunderstood apart of the debian "religion". For things like nvidia drivers and such there is the non-free section and there is also a nvidia-glx and a nvidia-kernel package, although I tend to use my own build kernels so I just use the nvidia installer.

Also there is nothing stopping you from building your own apt-source with some prebuild drivers. However this is where debian and gentoo differs. Gentoo's strength (and weaknes) lies in the build-from-source and building a driver fits perfectly in here. Debian also have the apt-source, but I haven't tried that. The standard debian way of installing drivers is depending mostly on prebuilt stuff.

Anyway there is a debian how to here http://home.comcast.net/~andrex/Debi...dia/index.html
Lithorus is offline   Reply With Quote
Old 10-07-04, 10:19 AM   #11
omry_y
Registered User
 
Join Date: Oct 2004
Posts: 11
Default Re: Compiling linux drivers on Debian

Quote:
Originally Posted by Soluzar
May I ask you frankly: Are you wedded to Debian? That is to say, would you rather stick with Debian than have everything work? If not, try switching to Gentoo. The driver installation process on gentoo is one single command.
Code:
emerge nvidia-kernel nvidia-glx
Then it's done. You still need to setup your config file, and resolve any kernel issues that you may have, but it's a lot less painfull than under some distros for my money.

sorry for the late reply.
first of all, I tried to install gentoo before I tried debian, it seemed nice, only I never got passed the internet connection configuration.
so I gave up, and now I am in debian.
not going to change that, I am sure its possible to install the drivers there.
omry_y is offline   Reply With Quote
Old 10-07-04, 10:26 AM   #12
omry_y
Registered User
 
Join Date: Oct 2004
Posts: 11
Default Re: Compiling linux drivers on Debian

Hi All, Thanks for your replies.
It appears that I was using an ancient driver, not because I need to - simply because that what I happen to land over from google.
so, I took the new drivers (NVIDIA-Linux-x86-1.0-6111-pkg1.run), which is still giving me problems:
my kernel version is 2.6.7-1-386, so I got kernel-source-2.6.7 from apt.
now, it gave me the file '/usr/src/kernel-source-2.6.7.tar.bz2'
I tried to run the installer, and it said I can't find the source to the kernel - so I guess I should uncomress the source somewhere.
the problem is that I was not able to find where I am supposed to unpack it.
guessed several locations, but I think its time to stop guessing.
so, where should I put it?
omry_y 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
nVidia Linux drivers with Linux on Mac, help? Thetargos NVIDIA Linux 0 05-13-12 12:52 PM
EA gains Linux Attention. Better Quality Drivers Please! Ruinairas NVIDIA Linux 4 05-09-12 01:12 PM
Installing nForce drivers on Debian 3.0 Doink NVIDIA Linux 4 09-14-02 08:34 PM
Debian + Nvidia drivers, bad compilation Prodigy NVIDIA Linux 16 09-10-02 07:13 PM
Debian Woody 3.0r0 and Problems with Geforce drivers vogt NVIDIA Linux 3 09-09-02 02:07 PM

All times are GMT -5. The time now is 09:35 AM.


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