LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 08-03-2007, 03:00 PM   #1
Mathsniper
Member
 
Registered: Aug 2004
Posts: 135

Rep: Reputation: 15
Unable to build the NVIDIA kernel module(linux-image-2.6.21-2-686)


I cannot install the official nvidia driver completely after I upgraded debian by apt-get. Also the linux-image has been upgraded to 2.6.21-2-686 from 2.6.18-4-686. So I have to reinstall the official nvidia driver and install a new linux-headers-2.6.21-2-686 for compiling. But when I installed the driver, it didn't work very well. Here is a log file.
Code:
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Fri Aug  3 23:20:28 2007

option status:
  license pre-accepted    : false
  update                  : false
  force update            : false
  expert                  : false
  uninstall               : false
  driver info             : false
  precompiled interfaces  : true
  no ncurses color        : false
  query latest version    : false
  OpenGL header files     : true
  no questions            : false
  silent                  : false
  no recursion            : 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
  no kernel module        : false
  force SELinux           : default
  no X server check       : false
  force tls               : (not specified)
  X install prefix        : (not specified)
  X library install path  : (not specified)
  X module install path   : (not specified)
  OpenGL install prefix   : (not specified)
  OpenGL install libdir   : (not specified)
  utility install prefix  : (not specified)
  utility install libdir  : (not specified)
  doc install prefix      : (not specified)
  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.
-> There appears to already be a driver installed on your system (version: 1.0-
   9755).  As part of installing this driver (version: 100.14.11), the existing
   driver will be uninstalled.  Are you sure you want to continue? ('no' will a
   bort installation) (Answer: Yes)
-> 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: No)
-> No precompiled kernel interface was found to match your kernel; this means
   that the installer will need to compile a new kernel interface.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Kernel source path: '/lib/modules/2.6.21-2-686/build'
-> Kernel output path: '/lib/modules/2.6.21-2-686/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Performing Xen 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-i2c.o nvacpi.
   o nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv-i2c.o nvacpi.o nvidi
   a.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 -f stprof stprof.o symtab.h Modules.symvers
   rm -f -rf .tmp_versions
   rm -f Makefile
