[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

linux-image-2.6.26-1-xen-686 и nvidia



Приветствую.

Поставил ядро
ii  linux-image-2.6.26-1-xen-686         2.6.26-11

Пытаюсь под него собрать ядрёный модуль для nvidia
делаю m-a a-i nvidia получаю ругань в процессе сборки - лог в аттаче.

--
Peter Teslenko
Jabber: peter@jabber.mcicb.ru
/usr/bin/make  -f debian/rules clean
make[1]: Entering directory `/usr/src/modules/nvidia-kernel'
# select which makefile to use.
rm -f /usr/src/modules/nvidia-kernel/Makefile || true
if [ 6 = 6  ]; then \
	     ln -s Makefile.kbuild Makefile ; \
	fi
if [  6 = 4  ]; then \
	     ln -s Makefile.nvidia Makefile ; \
	fi
if [ -e patch-stamp ]; then \
	   dpatch deapply-all ; \
	   rm -rf patch-stamp debian/patched ; \
	fi
if [ -f /usr/src/modules/nvidia-kernel/debian/control.template ]; then \
		cp  /usr/src/modules/nvidia-kernel/debian/control.template /usr/src/modules/nvidia-kernel/debian/control; \
	fi
dh_testroot
rm -f build-stamp configure-stamp
/usr/bin/make clean SYSSRC=/lib/modules/2.6.26-1-xen-686/build -C /usr/src/modules/nvidia-kernel/ -f Makefile 
make[2]: Entering directory `/usr/src/modules/nvidia-kernel'
make[2]: Leaving directory `/usr/src/modules/nvidia-kernel'
rm -f /usr/src/modules/nvidia-kernel//Makefile || true; 	
rm /usr/src/modules/nvidia-kernel//gcc-check
rm /usr/src/modules/nvidia-kernel//cc-sanity-check
dh_clean
rm /usr/src/modules/nvidia-kernel/debian/control
rm /usr/src/modules/nvidia-kernel/debian/dirs
rm /usr/src/modules/nvidia-kernel/debian/override
make[1]: Leaving directory `/usr/src/modules/nvidia-kernel'
echo "ROOT_CMD = "
ROOT_CMD = 
/usr/bin/make  -f debian/rules binary_modules
make[1]: Entering directory `/usr/src/modules/nvidia-kernel'
# select which makefile to use.
rm -f /usr/src/modules/nvidia-kernel/Makefile || true
if [ 6 = 6  ]; then \
	     ln -s Makefile.kbuild Makefile ; \
	fi
if [  6 = 4  ]; then \
	     ln -s Makefile.nvidia Makefile ; \
	fi
if ! gcc-4.1 -v 2> /dev/null  ; then \
	   echo "Compiler gcc-4.1 does not exist on the system" ; \
	   exit 1; \
	fi   
if [ -f /usr/src/modules/nvidia-kernel/debian/control.template ]; then \
		cp  /usr/src/modules/nvidia-kernel/debian/control.template /usr/src/modules/nvidia-kernel/debian/control; \
	fi
if [ "i686" = "x86_64" ]; then \
		cp /usr/src/modules/nvidia-kernel/nv-kernel.o.x86_64 /usr/src/modules/nvidia-kernel/nv-kernel.o ; \
	fi
touch configure-stamp
dh_testdir
dh_testroot
PATCHLEVEL = 6 
Kernel compiler version : 4.1.2
Detected compiler version : 4.1.2
Using compiler gcc-4.1 version 4.1.2
touch /usr/src/modules/nvidia-kernel//gcc-check
touch /usr/src/modules/nvidia-kernel//cc-sanity-check
## Main Make ##
IGNORE_CC_MISMATCH=1 CC="gcc-4.1" /usr/bin/make -C /usr/src/modules/nvidia-kernel/ -f Makefile SYSSRC=/lib/modules/2.6.26-1-xen-686/build   KBUILD_PARAMS="-C /lib/modules/2.6.26-1-xen-686/build SUBDIRS=/usr/src/modules/nvidia-kernel" module;
make[2]: Entering directory `/usr/src/modules/nvidia-kernel'
NVIDIA: calling KBUILD...
make CC=gcc-4.1 -C /lib/modules/2.6.26-1-xen-686/build SUBDIRS=/usr/src/modules/nvidia-kernel modules
make[3]: Entering directory `/usr/src/linux-headers-2.6.26-1-xen-686'
  CC [M]  /usr/src/modules/nvidia-kernel/nv.o
In file included from include/linux/list.h:6,
                 from include/linux/preempt.h:11,
                 from include/linux/spinlock.h:49,
                 from include/linux/seqlock.h:29,
                 from include/linux/time.h:8,
                 from include/linux/timex.h:57,
                 from include/linux/sched.h:54,
                 from include/linux/utsname.h:35,
                 from /usr/src/modules/nvidia-kernel/nv-linux.h:19,
                 from /usr/src/modules/nvidia-kernel/nv.c:14:
include/linux/prefetch.h: In function â??prefetch_rangeâ??:
include/linux/prefetch.h:57: warning: pointer of type â??void *â?? used in arithmetic
In file included from /usr/src/modules/nvidia-kernel/nv-linux.h:34,
                 from /usr/src/modules/nvidia-kernel/nv.c:14:
/usr/src/modules/nvidia-kernel/conftest.h:1:2: error: #error remap_page_range() conftest failed!
/usr/src/modules/nvidia-kernel/conftest.h:3:2: error: #error vmap() conftest failed!
/usr/src/modules/nvidia-kernel/conftest.h:25:2: error: #error kmem_cache_create() conftest failed!
In file included from include/asm/mach-xen/asm/../../dma-mapping.h:9,
                 from include/asm/mach-xen/asm/dma-mapping.h:3,
                 from include/linux/dma-mapping.h:52,
                 from include/asm-generic/pci-dma-compat.h:7,
                 from include/asm/mach-xen/asm/pci.h:98,
                 from include/linux/pci.h:962,
                 from /usr/src/modules/nvidia-kernel/nv-linux.h:86,
                 from /usr/src/modules/nvidia-kernel/nv.c:14:
include/linux/scatterlist.h: In function â??sg_virtâ??:
include/linux/scatterlist.h:199: warning: pointer of type â??void *â?? used in arithmetic
In file included from /usr/src/modules/nvidia-kernel/nv-linux.h:109,
                 from /usr/src/modules/nvidia-kernel/nv.c:14:
include/linux/highmem.h: In function â??zero_user_segmentsâ??:
include/linux/highmem.h:134: warning: pointer of type â??void *â?? used in arithmetic
include/linux/highmem.h:134: warning: pointer of type â??void *â?? used in arithmetic
include/linux/highmem.h:134: warning: pointer of type â??void *â?? used in arithmetic
include/linux/highmem.h:134: warning: pointer of type â??void *â?? used in arithmetic
include/linux/highmem.h:137: warning: pointer of type â??void *â?? used in arithmetic
include/linux/highmem.h:137: warning: pointer of type â??void *â?? used in arithmetic
include/linux/highmem.h:137: warning: pointer of type â??void *â?? used in arithmetic
include/linux/highmem.h:137: warning: pointer of type â??void *â?? used in arithmetic
In file included from /usr/src/modules/nvidia-kernel/nv.c:14:
/usr/src/modules/nvidia-kernel/nv-linux.h:574:2: error: #error "NV_KMEM_CACHE_CREATE() undefined (kmem_cache_create() unavailable)!"
/usr/src/modules/nvidia-kernel/nv.c: In function â??nvidia_init_moduleâ??:
/usr/src/modules/nvidia-kernel/nv.c:1339: error: implicit declaration of function â??NV_KMEM_CACHE_CREATEâ??
/usr/src/modules/nvidia-kernel/nv.c:1339: error: expected expression before â??nv_stack_tâ??
/usr/src/modules/nvidia-kernel/nv.c:1349: error: implicit declaration of function â??NV_KMEM_CACHE_DESTROYâ??
/usr/src/modules/nvidia-kernel/nv.c:1448: error: expected expression before â??nv_pte_tâ??
/usr/src/modules/nvidia-kernel/nv.c: In function â??nv_kern_openâ??:
/usr/src/modules/nvidia-kernel/nv.c:2027: warning: passing argument 2 of â??request_irqâ?? from incompatible pointer type
make[4]: *** [/usr/src/modules/nvidia-kernel/nv.o] Error 1
make[3]: *** [_module_/usr/src/modules/nvidia-kernel] Error 2
make[3]: Leaving directory `/usr/src/linux-headers-2.6.26-1-xen-686'
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[2]: *** [module] Error 1
make[2]: Leaving directory `/usr/src/modules/nvidia-kernel'
make[1]: *** [build-stamp] Error 2
make[1]: Leaving directory `/usr/src/modules/nvidia-kernel'
make: *** [kdist_image] Error 2

Reply to: