nvidia-kernel-source-390 390.87-0ubuntu2: nvidia kernel module failed to build [error: implicit declaration of function ‘drm_connector_attach_encoder’]

Bug #1803275 reported by Bashing-om
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers-390 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Loading new nvidia-390.87 DKMS files...
Building for 4.18.0-10-generic
Building for architecture x86_64
Building initial module for 4.18.0-10-generic
Error! Bad return status for module build on kernel: 4.18.0-10-generic (x86_64)
Consult /var/lib/dkms/nvidia/390.87/build/make.log for more information.
dpkg: error processing package nvidia-dkms-390 (--configure):
 installed nvidia-dkms-390 package post-installation script subprocess returned error exit status 10
Setting up libnvidia-gl-390:i386 (390.87-0ubuntu2) ...
Setting up libnvidia-gl-390:amd64 (390.87-0ubuntu2) ...
Setting up hplip (3.18.10+dfsg0-3) ...
Creating/updating hplip user account...
dpkg: dependency problems prevent configuration of nvidia-driver-390:
 nvidia-driver-390 depends on nvidia-dkms-390 (= 390.87-0ubuntu2); however:
  Package nvidia-dkms-390 is not configured yet.

dpkg: error processing package nvidia-driver-390 (--configure):
 dependency problems - leaving unconfigured
Setting up printer-driver-postscript-hp (3.18.10+dfsg0-3) ...
No apport report written because the error message indicates its a followup error from a previous failure.
                          Setting up libnvidia-ifr1-390:amd64 (390.87-0ubuntu2) ...
Setting up libnvidia-ifr1-390:i386 (390.87-0ubuntu2) ...
Processing triggers for initramfs-tools (0.131ubuntu15) ...
update-initramfs: Generating /boot/initrd.img-4.18.0-10-generic
Processing triggers for libc-bin (2.28-0ubuntu1) ...
Errors were encountered while processing:
 nvidia-dkms-390
 nvidia-driver-390
E: Sub-process /usr/bin/dpkg returned an error code (1)
sysop@x1904:~$

ProblemType: Package
DistroRelease: Ubuntu 19.04
Package: nvidia-kernel-source-390 390.87-0ubuntu2
ProcVersionSignature: Ubuntu 4.18.0-10.11-generic 4.18.12
Uname: Linux 4.18.0-10-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia_drm nvidia_modeset nvidia
ApportVersion: 2.20.10-0ubuntu14
Architecture: amd64
DKMSKernelVersion: 4.18.0-10-generic
Date: Tue Nov 13 22:56:33 2018
Dependencies:

DuplicateSignature: dkms:nvidia-kernel-source-390:390.87-0ubuntu2:/var/lib/dkms/nvidia/390.87/build/nvidia-drm/nvidia-drm-encoder.c:223:11: error: implicit declaration of function ‘drm_connector_attach_encoder’; did you mean ‘drm_mode_connector_attach_encoder’? [-Werror=implicit-function-declaration]
InstallationDate: Installed on 2018-05-20 (177 days ago)
InstallationMedia: Xubuntu 18.10 "Cosmic Cuttlefish" - Alpha amd64 (20180520)
PackageVersion: 390.87-0ubuntu2
Python3Details: /usr/bin/python3.7, Python 3.7.1, python3-minimal, 3.7.1-1ubuntu1
PythonDetails: /usr/bin/python2.7, Python 2.7.15+, python-minimal, 2.7.15-3
RelatedPackageVersions:
 dpkg 1.19.0.5ubuntu5
 apt 1.7.0
SourcePackage: nvidia-graphics-drivers-390
Title: nvidia-kernel-source-390 390.87-0ubuntu2: nvidia kernel module failed to build
UpgradeStatus: Upgraded to disco on 2018-11-07 (7 days ago)

Revision history for this message
Bashing-om (bashing-om) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Bashing-om (bashing-om) wrote :
Revision history for this message
Bashing-om (bashing-om) wrote :

sudo apt purge nvidia-dkms-390 successful in also removing nvidia-driver-390*.
However, sudo apt install nvidia-driver-390 results in same error condition of
"Errors were encountered while processing:
 nvidia-dkms-390
 nvidia-driver-390
E: Sub-process /usr/bin/dpkg returned an error code (1)
"

Revision history for this message
Mark Constable (markc) wrote :

