View Single Post
Old 12-10-05, 11:15 AM   #1
corphicks
Registered User
 
corphicks's Avatar
 
Join Date: Oct 2005
Location: Hungary
Posts: 9
Default nvidia-installer (1.0-8174) fails when compiling kernel interface

I'm using a minor distro called UHU-Linux. Sadly, this means, there's no precompiled kernel interface available for my kernel, so nvidia-installer tries to compile one, but then stops with an error:

Code:
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sat Dec 10 16:43:09 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     : true
  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.
-> Performing CC test with CC="cc".
-> Kernel source path: '/lib/modules/2.6.9-19/source'
-> Kernel output path: '/lib/modules/2.6.9-19/build'
-> Performing rivafb check.
-> Performing nvidiafb 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 -f stprof stprof.o symtab.h
   rm -f -rf .tmp_versions
-> Building kernel module:
   executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.9-19/source
   SYSOUT=/lib/modules/2.6.9-19/build'...
   
   NVIDIA: calling KBUILD...
   make CC=cc KBUILD_OUTPUT=/lib/modules/2.6.9-19/build KBUILD_VERBOSE=1 -C /li
   b/modules/2.6.9-19/source SUBDIRS=/tmp/selfgz3544/NVIDIA-Linux-x86-1.0-8174-
   pkg1/usr/src/nv modules
   make -C /lib/modules/2.6.9-19/build		\
   KBUILD_SRC=/usr/src/linux-2.6.9-19	     KBUILD_VERBOSE=1	\
   KBUILD_CHECK= KBUILD_EXTMOD="/tmp/selfgz3544/NVIDIA-Linux-x86-1.0-8174-pkg1/
   usr/src/nv"	\
           -f /usr/src/linux-2.6.9-19/Makefile modules
   mkdir -p /tmp/selfgz3544/NVIDIA-Linux-x86-1.0-8174-pkg1/usr/src/nv/.tmp_vers
   ions
   make -f /usr/src/linux-2.6.9-19/scripts/Makefile.build obj=/tmp/selfgz3544/N
   VIDIA-Linux-x86-1.0-8174-pkg1/usr/src/nv
   echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /tmp/selfgz3544/NVI
   DIA-Linux-x86-1.0-8174-pkg1/usr/src/nv/nv_compiler.h
     cc -Wp,-MD,/tmp/selfgz3544/NVIDIA-Linux-x86-1.0-8174-pkg1/usr/src/nv/.nv.o
   .d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -Iinclude2 -I/usr/s
   rc/linux-2.6.9-19/include  -I/tmp/selfgz3544/NVIDIA-Linux-x86-1.0-8174-pkg1/
   usr/src/nv -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fn
   o-common -O2 -pipe -msoft-float -mpreferred-stack-boundary=2 -march=i586 -I/
   usr/src/linux-2.6.9-19/include/asm-i386/mach-default -Iinclude/asm-i386/mach
   -default  -I/tmp/selfgz3544/NVIDIA-Linux-x86-1.0-8174-pkg1/usr/src/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 -DN
   VRM -DDYNAMIC_SLI -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=
   8174 -UDEBUG -U_DEBUG -DNDEBUG -DNV_SYSCTL_MAX_MAP_COUNT_PRESENT -DNV_REMAP_
   PAGE_RANGE_5_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_VMAP_4_PRESENT -DMOD
   ULE -DKBUILD_BASENAME=nv -DKBUILD_MODNAME=nvidia -c -o /tmp/selfgz3544/NVIDI
   A-Linux-x86-1.0-8174-pkg1/usr/src/nv/nv.o /tmp/selfgz3544/NVIDIA-Linux-x86-1
   .0-8174-pkg1/usr/src/nv/nv.c
   In file included from include/linux/list.h:7,
                    from include/linux/wait.h:23,
                    from include/asm/semaphore.h:41,
                    from include/linux/sched.h:18,
                    from include/linux/module.h:10,
                    from /tmp/selfgz3544/NVIDIA-Linux-x86-1.0-8174-pkg1/usr/src
   /nv/nv-linux.h:47,
                    from /tmp/selfgz3544/NVIDIA-Linux-x86-1.0-8174-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
   In file included from include/linux/dmapool.h:14,
                    from include/linux/pci.h:823,
                    from /tmp/selfgz3544/NVIDIA-Linux-x86-1.0-8174-pkg1/usr/src
   /nv/nv-linux.h:71,
                    from /tmp/selfgz3544/NVIDIA-Linux-x86-1.0-8174-pkg1/usr/src
   /nv/nv.c:14:
   include/asm/io.h: In function `check_signature':
   include/asm/io.h:240: warning: wrong type argument to increment
   /tmp/selfgz3544/NVIDIA-Linux-x86-1.0-8174-pkg1/usr/src/nv/nv.c: In function 
   `nv_alloc_pages':
   /tmp/selfgz3544/NVIDIA-Linux-x86-1.0-8174-pkg1/usr/src/nv/nv.c:3211: interna
   l compiler error: Szegmentálási hiba
   Please submit a full bug report,
   with preprocessed source if appropriate.
   See <URL:http://gcc.gnu.org/bugs.html> for instructions.
   make[4]: *** [/tmp/selfgz3544/NVIDIA-Linux-x86-1.0-8174-pkg1/usr/src/nv/nv.o
   ] Error 1
   make[3]: *** [_module_/tmp/selfgz3544/NVIDIA-Linux-x86-1.0-8174-pkg1/usr/src
   /nv] Error 2
   make[2]: *** [modules] Error 2
   NVIDIA: left KBUILD.
   nvidia.ko failed to build!
   make[1]: *** [mdl] 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.
I didn't find any information in the README about this. By the way "Szegmentálási hiba" (HU) means "Segmantation fault".

Any clues, anyone?
__________________
"A designer knows he has achieved perfection not when there is nothing left to add, but when there is nothing left to take away."
- Antoine de Saint-Exupéry
corphicks is offline   Reply With Quote