Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I just installed a Debian Woody, and have problems playing dvd: "high amount of dropped frames". Searching over there a solution could be installing the drivers for the video card.
So downloaded the nvidia driver, run the installer and get the following error message: "unable to build nvidia module"
In /var/log/nvidia-installer.log have the following:
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
no backup : false
kernel module only : false
sanity : false
add this kernel : false
no runlevel check : false
no network : false
no ABI note : false
no RPMs : false
force tls : (not specified)
force compat32 tls : (not specified)
X install prefix : /usr/X11R6
OpenGL install prefix : /usr
compat32 install prefix : (not specified)
installer install prefix: /usr
utility install prefix : /usr
kernel name : (not specified)
kernel include path : (not specified)
kernel source path : (not specified)
kernel output path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp mirror : ftp://download.nvidia.com
RPM file list : (not specified)
Using: nvidia-installer ncurses user interface
-> 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 (ftp://download.nvidia.com)? (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.7/build'
-> Performing CC test with CC="cc".
-> Performing rivafb check.
-> Cleaning kernel module build directory.
executing: 'cd ./usr/src/nv; make clean'...
rm -f -f nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv.o nv-vm.o os-
agp.o os-interface.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 *~
rm -f -rf .tmp_versions
-> Building kernel module:
executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.7/build SYS
OUT=/lib/modules/2.6.7/build'...
NVIDIA: calling KBUILD...
make CC=cc KBUILD_VERBOSE=1 -C /lib/modules/2.6.7/build SUBDIRS=/tmp/selfgz
2289/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv modules
Makefile:434: .config: No such file or directory
mkdir -p /tmp/selfgz2289/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/.tmp_vers
ions
make -f scripts/Makefile.build obj=/tmp/selfgz2289/NVIDIA-Linux-x86-1.0-7174
-pkg1/usr/src/nv
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /tmp/selfgz2289/NVI
DIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv_compiler.h
cc -Wp,-MD,/tmp/selfgz2289/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/.nv.o
.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -Wall -Wstrict-pro
totypes -Wno-trigraphs -fno-strict-aliasing -fno-common -pipe -msoft-float -
mpreferred-stack-boundary=2 -Iinclude/asm-i386/mach-default -O2 -fomit-fra
me-pointer -I/tmp/selfgz2289/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv -Wal
l -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses
-Wpointer-arith -Wno-multichar -Werror -O -fno-common
-MD -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KER
NEL__ -DMODULE -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMO
DULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=7174 -DNV_U
NIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -UDEBUG -U_DEBUG -DNDEBU
G -DNV_REMAP_PAGE_RANGE_5_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_PCI_DIS
ABLE_DEVICE_PRESENT -DNV_CLASS_SIMPLE_CREATE_PRESENT -DNV_VMAP_4_PRESENT -D
MODULE -DKBUILD_BASENAME=nv -DKBUILD_MODNAME=nvidia -c -o /tmp/selfgz2289/NV
IDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.o /tmp/selfgz2289/NVIDIA-Linux-x8
6-1.0-7174-pkg1/usr/src/nv/nv.c
In file included from include/linux/list.h:7,
from include/linux/wait.h:14,
from include/asm/semaphore.h:41,
from include/linux/sched.h:18,
from include/linux/module.h:10,
from /tmp/selfgz2289/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src
/nv/nv-linux.h:46,
from /tmp/selfgz2289/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src
/nv/nv.c:14:
include/linux/prefetch.h: In function `prefetch_range':
include/linux/prefetch.h:62: warning: pointer of type `void *' used in arith
metic
cc -Wp,-MD,/tmp/selfgz2289/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/.nv-v
m.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -Wall -Wstrict-
prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -pipe -msoft-floa
t -mpreferred-stack-boundary=2 -Iinclude/asm-i386/mach-default -O2 -fomit-
frame-pointer -I/tmp/selfgz2289/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv -
Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparenthe
ses -Wpointer-arith -Wno-multichar -Werror -O -fno-common -MD -Wsign-com
pare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE
-DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR
_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=7174 -DNV_UNIX -DNV_LINUX
-DNV_INT64_OK -DNVCPU_X86 -UDEBUG -U_DEBUG -DNDEBUG -DNV_REMAP_PAGE
_RANGE_5_
PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_PCI_DISABLE_DEVICE_PRESENT -DNV_C
LASS_SIMPLE_CREATE_PRESENT -DNV_VMAP_4_PRESENT -DMODULE -DKBUILD_BASENAME=n
v_vm -DKBUILD_MODNAME=nvidia -c -o /tmp/selfgz2289/NVIDIA-Linux-x86-1.0-7174
-pkg1/usr/src/nv/nv-vm.o /tmp/selfgz2289/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/
src/nv/nv-vm.c
In file included from include/linux/list.h:7,
from include/linux/wait.h:14,
from include/asm/semaphore.h:41,
from include/linux/sched.h:18,
from include/linux/module.h:10,
from /tmp/selfgz2289/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src
/nv/nv-linux.h:46,
from /tmp/selfgz2289/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src
/nv/nv-vm.c:14:
include/linux/prefetch.h: In function `prefetch_range':
include/linux/prefetch.h:62: warning: pointer of type `void *' used in arith
metic
cc -Wp,-MD,/tmp/selfgz2289/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/.os-a
gp.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -Wall -Wstrict
-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -pipe -msoft-flo
at -mpreferred-stack-boundary=2 -Iinclude/asm-i386/mach-default -O2 -fomit
-frame-pointer -I/tmp/selfgz2289/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv
-Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparenth
eses -Wpointer-arith -Wno-multichar -Werror -O -fno-common -MD -Wsign-co
mpare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE
-DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR
_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=7174 -DNV_UNIX -DNV_LINUX
-DNV_INT64_OK -DNVCPU_X86 -UDEBUG -U_DEBUG -DNDEBUG -DNV_REMAP_PAGE
_RANGE_5_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_PCI_DISABLE_DEVICE_PRESE
NT -DNV_CLASS_SIMPLE_CREATE_PRESENT -DNV_VMAP_4_PRESENT -DMODULE -DKBUILD_B
ASENAME=os_agp -DKBUILD_MODNAME=nvidia -c -o /tmp/selfgz2289/NVIDIA-Linux-x8
6-1.0-7174-pkg1/usr/src/nv/os-agp.o /tmp/selfgz2289/NVIDIA-Linux-x86-1.0-717
4-pkg1/usr/src/nv/os-a
gp.c
In file included from include/linux/list.h:7,
from include/linux/wait.h:14,
from include/asm/semaphore.h:41,
from include/linux/sched.h:18,
from include/linux/module.h:10,
from /tmp/selfgz2289/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src
/nv/nv-linux.h:46,
from /tmp/selfgz2289/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src
/nv/os-agp.c:24:
include/linux/prefetch.h: In function `prefetch_range':
include/linux/prefetch.h:62: warning: pointer of type `void *' used in arith
metic
cc -Wp,-MD,/tmp/selfgz2289/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/.os-i
nterface.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -Wall -W
strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -pipe -mso
ft-float -mpreferred-stack-boundary=2 -Iinclude/asm-i386/mach-default -O2
-fomit-frame-pointer -I/tmp/selfgz2289/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/s
rc/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts
-Wparentheses -Wpointer-arith -Wno-multichar -Werror -O -fno-common -MD
-Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__
-DMODULE -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE
-DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=7174 -DNV_UNIX
-DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -UDEBUG -U_DEBUG -DNDEBUG -DNV
_REMAP_PAGE_RANGE_5_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_PCI_DISABLE_D
EVICE_PRESENT -DNV_CLASS_SIMPLE_CREATE_PRESENT -DNV_VMAP_4_PRESENT -DMODULE
-DKBUILD_BASENAME=os_interface -DKBUILD_MODNAME=nvidia -c -o /tmp/selfgz2289
/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/os-interface.o /tmp/selfgz2289/NV
IDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/os-interface.c
In file included from include/linux/list.h:7,
from include/linux/wait.h:14,
from include/asm/semaphore.h:41,
from include/linux/sched.h:18,
from include/linux/module.h:10,
from /tmp/selfgz2289/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src
/nv/nv-linux.h:46,
from /tmp/selfgz2289/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src
/nv/os-interface.c:26:
include/linux/prefetch.h: In function `prefetch_range':
include/linux/prefetch.h:62: warning: pointer of type `void *' used in arith
metic
cc -Wp,-MD,/tmp/selfgz2289/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/.os-r
egistry.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -Wall -Ws
trict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -pipe -msof
t-float -mpreferred-stack-boundary=2 -Iinclude/asm-i386/mach-default -O2 -
fomit-frame-pointer -I/tmp/selfgz2289/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/sr
c/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wpa
rentheses -Wpointer-arith -Wno-multichar -Werror -O -fno-common -MD -Wsi
gn-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMO
DULE -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV
_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVE
L=7174 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -UDEBUG -U
_DEBUG -DNDEBUG -DNV_REMAP_PAGE_RANGE_5_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESEN
T -DNV_PCI_DISABLE_DEVICE_PRESENT -DNV_CLASS_SIMPLE_CREATE_PRESENT -DNV_VMAP
_4_PRESENT -DMODULE -DKBUILD_BASENAME=os_registry -DKBUILD_MODNAME=nvidia -
c -o /tmp/selfgz2289/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/os-registry.o
/tmp/selfgz2289/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/os-registry.c
In file included from include/linux/list.h:7,
from include/linux/wait.h:14,
from include/asm/semaphore.h:41,
from include/linux/sched.h:18,
from include/linux/module.h:10,
from /tmp/selfgz2289/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src
/nv/nv-linux.h:46,
from /tmp/selfgz2289/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src
/nv/os-registry.c:14:
include/linux/prefetch.h: In function `prefetch_range':
include/linux/prefetch.h:62: warning: pointer of type `void *' used in arith
metic
ld -m elf_i386 -r -o /tmp/selfgz2289/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/s
rc/nv/nvidia.o /tmp/selfgz2289/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv-
kernel.o /tmp/selfgz2289/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv.o /tmp
/selfgz2289/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/nv-vm.o /tmp/selfgz228
9/NVIDIA-Linux-x86-1.0-7174-pkg1/usr/src/nv/os-agp.o /tmp/selfgz2289/NVIDIA-
Linux-x86-1.0-7174-pkg1/usr/src/nv/os-interface.o /tmp/selfgz2289/NVIDIA-Lin
ux-x86-1.0-7174-pkg1/usr/src/nv/os-registry.o
Building modules, stage 2.
make -rR -f /usr/src/linux-2.6.7/scripts/Makefile.modpost
/usr/src/linux-2.6.7/scripts/Makefile.modpost:38: .config: No such file or d
irectory
make[3]: *** No rule to make target `.config'. Stop.
make[2]: *** [modules] Error 2
NVIDIA: left KBUILD.
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 www.nvidia.com.
/usr/src/linux-2.6.7/scripts/Makefile.modpost:38: .config: No such file or d
irectory
You don't have a .config file. This is the kernel configuration file. Look in the /boot directory. There may be a copy there with the version that matches your kernel version. It will probably be called /boot/config-2.6.7
Sometimes the config file of the current version can be extracted from /proc/config.gz
First verify that there is no /usr/src/linux-2.6.7/.config file. If there is a /proc/config.gz file, then as root run:
zcat /proc/config.gz >/usr/src/linux-2.6.7/.config
To make sure the this .config file is current for the kernel source, run:
make oldconfig
This step will verify the correctness of the configuration and prompt you if other options need to be configured.
Now you can try to run the nvidia installation program again.
Distribution: Usually Linux Mint, Debian, Ubuntu or CentOS
Posts: 234
Rep:
the problem i always had when compiling the generic 32bit NVIDIA driver was that i hadnt set the /usr/src/linux symbolic link to point at the kernel's source code. It needs the source code or it doesnt know how to make a module for the kernel. As long as /usr/src/linux is set, the source is there (at the symbolic link's destination) and the module directory is present and fully working, the NVIDIA dirvers should be fairly happy
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.