Same for me here using disco...

update-initramfs: Generating /boot/initrd.img-4.18.0-10-generic
Processing triggers for libc-bin (2.28-0ubuntu1) ...
Errors were encountered while processing:
 nvidia-dkms-390
 nvidia-driver-390
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nvidia-graphics-drivers-390 (Ubuntu):
status: New → Confirmed
summary: nvidia-kernel-source-390 390.87-0ubuntu2: nvidia kernel module failed to
- build
+ build [error: implicit declaration of function
+ ‘drm_connector_attach_encoder’]
Revision history for this message
Bashing-om (bashing-om) wrote :

Update:
With today's update - kernel 4.18.0-11-generic and new nvidia files - the 390 version driver does install however does not load.
see the attached /var/log/Xorg.0.log, and /var/log/gpu-manager.log .
What is promising is 'lshw' shows the nvidia driver as loaded/
sysop@x1904:~$ sudo lshw -C display
  *-display
       description: VGA compatible controller
       product: GK208B [GeForce GT 710]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:06:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: irq:16 memory:fb000000-fbffffff memory:d8000000-dfffffff memory:e6000000-e7ffffff ioport:4c00(size=128) memory:c0000-dffff
sysop@x1904:~$

Rather confusing as to what is going on.

Revision history for this message
Bashing-om (bashing-om) wrote :
Revision history for this message
Bashing-om (bashing-om) wrote :

Try and push this along.
Is this a packaging error ? As the Xorg file indicates:
4.976] (==) ModulePath set to "/usr/lib/xorg/modules"

However, the nvidia directive does not exist there:
sysop@x1904:~$ ls -al /usr/lib/xorg/modules
total 864
drwxr-xr-x 5 root root 4096 Nov 14 23:26 .
drwxr-xr-x 3 root root 4096 Nov 14 23:26 ..
drwxr-xr-x 2 root root 4096 Nov 22 17:40 drivers
drwxr-xr-x 2 root root 4096 Nov 14 23:26 extensions
drwxr-xr-x 2 root root 4096 Oct 16 23:44 input
-rw-r--r-- 1 root root 101040 Oct 25 09:53 libexa.so
-rw-r--r-- 1 root root 22792 Oct 25 09:53 libfbdevhw.so
-rw-r--r-- 1 root root 109360 Oct 25 09:53 libfb.so
-rw-r--r-- 1 root root 217048 Oct 25 09:53 libglamoregl.so
-rw-r--r-- 1 root root 146088 Oct 25 09:53 libint10.so
-rw-r--r-- 1 root root 14472 Oct 25 09:53 libshadowfb.so
-rw-r--r-- 1 root root 39112 Oct 25 09:53 libshadow.so
-rw-r--r-- 1 root root 31120 Oct 25 09:53 libvbe.so
-rw-r--r-- 1 root root 35880 Oct 25 09:53 libvgahw.so
-rw-r--r-- 1 root root 133904 Oct 25 09:53 libwfb.so
sysop@x1904:~$
Looking in /drivers and no nvidia file there either:
sysop@x1904:~$ ls -al /usr/lib/xorg/modules/drivers/
total 3064
drwxr-xr-x 2 root root 4096 Nov 22 17:40 .
drwxr-xr-x 5 root root 4096 Nov 14 23:26 ..
-rw-r--r-- 1 root root 160864 Sep 18 02:23 amdgpu_drv.so
-rw-r--r-- 1 root root 14504 Sep 18 03:54 ati_drv.so
-rw-r--r-- 1 root root 27648 Oct 4 02:11 fbdev_drv.so
-rw-r--r-- 1 root root 1686056 Oct 11 03:39 intel_drv.so
-rw-r--r-- 1 root root 111168 Oct 25 09:53 modesetting_drv.so
-rw-r--r-- 1 root root 212968 Jun 25 11:39 nouveau_drv.so
-rw-r--r-- 1 root root 180840 May 23 2018 qxl_drv.so
-rw-r--r-- 1 root root 514336 Sep 18 03:54 radeon_drv.so
-rw-r--r-- 1 root root 31784 Aug 18 06:42 vesa_drv.so
-rw-r--r-- 1 root root 170168 May 28 00:57 vmware_drv.so
sysop@x1904:~$

Mind you, I do not know, but seems logical the nvidia_drv.so should be pointed to.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.