[pkg-nvidia-devel] Bug#448820: nvidia-kernel-source: does not compile for 2.6.22-2-686
Greg Kochanski
gpk at kochanski.org
Thu Nov 1 07:27:07 UTC 2007
Package: nvidia-kernel-source
Version: 1.0.8776-4
Severity: important
Compiling nvidia-kernel-source following the instructions in
/usr/share/doc/nvidia-kernel-source/README.Debian fails.
The compiler version doesn't match: 4.2.2 vs. 4.1.2.
If this is important, it should be in the README.Debian file.
However the real problem seems to be a change in the API
for agp_backend_acquire() in the kernel somewhere.
Presumably, Nvidia hasn't yet updated their code, or it hasn't
yet percolated into the Debian distribution.
$ sudo debian/rules binary_modules
cat: /include/linux/version.h: No such file or directory
/bin/sh: line 0: test: -ge: unary operator expected
# select which makefile to use.
rm -f /usr/src/modules/nvidia-kernel/nv/Makefile || true
if [ 4 = 6 ]; then \
cd /usr/src/modules/nvidia-kernel/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 /usr/src/modules/nvidia-kernel/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 /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_testdir
dh_testroot
PATCHLEVEL = 4
Kernel compiler version : 4.1.2
Detected compiler version : 4.2.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.2.2
touch /usr/src/modules/nvidia-kernel/nv/gcc-check
touch /usr/src/modules/nvidia-kernel/nv/cc-sanity-check
## Main Make ##
IGNORE_CC_MISMATCH=1 CC="gcc" /usr/bin/make -C /usr/src/modules/nvidia-kernel/nv -f Makefile SYSSRC= KBUILD_PARAMS="-C SUBDIRS=/usr/src/modules/nvidia-kernel/nv" module;
make[1]: Entering directory `/usr/src/modules/nvidia-kernel/nv'
gcc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -O -fno-common -UDEBUG -U_DEBUG -DNDEBUG -MD -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -DNTRM -DNVRM -DDYNAMIC_SLI -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=8776 -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_VMAP_4_PRESENT -I. -I/lib/modules/2.6.22-2-686/build/include -Wsign-compare -Wno-cast-qual -Wno-error nv.c
In file included from /lib/modules/2.6.22-2-686/build/include/asm/thread_info.h:16,
from /lib/modules/2.6.22-2-686/build/include/linux/thread_info.h:21,
from /lib/modules/2.6.22-2-686/build/include/linux/preempt.h:9,
from /lib/modules/2.6.22-2-686/build/include/linux/spinlock.h:49,
from /lib/modules/2.6.22-2-686/build/include/linux/capability.h:47,
from /lib/modules/2.6.22-2-686/build/include/linux/sched.h:46,
from /lib/modules/2.6.22-2-686/build/include/linux/utsname.h:35,
from nv-linux.h:19,
from nv.c:14:
/lib/modules/2.6.22-2-686/build/include/asm/processor.h: In function 'cpuid_count':
/lib/modules/2.6.22-2-686/build/include/asm/processor.h:618: warning: pointer targets in passing argument 1 of '__cpuid' differ in signedness
/lib/modules/2.6.22-2-686/build/include/asm/processor.h:618: warning: pointer targets in passing argument 2 of '__cpuid' differ in signedness
/lib/modules/2.6.22-2-686/build/include/asm/processor.h:618: warning: pointer targets in passing argument 3 of '__cpuid' differ in signedness
/lib/modules/2.6.22-2-686/build/include/asm/processor.h:618: warning: pointer targets in passing argument 4 of '__cpuid' differ in signedness
In file included from /lib/modules/2.6.22-2-686/build/include/linux/list.h:8,
from /lib/modules/2.6.22-2-686/build/include/linux/wait.h:22,
from /lib/modules/2.6.22-2-686/build/include/asm/semaphore.h:41,
from /lib/modules/2.6.22-2-686/build/include/linux/sched.h:59,
from /lib/modules/2.6.22-2-686/build/include/linux/utsname.h:35,
from nv-linux.h:19,
from nv.c:14:
/lib/modules/2.6.22-2-686/build/include/linux/prefetch.h: In function 'prefetch_range':
/lib/modules/2.6.22-2-686/build/include/linux/prefetch.h:62: warning: pointer of type 'void *' used in arithmetic
In file included from /lib/modules/2.6.22-2-686/build/include/asm/smp.h:15,
from /lib/modules/2.6.22-2-686/build/include/linux/smp.h:19,
from /lib/modules/2.6.22-2-686/build/include/linux/sched.h:65,
from /lib/modules/2.6.22-2-686/build/include/linux/utsname.h:35,
from nv-linux.h:19,
from nv.c:14:
/lib/modules/2.6.22-2-686/build/include/asm/mpspec.h:6:25: error: mach_mpspec.h: No such file or directory
In file included from /lib/modules/2.6.22-2-686/build/include/asm/smp.h:15,
from /lib/modules/2.6.22-2-686/build/include/linux/smp.h:19,
from /lib/modules/2.6.22-2-686/build/include/linux/sched.h:65,
from /lib/modules/2.6.22-2-686/build/include/linux/utsname.h:35,
from nv-linux.h:19,
from nv.c:14:
/lib/modules/2.6.22-2-686/build/include/asm/mpspec.h: At top level:
/lib/modules/2.6.22-2-686/build/include/asm/mpspec.h:8: error: 'MAX_MP_BUSSES' undeclared here (not in a function)
/lib/modules/2.6.22-2-686/build/include/asm/mpspec.h:22: error: 'MAX_IRQ_SOURCES' undeclared here (not in a function)
In file included from /lib/modules/2.6.22-2-686/build/include/linux/smp.h:19,
from /lib/modules/2.6.22-2-686/build/include/linux/sched.h:65,
from /lib/modules/2.6.22-2-686/build/include/linux/utsname.h:35,
from nv-linux.h:19,
from nv.c:14:
/lib/modules/2.6.22-2-686/build/include/asm/smp.h:150:26: error: mach_apicdef.h: No such file or directory
In file included from /lib/modules/2.6.22-2-686/build/include/linux/smp.h:19,
from /lib/modules/2.6.22-2-686/build/include/linux/sched.h:65,
from /lib/modules/2.6.22-2-686/build/include/linux/utsname.h:35,
from nv-linux.h:19,
from nv.c:14:
/lib/modules/2.6.22-2-686/build/include/asm/smp.h: In function 'hard_smp_processor_id':
/lib/modules/2.6.22-2-686/build/include/asm/smp.h:154: warning: implicit declaration of function 'GET_APIC_ID'
In file included from nv-linux.h:76,
from nv.c:14:
/lib/modules/2.6.22-2-686/build/include/linux/pci.h: In function 'pci_register_driver':
/lib/modules/2.6.22-2-686/build/include/linux/pci.h:603: error: 'KBUILD_MODNAME' undeclared (first use in this function)
/lib/modules/2.6.22-2-686/build/include/linux/pci.h:603: error: (Each undeclared identifier is reported only once
/lib/modules/2.6.22-2-686/build/include/linux/pci.h:603: error: for each function it appears in.)
In file included from /lib/modules/2.6.22-2-686/build/include/linux/irq.h:23,
from /lib/modules/2.6.22-2-686/build/include/asm/hardirq.h:5,
from /lib/modules/2.6.22-2-686/build/include/linux/hardirq.h:7,
from /lib/modules/2.6.22-2-686/build/include/linux/interrupt.h:11,
from nv-linux.h:77,
from nv.c:14:
/lib/modules/2.6.22-2-686/build/include/asm/irq.h:15:25: error: irq_vectors.h: No such file or directory
In file included from /lib/modules/2.6.22-2-686/build/include/asm/hardirq.h:5,
from /lib/modules/2.6.22-2-686/build/include/linux/hardirq.h:7,
from /lib/modules/2.6.22-2-686/build/include/linux/interrupt.h:11,
from nv-linux.h:77,
from nv.c:14:
/lib/modules/2.6.22-2-686/build/include/linux/irq.h: At top level:
/lib/modules/2.6.22-2-686/build/include/linux/irq.h:178: error: 'NR_IRQS' undeclared here (not in a function)
In file included from nv.c:14:
nv-linux.h:711: error: conflicting types for 'pm_message_t'
/lib/modules/2.6.22-2-686/build/include/linux/pm.h:204: error: previous declaration of 'pm_message_t' was here
In file included from nv.c:14:
nv-linux.h:748:2: warning: #warning "conftest.sh failed, assuming remap_page_range(4)!"
nv.c:102: warning: 'kmem_cache_t' is deprecated
nv.c:319: warning: initialization from incompatible pointer type
nv.c: In function 'nvos_get_agp_device_by_class':
nv.c:524: warning: implicit declaration of function 'pci_find_class'
nv.c:524: warning: assignment makes pointer from integer without a cast
nv.c:538: warning: assignment makes pointer from integer without a cast
nv.c: In function 'nv_get_pci_device':
nv.c:548: warning: 'pci_find_device' is deprecated (declared at /lib/modules/2.6.22-2-686/build/include/linux/pci.h:477)
nv.c:553: warning: 'pci_find_device' is deprecated (declared at /lib/modules/2.6.22-2-686/build/include/linux/pci.h:477)
nv.c: In function 'nvidia_init_module':
nv.c:1379: warning: pointer targets in passing argument 2 of 'rm_read_registry_dword' differ in signedness
nv.c:1379: warning: pointer targets in passing argument 3 of 'rm_read_registry_dword' differ in signedness
nv.c:1379: warning: pointer targets in passing argument 4 of 'rm_read_registry_dword' differ in signedness
nv.c: In function 'nv_kern_open':
nv.c:1809: warning: 'deprecated_irq_flag' is deprecated (declared at /lib/modules/2.6.22-2-686/build/include/linux/interrupt.h:66)
nv.c:1809: warning: 'deprecated_irq_flag' is deprecated (declared at /lib/modules/2.6.22-2-686/build/include/linux/interrupt.h:66)
nv.c: In function 'nv_kern_mmap':
nv.c:2102: warning: implicit declaration of function 'remap_page_range'
nv.c: In function 'nv_kern_read_cardinfo':
nv.c:2848: 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:3021: warning: pointer targets in passing argument 2 of 'rm_read_registry_dword' differ in signedness
nv.c:3021: warning: pointer targets in passing argument 3 of 'rm_read_registry_dword' differ in signedness
nv.c:3021: warning: pointer targets in passing argument 4 of 'rm_read_registry_dword' differ in signedness
nv.c:3022: warning: pointer targets in passing argument 2 of 'rm_read_registry_dword' differ in signedness
nv.c:3022: warning: pointer targets in passing argument 3 of 'rm_read_registry_dword' differ in signedness
nv.c:3022: warning: pointer targets in passing argument 4 of 'rm_read_registry_dword' differ in signedness
nv.c: In function 'nv_agp_init':
nv.c:3714: error: too few arguments to function 'agp_backend_acquire'
nv.c:3716: error: too few arguments to function 'agp_backend_release'
nv.c: In function 'nvos_count_devices':
nv.c:3825: warning: assignment makes pointer from integer without a cast
nv.c:3831: warning: assignment makes pointer from integer without a cast
nv.c:3834: warning: assignment makes pointer from integer without a cast
nv.c:3840: warning: assignment makes pointer from integer without a cast
make[1]: *** [nv.o] Error 1
make[1]: Leaving directory `/usr/src/modules/nvidia-kernel/nv'
make: *** [build-stamp] Error 2
gpk:nvidia-kernel$
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.22-2-686 (SMP w/1 CPU core)
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
Versions of packages nvidia-kernel-source depends on:
ii debhelper 5.0.57 helper programs for debian/rules
ii dpatch 2.0.27 patch maintenance system for Debia
ii make 3.81-3 The GNU version of the "make" util
ii sed 4.1.5-4 The GNU sed stream editor
Versions of packages nvidia-kernel-source recommends:
pn devscripts <none> (no description available)
pn kernel-package <none> (no description available)
pn nvidia-glx <none> (no description available)
-- no debconf information
More information about the Pkg-nvidia-devel
mailing list