Bug#815986: nvidia-kernel-dkms:amd64: does not build for x86_64 kernel on i386 userspace

Andreas Beckmann anbe at debian.org
Sat Feb 27 03:08:12 UTC 2016


On 2016-02-26 18:21, Andreas Beckmann wrote:
> I tried a patch (in svn, but disabled) that adds KBUILD_CFLAGS to
> NV_CONFTEST_CFLAGS, but that already makes the build fail. (I didn't
> even think about testing 32/64 bit mixtures).

OK, I got it working for 355.11:
* ignore -Werror* flags from KBUILD_CFLAGS to not break conftest.sh
* use LDFLAGS to pass the correct architecture

In a sid i386 chroot with foreign architecture amd64 I installed
linux-headers-4.3.*-amd64:amd64 and nvidia-kernel-source:amd64 and
successfully built a 355.11 module package.

Now let's get this backported to 352.xx and 340.xx, help would be
appreciated.

I knew there would be some fallout switching from our conftest.h to
upstream's conftest.sh. But it should save much work in the future.


Andreas



More information about the pkg-nvidia-devel mailing list