[pkg-nvidia-devel] Bug#481485: workaround for the Xen test, but nvidia fails anyway

Sam Morris sam at robots.org.uk
Sat May 17 11:12:39 UTC 2008


Setting the IGNORE_XEN_PRESENCE environment variable disables the check,
but then the build fails anyway. Sigh.
        
        $ IGNORE_XEN_PRESENCE=1 fakeroot debian/rules binary_modules KSRC=/lib/modules/2.6.25-2-686/build KVERS=2.6.25-2-686
        # select which makefile to use.
        rm -f /home/sam/src/modules/new/modules/nvidia-kernel/nv/Makefile || true
        if [ 6 = 6  ]; then \
        	     cd /home/sam/src/modules/new/modules/nvidia-kernel/nv ; \
        	     ln -s Makefile.kbuild Makefile ; \
        	     cd .. ; \
        	fi
        if [  6 = 4  ]; then \
        	     cd /home/sam/src/modules/new/modules/nvidia-kernel/nv ; \
        	     ln -s Makefile.nvidia Makefile ; \
        	     cd .. ; \
        	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 /home/sam/src/modules/new/modules/nvidia-kernel/debian/control.template ]; then \
        		cp  /home/sam/src/modules/new/modules/nvidia-kernel/debian/control.template /home/sam/src/modules/new/modules/nvidia-kernel/debian/control; \
        	fi
        if [ "i686" = "x86_64" ]; then \
        		cp /home/sam/src/modules/new/modules/nvidia-kernel/nv-kernel.o.x86_64 /home/sam/src/modules/new/modules/nvidia-kernel/nv/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 /home/sam/src/modules/new/modules/nvidia-kernel/nv/gcc-check
        touch /home/sam/src/modules/new/modules/nvidia-kernel/nv/cc-sanity-check
        ## Main Make ##
        IGNORE_CC_MISMATCH=1 CC="gcc-4.1" /usr/bin/make -C /home/sam/src/modules/new/modules/nvidia-kernel/nv -f Makefile SYSSRC=/lib/modules/2.6.25-2-686/build   KBUILD_PARAMS="-C /lib/modules/2.6.25-2-686/build SUBDIRS=/home/sam/src/modules/new/modules/nvidia-kernel/nv" module;
        make[1]: Entering directory `/home/sam/src/modules/new/modules/nvidia-kernel/nv'
        NVIDIA: calling KBUILD...
        make CC=gcc-4.1 -C /lib/modules/2.6.25-2-686/build SUBDIRS=/home/sam/src/modules/new/modules/nvidia-kernel/nv modules
        make[2]: Entering directory `/usr/src/linux-headers-2.6.25-2-686'
          CC [M]  /home/sam/src/modules/new/modules/nvidia-kernel/nv/nv.o
        In file included from include/linux/list.h:8,
                         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 /home/sam/src/modules/new/modules/nvidia-kernel/nv/nv-linux.h:19,
                         from /home/sam/src/modules/new/modules/nvidia-kernel/nv/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 include/asm/dma-mapping_32.h:5,
                         from include/asm/dma-mapping.h:2,
                         from include/linux/dma-mapping.h:52,
                         from include/asm-generic/pci-dma-compat.h:7,
                         from include/asm/pci.h:90,
                         from include/linux/pci.h:945,
                         from /home/sam/src/modules/new/modules/nvidia-kernel/nv/nv-linux.h:86,
                         from /home/sam/src/modules/new/modules/nvidia-kernel/nv/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 /home/sam/src/modules/new/modules/nvidia-kernel/nv/nv-linux.h:109,
                         from /home/sam/src/modules/new/modules/nvidia-kernel/nv/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 /home/sam/src/modules/new/modules/nvidia-kernel/nv/nv.c:14:
        /home/sam/src/modules/new/modules/nvidia-kernel/nv/nv-linux.h:112:23: error: asm/maddr.h: No such file or directory
        In file included from /home/sam/src/modules/new/modules/nvidia-kernel/nv/nv-linux.h:113,
                         from /home/sam/src/modules/new/modules/nvidia-kernel/nv/nv.c:14:
        include/xen/interface/memory.h: At top level:
        include/xen/interface/memory.h:32: error: expected specifier-qualifier-list before ‘GUEST_HANDLE’
        include/xen/interface/memory.h:53: warning: data definition has no type or storage class
        include/xen/interface/memory.h:53: warning: type defaults to ‘int’ in declaration of ‘DEFINE_GUEST_HANDLE_STRUCT’
        include/xen/interface/memory.h:53: warning: parameter names (without types) in function declaration
        include/xen/interface/memory.h:89: error: expected specifier-qualifier-list before ‘GUEST_HANDLE’
        include/xen/interface/memory.h:97: warning: data definition has no type or storage class
        include/xen/interface/memory.h:97: warning: type defaults to ‘int’ in declaration of ‘DEFINE_GUEST_HANDLE_STRUCT’
        include/xen/interface/memory.h:97: warning: parameter names (without types) in function declaration
        include/xen/interface/memory.h:107: error: expected specifier-qualifier-list before ‘domid_t’
        include/xen/interface/memory.h:120: warning: data definition has no type or storage class
        include/xen/interface/memory.h:120: warning: type defaults to ‘int’ in declaration of ‘DEFINE_GUEST_HANDLE_STRUCT’
        include/xen/interface/memory.h:120: warning: parameter names (without types) in function declaration
        include/xen/interface/memory.h:129: error: expected specifier-qualifier-list before ‘domid_t’
        include/xen/interface/memory.h:143: warning: data definition has no type or storage class
        include/xen/interface/memory.h:143: warning: type defaults to ‘int’ in declaration of ‘DEFINE_GUEST_HANDLE_STRUCT’
        include/xen/interface/memory.h:143: warning: parameter names (without types) in function declaration
        /home/sam/src/modules/new/modules/nvidia-kernel/nv/nv.c: In function ‘nv_kern_open’:
        /home/sam/src/modules/new/modules/nvidia-kernel/nv/nv.c:2025: error: implicit declaration of function ‘HYPERVISOR_memory_op’
        make[3]: *** [/home/sam/src/modules/new/modules/nvidia-kernel/nv/nv.o] Error 1
        make[2]: *** [_module_/home/sam/src/modules/new/modules/nvidia-kernel/nv] Error 2
        make[2]: Leaving directory `/usr/src/linux-headers-2.6.25-2-686'
        NVIDIA: left KBUILD.
        nvidia.ko failed to build!
        make[1]: *** [module] Error 1
        make[1]: Leaving directory `/home/sam/src/modules/new/modules/nvidia-kernel/nv'
        make: *** [build-stamp] Error 2
        

-- 
Sam Morris
http://robots.org.uk/

PGP key id 1024D/5EA01078
3412 EA18 1277 354B 991B  C869 B219 7FDB 5EA0 1078
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20080517/f73d7322/attachment.pgp 


More information about the Pkg-nvidia-devel mailing list