View Single Post
Old 08-08-07, 07:19 PM   #3
Vehyla
Registered User
 
Join Date: Aug 2007
Posts: 1
Default Re: NVIDIA Xen 3.0 Patch for driver 100.14.11

I tried this patch on RHEL5 and the patch didn't come up with any errors. But when I install it seems to fail at "make module". Has anyone been able to test this out with RHEL5? Here is the error log if anyone finds it helpful.

-> Building kernel module:
executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.18-8.1.8.el
5xen/source SYSOUT=/lib/modules/2.6.18-8.1.8.el5xen/build'...
sh ./conftest.sh "cc" "cc" /lib/modules/2.6.18-8.1.8.el5xen/source /lib/modu
les/2.6.18-8.1.8.el5xen/build cc_sanity_check full_output
sh ./conftest.sh "cc" "cc" /lib/modules/2.6.18-8.1.8.el5xen/source /lib/modu
les/2.6.18-8.1.8.el5xen/build select_makefile full_output
make --no-print-directory -f Makefile module

NVIDIA: calling KBUILD...
make CC=cc KBUILD_OUTPUT=/lib/modules/2.6.18-8.1.8.el5xen/build KBUILD_VERBO
SE=1 -C /lib/modules/2.6.18-8.1.8.el5xen/source SUBDIRS=/tmp/NVIDIA-Linux-x8
6_64-100.14.11-pkg2/usr/src/nv modules
make -C /lib/modules/2.6.18-8.1.8.el5xen/build \
KBUILD_SRC=/usr/src/kernels/2.6.18-8.1.8.el5-xen-x86_64 \
KBUILD_EXTMOD="/tmp/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv" -f /usr/
src/kernels/2.6.18-8.1.8.el5-xen-x86_64/Makefile modules
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are mis
sing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it
."; \
echo; \
/bin/false)
mkdir -p /tmp/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/.tmp_versions
rm -f /tmp/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/.tmp_versions/*
make -f /usr/src/kernels/2.6.18-8.1.8.el5-xen-x86_64/scripts/Makefile.build
obj=/tmp/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /tmp/NVIDIA-Linux-x
86_64-100.14.11-pkg2/usr/src/nv/nv_compiler.h
cc -Wp,-MD,/tmp/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/.nv.o.d -no
stdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.1.1/include -Iinclude2/as
m/mach-xen -D__KERNEL__ -Iinclude -Iinclude2 -I/usr/src/kernels/2.6.18-8.1.8
.el5-xen-x86_64/include -include include/linux/autoconf.h -D__XEN_INTERFACE_
VERSION__=0x00030203 -I/tmp/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv -
Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-co
mmon -Wstrict-prototypes -Wundef -Werror-implicit-function-declaration -Os -
mtun
e=generic -m64 -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks -Wno-
sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-
mmx -mno-sse2 -mno-3dnow -fomit-frame-pointer -g -fno-stack-protector -Wdecl
aration-after-statement -Wno-pointer-sign -I/tmp/NVIDIA-Linux-x86_64-100.14
.11-pkg2/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-
subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -O -fno-comm
on -msoft-float -mcmodel=kernel -mno-red-zone -MD -Wsign-compare -Wno-cast-q
ual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSI
ON_STRING=\"100.14.11\" -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -D
NV_MULTIPLE_BRIDGE_AGPGART_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DNV_SYSCTL_MA
X_MAP_COUNT_PRESENT -DNV_PM_MESSAGE_T_PRESENT -DNV_IRQ_HANDLER_WITH_PTREGS_P
RESENT -DNV_PCI_CHOOSE_STATE_PRESENT -DNV_VM_INSERT_PAGE_PRESENT -DNV_OLD_MM
_KGDB_BREAKPOINT_PRESENT -DNV_ACPI_DEVICE_OPS_MATCH_PRESENT -DNV_REMAP_PFN_R
ANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_P
RESENT -DNV_ACQUIRE_CONSOLE_SEM_PRESENT -DNV_VMAP_4_PRESENT -DMODULE -D"KBUI
LD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)" -D"KBUILD_MODNAME=KBUILD_S
TR(nvidia)" -c -o /tmp/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/.tmp_nv
.o /tmp/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv.c
In file included from include/linux/list.h:8,
from include/linux/lockdep.h:12,
from include/linux/spinlock_types.h:12,
from include/linux/spinlock.h:78,
from include/linux/capability.h:45,
from include/linux/sched.h:44,
from include/linux/module.h:9,
from /tmp/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv-
linux.h:51,
from /tmp/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv.
c:14:
include/linux/prefetch.h: In function ‘prefetch_range’:
include/linux/prefetch.h:62: warning: pointer of type ‘void *’ used in a
rithmetic
In file included from include/linux/sched.h:54,
from include/linux/module.h:9,
from /tmp/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv-
linux.h:51,
from /tmp/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv.
c:14:
include/linux/nodemask.h: In function ‘__first_node’:
include/linux/nodemask.h:229: warning: signed and unsigned type in condition
al expression
include/linux/nodemask.h: In function ‘__next_node’:
include/linux/nodemask.h:235: warning: signed and unsigned type in condition
al expression
include/linux/nodemask.h: In function ‘__first_unset_node’:
include/linux/nodemask.h:253: warning: signed and unsigned type in condition
al expression
In file included from include/asm/elf.h:48,
from include/linux/elf.h:9,
from include/linux/module.h:16,
from /tmp/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv-
linux.h:51,
from /tmp/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv.
c:14:
include/asm/compat.h: In function ‘compat_alloc_user_space’:
include/asm/compat.h:202: warning: pointer of type ‘void *’ used in arit
hmetic
In file included from include/linux/dmapool.h:14,
from include/linux/pci.h:566,
from /tmp/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv-
linux.h:78,
from /tmp/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv.
c:14:
include/asm/io.h: In function ‘check_signature’:
include/asm/io.h:275: warning: wrong type argument to increment
In file included from include/asm/pci.h:92,
from include/linux/pci.h:693,
from /tmp/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv-
linux.h:78,
from /tmp/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv.
c:14:
include/asm-generic/pci-dma-compat.h: In function ‘pci_map_page’:
include/asm-generic/pci-dma-compat.h:49: warning: pointer of type ‘void *
�� used in arithmetic
In file included from /tmp/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv.
c:14:
/tmp/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv-linux.h:103:23: error:
asm/maddr.h: No such file or directory
In file included from /tmp/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv-
linux.h:104,
from /tmp/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv.
c:14:
include/xen/interface/memory.h: At top level:
include/xen/interface/memory.h:32: error: expected specifier-qualifier-list
before ‘XEN_GUEST_HANDLE’
include/xen/interface/memory.h:53: warning: data definition has no type or s
torage class
include/xen/interface/memory.h:53: warning: type defaults to ‘int’ in de
claration of ‘DEFINE_XEN_GUEST_HANDLE’
include/xen/interface/memory.h:93: error: expected specifier-qualifier-list
before ‘xen_ulong_t’
include/xen/interface/memory.h:96: warning: data definition has no type or s
torage class
include/xen/interface/memory.h:96: warning: type defaults to ‘int’ in de
claration of ‘DEFINE_XEN_GUEST_HANDLE’
include/xen/interface/memory.h:96: error: conflicting types for ‘DEFINE_XE
N_GUEST_HANDLE’
include/xen/interface/memory.h:53: error: previous declaration of ‘DEFINE_
XEN_GUEST_HANDLE’ was here
include/xen/interface/memory.h:132: error: expected specifier-qualifier-list
before ‘XEN_GUEST_HANDLE’
include/xen/interface/memory.h:141: warning: data definition has no type or
storage class
include/xen/interface/memory.h:141: warning: type defaults to ‘int’ in d
eclaration of ‘DEFINE_XEN_GUEST_HANDLE’
include/xen/interface/memory.h:141: error: conflicting types for ‘DEFINE_X
EN_GUEST_HANDLE’
include/xen/interface/memory.h:53: error: previous declaration of ‘DEFINE_
XEN_GUEST_HANDLE’ was here
include/xen/interface/memory.h:151: error: expected specifier-qualifier-list
before ‘xen_ulong_t’
include/xen/interface/memory.h:155: warning: data definition has no type or
storage class
include/xen/interface/memory.h:155: warning: type defaults to ‘int’ in d
eclaration of ‘DEFINE_XEN_GUEST_HANDLE’
include/xen/interface/memory.h:155: error: conflicting types for ‘DEFINE_X
EN_GUEST_HANDLE’
include/xen/interface/memory.h:53: error: previous declaration of ‘DEFINE_
XEN_GUEST_HANDLE’ was here
include/xen/interface/memory.h:165: error: expected specifier-qualifier-list
before ‘domid_t’
include/xen/interface/memory.h:179: warning: data definition has no type or
storage class
include/xen/interface/memory.h:179: warning: type defaults to ‘int’ in d
eclaration of ‘DEFINE_XEN_GUEST_HANDLE’
include/xen/interface/memory.h:179: error: conflicting types for ‘DEFINE_X
EN_GUEST_HANDLE’
include/xen/interface/memory.h:53: error: previous declaration of ‘DEFINE_
XEN_GUEST_HANDLE’ was here
include/xen/interface/memory.h:188: error: expected specifier-qualifier-list
before ‘domid_t’
include/xen/interface/memory.h:203: warning: data definition has no type or
storage class
include/xen/interface/memory.h:203: warning: type defaults to ‘int’ in d
eclaration of ‘DEFINE_XEN_GUEST_HANDLE’
include/xen/interface/memory.h:203: error: conflicting types for ‘DEFINE_X
EN_GUEST_HANDLE’
include/xen/interface/memory.h:53: error: previous declaration of ‘DEFINE_
XEN_GUEST_HANDLE’ was here
include/xen/interface/memory.h:223: error: expected specifier-qualifier-list
before ‘XEN_GUEST_HANDLE’
include/xen/interface/memory.h:226: warning: data definition has no type or
storage class
include/xen/interface/memory.h:226: warning: type defaults to ‘int’ in d
eclaration of ‘DEFINE_XEN_GUEST_HANDLE’
include/xen/interface/memory.h:226: error: conflicting types for ‘DEFINE_X
EN_GUEST_HANDLE’
include/xen/interface/memory.h:53: error: previous declaration of ‘DEFINE_
XEN_GUEST_HANDLE’ was here
include/xen/interface/memory.h:242: error: expected specifier-qualifier-list
before ‘domid_t’
include/xen/interface/memory.h:246: warning: data definition has no type or
storage class
include/xen/interface/memory.h:246: warning: type defaults to ‘int’ in d
eclaration of ‘DEFINE_XEN_GUEST_HANDLE’
include/xen/interface/memory.h:246: error: conflicting types for ‘DEFINE_X
EN_GUEST_HANDLE’
include/xen/interface/memory.h:53: error: previous declaration of ‘DEFINE_
XEN_GUEST_HANDLE’ was here
/tmp/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv.c: In function ‘nv_k
ern_open’:
/tmp/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv.c:2017: error: implici
t declaration of function ‘HYPERVISOR_memory_op’
make[4]: *** [/tmp/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv.o] Error
1
make[3]: *** [_module_/tmp/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv] Er
ror 2
make[2]: *** [modules] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
-> Error.
Vehyla is offline   Reply With Quote