Bug#870677: nvidia-kernel-dkms: Doesn't compile with kernel 4.11 (and probably later)

Jiri Palecek jpalecek at web.de
Fri Aug 4 01:09:23 UTC 2017


Package: nvidia-kernel-dkms
Version: 378.13-1
Severity: normal

Dear Maintainer,

-- Package-specific info:
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20170804/60c8dc28/attachment-0001.ksh>
-------------- next part --------------

I tried to check out the experimental packages of nvidia drivers,
however the -dkms sources failed to compile against 4.11.0-2
headers. There are several problems with incomaptible kernel API. For
example, the 375.82 contains, in nvidia-drm/nvidia-drm-encoder.h

#if defined(NV_DRM_DRM_ENCODER_H_PRESENT)
#include <drm/drm_encoder.h>
#else
#include <drm/drmP.h>
#endif

This #ifdef is totally missing in the 378.13 sources, which
unconditionally includes drm/drmP.h only. However, even the current
(git) kernel seems to follow the convention that you have to include
drm_encoder.h.

Other configuration #defines missing are

NV_DRM_HELPER_MODE_FILL_FB_STRUCT_HAS_DEV_ARG
NV_DRM_HELPER_MODE_FILL_FB_STRUCT_HAS_CONST_MODE_CMD_ARG has a wrong
test
NV_DRM_DRIVER_UNLOAD_HAS_INT_RETURN_TYPE

and maybe others. It seems strange that a newer driver fails to compile
and the older already has provisions for that,
but it seems like that's what it is.

Regards
    Jiri Palecek

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 4.11.0-2-686-pae (SMP w/2 CPU cores)
Locale: LANG=cs_CZ, LC_CTYPE=cs_CZ (charmap=ISO-8859-2), LANGUAGE=cs_CZ (charmap=ISO-8859-2)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages nvidia-kernel-dkms depends on:
ii  dkms                                               2.3-3
ii  nvidia-installer-cleanup                           20151021+4
ii  nvidia-kernel-support [nvidia-kernel-support--v1]  375.82-1

Versions of packages nvidia-kernel-dkms recommends:
ii  libcuda1       375.82-1
ii  nvidia-driver  375.82-1

nvidia-kernel-dkms suggests no packages.

Versions of packages nvidia-driver depends on:
ii  nvidia-alternative         375.82-1
ii  nvidia-driver-bin          375.82-1
ii  nvidia-driver-libs         375.82-1
ii  nvidia-installer-cleanup   20151021+4
ii  nvidia-legacy-check        375.82-1
ii  nvidia-support             20151021+4
ii  nvidia-vdpau-driver        375.82-1
ii  xserver-xorg-video-nvidia  375.82-1

Versions of packages nvidia-driver recommends:
ii  nvidia-persistenced  375.26-2
ii  nvidia-settings      375.66-1

nvidia-driver suggests no packages.

Versions of packages nvidia-driver-libs depends on:
ii  libgl1-nvidia-glx  375.82-1
ii  nvidia-egl-icd     375.82-1

Versions of packages nvidia-driver-libs recommends:
ii  libgles-nvidia1          375.82-1
ii  libgles-nvidia2          375.82-1
pn  libglx-nvidia0           <none>
ii  libnvidia-cfg1           375.82-1
pn  libopengl0-glvnd-nvidia  <none>
pn  nvidia-vulkan-icd        <none>

Versions of packages nvidia-glx depends on:
ii  dpkg                       1.18.24
ii  libgl1-nvidia-glx          375.82-1
pn  libxvmcnvidia1             <none>
ii  nvidia-alternative         375.82-1
ii  nvidia-installer-cleanup   20151021+4
ii  nvidia-support             20151021+4
ii  nvidia-vdpau-driver        375.82-1
ii  xserver-xorg-video-nvidia  375.82-1

Versions of packages nvidia-glx recommends:
ii  nvidia-settings  375.66-1

nvidia-glx suggests no packages.

Versions of packages libgl1-nvidia-glx depends on:
ii  libc6                     2.24-12
ii  libnvidia-glcore          375.82-1
ii  libx11-6                  2:1.6.4-3
ii  libxext6                  2:1.3.3-1+b2
ii  nvidia-alternative        375.82-1
ii  nvidia-installer-cleanup  20151021+4
ii  nvidia-legacy-check       375.82-1
ii  nvidia-support            20151021+4

libgl1-nvidia-glx recommends no packages.

libgl1-nvidia-glx suggests no packages.

Versions of packages xserver-xorg-video-nvidia depends on:
ii  libc6                                  2.24-12
ii  libnvidia-glcore                       375.82-1
ii  nvidia-alternative                     375.82-1
ii  nvidia-installer-cleanup               20151021+4
ii  nvidia-legacy-check                    375.82-1
ii  nvidia-support                         20151021+4
ii  xserver-xorg-core [xorg-video-abi-23]  2:1.19.3-2

Versions of packages xserver-xorg-video-nvidia recommends:
ii  nvidia-driver        375.82-1
ii  nvidia-settings      375.66-1
ii  nvidia-vdpau-driver  375.82-1

xserver-xorg-video-nvidia suggests no packages.

Versions of packages nvidia-alternative depends on:
ii  glx-alternative-nvidia  0.7.4
ii  nvidia-legacy-check     375.82-1

Versions of packages glx-alternative-nvidia depends on:
ii  glx-alternative-mesa  0.7.4
ii  glx-diversions        0.7.4
ii  update-glx            0.7.4

Versions of packages glx-alternative-nvidia suggests:
ii  nvidia-driver  375.82-1

Versions of packages nvidia-kernel-dkms is related to:
pn  bumblebee                                                  <none>
pn  bumblebee-nvidia                                           <none>
ii  ccache                                                     3.3.4-1
ii  libcuda1 [libcuda1-any]                                    375.82-1
pn  libdrm-nouveau1                                            <none>
pn  libdrm-nouveau1a                                           <none>
ii  libdrm-nouveau2                                            2.4.81-2
ii  libgl1-nvidia-glx [libgl1-nvidia-glx-any]                  375.82-1
ii  libvulkan1                                                 1.0.54.0+dfsg1-1
pn  linux-headers                                              <none>
ii  make                                                       4.1-9.1
ii  nvidia-driver [nvidia-glx-any]                             375.82-1
pn  nvidia-glx                                                 <none>
ii  nvidia-kernel-common                                       20151021+4
ii  nvidia-kernel-dkms                                         375.82-1
pn  nvidia-kernel-source                                       <none>
ii  nvidia-kernel-support [nvidia-kernel-support-any]          375.82-1
ii  nvidia-libopencl1 [libopencl1]                             375.82-1
ii  nvidia-modprobe                                            375.26-1
ii  nvidia-opencl-icd [opencl-icd]                             375.82-1
ii  nvidia-settings                                            375.66-1
ii  nvidia-support                                             20151021+4
pn  nvidia-xconfig                                             <none>
pn  vulkan-icd                                                 <none>
ii  xserver-xorg                                               1:7.7+18
ii  xserver-xorg-core                                          2:1.19.3-2
pn  xserver-xorg-legacy                                        <none>
pn  xserver-xorg-video-nouveau                                 <none>
ii  xserver-xorg-video-nvidia [xserver-xorg-video-nvidia-any]  375.82-1

-- no debconf information


More information about the pkg-nvidia-devel mailing list