Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 01-30-06, 06:18 PM   #1
OPaul
Registered User
 
Join Date: Jan 2006
Posts: 35
Question Unable to build the NVIDIA kernel module

When I run the Nvidia installer I get the following error;

---
ERROR: Unable to build the NVIDIA kernel module.
---

I'm trying to install older Nvidia drivers, 5336.

Here's the contents on my nvidia-installer.log file.
Code:
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Mon Jan 30 17:58:02 2006

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                : ftp://download.nvidia.com

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: No)
-> No precompiled kernel interface was found to match your kernel; this means
   that the installer will need to compile a new kernel interface.
-> Kernel source path: '/lib/modules/2.6.12-10-386/build'
-> Performing cc_version_check with CC="gcc-3.4".
-> 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.12-10-386/b
   uild'...
   echo \#define NV_COMPILER \"`gcc-3.4 -v 2>&1 | tail -n 1`\" > /tmp/selfgz954
   3/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv_compiler.h
     CC [M]  /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.o
   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:20,
                    from include/linux/module.h:10,
                    from /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src
   /nv/nv-linux.h:52,
                    from /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-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:864,
                    from /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src
   /nv/nv-linux.h:74,
                    from /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src
   /nv/nv.c:14:
   include/asm/io.h: In function `check_signature':
   include/asm/io.h:253: warning: wrong type argument to increment
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c: In function 
   `nvos_probe_devices':
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:241: warning:
   implicit declaration of function `pci_find_class'
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:241: warning:
   assignment makes pointer from integer without a cast
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:296: warning:
   assignment makes pointer from integer without a cast
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c: In function 
   `nvos_malloc_pages':
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:385: warning:
   use of cast expressions as lvalues is deprecated
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c: In function 
   `nvos_create_alloc':
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:513: warning:
   use of cast expressions as lvalues is deprecated
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:523: warning:
   use of cast expressions as lvalues is deprecated
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c: In function 
   `nvos_find_agp_by_class':
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:613: warning:
   assignment makes pointer from integer without a cast
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:624: warning:
   assignment makes pointer from integer without a cast
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c: In function 
   `nvidia_init_module':
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:921: warning:
   `pm_register' is deprecated (declared at include/linux/pm.h:106)
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c: In function 
   `nvidia_exit_module':
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:977: warning:
   `pm_unregister' is deprecated (declared at include/linux/pm.h:111)
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c: At top level
   :
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:1185: warning
   : initialization from incompatible pointer type
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c: In function 
   `nv_alloc_file_private':
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:1193: warning
   : use of cast expressions as lvalues is deprecated
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:1204: warning
   : use of cast expressions as lvalues is deprecated
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c: In function 
   `nv_kern_open':
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:1265: warning
   : use of cast expressions as lvalues is deprecated
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c: In function 
   `nv_kern_mmap':
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:1442: warning
   : implicit declaration of function `remap_page_range'
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c: In function 
   `nv_kern_ctl_open':
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:1914: warning
   : use of cast expressions as lvalues is deprecated
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c: In function 
   `_get_phys_address':
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2319: warning
   : passing arg 1 of `pmd_offset' from incompatible pointer type
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c: In function 
   `nv_agp_init':
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2870: warning
   : implicit declaration of function `inter_module_get'
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/nv.c:2871: warning
   : `inter_module_put' is deprecated (declared at include/linux/module.h:568)
     CC [M]  /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/os-agp.o
   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:20,
                    from include/linux/module.h:10,
                    from /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src
   /nv/nv-linux.h:52,
                    from /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-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
   In file included from include/linux/dmapool.h:14,
                    from include/linux/pci.h:864,
                    from /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src
   /nv/nv-linux.h:74,
                    from /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src
   /nv/os-agp.c:24:
   include/asm/io.h: In function `check_signature':
   include/asm/io.h:253: warning: wrong type argument to increment
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/os-agp.c: At top l
   evel:
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/os-agp.c:50: error
   : parse error before '*' token
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/os-agp.c:50: warni
   ng: type defaults to `int' in declaration of `drm_agp_p'
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/os-agp.c:50: warni
   ng: data definition has no type or storage class
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/os-agp.c: In funct
   ion `KernInitAGP':
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/os-agp.c:78: warni
   ng: assignment discards qualifiers from pointer target type
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/os-agp.c:91: error
   : request for member `acquire' in something not a structure or union
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/os-agp.c:118: erro
   r: request for member `copy_info' in something not a structure or union
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/os-agp.c:119: erro
   r: request for member `release' in something not a structure or union
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/os-agp.c:120: warn
   ing: `inter_module_put' is deprecated (declared at include/linux/module.h:56
   8)
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/os-agp.c:137: erro
   r: request for member `release' in something not a structure or union
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/os-agp.c:138: warn
   ing: `inter_module_put' is deprecated (declared at include/linux/module.h:56
   8)
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/os-agp.c:154: erro
   r: request for member `release' in something not a structure or union
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/os-agp.c:155: warn
   ing: `inter_module_put' is deprecated (declared at include/linux/module.h:56
   8)
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/os-agp.c:166: erro
   r: request for member `release' in something not a structure or union
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/os-agp.c:167: warn
   ing: `inter_module_put' is deprecated (declared at include/linux/module.h:56
   8)
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/os-agp.c:178: erro
   r: request for member `release' in something not a structure or union
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/os-agp.c:179: warn
   ing: `inter_module_put' is deprecated (declared at include/linux/module.h:56
   8)
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/os-agp.c:189: erro
   r: request for member `enable' in something not a structure or union
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/os-agp.c: In funct
   ion `KernTeardownAGP':
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/os-agp.c:224: erro
   r: request for member `release' in something not a structure or union
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/os-agp.c:226: warn
   ing: `inter_module_put' is deprecated (declared at include/linux/module.h:56
   8)
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/os-agp.c: In funct
   ion `KernAllocAGPPages':
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/os-agp.c:273: erro
   r: request for member `allocate_memory' in something not a structure or unio
   n
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/os-agp.c:281: erro
   r: request for member `bind_memory' in something not a structure or union
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/os-agp.c:298: erro
   r: request for member `unbind_memory' in something not a structure or union
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/os-agp.c:313: erro
   r: request for member `free_memory' in something not a structure or union
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/os-agp.c: In funct
   ion `KernMapAGPPages':
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/os-agp.c:345: warn
   ing: implicit declaration of function `remap_page_range'
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/os-agp.c:353: erro
   r: request for member `unbind_memory' in something not a structure or union
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/os-agp.c: In funct
   ion `KernFreeAGPPages':
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/os-agp.c:452: erro
   r: request for member `unbind_memory' in something not a structure or union
   /tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/os-agp.c:453: erro
   r: request for member `free_memory' in something not a structure or union
   make[3]: *** [/tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src/nv/os-a
   gp.o] Error 1
   make[2]: *** [_module_/tmp/selfgz9543/NVIDIA-Linux-x86-1.0-5336-pkg1/usr/src
   /nv] Error 2
   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.
