LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   NVidia drivers on AMD 64 (http://www.linuxquestions.org/questions/linux-hardware-18/nvidia-drivers-on-amd-64-a-304631/)

doctorwebbox 03-22-2005 06:46 AM

NVidia drivers on AMD 64
 
I can't get NVidia drivers to compile for a 64 bit kernel on my new machine.

This is the log output when I tryied to run NVIDIA-Linux-x86_64-1.0-6629-pkg2.run when using the 2.6.10-9-amd64-generic kernel with the headers package installed (although I've tried it with several different 64 bit kernels):

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Tue Mar 22 11:35:42 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
no backup : false
kernel module only : false
sanity : false
add this kernel : true
no runlevel check : false
no network : false
no ABI note : false
no RPMs : false
force tls : (not specified)
force compat32 tls : (not specified)
X install prefix : /usr/X11R6
OpenGL install prefix : /usr
compat32 install prefix : /emul/ia32-linux
installer install prefix: /usr
utility install prefix : /usr
kernel name : (not specified)
kernel include path : (not specified)
kernel source path : (not specified)
kernel output path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp mirror : ftp://download.nvidia.com
RPM file list : (not specified)

Using: nvidia-installer ncurses user interface
-> Kernel source path: '/lib/modules/2.6.10-9-amd64-generic/build'
-> Copying kernel module sources to temporary directory.
-> Building kernel interface:
executing: 'cd /tmp/nvidia-4023; make nv-linux.o SYSSRC=/lib/modules/2.6.10-
9-amd64-generic/build'...
Your kernel was configured to include rivafb support as
a loadable kernel module.

The rivafb driver conflicts with the NVIDIA driver; the
NVIDIA kernel module will still be built and installed,
but be aware that the NVIDIA driver will not be able to
function properly if the rivafb module is loaded!

*** Failed rivafb module sanity check, but continuing! ***


NVIDIA: calling KBUILD...
make CC=cc KBUILD_VERBOSE=1 -C /lib/modules/2.6.10-9-amd64-generic/build SU
BDIRS=/tmp/nvidia-4023 modules
mkdir -p /tmp/nvidia-4023/.tmp_versions
make -f scripts/Makefile.build obj=/tmp/nvidia-4023
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /tmp/nvidia-4023/nv
_compiler.h
cc -Wp,-MD,/tmp/nvidia-4023/.nv.o.d -nostdinc -iwithprefix include -D__KER
NEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasi
ng -fno-common -O2 -fomit-frame-pointer -mno-red-zone -mcmodel=kernel -
pipe -fno-reorder-blocks -Wno-sign-compare -fno-asynchronous-unwind-tables
-I/tmp/nvidia-4023 -Wall -Wimplicit -Wret
urn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith
-Wno-multichar -Werror -O -fno-common -mno-red-zone -MD -Wno-cast-qual -W
no-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -mcmodel=kernel -DNTRM
-D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSIO
N=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=6629 -DNV_UNIX -DNV_LINUX -DNV_I
NT64_OK -DNVCPU_X86_64 -DNV_64_BITS -UDEBUG -U_DEBUG -DNDEBUG -DNV_CHAN
GE_PAGE_ATTR_PRESENT -DNV_PCI_DISABLE_DEVICE_PRESENT -DMODULE -DKBUILD_BASE
NAME=nv -DKBUILD_MODNAME=nvidia -c -o /tmp/nvidia-4023/.tmp_nv.o /tmp/nvidia
-4023/nv.c
cc1: error: code model `kernel' not supported in the 32 bit mode
make[3]: *** [/tmp/nvidia-4023/nv.o] Error 1
make[2]: *** [_module_/tmp/nvidia-4023] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [nv-linux.o] Error 2
-> Error.
ERROR: Unable to build the NVIDIA kernel module interface.
ERROR: Unable to add a precompiled kernel interface for the running kernel.

The driver compiles fine using non 64 bit kernels with the appropriate installer. Can anyone help?

huibert.alblas 03-22-2005 10:59 AM

I had problems building the Nvidia drivers with debian prepackaged kernels, and header packages.

My way out was to build my own kernel, Nvidia compiled fine then.


All times are GMT -5. The time now is 06:08 PM.