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 ld'... 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 . |
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 nvidia.com if you are currently trying to use apt). Enjoy |
I'm running from the .run downloaded off the nvidia site. I will try using the apt drivers, but I'm not optimistic.
|
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? Thanks. |
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. |
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? |
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. |
All times are GMT -5. The time now is 06:13 PM. |