[pkg-nvidia-devel] Bug#503838: [nvidia-kernel-source] build fail in 2.6.26-1-xen-686

txemi txemitron at gmail.com
Tue Oct 28 16:27:48 UTC 2008


Package: nvidia-kernel-source
Version: 173.14.09-5
Severity: normal

--- Please enter the report below this line. ---

Build fails. Dump attached.

First error:
/lib/modules/2.6.26-1-xen-686/build/include/asm/mpspec.h:9:25: error: mach_mpspec.h: No existe el fichero o el directorio

Other reports of the same problem usually related to some virtual machines as qemu and virtual box. They say that it could be a kernel related issue fixed in latter ones (2.6.27-0.290).

http://qemu-forum.ipi.fi/viewtopic.php?f=4&t=4612

http://www.virtualbox.org/ticket/1961

http://webui.sourcelabs.com/fedora/issues/459183

thanks,
txemi.


--- System information. ---
Architecture: i386
Kernel:       Linux 2.6.26-1-xen-686

Debian Release: lenny/sid
  500 unstable        oracio 
  500 unstable        ftp.us.debian.org 
  500 unstable        ftp.u-picardie.fr 
  500 unstable        cari 
  500 stable          download.webmin.com 
  500 stable          cari 

--- Package information. ---
Depends        (Version) | Installed
========================-+-===========
debhelper     (>> 4.0.0) | 7.0.17
make                     | 3.81-5
sed             (>> 3.0) | 4.1.5-8
dpatch        (>= 2.0.0) | 2.0.30


-------------- next part --------------
Script iniciado (mar 28 oct 2008 16:34:17 CET
)cat: /include/linux/version.h: No existe el fichero o el directorio
/bin/sh: line 0: test: -ge: unary operator expected
# select which makefile to use.
rm -f /home/txemi/txemi/temp/nvidia/modules/nvidia-kernel-legacy-96xx/nv/Makefile || true
if [ 4 = 6  ]; then \
	     cd /home/txemi/txemi/temp/nvidia/modules/nvidia-kernel-legacy-96xx/nv ; \
	     ln -s Makefile.kbuild Makefile ; \
	     cd .. ; \
	     if [ 0  = 1 ] ; then \
	        dpatch apply 04_minion ; \
	     fi ; \
	     if [ 0 = 1 ]; then \
	     	dpatch apply 01_sysfs ; \
		dpatch status 01_sysfs >patch-stamp ; \
		dpatch apply 02_pcialias ; \
               	dpatch status 02_pcialias >>patch-stamp ; \
	     fi ; \
	fi
if [  4 = 4  ]; then \
	     cd /home/txemi/txemi/temp/nvidia/modules/nvidia-kernel-legacy-96xx/nv ; \
	     ln -s Makefile.nvidia Makefile ; \
	     cd .. ; \
	fi
if ! gcc -v 2> /dev/null  ; then \
	   echo "Compiler gcc does not exist on the system" ; \
	   exit 1; \
	fi   
touch configure-stamp
if [ -f /home/txemi/txemi/temp/nvidia/modules/nvidia-kernel-legacy-96xx/debian/control.template ]; then \
		cp  /home/txemi/txemi/temp/nvidia/modules/nvidia-kernel-legacy-96xx/debian/control.template /home/txemi/txemi/temp/nvidia/modules/nvidia-kernel-legacy-96xx/debian/control; \
	fi
dh_testdir
dh_testroot
PATCHLEVEL = 4 
Kernel compiler version : 4.1.2
Detected compiler version : 4.3.2
                                                           
You appear to be compiling the NVIDIA kernel module with   
a compiler different from the one that was used to compile 
the running kernel. This may be perfectly alright and you 
may be building this module for another kernel in which case
you may ignore this message.
 
The compiler that will be used to compile this module has been
determined from:
 1) the CC environment variable 
 2) that specified in 
    /include/linux/compile.h
 3) gcc 