OPaul is offline   Reply With Quote
Old 01-30-06, 06:31 PM   #2
netllama
NVIDIA Corporation
 
Join Date: Dec 2004
Posts: 8,763
Default Re: Unable to build the NVIDIA kernel module

1.0-5336 will be highly unlikely to build with a recent 2.6.x kernel, and is also unsupported. Please use 1.0-8178.

Thanks,
Lonni
netllama is offline   Reply With Quote
Old 01-30-06, 06:37 PM   #3
OPaul
Registered User
 
Join Date: Jan 2006
Posts: 35
Default Re: Unable to build the NVIDIA kernel module

5336 added support for the 2.6 kernel. And I can't use anything higher because of an issue with Toshiba monitors and a black bar on the side. See the following URL.
http://www.laptopvideo2go.com/wiki/i...ng_New_Drivers
OPaul is offline   Reply With Quote
Old 01-30-06, 06:44 PM   #4
netllama
NVIDIA Corporation
 
Join Date: Dec 2004
Posts: 8,763
Default Re: Unable to build the NVIDIA kernel module

Have you tested 1.0-8178? Does 1.0-8178 install successfully?

That would at least determine if the 1.0-5536 problem is with the driver or your kernel source.

Thanks,
Lonni
netllama is offline   Reply With Quote
Old 01-30-06, 09:02 PM   #5
OPaul
Registered User
 
