View Single Post
Old 03-02-03, 08:17 PM   #1
zerowork
Registered User
 
Join Date: Mar 2003
Posts: 1
Question AMD64 NVIDIA_kernel-1.0-4180 :: compile error

Hi all,

can someone help me out? I use a SUSE 8.0 distribution and try to compile the NVIDIA AMD64 kernel module.

But unfortunatly this does not work. After getting a warning concerning himem.h the compilation stops with an error. Why?

What I get is the following:

______________________________

trillian:/downloads/nvidia/AMD64/NVIDIA_kernel-1.0-4180 # make
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -1`\" > nv_compiler.h
cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wcast-qual -Wno-multichar -O -MD -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -mcmodel=kernel -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=4180 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNV_64_BITS -DNVCPU_X86_64 -I. -I/lib/modules/2.4.18-4GB/build/include -Wno-cast-qual nv.c
cc1: Invalid option `cmodel=kernel'
In file included from nv-linux.h:83,
from nv.c:14:
/lib/modules/2.4.18-4GB/build/include/linux/highmem.h: In function `bh_kmap':
/lib/modules/2.4.18-4GB/build/include/linux/highmem.h:21: warning: pointer of type `void *' used in arithmetic
nv.c: In function `nv_agp_translate_address':
nv.c:2756: warning: cast from pointer to integer of different size
make: *** [nv.o] Error 1
zerowork is offline   Reply With Quote