[mythtv-users] trouble compiling Nvidia driver module (step 8 of Jarod's guide)

Chad Coulliette, Ph.D. dr_chad at cox.net
Thu Nov 13 12:34:36 EST 2003


I have been using Axel's ATrpms and following Jarod's step-by-step guide to building a mythtv box under RH9 with ATrpms, on an old Dell Dimension with a 1.6 GHz P4, 1 GB RAM, Nvidia GeForce 4 Ti4400. and PVR-350.  Axel's ATrpms are great... making the task much easier than using CVS.  And the instructions written by Jarod (and Chris) are very detailed and helpful.   My only complaint was that I did not find out about the ATrpm option and Jarod's guide until I had worked through a considerable portion of the main HOWTO instructions on downloading the MythTV source from CVS and compiling everything.  Maybe there should be a link on the main mythtv.org web page to this guide and the ATrpms site?

Well, everything went fine until I got to step 8 of Jarod's guide.  I downloaded the Nvidia driver that he specifies in the instructions (1.0-4363), but could not compile the interface (module) for the ATrpms kernel (linux-2.4.20-20_29.rh9.at).  The error simply stated "ERROR: Unable to build the NVIDIA kernel module."  It is a very vague error statement, so I attached the end of /var/log/nvidia-installer.log file (I could not post the whole log file because of the mailing list size limit... if anyone needs to see the entire log file, I can email it directly.)  It looks like it made it to line 2701 in the nv.c file.  I also tried downloading the latest Nvidia driver (1.0-4496), but the result was the same.  Any ideas on how to get past this?  There was brief mention of some ATrpms for the nvidia driver in Jarod's guide.  Are those ready yet?  Does this compilation reference the ".config" file from the active kernel?  I started to compile a custom kernel when I was following the main MythTV HOWTO instructions, before discovering the ATrpms and Jarod/Chris' guide.  I had done a "make xconfig" and a "make dep" in the /usr/src/linux-2.4.20-20.9 directory.  Could the Nvidia makefile be looking at the wrong .config file?  This is the only idea I have at the moment.  How can I be sure that the Nvidia script is referencing the linux-2.4.20-20_29.rh9.at kernel and corresponding ".config"?  I am may be way off here.. it could cetrainly be something else.  This is the only thing that I possibly did different from Jarod's instructions.  BTW, why is the nvidia installer using cc and not gcc to compile the module?

I would really like to get this working because this driver seems to provide better overall graphics quality than the default nv driver that comes with RH9, and also because I would like to use the Nvidia TV-out port.  However, I do have a PVR-350.  So, if I could get the TV-out port working on the PVR-350, then I would not need to worry about
getting the Nvidia TV-out working.  Although, based on the discussion posted here, it seems there is no guarantee that I will get the PVR-350 TV-out working.  It sure would be nice to get them both working so that I could make a detailed comparison of Nvidia TV-out with PVR-350 TV-out.  Has anyone made such a comparison?  


Many Thanks,

Chad

============================================================================
  /var/log/nvidia-installer.log
  creation time: Thu Nov 13 06:08:25 2003
============================================================================
  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 include 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: 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 include path: '/lib/modules/2.4.20-20_29.rh9.at/build/include'
-> Cleaning kernel module build directory.
   executing: 'cd ./usr/src/nv; make clean'...
   rm -f nv.o os-agp.o os-interface.o os-registry.o  nv-linux.o
nv_compiler.h *
   .d NVdriver nvidia.o
-> Building kernel module:
   executing: 'cd ./usr/src/nv; make nvidia.o
SYSINCLUDE=/lib/modules/2.4.20-20
   _29.rh9.at/build/include'...
   echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" >
nv_compiler.h
   cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat
-Wchar-subscripts -Wp
   arentheses -Wpointer-arith -Wcast-qual -Wno-multichar  -O -MD
-D__KERNEL__ -
   DMODULE -D_LOOSE_KERNEL_NAMES -DNTRM -D_GNU_SOURCE
-D_LOOSE_KERNEL_NAMES -D_
   _KERNEL__ -DMODULE  -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0
-DNV_PATCHLEVE
   L=4496  -DNV_UNIX   -DNV_LINUX   -DNV_INT64_OK   -DNVCPU_X86     
-DREMAP_PA
   GE_RANGE_5  -I. -I/lib/modules/2.4.20-20_29.rh9.at/build/include
-Wno-cast-q
   ual nv.c
   In file included from nv-linux.h:27,
                    from nv.c:14:
   /lib/modules/2.4.20-20_29.rh9.at/build/include/linux/kernel.h:60:
invalid su
   ffix on integer constant
   /lib/modules/2.4.20-20_29.rh9.at/build/include/linux/kernel.h:60:
parse erro
   r before numeric constant
   /lib/modules/2.4.20-20_29.rh9.at/build/include/linux/kernel.h:61:
invalid su
   ffix on integer constant
   /lib/modules/2.4.20-20_29.rh9.at/build/include/linux/kernel.h:61:
parse erro
   r before numeric constant
   /lib/modules/2.4.20-20_29.rh9.at/build/include/linux/kernel.h:62:
`panic_R_v
   er_str' declared as function returning a function
   /lib/modules/2.4.20-20_29.rh9.at/build/include/linux/kernel.h:68:
parse erro
   r before numeric constant
   /lib/modules/2.4.20-20_29.rh9.at/build/include/linux/kernel.h:68:

 . . . . . 

[I cut the middle of the log file out here so that it would be short enough to send through the mailing list, hopefully this leaves enough to figure out what is causing the problem.. if anyone wants to see the whole log file, email me directly at dr_chad at cox.net]

 . . . . . 

   m.h:22,
                    from
/lib/modules/2.4.20-20_29.rh9.at/build/include/linux/s
   lab.h:14,
                    from nv-linux.h:71,
                    from nv.c:14:
   /lib/modules/2.4.20-20_29.rh9.at/build/include/linux/dcache.h: In
function `
   dget':
   /lib/modules/2.4.20-20_29.rh9.at/build/include/linux/dcache.h:254:
warning: 
   implicit declaration of function `__out_of_line_bug_R8b0fd3c5'
   In file included from
/lib/modules/2.4.20-20_29.rh9.at/build/include/linux/v
   malloc.h:8,
                    from nv-linux.h:72,
                    from nv.c:14:
   /lib/modules/2.4.20-20_29.rh9.at/build/include/linux/highmem.h: In
function 
   `bh_kmap':
   /lib/modules/2.4.20-20_29.rh9.at/build/include/linux/highmem.h:20:
warning: 
   pointer of type `void *' used in arithmetic
   In file included from nv.c:14:
   nv-linux.h: In function `pgprot_noncached':
   nv-linux.h:508: `boot_cpu_data_R0657d037' undeclared (first use in
this func
   tion)
   nv-linux.h:508: (Each undeclared identifier is reported only once
   nv-linux.h:508: for each function it appears in.)
   nv.c: In function `nvos_proc_create':
   nv.c:623: warning: implicit declaration of function
`sprintf_R1d26aa98'
   nv.c: In function `nv_agp_init':
   nv.c:2700: warning: implicit declaration of function
`inter_module_get_Rf6a0
   ce24'
   nv.c:2701: warning: implicit declaration of function
`inter_module_put_R6b99
   f7d8'
   make: *** [nv.o] Error 1
-> 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.












-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20031113/cb5f153d/attachment.htm


More information about the mythtv-users mailing list