Jump to content

Can't build nvidia kernel


Guest dahvid
 Share

Recommended Posts

Guest dahvid

Well, I'm pretty new to linux so I went to go catch the nvidia drivers for AMD64 (I'm on 10.2 2005LE x64_86)

I get these errors trying to compile the kernel.

If someone can help me I'd be _VERY_ greatful. Playing Enemy Territory with some buddies tommorow, hoping to get Linux and my drivers working. If not -- oh well.

:furious3:

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Fri Jul  1 14:35:46 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
 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                  : /root/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: 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.11-12mdk/build'
-> Performing cc_version_check with CC="cc".
-> Cleaning kernel module build directory.
  executing: 'cd ./usr/src/nv; make clean'...
-> Building kernel module:
  executing: 'cd ./usr/src/nv; make SYSSRC=/lib/modules/2.6.11-12mdk/build mod
  ule'...
  make[1]: Entering directory `/usr/src/linux-2.6.11-12mdk'
  echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /root/tmp/selfgz175
  17/NVIDIA-Linux-x86_64-1.0-5332-pkg0/usr/src/nv/nv_compiler.h
    CC [M]  /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg0/usr/src/nv
  /nv.o
  In file included from include/linux/module.h:10,
                   from /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg
  0/usr/src/nv/nv-linux.h:52,
                   from /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg
  0/usr/src/nv/nv.c:14:
  include/linux/sched.h:37:31: rsbac/cap_getname.h: No such file or directory
  In file included from include/linux/module.h:10,
                   from /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg
  0/usr/src/nv/nv-linux.h:52,
                   from /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg
  0/usr/src/nv/nv.c:14:
  include/linux/sched.h: In function `capable':
  include/linux/sched.h:942: warning: implicit declaration of function `rsbac_
  cap_log_missing_cap'
  In file included from include/linux/device.h:21,
                   from include/linux/pci.h:480,
                   from /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg
  0/usr/src/nv/nv-linux.h:75,
                   from /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg
  0/usr/src/nv/nv.c:14:
  include/linux/pm.h: At top level:
  include/linux/pm.h:39: warning: type defaults to `int' in declaration of `PM
  _SAVE_STATE'
  include/linux/pm.h:45: error: syntax error before "typedef"
  include/linux/pm.h:86: error: syntax error before "pm_dev_t"
  include/linux/pm.h:86: warning: no semicolon at end of struct or union
  include/linux/pm.h:96: error: syntax error before '}' token
  include/linux/pm.h:107: error: syntax error before "type"
  /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg0/usr/src/nv/nv.c: In 
  function `nvos_probe_devices':
  /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg0/usr/src/nv/nv.c:241:
  warning: implicit declaration of function `pci_find_class'
  /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg0/usr/src/nv/nv.c:241:
  warning: assignment makes pointer from integer without a cast
  /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg0/usr/src/nv/nv.c:316:
  warning: assignment makes pointer from integer without a cast
  /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg0/usr/src/nv/nv.c: In 
  function `nvos_malloc_pages':
  /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg0/usr/src/nv/nv.c:405:
  warning: use of cast expressions as lvalues is deprecated
  /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg0/usr/src/nv/nv.c: In 
  function `nvos_create_alloc':
  /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg0/usr/src/nv/nv.c:548:
  warning: use of cast expressions as lvalues is deprecated
  /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg0/usr/src/nv/nv.c:558:
  warning: use of cast expressions as lvalues is deprecated
  /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg0/usr/src/nv/nv.c:571:
  warning: use of cast expressions as lvalues is deprecated
  /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg0/usr/src/nv/nv.c: In 
  function `nvos_find_agp_by_class':
  /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg0/usr/src/nv/nv.c:648:
  warning: assignment makes pointer from integer without a cast
  /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg0/usr/src/nv/nv.c:659:
  warning: assignment makes pointer from integer without a cast
  /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg0/usr/src/nv/nv.c: In 
  function `nvidia_init_module':
  /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg0/usr/src/nv/nv.c:956:
  warning: `pm_register' is deprecated (declared at include/linux/pm.h:107)
  /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg0/usr/src/nv/nv.c:956:
  error: `pm_dev_t' undeclared (first use in this function)
  /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg0/usr/src/nv/nv.c:956:
  error: (Each undeclared identifier is reported only once
  /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg0/usr/src/nv/nv.c:956:
  error: for each function it appears in.)
  /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg0/usr/src/nv/nv.c:956:
  error: syntax error before numeric constant
  /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg0/usr/src/nv/nv.c: In 
  function `nvidia_exit_module':
  /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg0/usr/src/nv/nv.c:1012
  : warning: `pm_unregister' is deprecated (declared at include/linux/pm.h:112
  )
  /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg0/usr/src/nv/nv.c: At 
  top level:
  /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg0/usr/src/nv/nv.c:1219
  : warning: initialization from incompatible pointer type
  /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg0/usr/src/nv/nv.c: In 
  function `nv_alloc_file_private':
  /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg0/usr/src/nv/nv.c:1227
  : warning: use of cast expressions as lvalues is deprecated
  /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg0/usr/src/nv/nv.c:1238
  : warning: use of cast expressions as lvalues is deprecated
  /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg0/usr/src/nv/nv.c: In 
  function `nv_kern_open':
  /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg0/usr/src/nv/nv.c:1299
  : warning: use of cast expressions as lvalues is deprecated
  /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg0/usr/src/nv/nv.c: In 
  function `nv_kern_mmap':
  /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg0/usr/src/nv/nv.c:1475
  : warning: implicit declaration of function `remap_page_range'
  /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg0/usr/src/nv/nv.c: In 
  function `nv_kern_ctl_open':
  /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg0/usr/src/nv/nv.c:1945
  : warning: use of cast expressions as lvalues is deprecated
  /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg0/usr/src/nv/nv.c: In 
  function `_get_phys_address':
  /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg0/usr/src/nv/nv.c:2391
  : error: structure has no member named `pud'
  /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg0/usr/src/nv/nv.c: In 
  function `nv_agp_init':
  /root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg0/usr/src/nv/nv.c:2944
  : warning: `inter_module_put' is deprecated (declared at include/linux/modul
  e.h:578)
  make[2]: *** [/root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg0/usr/sr
  c/nv/nv.o] Error 1
  make[1]: *** [_module_/root/tmp/selfgz17517/NVIDIA-Linux-x86_64-1.0-5332-pkg
  0/usr/src/nv] Error 2
  make[1]: Leaving directory `/usr/src/linux-2.6.11-12mdk'
  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.

 

 

[moved from Software by spinynorman - welcome aboard :)]

Link to comment
Share on other sites

It would seem that you have not installed the kernel-source that exactly matches your kernel.

Open MCC and go to install new software section. Look for kernel-source-2.6.11-x and install it. Then go into the remove software sectiom and scroll down to the k´s region and check that you can see a kernel and kernel-source each with the same number. If you have that then you are on the road.

 

Then perform the nvidia install routine as outlined by nvidia and in other threads.

 

I think you should be okay now.

 

Cheers. John.

Link to comment
Share on other sites

Also, isn't version 5332 of the NVidia driver is well.. old? The version I have while playing around with FC4 x86_64 is 7174. It installs well.. as long as you have matching kernel-source.

 

Note that you need the full kernel-source rpm (not the stripped version) to compile NVidia driver. I made the mistake yesterday of installing the stripped version and NVidia driver just plain won't compile.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...