Bug#834446: nvidia-kernel-dkms: kernel module does not build for 64-bit kernel with 32-bit userspace
luca.boccassi at gmail.com
Tue Sep 6 20:02:54 UTC 2016
Control: tags -1 pending
On Mon, 2016-08-15 at 14:43 -0400, Norman Ramsey wrote:
> Package: nvidia-kernel-dkms
> Version: 361.45.18-2
> Severity: important
> Tags: patch
> Dear Maintainer,
> I tried to install nvidia-kernel-dkms. The install failed.
> To get diagnostics, I ran
> sudo dpkg-reconfigure nvidia-kernel-dkms
> I tracked the problem down to the 'ld -r' command used in several places.
> Using 'ld --verbose' I discovered that the 'default script' for 'ld -r'
> sets the target architecture to 32-bit x86. Although my userspace is
> 32-bit x86, I run a 64-bit kernel.
> I attach a patch that addresses my immediate concerns. However, the
> patch is *completely* bogus. The proper thing to do here is to detect
> the architecture used in the kernel and to use the 'ld -m<arch>' flag
> appropriately. I don't have the skills to do this easily.
> I'm sorry I didn't think to capture the make.log that exhibits the
> It may help to know that on the same system with the same
> configuration, version 352.79-10~bpo8+1 built without problems.
Your patch was not too far off. What's missing is using $(LDFLAGS) in
the $(LD) calls in the new Makefile and nvidia-modeset.Kbuild files. We
already had a patch to add it to the older makefiles, but since the
addition of the new kernel modules there are new ones and we forgot to
update the patch.
I've tested this in an i386 chroot with the amd64 kernel headers and the
modules can be built via both the dkms and the source packages. Next
upload to unstable will have the fix.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes
Desc: This is a digitally signed message part
More information about the pkg-nvidia-devel