Using compiler gcc version 4.3.2
touch /home/txemi/txemi/temp/nvidia/modules/nvidia-kernel-legacy-96xx/nv/gcc-check
touch /home/txemi/txemi/temp/nvidia/modules/nvidia-kernel-legacy-96xx/nv/cc-sanity-check
## Main Make ##
IGNORE_CC_MISMATCH=1 CC="gcc"  /usr/bin/make -C /home/txemi/txemi/temp/nvidia/modules/nvidia-kernel-legacy-96xx/nv -f Makefile SYSSRC=   KBUILD_PARAMS="-C  SUBDIRS=/home/txemi/txemi/temp/nvidia/modules/nvidia-kernel-legacy-96xx/nv" module;
make[1]: se ingresa al directorio `/home/txemi/txemi/temp/nvidia/modules/nvidia-kernel-legacy-96xx/nv'
gcc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -O -UDEBUG -U_DEBUG -DNDEBUG -MD -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -DNVRM -DNV_VERSION_STRING=\"96.43.07\"  -I. -I/lib/modules/2.6.26-1-xen-686/build/include -Wsign-compare -Wno-cast-qual -Wno-error nv.c
In file included from /lib/modules/2.6.26-1-xen-686/build/include/linux/list.h:6,
                 from /lib/modules/2.6.26-1-xen-686/build/include/linux/preempt.h:11,
                 from /lib/modules/2.6.26-1-xen-686/build/include/linux/spinlock.h:49,
                 from /lib/modules/2.6.26-1-xen-686/build/include/linux/seqlock.h:29,
                 from /lib/modules/2.6.26-1-xen-686/build/include/linux/time.h:8,
                 from /lib/modules/2.6.26-1-xen-686/build/include/linux/timex.h:57,
                 from /lib/modules/2.6.26-1-xen-686/build/include/linux/sched.h:54,
                 from /lib/modules/2.6.26-1-xen-686/build/include/linux/utsname.h:35,
                 from nv-linux.h:19,
                 from nv.c:14:
/lib/modules/2.6.26-1-xen-686/build/include/linux/prefetch.h: In function ?prefetch_range?:
/lib/modules/2.6.26-1-xen-686/build/include/linux/prefetch.h:57: warning: pointer of type ?void *? used in arithmetic
In file included from /lib/modules/2.6.26-1-xen-686/build/include/asm/smp.h:12,
                 from /lib/modules/2.6.26-1-xen-686/build/include/linux/smp.h:19,
                 from /lib/modules/2.6.26-1-xen-686/build/include/linux/sched.h:68,
                 from /lib/modules/2.6.26-1-xen-686/build/include/linux/utsname.h:35,
                 from nv-linux.h:19,
                 from nv.c:14:
/lib/modules/2.6.26-1-xen-686/build/include/asm/mpspec.h:9:25: error: mach_mpspec.h: No existe el fichero o el directorio
In file included from /lib/modules/2.6.26-1-xen-686/build/include/asm/smp.h:12,
                 from /lib/modules/2.6.26-1-xen-686/build/include/linux/smp.h:19,
                 from /lib/modules/2.6.26-1-xen-686/build/include/linux/sched.h:68,
                 from /lib/modules/2.6.26-1-xen-686/build/include/linux/utsname.h:35,
                 from nv-linux.h:19,
                 from nv.c:14:
/lib/modules/2.6.26-1-xen-686/build/include/asm/mpspec.h: At top level:
/lib/modules/2.6.26-1-xen-686/build/include/asm/mpspec.h:33: error: ?MAX_MP_BUSSES? undeclared here (not in a function)
In file included from /lib/modules/2.6.26-1-xen-686/build/include/asm/smp.h:15,
                 from /lib/modules/2.6.26-1-xen-686/build/include/linux/smp.h:19,
                 from /lib/modules/2.6.26-1-xen-686/build/include/linux/sched.h:68,
                 from /lib/modules/2.6.26-1-xen-686/build/include/linux/utsname.h:35,
                 from nv-linux.h:19,
                 from nv.c:14:
/lib/modules/2.6.26-1-xen-686/build/include/asm/io_apic.h:129: error: ?MAX_IRQ_SOURCES? undeclared here (not in a function)
In file included from /lib/modules/2.6.26-1-xen-686/build/include/linux/smp.h:19,
                 from /lib/modules/2.6.26-1-xen-686/build/include/linux/sched.h:68,
                 from /lib/modules/2.6.26-1-xen-686/build/include/linux/utsname.h:35,
                 from nv-linux.h:19,
                 from nv.c:14:
/lib/modules/2.6.26-1-xen-686/build/include/asm/smp.h: In function ?logical_smp_processor_id?:
/lib/modules/2.6.26-1-xen-686/build/include/asm/smp.h:167: warning: implicit declaration of function ?GET_APIC_LOGICAL_ID?
/lib/modules/2.6.26-1-xen-686/build/include/asm/smp.h:167: error: ?APIC_BASE? undeclared (first use in this function)
/lib/modules/2.6.26-1-xen-686/build/include/asm/smp.h:167: error: (Each undeclared identifier is reported only once
/lib/modules/2.6.26-1-xen-686/build/include/asm/smp.h:167: error: for each function it appears in.)
/lib/modules/2.6.26-1-xen-686/build/include/asm/smp.h:167: error: ?APIC_LDR? undeclared (first use in this function)
/lib/modules/2.6.26-1-xen-686/build/include/asm/smp.h: In function ?read_apic_id?:
/lib/modules/2.6.26-1-xen-686/build/include/asm/smp.h:173: error: ?APIC_BASE? undeclared (first use in this function)
/lib/modules/2.6.26-1-xen-686/build/include/asm/smp.h:173: error: ?APIC_ID? undeclared (first use in this function)
In file included from /lib/modules/2.6.26-1-xen-686/build/include/linux/smp.h:19,
                 from /lib/modules/2.6.26-1-xen-686/build/include/linux/sched.h:68,
                 from /lib/modules/2.6.26-1-xen-686/build/include/linux/utsname.h:35,
                 from nv-linux.h:19,
                 from nv.c:14:
/lib/modules/2.6.26-1-xen-686/build/include/asm/smp.h:183:28: error: mach_apicdef.h: No existe el fichero o el directorio
/lib/modules/2.6.26-1-xen-686/build/include/asm/smp.h: In function ?hard_smp_processor_id?:
/lib/modules/2.6.26-1-xen-686/build/include/asm/smp.h:187: warning: implicit declaration of function ?GET_APIC_ID?
In file included from nv-linux.h:34,
                 from nv.c:14:
conftest.h:1:2: error: #error remap_page_range() conftest failed!
conftest.h:2:2: error: #error vmap() conftest failed!
In file included from /lib/modules/2.6.26-1-xen-686/build/include/asm/fixmap_32.h:28,
                 from /lib/modules/2.6.26-1-xen-686/build/include/asm/fixmap.h:5,
                 from /lib/modules/2.6.26-1-xen-686/build/include/asm/pgtable_32.h:16,
                 from /lib/modules/2.6.26-1-xen-686/build/include/asm/pgtable.h:357,
                 from /lib/modules/2.6.26-1-xen-686/build/include/linux/mm.h:39,
                 from /lib/modules/2.6.26-1-xen-686/build/include/asm/tlbflush.h:4,
                 from nv-linux.h:81,
                 from nv.c:14:
/lib/modules/2.6.26-1-xen-686/build/include/asm/acpi.h: In function ?acpi_notify_hypervisor_state?:
/lib/modules/2.6.26-1-xen-686/build/include/asm/acpi.h:147: warning: implicit declaration of function ?HYPERVISOR_platform_op?
In file included from nv-linux.h:85,
                 from nv.c:14:
/lib/modules/2.6.26-1-xen-686/build/include/linux/pci.h: In function ?pci_register_driver?:
/lib/modules/2.6.26-1-xen-686/build/include/linux/pci.h:664: error: ?KBUILD_MODNAME? undeclared (first use in this function)
In file included from /lib/modules/2.6.26-1-xen-686/build/include/asm/dma-mapping.h:9,
                 from /lib/modules/2.6.26-1-xen-686/build/include/linux/dma-mapping.h:52,
                 from /lib/modules/2.6.26-1-xen-686/build/include/asm-generic/pci-dma-compat.h:7,
                 from /lib/modules/2.6.26-1-xen-686/build/include/asm/pci.h:92,
                 from /lib/modules/2.6.26-1-xen-686/build/include/linux/pci.h:962,
                 from nv-linux.h:85,
                 from nv.c:14:
/lib/modules/2.6.26-1-xen-686/build/include/linux/scatterlist.h: In function ?sg_virt?:
/lib/modules/2.6.26-1-xen-686/build/include/linux/scatterlist.h:199: warning: pointer of type ?void *? used in arithmetic
In file included from /lib/modules/2.6.26-1-xen-686/build/include/linux/dma-mapping.h:52,
                 from /lib/modules/2.6.26-1-xen-686/build/include/asm-generic/pci-dma-compat.h:7,
                 from /lib/modules/2.6.26-1-xen-686/build/include/asm/pci.h:92,
                 from /lib/modules/2.6.26-1-xen-686/build/include/linux/pci.h:962,
                 from nv-linux.h:85,
                 from nv.c:14:
/lib/modules/2.6.26-1-xen-686/build/include/asm/dma-mapping.h: In function ?dma_map_page?:
/lib/modules/2.6.26-1-xen-686/build/include/asm/dma-mapping.h:194: warning: implicit declaration of function ?page_to_pseudophys?
In file included from /lib/modules/2.6.26-1-xen-686/build/include/asm/irq.h:2,
                 from /lib/modules/2.6.26-1-xen-686/build/include/linux/irq.h:23,
                 from /lib/modules/2.6.26-1-xen-686/build/include/asm/hardirq_32.h:5,
                 from /lib/modules/2.6.26-1-xen-686/build/include/asm/hardirq.h:2,
                 from /lib/modules/2.6.26-1-xen-686/build/include/linux/hardirq.h:7,
                 from /lib/modules/2.6.26-1-xen-686/build/include/linux/interrupt.h:11,
                 from nv-linux.h:86,
                 from nv.c:14:
/lib/modules/2.6.26-1-xen-686/build/include/asm/irq_32.h:15:25: error: irq_vectors.h: No existe el fichero o el directorio
In file included from /lib/modules/2.6.26-1-xen-686/build/include/asm/irq.h:2,
                 from /lib/modules/2.6.26-1-xen-686/build/include/linux/irq.h:23,
                 from /lib/modules/2.6.26-1-xen-686/build/include/asm/hardirq_32.h:5,
                 from /lib/modules/2.6.26-1-xen-686/build/include/asm/hardirq.h:2,
                 from /lib/modules/2.6.26-1-xen-686/build/include/linux/hardirq.h:7,
                 from /lib/modules/2.6.26-1-xen-686/build/include/linux/interrupt.h:11,
                 from nv-linux.h:86,
                 from nv.c:14:
/lib/modules/2.6.26-1-xen-686/build/include/asm/irq_32.h: At top level:
/lib/modules/2.6.26-1-xen-686/build/include/asm/irq_32.h:49: error: ?NR_VECTORS? undeclared here (not in a function)
In file included from /lib/modules/2.6.26-1-xen-686/build/include/asm/hardirq_32.h:5,
                 from /lib/modules/2.6.26-1-xen-686/build/include/asm/hardirq.h:2,
                 from /lib/modules/2.6.26-1-xen-686/build/include/linux/hardirq.h:7,
                 from /lib/modules/2.6.26-1-xen-686/build/include/linux/interrupt.h:11,
                 from nv-linux.h:86,
                 from nv.c:14:
/lib/modules/2.6.26-1-xen-686/build/include/linux/irq.h:181: error: ?NR_IRQS? undeclared here (not in a function)
In file included from nv-linux.h:108,
                 from nv.c:14:
/lib/modules/2.6.26-1-xen-686/build/include/linux/highmem.h: In function ?zero_user_segments?:
/lib/modules/2.6.26-1-xen-686/build/include/linux/highmem.h:134: warning: pointer of type ?void *? used in arithmetic
/lib/modules/2.6.26-1-xen-686/build/include/linux/highmem.h:134: warning: pointer of type ?void *? used in arithmetic
/lib/modules/2.6.26-1-xen-686/build/include/linux/highmem.h:134: warning: pointer of type ?void *? used in arithmetic
/lib/modules/2.6.26-1-xen-686/build/include/linux/highmem.h:134: warning: pointer of type ?void *? used in arithmetic
/lib/modules/2.6.26-1-xen-686/build/include/linux/highmem.h:137: warning: pointer of type ?void *? used in arithmetic
/lib/modules/2.6.26-1-xen-686/build/include/linux/highmem.h:137: warning: pointer of type ?void *? used in arithmetic
/lib/modules/2.6.26-1-xen-686/build/include/linux/highmem.h:137: warning: pointer of type ?void *? used in arithmetic
/lib/modules/2.6.26-1-xen-686/build/include/linux/highmem.h:137: warning: pointer of type ?void *? used in arithmetic
In file included from nv.c:14:
nv-linux.h:556:2: error: #error "NV_KMEM_CACHE_CREATE() undefined (kmem_cache_create() unavailable)!"
In file included from nv.c:14:
nv-linux.h: At top level:
nv-linux.h:782: error: conflicting types for ?pm_message_t?
/lib/modules/2.6.26-1-xen-686/build/include/linux/pm.h:113: error: previous declaration of ?pm_message_t? was here
nv-linux.h:825:2: error: #error "NV_REMAP_PAGE_RANGE() undefined!"
nv.c:228: warning: initialization from incompatible pointer type
nv.c: In function ?nvos_get_agp_device_by_class?:
nv.c:437: warning: implicit declaration of function ?pci_find_class?
nv.c:437: warning: assignment makes pointer from integer without a cast
nv.c:442: warning: ?pci_find_slot? is deprecated (declared at /lib/modules/2.6.26-1-xen-686/build/include/linux/pci.h:518)
nv.c:451: warning: assignment makes pointer from integer without a cast
nv.c: In function ?nv_get_pci_device?:
nv.c:461: warning: ?pci_find_device? is deprecated (declared at /lib/modules/2.6.26-1-xen-686/build/include/linux/pci.h:515)
nv.c:466: warning: ?pci_find_device? is deprecated (declared at /lib/modules/2.6.26-1-xen-686/build/include/linux/pci.h:515)
nv.c: In function ?__nv_setup_pat_entries?:
nv.c:836: warning: comparison between signed and unsigned
nv.c: In function ?__nv_restore_pat_entries?:
nv.c:862: warning: comparison between signed and unsigned
nv.c: In function ?nv_kern_cpu_callback?:
nv.c:1188: warning: comparison between signed and unsigned
nv.c:1195: warning: comparison between signed and unsigned
nv.c: In function ?nvidia_init_module?:
nv.c:1328: warning: implicit declaration of function ?NV_KMEM_CACHE_CREATE?
nv.c:1328: error: expected expression before ?nv_pte_t?
nv.c:1373: warning: pointer targets in passing argument 2 of ?rm_read_registry_dword? differ in signedness
nv.c:1373: warning: pointer targets in passing argument 3 of ?rm_read_registry_dword? differ in signedness
nv.c:1412: warning: pointer targets in passing argument 2 of ?rm_read_registry_dword? differ in signedness
nv.c:1412: warning: pointer targets in passing argument 3 of ?rm_read_registry_dword? differ in signedness
nv.c:1468: warning: implicit declaration of function ?NV_KMEM_CACHE_DESTROY?
nv.c: At top level:
nv.c:1740: error: unknown field ?nopage? specified in initializer
nv.c:1740: warning: initialization from incompatible pointer type
nv.c: In function ?nv_kern_open?:
nv.c:1842: warning: passing argument 2 of ?request_irq? from incompatible pointer type
nv.c: In function ?nv_kern_mmap?:
nv.c:2136: warning: implicit declaration of function ?NV_REMAP_PAGE_RANGE?
nv.c: In function ?nv_kern_read_cardinfo?:
nv.c:2862: warning: pointer targets in passing argument 4 of ?rm_get_device_name? differ in signedness
nv.c: In function ?nv_kern_read_status?:
nv.c:3035: warning: pointer targets in passing argument 2 of ?rm_read_registry_dword? differ in signedness
nv.c:3035: warning: pointer targets in passing argument 3 of ?rm_read_registry_dword? differ in signedness
nv.c:3035: warning: pointer targets in passing argument 4 of ?rm_read_registry_dword? differ in signedness
nv.c:3036: warning: pointer targets in passing argument 2 of ?rm_read_registry_dword? differ in signedness
nv.c:3036: warning: pointer targets in passing argument 3 of ?rm_read_registry_dword? differ in signedness
nv.c:3036: warning: pointer targets in passing argument 4 of ?rm_read_registry_dword? differ in signedness
nv.c: In function ?nv_agp_init?:
nv.c:3748: error: too few arguments to function ?agp_backend_acquire?
nv.c:3750: error: too few arguments to function ?agp_backend_release?
nv.c: In function ?nvos_count_devices?:
nv.c:3859: warning: assignment makes pointer from integer without a cast
nv.c:3865: warning: assignment makes pointer from integer without a cast
nv.c:3868: warning: assignment makes pointer from integer without a cast
nv.c:3874: warning: assignment makes pointer from integer without a cast
make[1]: *** [nv.o] Error 1
make[1]: se sale del directorio `/home/txemi/txemi/temp/nvidia/modules/nvidia-kernel-legacy-96xx/nv'
make: *** [build-stamp] Error 2

Script terminado (mar 28 oct 2008 16:34:20 CET
)


More information about the Pkg-nvidia-devel mailing list