PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Neuer nvidia-treiber



scorpius
14.08.03, 07:51
Hilfe!
Beim Versuch den neuen nv-treiber zu installieren, bricht die Installation ab. Fehlermeldung: siehe nvidia-installer.log:

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Thu Aug 14 08:26:18 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: 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 include path: '/lib/modules/2.4.20-4GB-athlon/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-4G
B-athlon/build/include'...

You appear to be compiling the NVIDIA kernel module with
a compiler different from the one that was used to compile
the running kernel. This may be perfectly fine, but there
are cases where this can lead to unexpected behaviour and
system crashes.

If you know what you are doing and want to override this
check, you can do so by setting IGNORE_CC_MISMATCH.

In any other case, set the CC environment variable to the
name of the compiler that was used to compile the kernel.

[1;31m*** Failed cc sanity check. Bailing out! ***
[0mmake: *** [gcc-check] 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.

:confused: Was habe ich falsch gemacht :confused:

Danke

pippi
14.08.03, 08:25
hallo,

ich hatte meinen kernel mit dem gcc-3.2.1 (oder war es 3.2.2?) kompiliert und dann auf die 3.2.3 upgedatet. nun hatte ich vor, den neuen treiber von nvidia zu installieren und habe auch dieses hier zu lesen bekommen:



You appear to be compiling the NVIDIA kernel module with
a compiler different from the one that was used to compile
the running kernel.


du musst /solltest den kernel mit deiner aktuellen gcc -version neu kompilieren (und installieren), dann klappt's auch mit nvidia.

pippi

jenst
14.08.03, 08:27
moin,

wahrscheinlich ist deine aktuelle gcc version eine andere, als die mit der der kernel compiliert wurde.
um die aktuelle gcc version zu überprüfen:
ls -al /usr/bin/gcc
das zeigt wohin gcc verlingt ist
die gcc-version, mit der der kernel compiliert wurde zeigt:
cat /proc/version


If you know what you are doing and want to override this
check, you can do so by setting IGNORE_CC_MISMATCH.
du kannst IGNORE_CC_MISMATCH auf 1 setzen
export IGNORE_CC_MISMATCH=1
oder

In any other case, set the CC environment variable to the
name of the compiler that was used to compile the kernel.
du kannst auch /usr/bin/gcc auf die nötige gcc-version verlinken
kann sein, dass du die installieren musst.

jens

scorpius
14.08.03, 09:13
Kriegs nicht hin
IGNORE_CC_MISMATCH
auf 1 zu setzen:(
Wie ist der Syntax ???

pippi
14.08.03, 09:20
hallo,

da steht es doch:


Original geschrieben von jenst

du kannst IGNORE_CC_MISMATCH auf 1 setzen
export IGNORE_CC_MISMATCH=1


du musst also einfach "export IGNORE_CC_MISMATCH=1" eintippen!

pippi

scorpius
14.08.03, 09:36
Sorry,
dachte IGNORE_CC_MISMATCH ist als Option zum Installer zu sehen:rolleyes:

Bin jetzt ein Stück weiter, geht aber immer noch nicht:

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Thu Aug 14 10:25:17 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: 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 include path: '/lib/modules/2.4.20-4GB-athlon/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-4G
B-athlon/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_4 -I. -I/lib/modules/2.4.20-4GB-athlon/build/include -Wno-cast-qua
l nv.c
In file included from /lib/modules/2.4.20-4GB-athlon/build/include/linux/vma
lloc.h:8,
from nv-linux.h:72,
from nv.c:14:
/lib/modules/2.4.20-4GB-athlon/build/include/linux/highmem.h: In function `b
h_kmap':
/lib/modules/2.4.20-4GB-athlon/build/include/linux/highmem.h:22: warning: po
inter of type `void *' used in arithmetic
In file included from nv.c:14:
nv-linux.h: In function `calc_order':
nv-linux.h:497: warning: comparison between signed and unsigned
nv.c: In function `nvos_post_vbios':
nv.c:194: warning: comparison between signed and unsigned
nv.c:194: warning: comparison between signed and unsigned
nv.c: In function `nvl_find_alloc':
nv.c:697: warning: comparison between signed and unsigned
nv.c: In function `nv_kern_mmap':
nv.c:1345: warning: comparison between signed and unsigned
nv.c:1364: warning: comparison between signed and unsigned
nv.c:1391: warning: comparison between signed and unsigned
nv.c:1438: warning: comparison between signed and unsigned
nv.c: In function `nv_find_kernel_mapping':
nv.c:2134: warning: comparison between signed and unsigned
nv.c: In function `nv_find_agp_kernel_mapping':
nv.c:2197: warning: comparison between signed and unsigned
nv.c: In function `nv_alloc_pages':
nv.c:2366: warning: comparison between signed and unsigned
nv.c:2394: warning: comparison between signed and unsigned
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_4 -I. -I/lib/modules/2.4.20-4GB-athlon/build/include -Wno-cast-qua
l os-agp.c
In file included from /lib/modules/2.4.20-4GB-athlon/build/include/linux/vma
lloc.h:8,
from nv-linux.h:72,
from os-agp.c:24:
/lib/modules/2.4.20-4GB-athlon/build/include/linux/highmem.h: In function `b
h_kmap':
/lib/modules/2.4.20-4GB-athlon/build/include/linux/highmem.h:22: warning: po
inter of type `void *' used in arithmetic
In file included from os-agp.c:24:
nv-linux.h: In function `calc_order':
nv-linux.h:497: warning: comparison between signed and unsigned
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_4 -I. -I/lib/modules/2.4.20-4GB-athlon/build/include -Wno-cast-qua
l os-interface.c
In file included from /lib/modules/2.4.20-4GB-athlon/build/include/linux/vma
lloc.h:8,
from nv-linux.h:72,
from os-interface.c:26:
/lib/modules/2.4.20-4GB-athlon/build/include/linux/highmem.h: In function `b
h_kmap':
/lib/modules/2.4.20-4GB-athlon/build/include/linux/highmem.h:22: warning: po
inter of type `void *' used in arithmetic
In file included from os-interface.c:26:
nv-linux.h: In function `calc_order':
nv-linux.h:497: warning: comparison between signed and unsigned
os-interface.c: In function `os_dbg_init':
os-interface.c:958: warning: comparison between signed and unsigned
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_4 -I. -I/lib/modules/2.4.20-4GB-athlon/build/include -Wno-cast-qua
l os-registry.c
In file included from /lib/modules/2.4.20-4GB-athlon/build/include/linux/vma
lloc.h:8,
from nv-linux.h:72,
from os-registry.c:14:
/lib/modules/2.4.20-4GB-athlon/build/include/linux/highmem.h: In function `b
h_kmap':
/lib/modules/2.4.20-4GB-athlon/build/include/linux/highmem.h:22: warning: po
inter of type `void *' used in arithmetic
In file included from os-registry.c:14:
nv-linux.h: In function `calc_order':
nv-linux.h:497: warning: comparison between signed and unsigned
ld -r -o nv-linux.o nv.o os-agp.o os-interface.o os-registry.o
ld -r -o nvidia.o nv-linux.o nv-kernel.o
-> done.
-> Kernel module compilation complete.
ERROR: Unable to load the kernel module 'nvidia.o'. This is most likely
because the kernel module was built using the wrong kernel header files.
Please make sure you have installed the kernel header files for your
kernel; on Red Hat Linux systems, for example, be sure you have the
'kernel-source' rpm installed. If you know the correct kernel header
files are installed, you may specify the kernel include path with the
'--kernel-include-path' commandline option.
-> Kernel module load error: ./usr/src/nv/nvidia.o: kernel-module version
mismatch
./usr/src/nv/nvidia.o was compiled for kernel version 2.4.20-4GB
while this kernel is version 2.4.20-4GB-athlon.
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.



Tut mir leid wenn ich nerve;)

knallzapzerap
14.08.03, 09:42
bei mir hat es eben mit

init 3
export IGNORE_CC_MISMATCH=1
nvidiainstaller --update
wunderbar hingehauen. Allerdings war meine XFree86config durch ein danach ausgeführtes sax2 ziemlich zerschossen, was sich aber durch die XFree86config.saxsave ziemlich schnell wieder bereinigen liess. Ich hatte vorher den 4363 drauf, der sich nach dem letzten Update (Suse Online-Update des Kernels) bei mir noch installieren liess.

RTC
14.08.03, 10:38
Original geschrieben von scorpius
-> Kernel module load error: ./usr/src/nv/nvidia.o: kernel-module version
mismatch
./usr/src/nv/nvidia.o was compiled for kernel version 2.4.20-4GB
while this kernel is version 2.4.20-4GB-athlon.
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

Sieht so aus, als könne er das Modul nicht laden, weil dein Kernel Version 2.4.20-4GB-athlon ist, wo hingegen die Kernel Sources Version 2.4.20-4GB (ohne -athlon) sind. Klassischer version mismatch also.
Probiere die Version in der /usr/src/linux/include/linux/version.h von 2.4.20-4GB auf 2.4.20-4GB-athlon zu ändern und kompiliere das Modul erneut. Hat bei mir eigentlich immer geklappt :D

jenst
14.08.03, 10:38
-> Kernel module load error: ./usr/src/nv/nvidia.o: kernel-module version
mismatch
./usr/src/nv/nvidia.o was compiled for kernel version 2.4.20-4GB
while this kernel is version 2.4.20-4GB-athlon.

welcher kernel läuft bei dir? (uname -r)

scorpius
14.08.03, 11:05
Bei mir läuft 2.4.20-4GB-athlon

dev_bse
14.08.03, 12:01
liegt definitiv an der gcc version. Das ist Mist, und jetzt kriegst du das ganz mistig wieder aus der Welt, ich hab den Kernel neu kompiliert, leider wusste ich auch keine andere Loesung.

RTC
14.08.03, 13:02
Versuch's trotzdem mal so, wie ich es gemeint habe mit dem Ändern der version.h. Ist zwar ein bisschen brutal, aber eigentlich geht es ohne Probleme... :o

scorpius
14.08.03, 13:14
Original geschrieben von RTC
Versuch's trotzdem mal so, wie ich es gemeint habe mit dem Ändern der version.h. Ist zwar ein bisschen brutal, aber eigentlich geht es ohne Probleme... :o

Hab's gemacht, wieso ist doch nicht brutal:)

Auf jedenfall hat es funktioniert :) :) :)
Hoffentlich hat das keine "Nebenwirkungen" irgendwo anders:(
Hab noch ein paar Einstellungen verändert (XFree) und ein bisschen rumgetestet (HowTo stefan.becker - danke)

Danke an alle !!!

RTC
14.08.03, 14:09
Könnte höchstens passieren, dass es zu Nebenwirkungen kommt, wenn du einige athlon-spezifische Programme kompilieren willst, da der Athlon-Patch in den Kernel-Sources fehlt, du ja nur den Namen auf diesen Kernel gesetzt hast. Hm, hab leider keine Ahnung worin die Unterschiede zwischen 4-GB und 4-GB-athlon bestehen, jetzt wo es gut kompiliert hat kannst du die Version auch getrost wieder auf 2.4.20-4GB zurücksetzen, da du das Modul mit dieser Version ja schon kompiliert hast.

Viel Spass mit dem nv-Treiber.
Ciao

shadowhunter
07.09.03, 02:09
Guten Morgen.
Entschuldigt, das ich diesen Theard jetzt nochmal ausgrabe, aber ich habe ein ähnliches Problem und komme nicht weiter. Ich habe auch die 8.2 von SuSE und hab per YOU den Kernel Upgedatet und bekomme den Installer nicht dazu zu installieren.
Beim Update, wurde auf ein NVIDIA Installer HOWTO auf folgende Seite verwiesen: http://www.suse.de/de/private/download/xfree86/index.html

In diesem Howto, habe ich folgendes gefunden:
Use the nvidia installer.

export IGNORE_CC_MISMATCH=yes
sh NVIDIA-Linux-x86-1.0-4496-pkg2.run

Hat nix gebracht. Beim suchen hier, bin ich auf diesen Theard gestoßen und hab es dann nochmal (wie oben beschrieben) mit export IGNORE_CC_MISMATCH=1 außprobiert, was jedoch auch nicht funktionierte.
Der kann irgendwie nie was mit meinem Kernel (2.4.20-4GB) anfangen.

Auszug aus /var/log/nvidia-installer.log:
-> 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.
ERROR: Unable to find the kernel header files for the currently running kernel.
Please make sure you have installed the kernel header files for your
kernel; on Red Hat Linux systems, for example, be sure you have the
'kernel-source' rpm installed. If you know the correct kernel header
files are installed, you may specify the kernel include path with the
'--kernel-include-path' commandline option.
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.

Ehrlich gesagt verstehe ich nur Bahnhof.:ugly:
Könnt ihr mir vieleicht sagen, wo das Problem liegen könnte und was ich tun kann?

zander
07.09.03, 10:46
Durch die Änderung der Versionskennung in .../include/linux/version.h wird die Konfiguration des Kernels nicht berührt, es ist also nicht mit Nebenwirkungen zu rechnen; besser wäre es aus Konsistenzgründen, die Änderung direkt oder indirekt (über Umgebungsvariablen) im obersten Makefile vorzunehmen (EXTRAVERSION) und die Konfiguration zu wiederholen (make mrproper cloneconfig depend clean).

shadowhunter
07.09.03, 13:52
Ich verstehe nicht recht.