Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 04-14-2004, 05:16 PM   #1
Registered: Sep 2003
Posts: 40

Rep: Reputation: 15
Question Nvidia module will not compile

I'm running Debian unstable with a 2.6.3 kernel. The nvidia driver will not compile correctly. The following is the error log. The appears to be a gcc problem to me, I'm running gcc-3.3. Normally if the driver doesn't like your gcc it tells you though.....

I had to remove the urls from the log.

Any ideas???? Thanks


nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Wed Apr 14 17:57:26 2004

option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
no precompiled interface: false
no ncurses color : false
query latest driver ver : false
OpenGL header files : false
no questions : false
silent : false
XFree86 install prefix : /usr/X11R6
OpenGL install prefix : /usr
Installer install prefix: /usr
kernel source path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp site :

Using: nvidia-installer ncurses user interface
-> You appear to be running in runlevel 1; this may cause problems. For exampl
e: some distributions that use devfs do not run the devfs daemon in runlevel
1, making it difficult for nvidia-installer to correctly setup the kernel mo
dule configuration files. It is recommended that you quit installation now
and switch to runlevel 3 (`telinit 3`) before installing.

Quit installation now? (select 'No' to continue installation) (Answer: No)
-> License accepted.
-> No precompiled kernel interface was found to match your kernel; would you li
ke the installer to attempt to download a kernel interface for your kernel f
rom the NVIDIA ftp site ()? (Answer: Yes)
-> No matching precompiled kernel interface was found on the NVIDIA ftp site;
this means that the installer will need to compile a kernel interface for
your kernel.
-> Kernel source path: '/lib/modules/2.6.4-1-686/build'
-> Performing cc_version_check with CC="/usr/bin/gcc-3.3".
-> Cleaning kernel module build directory.
executing: 'cd ./usr/src/nv; make clean'...
rm -f -f nv.o os-agp.o os-interface.o os-registry.o nv.o os-agp.o os-interfa
ce.o os-registry.o nvidia.mod.o
rm -f -f build-in.o nv-linux.o *.d .*.{cmd,flags}
rm -f -f nvidia.{o,ko,mod.{o,c}} nv_compiler.h *~
-> Building kernel module:
executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.4-1-686/bui
SPLIT include/linux/autoconf.h -> include/config/*
make[2]: scripts/split-include: Command not found
make[2]: *** [include/config/MARKER] Error 127
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
ERROR: Installation has failed. Please see the file
'/var/log/nvidia-installer.log' for details. You may find suggestions
on fixing installation problems in the README available on the Linux
driver download page at .
Old 04-14-2004, 06:26 PM   #2
Registered: Feb 2004
Location: New York City
Distribution: Debian
Posts: 97

Rep: Reputation: 15
You didn't mention if you were building nvidia from source or using apt. Either way you were doing it, I suggest trying the other way.

nvidia-kernel-source - NVIDIA binary kernel module source
nvidia-kernel-common - NVIDIA binary kernel module common files
nvidia-glx - NVIDIA binary XFree86 4.x driver
nvidia-glx-dev - NVIDIA binary XFree86 4.x driver development files

use the power of the apt. (or if you are currently trying to use apt). Enjoy
Old 04-15-2004, 07:41 AM   #3
Registered: Sep 2003
Posts: 40

Original Poster
Rep: Reputation: 15
I'm running from the .run downloaded off the nvidia site. I will try using the apt drivers, but I'm not optimistic.
Old 04-15-2004, 09:26 PM   #4
Registered: Sep 2003
Posts: 40

Original Poster
Rep: Reputation: 15
I tried both apt and the .run supplied by nvidia but neither were working. I've decieded that the reason is because the 2.6.4 was compiled with gcc-3.3.2 while I had CC=gcc-3.3.3. I upgraded my kernel to 2.6.5 which is compiled with gcc-3.3.3 and now the .run supplied by nvidia builds the module and it looks like it works.

My problem now is that I've changed the XFree86 file to use nvidia and it still doesn't work.

It looks to me like the module isn't getting loaded for some reason. I've tried using modprobe, but I'm not familiar enough with it. Any ideas what is going on here?

Old 04-15-2004, 09:36 PM   #5
LQ Newbie
Registered: Apr 2004
Distribution: Debian 2.6.x
Posts: 20

Rep: Reputation: 0
Mmm nvidia the nvidia way...

As root:

sh NVIDIADRIVERNAME --kernel-include-path=/usr/src/kernel-headers-2.6.3/include

eh.. that is assuming you downloaded the kernel-headers and source from apt, which you need, to install the nvidia way...

apt-get install kernel-source-2.6.3
apt-get install kernel-headers-2.6.3

Remember to uname -r to find the EXACT kernel name to get for your files, then run with the command above.

But, it seems you are past that...

edit your XFree86-4

Comment out the lines:
Load "GLI"
Load "GLcore"

Change the driver to be:
Driver "nvidia"

Save and exit.

If the nvidia driver is not running, modprobe nvidia. (You can check if it is loaded by doing a "lsmod" at a prompt and see if its listed) If it loads it, you will see it load.. if it drops you to a prompt again its already loaded.

Last edited by debnuxian; 04-15-2004 at 09:43 PM.
Old 04-16-2004, 04:44 PM   #6
Registered: Sep 2003
Posts: 40

Original Poster
Rep: Reputation: 15
Using lsmod showed me the module was not loaded so I modprobe nvidia and then lsmod shows me that the module is now loaded.

However, X doesn't not work. My config file is fine.

The strange thing about this is I got the nvidia driver to work by running the .run from nvidia and then startx.

If I reboot though it doesn't work......

I have no idea what's going on. When I reran the nvidia .run I had already loaded the module using modprobe. If I reboot though it's broke again and I can't get it to work unless I run the .run again.

Any ideas?
Old 04-18-2004, 09:48 AM   #7
LQ Newbie
Registered: Apr 2004
Distribution: Debian 2.6.x
Posts: 20

Rep: Reputation: 0
Its not broke because it didnt load, You need to add it into your /etc/modules so upon boot it automatically loads the module.

Also it is probably not starting x due to another problem (e.g. misconfigured XFree86-4 file) Copy and past your /var/log/XFree86.0.log ( the log name may be different on your machine) and let us look at it.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
(EE) NVIDIA(0): Failed to initialize the nvidia kernel module necbrownie Slackware 18 06-16-2006 02:20 AM
Kernel compile breaks both nvidia driver module and dirver installation darkleaf Linux - Software 9 08-19-2004 04:24 PM
'nvidia' module doesn't persist for nVidia GeForce2 DDR card dude_a_b_c Mandriva 8 05-19-2004 02:50 PM
(EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module! Stan the caddy Linux - Hardware 8 01-18-2004 04:21 PM
(EE) NVIDIA (0) Failed to initialize the NVIDIA kernel module Isjhe Mandriva 14 09-25-2003 09:29 PM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:20 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration