LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-14-2005, 05:02 PM   #1
martincho
Member
 
Registered: Sep 2004
Location: Argentina
Distribution: Debian 10.0
Posts: 37

Rep: Reputation: 15
Unable to build nvidia module


Hello All,

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:
Quote:
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Fri May 13 20:40:29 2005

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.
Could anybody tell me what to do?
 
Old 05-14-2005, 09:50 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Quote:
/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.

Last edited by jschiwal; 05-14-2005 at 09:51 PM.
 
Old 05-21-2005, 08:45 AM   #3
darksmiley
Member
 
Registered: Jan 2004
Location: London, England
Distribution: Usually Linux Mint, Debian, Ubuntu or CentOS
Posts: 234

Rep: Reputation: 30
Thumbs up

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
 
Old 05-21-2005, 07:49 PM   #4
martincho
Member
 
Registered: Sep 2004
Location: Argentina
Distribution: Debian 10.0
Posts: 37

Original Poster
Rep: Reputation: 15
Many thanks!
Worked after "made oldconfig".
And were no config.gz file.

Anyway, in the XF86Config-4 file, in the module section have to delete the line "load glx"
 
  


Reply



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
After nvidia module build, black screen & no access Joe4 Debian 12 11-21-2005 11:08 AM
Unable to build the NVIDIA kernel module subaruwrx Linux - General 2 03-12-2005 08:15 PM
Unable to build NVIDIA kernel module / determin kernel version Night Ink Fedora 2 05-31-2004 04:54 PM
Unable to load kernel module nvidia-o mattv Linux - Newbie 3 02-26-2004 11:05 AM
Unable to load kernel module nvidia.o innovest_11 Linux - Newbie 2 02-01-2004 11:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:25 PM.

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