clemmy
11-03-2004, 17:37
cercando di installare i driver nvidia mi viene fuori st'errore mentre compila la kernel interface..
ho debian (knoppix 3.3 instalata su hd) con kernel 2.4.22-xfs...
avevo fatto una cosa strana,anche se non credo che sia quello il probl:inizialmente non iniziava nemmeno la compilazione,perchè il compilatore era diverso da quello usato per compilare il mio kernel,così ho giracchiato un po nel fs,e ho visto che il file /usr/bin/gcc era un link simbolico al file /usr/bin/gcc-3.3..l'ho cancellato e ho rinominato /usr/bin/gcc-2.95 in /usr/bin/gcc (dato che il mio kernel è stato compilato col 2.94)..forse non era questo il modo giusto per settare quale dei gcc usare,cmq funziona:infatti ora compila..peccato che poi non riesca a portare a termine la compilazione
questo è il file /var/log/nvidia-installer.log
-> 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.22-xfs/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.22-xf
s/build/include'...
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -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=4363 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -I. -I/li
b/modules/2.4.22-xfs/build/include -Wno-cast-qual nv.c
In file included from nv-linux.h:27,
from nv.c:14:
/lib/modules/2.4.22-xfs/build/include/linux/kernel.h:143: #error "Please fix
asm/byteorder.h"
In file included from nv.c:14:
nv-linux.h:167: #error "Couldn't determine number of arguments expected by r
emap_page_range!"
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.
ho debian (knoppix 3.3 instalata su hd) con kernel 2.4.22-xfs...
avevo fatto una cosa strana,anche se non credo che sia quello il probl:inizialmente non iniziava nemmeno la compilazione,perchè il compilatore era diverso da quello usato per compilare il mio kernel,così ho giracchiato un po nel fs,e ho visto che il file /usr/bin/gcc era un link simbolico al file /usr/bin/gcc-3.3..l'ho cancellato e ho rinominato /usr/bin/gcc-2.95 in /usr/bin/gcc (dato che il mio kernel è stato compilato col 2.94)..forse non era questo il modo giusto per settare quale dei gcc usare,cmq funziona:infatti ora compila..peccato che poi non riesca a portare a termine la compilazione
questo è il file /var/log/nvidia-installer.log
-> 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.22-xfs/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.22-xf
s/build/include'...
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -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=4363 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -I. -I/li
b/modules/2.4.22-xfs/build/include -Wno-cast-qual nv.c
In file included from nv-linux.h:27,
from nv.c:14:
/lib/modules/2.4.22-xfs/build/include/linux/kernel.h:143: #error "Please fix
asm/byteorder.h"
In file included from nv.c:14:
nv-linux.h:167: #error "Couldn't determine number of arguments expected by r
emap_page_range!"
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.