[pkg-nvidia-devel] Bug#500644: nvidia-kernel-source: Cannot build on 2.6.24-etchnhalf.1-amd64
Deekoo L.
deekoo at tentacle.net
Tue Sep 30 02:10:31 UTC 2008
Package: nvidia-kernel-source
Version: 1.0.8776-4
Severity: grave
Justification: renders package unusable
Attempts to build the package according to the instructions in
/usr/share/doc/nvidia-kernel-source/README.Debian fail with a bunch
of complaints about undeclared identifiers; it appears to not be
including the correct collection of definitions from the kernel headers.
It fails with both 'module-assistant auto-install nvidia' and the
set of instructions for using a Debian-supplied kernel.
I've attached the failure log for the auto-install method.
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.24-etchnhalf.1-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages nvidia-kernel-source depends on:
ii debhelper 5.0.42 helper programs for debian/rules
ii dpatch 2.0.21 patch maintenance system for Debia
ii make 3.81-2 The GNU version of the "make" util
ii sed 4.1.5-1 The GNU sed stream editor
Versions of packages nvidia-kernel-source recommends:
ii devscripts 2.9.26 Scripts to make the life of a Debi
ii kernel-package 10.067 A utility for building Linux kerne
ii nvidia-glx 1.0.8776-4 NVIDIA binary XFree86 4.x driver
-- no debconf information
-------------- next part --------------
/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/nv/Makefile || true
if [ 6 = 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 [ 6 = 4 ]; then \
cd /usr/src/modules/nvidia-kernel/nv ; \
ln -s Makefile.nvidia Makefile ; \
cd .. ; \
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.24-etchnhalf.1-amd64/build -C /usr/src/modules/nvidia-kernel/nv -f Makefile
make[2]: Entering directory `/usr/src/modules/nvidia-kernel/nv'
rm -f -f nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv-i2c.o nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv-i2c.o nvidia.mod.o
rm -f -f build-in.o nv-linux.o *.d .*.{cmd,flags}
rm -f -f nvidia.{o,ko,mod.{o,c}} nv_compiler.h *~
rm -f -f stprof stprof.o symtab.h
rm -f -rf .tmp_versions
make[2]: Leaving directory `/usr/src/modules/nvidia-kernel/nv'
rm -f /usr/src/modules/nvidia-kernel/nv/Makefile || true;
rm /usr/src/modules/nvidia-kernel/nv/gcc-check
rm /usr/src/modules/nvidia-kernel/nv/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/nv/Makefile || true
if [ 6 = 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 [ 6 = 4 ]; then \
cd /usr/src/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
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 = 6
Kernel compiler version : 4.1.1
Detected compiler version : 4.1.1
Using compiler gcc-4.1 version 4.1.1
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-4.1" /usr/bin/make -C /usr/src/modules/nvidia-kernel/nv -f Makefile SYSSRC=/lib/modules/2.6.24-etchnhalf.1-amd64/build KBUILD_PARAMS="-C /lib/modules/2.6.24-etchnhalf.1-amd64/build SUBDIRS=/usr/src/modules/nvidia-kernel/nv" module;
make[2]: Entering directory `/usr/src/modules/nvidia-kernel/nv'
NVIDIA: calling KBUILD...
make CC=gcc-4.1 -C /lib/modules/2.6.24-etchnhalf.1-amd64/build SUBDIRS=/usr/src/modules/nvidia-kernel/nv modules
make[3]: Entering directory `/usr/src/linux-headers-2.6.24-etchnhalf.1-amd64'
echo \#define NV_COMPILER \"`gcc-4.1 -v 2>&1 | tail -n 1`\" > /usr/src/modules/nvidia-kernel/nv/nv_compiler.h
CC [M] /usr/src/modules/nvidia-kernel/nv/nv.o
In file included from include/asm/dma-mapping_64.h:9,
from include/asm/dma-mapping.h:4,
from include/linux/dma-mapping.h:52,
from include/asm-generic/pci-dma-compat.h:7,
from include/asm/pci.h:88,
from include/linux/pci.h:796,
from /usr/src/modules/nvidia-kernel/nv/nv-linux.h:76,
from /usr/src/modules/nvidia-kernel/nv/nv.c:14:
include/linux/scatterlist.h: In function ?sg_virt?:
include/linux/scatterlist.h:293: warning: pointer of type ?void *? used in arithmetic
In file included from include/asm/pci.h:88,
from include/linux/pci.h:796,
from /usr/src/modules/nvidia-kernel/nv/nv-linux.h:76,
from /usr/src/modules/nvidia-kernel/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 include/linux/compat.h:14,
from include/asm/mtrr.h:131,
from /usr/src/modules/nvidia-kernel/nv/nv-linux.h:104,
from /usr/src/modules/nvidia-kernel/nv/nv.c:14:
include/asm/compat.h: In function ?compat_alloc_user_space?:
include/asm/compat.h:210: warning: pointer of type ?void *? used in arithmetic
/usr/src/modules/nvidia-kernel/nv/nv.c: At top level:
/usr/src/modules/nvidia-kernel/nv/nv.c:102: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?*? token
/usr/src/modules/nvidia-kernel/nv/nv.c: In function ?nvos_create_alloc?:
/usr/src/modules/nvidia-kernel/nv/nv.c:418: error: ?nv_pte_t_cache? undeclared (first use in this function)
/usr/src/modules/nvidia-kernel/nv/nv.c:418: error: (Each undeclared identifier is reported only once
/usr/src/modules/nvidia-kernel/nv/nv.c:418: error: for each function it appears in.)
/usr/src/modules/nvidia-kernel/nv/nv.c: In function ?nvos_free_alloc?:
/usr/src/modules/nvidia-kernel/nv/nv.c:450: error: ?nv_pte_t_cache? undeclared (first use in this function)
/usr/src/modules/nvidia-kernel/nv/nv.c: In function ?nvidia_init_module?:
/usr/src/modules/nvidia-kernel/nv/nv.c:1327: error: ?nv_pte_t_cache? undeclared (first use in this function)
/usr/src/modules/nvidia-kernel/nv/nv.c:1327: error: too many arguments to function ?kmem_cache_create?
/usr/src/modules/nvidia-kernel/nv/nv.c:1456: error: void value not ignored as it ought to be
/usr/src/modules/nvidia-kernel/nv/nv.c: In function ?nvidia_exit_module?:
/usr/src/modules/nvidia-kernel/nv/nv.c:1481: error: void value not ignored as it ought to be
/usr/src/modules/nvidia-kernel/nv/nv.c:1582: error: ?nv_pte_t_cache? undeclared (first use in this function)
/usr/src/modules/nvidia-kernel/nv/nv.c: In function ?nv_kern_open?:
/usr/src/modules/nvidia-kernel/nv/nv.c:1809: error: ?SA_INTERRUPT? undeclared (first use in this function)
/usr/src/modules/nvidia-kernel/nv/nv.c:1809: error: ?SA_SHIRQ? undeclared (first use in this function)
make[4]: *** [/usr/src/modules/nvidia-kernel/nv/nv.o] Error 1
make[3]: *** [_module_/usr/src/modules/nvidia-kernel/nv] Error 2
make[3]: Leaving directory `/usr/src/linux-headers-2.6.24-etchnhalf.1-amd64'
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[2]: *** [mdl] Error 1
make[2]: Leaving directory `/usr/src/modules/nvidia-kernel/nv'
make[1]: *** [build-stamp] Error 2
make[1]: Leaving directory `/usr/src/modules/nvidia-kernel'
make: *** [kdist_image] Error 2
More information about the Pkg-nvidia-devel
mailing list