nvidia-340 340.104-0ubuntu0.16.04.1: nvidia kernel module failed to build [error: implicit declaration of function ‘init_timer’]

Bug #1779687 reported by H.-R. Oberhage on 2018-07-02
This bug affects 11 people
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers-340 (Ubuntu)

Bug Description

When switching kernels from 4.13.0-45-generic to 4.15.0-24-generic, dkms fails in buildign the nvidia-340 module(s). My graphics component doesn't allow for a newer nvidia driver than the 340 one.

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: nvidia-340 340.104-0ubuntu0.16.04.1
ProcVersionSignature: Ubuntu 4.13.0-45.50~16.04.1-generic 4.13.16
Uname: Linux 4.13.0-45-generic x86_64
NonfreeKernelModules: zfs zunicode zavl zcommon znvpair nvidia_uvm nvidia
.proc.driver.nvidia.gpus.0000.01.00.0: Error: [Errno 21] Is a directory: '/proc/driver/nvidia/gpus/0000:01:00.0'
.proc.driver.nvidia.registry: Binary: ""
 NVRM version: NVIDIA UNIX x86_64 Kernel Module 340.104 Thu Sep 14 17:13:13 PDT 2017
 GCC version: gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.9)

ApportVersion: 2.20.1-0ubuntu2.18
Architecture: amd64
CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
CompositorRunning: compiz
CompositorUnredirectDriverBlacklist: '(nouveau|Intel).*Mesa 8.0'
CompositorUnredirectFSW: true
DKMSKernelVersion: 4.15.0-24-generic
Date: Mon Jul 2 15:44:09 2018
DistUpgraded: Fresh install
DistroCodename: xenial
DistroVariant: ubuntu
DuplicateSignature: dkms:nvidia-340:340.104-0ubuntu0.16.04.1:/var/lib/dkms/nvidia/340-340.104/build/nv.c:2407:5: error: implicit declaration of function ‘init_timer’ [-Werror=implicit-function-declaration]
 NVIDIA Corporation GT216GLM [Quadro FX 880M] [10de:0a3c] (rev a2) (prog-if 00 [VGA controller])
   Subsystem: Lenovo GT216GLM [Quadro FX 880M] [17aa:2145]
InstallationDate: Installed on 2015-07-08 (1089 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
MachineType: LENOVO 4389W1B
PackageVersion: 340.104-0ubuntu0.16.04.1
ProcKernelCmdLine: BOOT_IMAGE=Linux ro root=LABEL=Linux_root_Ubu splash
 dpkg 1.18.4ubuntu1.4
 apt 1.2.26
SourcePackage: nvidia-graphics-drivers-340
Title: nvidia-340 340.104-0ubuntu0.16.04.1: nvidia kernel module failed to build
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 10/27/2010
dmi.bios.vendor: LENOVO
dmi.bios.version: 6NET74WW (1.34 )
dmi.board.name: 4389W1B
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvr6NET74WW(1.34):bd10/27/2010:svnLENOVO:pn4389W1B:pvrThinkPadW510:rvnLENOVO:rn4389W1B:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.family: ThinkPad W510
dmi.product.name: 4389W1B
dmi.product.version: ThinkPad W510
dmi.sys.vendor: LENOVO
version.compiz: compiz 1:
version.ia32-libs: ia32-libs N/A
version.libdrm2: libdrm2 2.4.83-1~16.04.1
version.libgl1-mesa-dri: libgl1-mesa-dri 17.2.8-0ubuntu0~16.04.1
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 17.2.8-0ubuntu0~16.04.1
version.nvidia-graphics-drivers: nvidia-graphics-drivers-* N/A
version.xserver-xorg-core: xserver-xorg-core N/A
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati N/A
version.xserver-xorg-video-intel: xserver-xorg-video-intel N/A
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau N/A
xserver.bootTime: Mon Jul 2 15:11:57 2018
xserver.configfile: default
xserver.errors: open /dev/fb0: No such file or directory
xserver.logfile: /var/log/Xorg.0.log

xserver.version: 2:1.19.5-0ubuntu2~16.04.1

H.-R. Oberhage (oberhage) wrote :
tags: removed: need-duplicate-check
Launchpad Janitor (janitor) wrote :

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

Changed in nvidia-graphics-drivers-340 (Ubuntu):
status: New → Confirmed
iGadget (igadget) wrote :

I just bumped into bug during a regular (automatic) system update. Apparently, we're auto-upgrading from kernel 4.13 to 4.15?

Daniel van Vugt (vanvugt) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 1737750, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.

summary: nvidia-340 340.104-0ubuntu0.16.04.1: nvidia kernel module failed to
- build
+ build [error: implicit declaration of function ‘init_timer’]
Juan Pablo Firrincieli (jpfirr) wrote :

Confirmed, using kernel 4.15.0-22 it works but fails in 4.15.0-24

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

Other bug subscribers