-> Building kernel module:
   executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.21-2-686/bu
   ild SYSOUT=/lib/modules/2.6.21-2-686/build'...
   sh ./conftest.sh "cc" "cc" /lib/modules/2.6.21-2-686/build /lib/modules/2.6.
   21-2-686/build cc_sanity_check full_output
   sh ./conftest.sh "cc" "cc" /lib/modules/2.6.21-2-686/build /lib/modules/2.6.
   21-2-686/build select_makefile full_output
   make --no-print-directory -f Makefile module
   
   NVIDIA: calling KBUILD...
   make CC=cc  KBUILD_VERBOSE=1 -C /lib/modules/2.6.21-2-686/build SUBDIRS=/tmp
   /selfgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv modules
   test -e include/linux/autoconf.h -a -e include/config/auto.conf || (		\
   	echo;								\
   	echo "  ERROR: Kernel configuration is invalid.";		\
   	echo "         include/linux/autoconf.h or include/config/auto.conf are mis
   sing.";	\
   	echo "         Run 'make oldconfig && make prepare' on kernel src to fix it
   .";	\
   	echo;								\
   	/bin/false)
   mkdir -p /tmp/selfgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/.tmp_ver
   sions
   rm -f /tmp/selfgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/.tmp_versio
   ns/*
   make -f scripts/Makefile.build obj=/tmp/selfgz4533/NVIDIA-Linux-x86-100.14.1
   1-pkg1/usr/src/nv
   echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /tmp/selfgz4533/NVI
   DIA-Linux-x86-100.14.11-pkg1/usr/src/nv/nv_compiler.h
     cc -Wp,-MD,/tmp/selfgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/.nv.
   o.d  -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.1.3/include -D__KERNEL
   __ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wstrict-proto
   types -Wno-trigraphs -fno-strict-aliasing -fno-common  -Os -pipe -msoft-floa
   t -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2  -march=i686 
   -ffreestanding -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_
   SIGNAL_FRAME=1 -Iinclude/asm-i386/mach-default -fomit-frame-pointer  -fno-st
   ack-protector -Wdeclaration-after-statement -Wno-pointer-sign -I/tmp/selfgz4
   533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-typ
   e -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith  -Wno-mu
   ltichar  -Werror  -O -fno-common -msoft-float          -MD   -Wsign-compare 
   -Wno-cast-qual -Wno-error -D_LOOSE_K
   ERNEL_NAMES -D__KERNEL__ -DMODULE  -DNVRM -DNV_VERSION_STRING=\"100.14.11\" 
   -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -DNV_MULTIPLE_BRIDGE_AGPGA
   RT_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DNV_SYSCTL_MAX_MAP_COUNT_PRESENT -DNV
   _PM_MESSAGE_T_PRESENT -DNV_PCI_CHOOSE_STATE_PRESENT -DNV_VM_INSERT_PAGE_PRES
   ENT -DNV_OLD_MM_KGDB_BREAKPOINT_PRESENT -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CH
   ANGE_PAGE_ATTR_PRESENT -DNV_ACQUIRE_CONSOLE_SEM_PRESENT -DNV_VMAP_4_PRESENT 
   -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)"  -D"KBUILD_
   MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz4533/NVIDIA-Linux-x86-100.14.11
   -pkg1/usr/src/nv/.tmp_nv.o /tmp/selfgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/u
   sr/src/nv/nv.c
   In file included from include/linux/list.h:8,
                    from include/linux/wait.h:22,
                    from include/asm/semaphore.h:41,
                    from include/linux/sched.h:59,
                    from include/linux/utsname.h:35,
                    from /tmp/selfgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/sr
   c/nv/nv-linux.h:19,
                    from /tmp/selfgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/sr
   c/nv/nv.c:14:
   include/linux/prefetch.h: In function ‘prefetch_range’:
   include/linux/prefetch.h:62: warning: pointer of type ‘void *’ used in a
   rithmetic
     cc -Wp,-MD,/tmp/selfgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/.nv-
   vm.o.d  -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.1.3/include -D__KER
   NEL__ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wstrict-pr
   ototypes -Wno-trigraphs -fno-strict-aliasing -fno-common  -Os -pipe -msoft-f
   loat -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2  -march=i6
   86 -ffreestanding -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_C
   FI_SIGNAL_FRAME=1 -Iinclude/asm-i386/mach-default -fomit-frame-pointer  -fno
   -stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -I/tmp/self
   gz4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-
   type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith  -Wno
   -multichar  -We
   rror  -O -fno-common -msoft-float          -MD   -Wsign-compare -Wno-cast-qu
   al -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -DNVRM -DNV_VERSI
   ON_STRING=\"100.14.11\" -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -D
   NV_MULTIPLE_BRIDGE_AGPGART_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DNV_SYSCTL_MA
   X_MAP_COUNT_PRESENT -DNV_PM_MESSAGE_T_PRESENT -DNV_PCI_CHOOSE_STATE_PRESENT 
   -DNV_VM_INSERT_PAGE_PRESENT -DNV_OLD_MM_KGDB_BREAKPOINT_PRESENT -DNV_REMAP_P
   FN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_ACQUIRE_CONSOLE_SEM_PRES
   ENT -DNV_VMAP_4_PRESENT  -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KB
   UILD_STR(nv_vm)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz453
   3/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/.tmp_nv-vm.o /tmp/selfgz4533/NV
   IDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/nv-vm.c
   In file included from include/linux/list.h:8,
                    from include/linux/wait.h:22,
                    from include/asm/semaphore.h:41,
                    from include/linux/sched.h:59,
                    from include/linux/utsname.h:35,
                    from /tmp/selfgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/sr
   c/nv/nv-linux.h:19,
                    from /tmp/selfgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/sr
   c/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 a
   rithmetic
     cc -Wp,-MD,/tmp/selfgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/.os-
   agp.o.d  -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.1.3/include -D__KE
   RNEL__ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wstrict-p
   rototypes -Wno-trigraphs -fno-strict-aliasing -fno-common  -Os -pipe -msoft-
   float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2  -march=i
   686 -ffreestanding -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_
   CFI_SIGNAL_FRAME=1 -Iinclude/asm-i386/mach-default -fomit-frame-pointer  -fn
   o-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -I/tmp/sel
   fgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv -Wal
   l -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses
   -Wpointer-arith  -Wno-multichar  -Werror  -O -fno-common -msoft-float       
     -MD   -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__K
   ERNEL__ -DMODULE  -DNVRM -DNV_VERSION_STRING=\"100.14.11\" -UDEBUG -U_DEBUG 
   -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -DNV_MULTIPLE_BRIDGE_AGPGART_PRESENT -DNV_P
   CI_GET_CLASS_PRESENT -DNV_SYSCTL_MAX_MAP_COUNT_PRESENT -DNV_PM_MESSAGE_T_PRE
   SENT -DNV_PCI_CHOOSE_STATE_PRESENT -DNV_VM_INSERT_PAGE_PRESENT -DNV_OLD_MM_K
   GDB_BREAKPOINT_PRESENT -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PR
   ESENT -DNV_ACQUIRE_CONSOLE_SEM_PRESENT -DNV_VMAP_4_PRESENT  -DMODULE -D"KBUI
   LD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(os_agp)"  -D"KBUILD_MODNAME=KBUI
   LD_STR(nvidia)" -c -o /tmp/selfgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/sr
   c/nv/.tmp_os-agp.o /tmp/selfgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/n
   v/os-agp.c
   In file included from include/linux/list.h:8,
                    from include/linux/wait.h:22,
                    from include/asm/semaphore.h:41,
                    from include/linux/sched.h:59,
                    from include/linux/utsname.h:35,
                    from /tmp/selfgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/sr
   c/nv/nv-linux.h:19,
                    from /tmp/selfgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/sr
   c/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 a
   rithmetic
     cc -Wp,-MD,/tmp/selfgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/.os-
   interface.o.d  -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.1.3/include 
   -D__KERNEL__ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wst
   rict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common  -Os -pipe -
   msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2  -m
   arch=i686 -ffreestanding -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONF
   IG_AS_CFI_SIGNAL_FRAME=1 -Iinclude/asm-i386/mach-default -fomit-frame-pointe
   r  -fno-stack-
   protector -Wdeclaration-after-statement -Wno-pointer-sign -I/tmp/selfgz4533/
   NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -W
   switch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith  -Wno-multic
   har  -Werror  -O -fno-common -msoft-float          -MD   -Wsign-compare -Wno
   -cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -DNVRM -D
   NV_VERSION_STRING=\"100.14.11\" -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT
   _RLIM -DNV_MULTIPLE_BRIDGE_AGPGART_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DNV_S
   YSCTL_MAX_MAP_COUNT_PRESENT -DNV_PM_MESSAGE_T_PRESENT -DNV_PCI_CHOOSE_STATE_
   PRESENT -DNV_VM_INSERT_PAGE_PRESENT -DNV_OLD_MM_KGDB_BREAKPOINT_PRESENT -DNV
   _REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_ACQUIRE_CONSOLE_
   SEM_PRESENT -DNV_VMAP_4_PRESENT  -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BAS
   ENAME=KBUILD_STR(os_interface)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o
   /tmp/selfgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/.tmp_os-interface
   .o /tmp/selfgz4533/NVIDIA-Linux-x86
   -100.14.11-pkg1/usr/src/nv/os-interface.c
   In file included from include/linux/list.h:8,
                    from include/linux/wait.h:22,
                    from include/asm/semaphore.h:41,
                    from include/linux/sched.h:59,
                    from include/linux/utsname.h:35,
                    from /tmp/selfgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/sr
   c/nv/nv-linux.h:19,
                    from /tmp/selfgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/sr
   c/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 a
   rithmetic
     cc -Wp,-MD,/tmp/selfgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/.os-
   registry.o.d  -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.1.3/include -
   D__KERNEL__ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wstr
   ict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common  -Os -pipe -m
   soft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2  -ma
   rch=i686 -ffreestan
   ding -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRA
   ME=1 -Iinclude/asm-i386/mach-default -fomit-frame-pointer  -fno-stack-protec
   tor -Wdeclaration-after-statement -Wno-pointer-sign -I/tmp/selfgz4533/NVIDIA
   -Linux-x86-100.14.11-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch
   -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith  -Wno-multichar  -W
   error  -O -fno-common -msoft-float          -MD   -Wsign-compare -Wno-cast-q
   ual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -DNVRM -DNV_VERS
   ION_STRING=\"100.14.11\" -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -
   DNV_MULTIPLE_BRIDGE_AGPGART_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DNV_SYSCTL_M
   AX_MAP_COUNT_PRESENT -DNV_PM_MESSAGE_T_PRESENT -DNV_PCI_CHOOSE_STATE_PRESENT
   -DNV_VM_INSERT_PAGE_PRESENT -DNV_OLD_MM_KGDB_BREAKPOINT_PRESENT -DNV_REMAP_P
   FN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_ACQUIRE_CONSOLE_SEM_PRES
   ENT -DNV_VMAP_4_PRESENT  -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KB
   UILD_STR(os_registry)"  -D"KBUILD_
   MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz4533/NVIDIA-Linux-x86-100.14.11
   -pkg1/usr/src/nv/.tmp_os-registry.o /tmp/selfgz4533/NVIDIA-Linux-x86-100.14.
   11-pkg1/usr/src/nv/os-registry.c
   In file included from include/linux/list.h:8,
                    from include/linux/wait.h:22,
                    from include/asm/semaphore.h:41,
                    from include/linux/sched.h:59,
                    from include/linux/utsname.h:35,
                    from /tmp/selfgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/sr
   c/nv/nv-linux.h:19,
                    from /tmp/selfgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/sr
   c/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 a
   rithmetic
     cc -Wp,-MD,/tmp/selfgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/.nv-
   i2c.o.d  -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.1.3/include -D__KE
   RNEL__ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wstrict-p
   rototypes -Wno-trigraphs -fno
   -strict-aliasing -fno-common  -Os -pipe -msoft-float -mregparm=3 -freg-struc
   t-return -mpreferred-stack-boundary=2  -march=i686 -ffreestanding -maccumula
   te-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -Iinclude/
   asm-i386/mach-default -fomit-frame-pointer  -fno-stack-protector -Wdeclarati
   on-after-statement -Wno-pointer-sign -I/tmp/selfgz4533/NVIDIA-Linux-x86-100.
   14.11-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wcha
   r-subscripts -Wparentheses -Wpointer-arith  -Wno-multichar  -Werror  -O -fno
   -common -msoft-float          -MD   -Wsign-compare -Wno-cast-qual -Wno-error
   -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -DNVRM -DNV_VERSION_STRING=\"10
   0.14.11\" -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -DNV_MULTIPLE_BR
   IDGE_AGPGART_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DNV_SYSCTL_MAX_MAP_COUNT_PR
   ESENT -DNV_PM_MESSAGE_T_PRESENT -DNV_PCI_CHOOSE_STATE_PRESENT -DNV_VM_INSERT
   _PAGE_PRESENT -DNV_OLD_MM_KGDB_BREAKPOINT_PRESENT -DNV_REMAP_PFN_RANGE_PRESE
   NT -DNV_CHANGE_PAGE_ATTR_PRESENT -D
   NV_ACQUIRE_CONSOLE_SEM_PRESENT -DNV_VMAP_4_PRESENT  -DMODULE -D"KBUILD_STR(s
   )=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_i2c)"  -D"KBUILD_MODNAME=KBUILD_STR(n
   vidia)" -c -o /tmp/selfgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/.tm
   p_nv-i2c.o /tmp/selfgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/nv-i2c
   .c
   In file included from include/linux/list.h:8,
                    from include/linux/wait.h:22,
                    from include/asm/semaphore.h:41,
                    from include/linux/sched.h:59,
                    from include/linux/utsname.h:35,
                    from /tmp/selfgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/sr
   c/nv/nv-linux.h:19,
                    from /tmp/selfgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/sr
   c/nv/nv-i2c.c:8:
   include/linux/prefetch.h: In function ‘prefetch_range’:
   include/linux/prefetch.h:62: warning: pointer of type ‘void *’ used in a
   rithmetic
     cc -Wp,-MD,/tmp/selfgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/.nva
   cpi.o.d  -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.1.3/include -D__KE
   RNEL__ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wstrict-p
   rototypes -Wno-trigraphs -fno-strict-aliasing -fno-common  -Os -pipe -msoft-
   float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2  -march=i
   686 -ffreestanding -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_
   CFI_SIGNAL_FRAME=1 -Iinclude/asm-i386/mach-default -fomit-frame-pointer  -fn
   o-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -I/tmp/sel
   fgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn
   -type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith  -Wn
   o-multichar  -Werror  -O -fno-common -msoft-float          -MD   -Wsign-comp
   are -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -
   DNVRM -DNV_VERSION_STRING=\"100.14.11\" -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNA
   L_STRUCT_RLIM -DNV_MULTIPLE_BRIDGE_AGPGART_PRESENT -DNV_PCI_GET_CLASS_PRESEN
   T -DNV_SYSCTL_MAX_MAP_COUNT_PRESENT -DNV_PM_MESSAGE_T_PRESENT -DNV_PCI_CHOOS
   E_STATE_PRESENT -DNV_VM_I
   NSERT_PAGE_PRESENT -DNV_OLD_MM_KGDB_BREAKPOINT_PRESENT -DNV_REMAP_PFN_RANGE_
   PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_ACQUIRE_CONSOLE_SEM_PRESENT -DNV_
   VMAP_4_PRESENT  -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(
   nvacpi)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz4533/NVIDIA
   -Linux-x86-100.14.11-pkg1/usr/src/nv/.tmp_nvacpi.o /tmp/selfgz4533/NVIDIA-Li
   nux-x86-100.14.11-pkg1/usr/src/nv/nvacpi.c
   In file included from include/linux/list.h:8,
                    from include/linux/wait.h:22,
                    from include/asm/semaphore.h:41,
                    from include/linux/sched.h:59,
                    from include/linux/utsname.h:35,
                    from /tmp/selfgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/sr
   c/nv/nv-linux.h:19,
                    from /tmp/selfgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/sr
   c/nv/nvacpi.c:15:
   include/linux/prefetch.h: In function ‘prefetch_range’:
   include/linux/prefetch.h:62: warning: pointer of type ‘void *’ used in a
   rithmetic
     ld -m elf_i386 -m elf_i386  -r -o /tmp/selfgz4533/NVIDIA-Linux-x86-100.14.
   11-pkg1/usr/src/nv/nvidia.o /tmp/selfgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/
   usr/src/nv/nv-kernel.o /tmp/selfgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/s
   rc/nv/nv.o /tmp/selfgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/nv-vm.
   o /tmp/selfgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/os-agp.o /tmp/s
   elfgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/os-interface.o /tmp/sel
   fgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/os-registry.o /tmp/selfgz
   4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/nv-i2c.o /tmp/selfgz4533/NVI
   DIA-Linux-x86-100.14.11-pkg1/usr/src/nv/nvacpi.o
     Building modules, stage 2.
   make -f /usr/src/linux-headers-2.6.21-2-686/scripts/Makefile.modpost
     scripts/mod/modpost -m  -i /usr/src/linux-headers-2.6.21-2-686/Module.symv
   ers -I /tmp/selfgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/Module.sym
   vers -o /tmp/selfgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/Module.sy
   mvers -w  /tmp/selfgz4533/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src
   /nv/nvidia.o
   FATAL: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol 'para
   virt_ops'
   make[3]: *** [__modpost] Error 1
   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.
 
Old 08-03-2007, 03:29 PM   #2
utanja
Member
 
Registered: Apr 2004
Location: Europe:Salzburg Austria USA:Orlando,Florida;
Distribution: Debian
Posts: 581

Rep: Reputation: 32
i have had no problem installing the official NVIDIA kernel for 2.6.21.686 as well as 2.6.22.686.....make sure you have the correct version of kbuild as well....also i have found that installs go smoother if you uninstall prior nvidia drivers first...

#:nvidia-installer --uninstall

then run the nvidia script..

sh NVIDIA<version>.run

Last edited by utanja; 08-03-2007 at 03:31 PM.
 
Old 08-04-2007, 12:55 AM   #3
Mathsniper
Member
 
Registered: Aug 2004
Posts: 135

Original Poster
Rep: Reputation: 15
nvidia-insatller --uninstall doesn't work. I install nvidia driver under linux-image-2.6.21-2-686 single mode. And I haven't removed linux-image-2.6.18-4-686. But I sure it doesn't matter. Where's the errors?
 
Old 08-04-2007, 01:05 AM   #4
dahveed3
Member
 
Registered: Mar 2007
Posts: 191

Rep: Reputation: 31
http://grizach.sc18.info/nvpatch/index.php

There you go!

Everyone else did have a problem installing either ATI or NVidia on 2.6.21 Kernel versions.

You just need to download the patched NVidia installer down near the bottom of that page. Get the one for 100.14.11 on 2.6.21.

It's not that the NVidia driver has a problem with the para-virtualization support being turned on in the 2.6.21 Kernel, but rather the temporary GPL only stipulation for any modules built upon it. This is removed on 2.6.22 Kernels and those are making their way into Debian as well, being in Unstable (Sid) at the moment.

The patch just substitutes a GPL certified makefile for the NVidia.KO kernel module makefile so that the module can be built. The rest of the package and the driver are the same as the ones issued by NVidia.

Just do the normal installation, using that download instead of the normal one and you'll be fine. I still have that driver installed and my 3D gaming and Beryl run great with it.

The normal nvidia-installer --uninstall procedure removes that driver the same as the normal one (which it is, except for the patch that installs the GPL certified NVidia.ko makefile replacing the one that is usually used by NVidia). I've had to uninstall and reinstall it a few times when some Kernel and xorg stuff got updated and it went smoothly. The patch warned me that it already existed and told me that if there's any trouble I could delete it from the directory it creates and copies it too but I had no problem so didn't need to do anything but nvidia-installer --uninstall, dpkg-reconfigure xserver-xorg, put the nv driver in, reboot and update that Kernel and xorg stuff, ctrl-alt-F1, login, reinstall it, and dpkg-reconfigure the NVIDIA driver back in.

Once we get the 2.6.22 Kernel we can go back to the normal NVidia driver or even install the Debian package version if desired.

Last edited by dahveed3; 08-04-2007 at 01:06 AM.
 
Old 08-04-2007, 01:26 AM   #5
eco2geek
Member
 
Registered: Feb 2003
Location: Portland, OR
Distribution: openSUSE 10.3, among others
Posts: 141
Blog Entries: 1

Rep: Reputation: 15
dahveed3 beat me to it, but here's the problem, from your logfile:

Code:
FATAL: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol 'paravirt_ops'
And here's the discussion on the nvidia forum about it.

Other than using a patched driver (which works fine), you could compile your own kernel with paravirtualization turned off.
 
Old 08-04-2007, 02:53 AM   #6
Mathsniper
Member
 
Registered: Aug 2004
Posts: 135

Original Poster
Rep: Reputation: 15
thank everyone help me to solve the problem. It work fine now.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to build the NVIDIA kernel module. jarred Linux - Newbie 5 03-20-2007 01:15 AM
unable to build nvidia kernel module Cyber Maid Linux - Software 10 01-28-2007 06:44 AM
Error: Unable to build the NVIDIA kernel module. Dachy Slackware 3 02-17-2006 02:46 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


All times are GMT -5. The time now is 12:24 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration