19.03.2024, 07:22 UhrDeutsch | English
Hallo Gast [ Registrierung | Anmelden ]

Neues Thema eröffnen   Neue Antwort erstellen
Vorheriges Thema anzeigen Druckerfreundliche Version Einloggen, um private Nachrichten zu lesen Nächstes Thema anzeigen
Autor Nachricht
Kanotix-Newbie
Titel: Can't compile the Nvidia kernel module  BeitragVerfasst am: 28.12.2006, 05:31 Uhr



Anmeldung: 24. Jul 2005
Beiträge: 39

I've been trying to install the nvidia-driver with kernel 2.6.19.1 and using the 'install-nvidia-debian.sh' script but it fails silently. So I installed the nvidia kernel source and tried to build the module manually but it fails too. This is what I get. Can somebody make any sense of this? Thanks.

Code:
root@he:/usr/src/linux# make-kpkg buildpackage -rev Custom.1 modules_image
exec debian/rules  DEBIAN_REVISION=Custom.1  buildpackage modules_image

====== making target CONFIG-common [new prereqs: testdir]======

====== making target CONFIG-common [new prereqs: stamp-conf]======
This is kernel package version 10.065.
for module in /usr/src/modules/nvidia-kernel ; do                       \
          if test -d  $module; then                                \
            (cd $module;                                          \
              if ./debian/rules KVERS="2.6.19.1" KSRC="/usr/src/linux" \
                             KMAINT="human equation" KEMAIL="human@he.local"      \
                             KPKG_DEST_DIR="/usr/src/linux/.."       \
                             KPKG_MAINTAINER="human equation"        \
                             KPKG_EXTRAV_ARG=""        \
                             ARCH="i386"                  \
                             KDREV="Custom.1" kdist_image; then    \
                  echo "Module $module processed fine";            \
              else                                                  \
                   echo "Module $module failed.";                  \
                   if [ "X" != "X" ]; then      \
                      echo "Perhaps $module does not understand --rootcmd?";  \
                      echo "If you see messages that indicate that it is not"; \
                      echo "in fact being built as root, please file a bug ";  \
                      echo "against $module.";                     \
                   fi;                                              \
                   echo "Hit return to Continue";                   \
                 read ans;                                        \
              fi;                                                   \
             );                                                    \
          else                                                      \
               echo "Module $module does not exist";               \
               echo "Hit return to Continue?";                      \
          fi;                                                       \
        done
make[1]: Entering directory `/usr/src/modules/nvidia-kernel'
echo "ROOT_CMD = "
ROOT_CMD =
/usr/bin/make -w -f debian/rules binary_modules
make[2]: Entering directory `/usr/src/modules/nvidia-kernel'
# select which makefile to use.
rm -f /usr/src/modules/nvidia-kernel/nv/Makefile || true
if [ 6 = 6  ]; then \
             cd /usr/src/modules/nvidia-kernel/nv ; \
             ln -s Makefile.kbuild Makefile ; \
             cd .. ; \
             if [ 0  = 1 ] ; then \
                dpatch apply 04_minion ; \
             fi ; \
             if [ 0 = 1 ]; then \
                dpatch apply 01_sysfs ; \
                dpatch status 01_sysfs >patch-stamp ; \
                dpatch apply 02_pcialias ; \
                dpatch status 02_pcialias >>patch-stamp ; \
             fi ; \
        fi
if [  6 = 4  ]; then \
             cd /usr/src/modules/nvidia-kernel/nv ; \
             ln -s Makefile.nvidia Makefile ; \
             cd .. ; \
        fi
if ! gcc -v 2> /dev/null  ; then \
          echo "Compiler gcc does not exist on the system" ; \
          exit 1; \
        fi
touch configure-stamp
if [ -f /usr/src/modules/nvidia-kernel/debian/control.template ]; then \
                cp  /usr/src/modules/nvidia-kernel/debian/control.template /usr/src/modules/nvidia-kernel/debian/control; \
        fi
dh_testdir
dh_testroot
PATCHLEVEL = 6
Kernel compiler version : 4.1.1
Detected compiler version : 4.1.1
Using compiler gcc version 4.1.1
touch /usr/src/modules/nvidia-kernel/nv/gcc-check
touch /usr/src/modules/nvidia-kernel/nv/cc-sanity-check
## Main Make ##
IGNORE_CC_MISMATCH=1 CC="gcc"  /usr/bin/make -C /usr/src/modules/nvidia-kernel/nv -f Makefile SYSSRC=/usr/src/linux   KBUILD_PARAMS="-C /usr/src/linux SUBDIRS=/usr/src/modules/nvidia-kernel/nv" module;
make[3]: Entering directory `/usr/src/modules/nvidia-kernel/nv'

NVIDIA: calling KBUILD...
make CC=gcc -C /usr/src/linux SUBDIRS=/usr/src/modules/nvidia-kernel/nv modules
make[4]: Entering directory `/usr/src/linux-2.6.19.1'
echo \#define NV_COMPILER \"`gcc -v 2>&1 | tail -n 1`\" > /usr/src/modules/nvidia-kernel/nv/nv_compiler.h
  CC [M]  /usr/src/modules/nvidia-kernel/nv/nv.o
In file included from /usr/src/modules/nvidia-kernel/nv/nv.c:14:
/usr/src/modules/nvidia-kernel/nv/nv-linux.h:17:26: error: linux/config.h: No such file or directory
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 /usr/src/modules/nvidia-kernel/nv/nv-linux.h:19,
                 from /usr/src/modules/nvidia-kernel/nv/nv.c:14:
include/linux/prefetch.h: In function 'prefetch_range':
include/linux/prefetch.h:62: warning: pointer of type 'void *' used in arithmetic
/usr/src/modules/nvidia-kernel/nv/nv.c: In function 'nv_kern_open':
/usr/src/modules/nvidia-kernel/nv/nv.c:1806: warning: passing argument 2 of 'request_irq' from incompatible pointer type
make[5]: *** [/usr/src/modules/nvidia-kernel/nv/nv.o] Error 1
make[4]: *** [_module_/usr/src/modules/nvidia-kernel/nv] Error 2
make[4]: Leaving directory `/usr/src/linux-2.6.19.1'
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[3]: *** [mdl] Error 1
make[3]: Leaving directory `/usr/src/modules/nvidia-kernel/nv'
make[2]: *** [build-stamp] Error 2
make[2]: Leaving directory `/usr/src/modules/nvidia-kernel'
make[1]: *** [kdist_image] Error 2
make[1]: Leaving directory `/usr/src/modules/nvidia-kernel'
Module /usr/src/modules/nvidia-kernel failed.
Hit return to Continue
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
jackiebrown
Titel: RE: Can  BeitragVerfasst am: 28.12.2006, 23:32 Uhr



Anmeldung: 13. Mai 2005
Beiträge: 732
Wohnort: Texas
Maybe a gcc error? I compile my the debian way and it works for that kernel number.

If the gcc that compiled the kerenel is different enough it will fail.

_________________
Always acknowledge a fault. This will throw those in authority off their guard and give you an opportunity to commit more.
Mark Twain
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
Kanotix-Newbie
Titel: Re: RE: Can  BeitragVerfasst am: 29.12.2006, 05:32 Uhr



Anmeldung: 24. Jul 2005
Beiträge: 39

jackiebrown hat folgendes geschrieben::
Maybe a gcc error? I compile my the debian way and it works for that kernel number.

If the gcc that compiled the kerenel is different enough it will fail.


I doubt it's a gcc error. I built my kernel with the same gcc version as the one I tried to build the nvidia kernel module with.

I just tried to build it with module-assistant.

Code:
 module-assistant auto-install nvidia


It fails too.
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
AlexB
Titel:   BeitragVerfasst am: 30.12.2006, 07:14 Uhr



Anmeldung: 13. Jun 2005
Beiträge: 103

What version of nvidia are you trying to install?
What nvidia card do you have?
did you search for config.h in your current kernel folder to see if it's there?
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
Kanotix-Newbie
Titel:   BeitragVerfasst am: 30.12.2006, 14:07 Uhr



Anmeldung: 24. Jul 2005
Beiträge: 39

AlexB hat folgendes geschrieben::
What version of nvidia are you trying to install?
What nvidia card do you have?
did you search for config.h in your current kernel folder to see if it's there?


My Nvidia card is a GeForce4 MX 440SE AGP 8X (rev. a2). The Nvidia driver version I'm attempting to install is 1.0.8776-3. And config.h is nowhere to be found in my current kernel folder.
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
Kano
Titel:   BeitragVerfasst am: 30.12.2006, 17:22 Uhr



Anmeldung: 17. Dez 2003
Beiträge: 16783

It was renamed to autoconf.h .
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
Kanotix-Newbie
Titel:   BeitragVerfasst am: 30.12.2006, 20:10 Uhr



Anmeldung: 24. Jul 2005
Beiträge: 39

Kano hat folgendes geschrieben::
It was renamed to autoconf.h .


There is no such file either.
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
Kano
Titel:   BeitragVerfasst am: 30.12.2006, 22:28 Uhr



Anmeldung: 17. Dez 2003
Beiträge: 16783

When you are unable to install kernel headers correctly then nobody can help you.
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
Beiträge vom vorherigen Thema anzeigen:     
Gehe zu:  
Alle Zeiten sind GMT + 1 Stunde
Neues Thema eröffnen   Neue Antwort erstellen
Vorheriges Thema anzeigen Druckerfreundliche Version Einloggen, um private Nachrichten zu lesen Nächstes Thema anzeigen
PNphpBB2 © 2003-2007 
 
Deutsch | English
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2004 - 2006 by Jörg Schirottke (Kano).
Consult Impressum and Legal Terms for details. Kanotix is Free Software released under the GNU/GPL license.
This CMS is powered by PostNuke, all themes used at this site are released under the GNU/GPL license. designed and hosted by w3you. Our web server is running on Kanotix64-2006.