[pkg-nvidia-devel] Bug#503661: nvidia-kernel-source: building 32-bit module fails after building 64-bit one

Sven Joachim svenjoac at gmx.de
Mon Oct 27 11:04:17 UTC 2008


Package: nvidia-kernel-source
Version: 177.80-1
Severity: normal

The following snippet in nvidia-kernel/debian/conf.mk:

--8<---------------cut here---------------start------------->8---
	if [ "$(kernel_arch)" = "x86_64" ]; then \
		cp $(CURDIR)/nv-kernel.o.x86_64 $(CURDIR)/nv-kernel.o ; \
	fi
--8<---------------cut here---------------end--------------->8---

unconditionally overwrites nv-kernel.o without a backup, so it is no
longer possible to build a 32-bit nvidia.ko unless one unpacks the
nvidia-kernel.tar.bz2 again.  While module-assistant does this
automatically, make-kpkg does not.  This leads to the following failure:

,----
| % linux32 fakeroot make-kpkg modules-image
| [...]
|   LD [M]  /usr/src/modules/nvidia-kernel/nvidia.o
| ld: Relocatable linking with relocations from format elf64-x86-64 (/usr/src/modules/nvidia-kernel/nv-kernel.o) to format elf32-i386 (/usr/src/modules/nvidia-kernel/nvidia.o) is not supported
| make[5]: *** [/usr/src/modules/nvidia-kernel/nvidia.o] Error 1
| make[4]: *** [_module_/usr/src/modules/nvidia-kernel] Error 2
`----

Oh, and #501987 applies to this situation as well, since make-kpkg
produces a (broken) .deb despite this error.


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.27.4-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages nvidia-kernel-source depends on:
ii  debhelper                     7.0.17     helper programs for debian/rules
ii  dpatch                        2.0.30     patch maintenance system for Debia
ii  make                          3.81-5     The GNU version of the "make" util
ii  sed                           4.1.5-8    The GNU sed stream editor

Versions of packages nvidia-kernel-source recommends:
ii  devscripts                    2.10.39    scripts to make the life of a Debi
ii  kernel-package                11.0011    A utility for building Linux kerne
ii  nvidia-glx                    177.80-1   NVIDIA binary Xorg driver

nvidia-kernel-source suggests no packages.

-- no debconf information





More information about the Pkg-nvidia-devel mailing list