Join Date: Jan 2006
Posts: 35
Default Re: Unable to build the NVIDIA kernel module

Quote:
Originally Posted by netllama
Have you tested 1.0-8178? Does 1.0-8178 install successfully?

That would at least determine if the 1.0-5536 problem is with the driver or your kernel source.

Thanks,
Lonni
It installs but GNOME doesn't even load with it.
OPaul is offline   Reply With Quote
Old 01-31-06, 04:27 PM   #6
Sentertainment
Registered User
 
Join Date: Jan 2006
Posts: 6
Default Re: Unable to build the NVIDIA kernel module

have you removed any old modules correctly?
GUI's wont load the drivers unless you can removed all the old modules...some do it for you, some dont
Sentertainment is offline   Reply With Quote
Old 01-31-06, 06:15 PM   #7
OPaul
Registered User
 
Join Date: Jan 2006
Posts: 35
Default Re: Unable to build the NVIDIA kernel module

So, any ideas why the 5336 installation fails?
OPaul is offline   Reply With Quote
Old 01-31-06, 06:17 PM   #8
netllama
NVIDIA Corporation
 
Join Date: Dec 2004
Posts: 8,763
Default Re: Unable to build the NVIDIA kernel module

Its incompatible with the kernel version you're using.

As I stated, 1.0-5336 is unsupported and is unlikely to build, or work properly with most recent Linux distributions. If you're running into a bug with 1.0-8178, then please start a new thread related to that issue, and we can work to address that problem.

Thanks,
Lonni
netllama is offline   Reply With Quote

Old 01-31-06, 07:52 PM   #9
OPaul
Registered User
 
Join Date: Jan 2006
Posts: 35
Default Re: Unable to build the NVIDIA kernel module

Quote:
Originally Posted by Sentertainment
have you removed any old modules correctly?
GUI's wont load the drivers unless you can removed all the old modules...some do it for you, some dont
I believe so. I followed the directions oulined in METHOD 2 on the following page;
http://www.ubuntuforums.org/showthread.php?t=75074
OPaul is offline   Reply With Quote
Old 01-31-06, 07:56 PM   #10
OPaul
Registered User
 
Join Date: Jan 2006
Posts: 35
Default Re: Unable to build the NVIDIA kernel module

Quote:
Originally Posted by netllama
Its incompatible with the kernel version you're using.

As I stated, 1.0-5336 is unsupported and is unlikely to build, or work properly with most recent Linux distributions. If you're running into a bug with 1.0-8178, then please start a new thread related to that issue, and we can work to address that problem.

Thanks,
Lonni
Quote:
Support for Linux 2.6 kernels.
http://www.nvidia.com/object/linux_d..._1.0-5336.html

I can't use 8178 or anything higher then 55.xx because of the incompatibility I described with my Toshiba laptop.
OPaul is offline   Reply With Quote
Old 01-31-06, 09:25 PM   #11
netllama
NVIDIA Corporation
 
Join Date: Dec 2004
Posts: 8,763
Default Re: Unable to build the NVIDIA kernel module

If you're running into a bug with 1.0-8178, then please start a new thread related to that issue, and we can work to address that problem.

Thanks,
Lonni
netllama is offline   Reply With Quote
Reply


Thread Tools

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 On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
UEFI+Nvidia - NVRM: Your system is not currently configured to drive a VGA console... interzoneuk NVIDIA Linux 0 06-26-12 05:51 AM
xorg locks-up with newest nvidia drivers w/ vdpau. theroot NVIDIA Linux 1 06-24-12 12:04 PM
Lucid rt kernel can't load latest nvidia driver module, but generic does. marcod NVIDIA Linux 0 05-02-12 07:23 AM
nvidia + 2.4.19 gentoo = messed up ulukay NVIDIA Linux 18 11-02-02 12:58 AM
X Failed to load NVdriver c00lr4c3r NVIDIA Linux 13 10-22-02 02:44 PM

All times are GMT -5. The time now is 08:43 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.