[Kernel-packages] [Bug 1888617] Re: nvidia-kernel-source-435 435.21-0ubuntu0.18.04.2: nvidia kernel module failed to build

2020-07-26 Thread mkurz
@bormolino I had exactly the same problem like you (also using the Nvidia 435 
driver). For me it seemed strange because the folder 
/usr/src/linux-headers-5.4.0-42-generic DOES exist and also DOES contain both 
files include/generated/autoconf.h and include/config/auto.conf...
Not sure why the error messages says these files can't be found. Do these files 
exist on your machine?
Anyway, what solved my problem in the end was to upgrade to the latest nvidia 
driver 440 (I upgraded via the "Software & Updates" UI (under "Additional 
Drivers") (I guess it just installs the package nvidia-driver-440)
I would guess what also would have solved the problem is to re-install the 435 
driver (nvidia-driver-435)

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to nvidia-graphics-drivers-435 in Ubuntu.
https://bugs.launchpad.net/bugs/1888617

Title:
  nvidia-kernel-source-435 435.21-0ubuntu0.18.04.2: nvidia kernel module
  failed to build

Status in nvidia-graphics-drivers-435 package in Ubuntu:
  Confirmed

Bug description:
  After a "usual" upgrade, my system did not give any sign of life on
  the monitor. I tried to boot an older kernel, it worked. Then I
  discovered, that the problem that nvidia drivers cannot be built
  against kernel linux-image-5.4.0-42-generic, which could be the
  problem.

  from /var/crash/nvidia-kernel-source-435.0.crash :

   /var/lib/dkms/nvidia/435.21/build/nvidia-drm/nvidia-drm-drv.c:662:44: error: 
‘DRIVER_PRIME’ undeclared here (not in a function); did you mean 
‘DRIVER_PCI_DMA’?
.driver_features= DRIVER_GEM | DRIVER_PRIME | DRIVER_RENDER,
   ^~~~
   DRIVER_PCI_DMA
   scripts/Makefile.build:273: recipe for target 
'/var/lib/dkms/nvidia/435.21/build/nvidia-drm/nvidia-drm-drv.o' failed
   make[2]: *** [/var/lib/dkms/nvidia/435.21/build/nvidia-drm/nvidia-drm-drv.o] 
Error 1
   make[2]: *** Waiting for unfinished jobs
  ./tools/objtool/objtool check  --module --retpoline --uaccess 
/var/lib/dkms/nvidia/435.21/build/nvidia-drm/nvidia-drm.o
  ./tools/objtool/objtool check  --module --retpoline --uaccess 
/var/lib/dkms/nvidia/435.21/build/nvidia-uvm/uvm8_range_group_tree_test.o
  ./tools/objtool/objtool check  --module --retpoline --uaccess 
/var/lib/dkms/nvidia/435.21/build/nvidia-drm/nvidia-drm-utils.o
  ./tools/objtool/objtool check  --module --retpoline --uaccess 
/var/lib/dkms/nvidia/435.21/build/nvidia-drm/nvidia-drm-encoder.o
  ./tools/objtool/objtool check  --module --retpoline --uaccess 
/var/lib/dkms/nvidia/435.21/build/nvidia-drm/nvidia-drm-gem.o
  ./tools/objtool/objtool check  --module --retpoline --uaccess 
/var/lib/dkms/nvidia/435.21/build/nvidia-drm/nvidia-drm-connector.o
  ./tools/objtool/objtool check  --module --retpoline --uaccess 
/var/lib/dkms/nvidia/435.21/build/nvidia-drm/nvidia-drm-crtc.o
   Makefile:1731: recipe for target '/var/lib/dkms/nvidia/435.21/build' failed
   make[1]: *** [/var/lib/dkms/nvidia/435.21/build] Error 2
   make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-42-generic'
   Makefile:81: recipe for target 'modules' failed
   make: *** [modules] Error 2
  DKMSKernelVersion: 5.4.0-42-generic
  Date: Wed Jul 22 08:08:55 2020
  DuplicateSignature: 
dkms:nvidia-kernel-source-435:435.21-0ubuntu0.18.04.2:/var/lib/dkms/nvidia/435.21/build/nvidia-drm/nvidia-drm-drv.c:662:44:
 error: ‘DRIVER_PRIME’ undeclared here (not in a function); did you mean 
‘DRIVER_PCI_DMA’?
  Package: nvidia-kernel-source-435 435.21-0ubuntu0.18.04.2
  PackageVersion: 435.21-0ubuntu0.18.04.2
  SourcePackage: nvidia-graphics-drivers-435
  Title: nvidia-kernel-source-435 435.21-0ubuntu0.18.04.2: nvidia kernel module 
failed to build

  ProblemType: Package
  DistroRelease: Ubuntu 18.04
  Package: nvidia-kernel-source-435 435.21-0ubuntu0.18.04.2
  ProcVersionSignature: Ubuntu 5.3.0-62.56~18.04.1-generic 5.3.18
  Uname: Linux 5.3.0-62-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia
  ApportVersion: 2.20.9-0ubuntu7.15
  Architecture: amd64
  DKMSKernelVersion: 5.4.0-42-generic
  Date: Wed Jul 22 08:08:55 2020
  Dependencies:
   
  DuplicateSignature: 
dkms:nvidia-kernel-source-435:435.21-0ubuntu0.18.04.2:/var/lib/dkms/nvidia/435.21/build/nvidia-drm/nvidia-drm-drv.c:662:44:
 error: ‘DRIVER_PRIME’ undeclared here (not in a function); did you mean 
‘DRIVER_PCI_DMA’?
  InstallationDate: Installed on 2020-01-06 (198 days ago)
  InstallationMedia: Ubuntu 18.04.3 LTS "Bionic Beaver" - Release amd64 
(20190805)
  PackageVersion: 435.21-0ubuntu0.18.04.2
  Python3Details: /usr/bin/python3.6, Python 3.6.9, python3-minimal, 
3.6.7-1~18.04
  PythonDetails: /usr/bin/python2.7, Python 2.7.17, python-minimal, 2.7.15~rc1-1
  RelatedPackageVersions:
   dpkg 1.19.0.5ubuntu2.3
   apt  1.6.12ubuntu0.1
  SourcePackage: nvidia-graphics-drivers-435
  Title: nvidia-kernel-source-435 435.21-0ubuntu

[Kernel-packages] [Bug 1888617] Re: nvidia-kernel-source-435 435.21-0ubuntu0.18.04.2: nvidia kernel module failed to build

2020-07-24 Thread mkurz
Same here, appeared today after system update.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to nvidia-graphics-drivers-435 in Ubuntu.
https://bugs.launchpad.net/bugs/1888617

Title:
  nvidia-kernel-source-435 435.21-0ubuntu0.18.04.2: nvidia kernel module
  failed to build

Status in nvidia-graphics-drivers-435 package in Ubuntu:
  Confirmed

Bug description:
  After a "usual" upgrade, my system did not give any sign of life on
  the monitor. I tried to boot an older kernel, it worked. Then I
  discovered, that the problem that nvidia drivers cannot be built
  against kernel linux-image-5.4.0-42-generic, which could be the
  problem.

  from /var/crash/nvidia-kernel-source-435.0.crash :

   /var/lib/dkms/nvidia/435.21/build/nvidia-drm/nvidia-drm-drv.c:662:44: error: 
‘DRIVER_PRIME’ undeclared here (not in a function); did you mean 
‘DRIVER_PCI_DMA’?
.driver_features= DRIVER_GEM | DRIVER_PRIME | DRIVER_RENDER,
   ^~~~
   DRIVER_PCI_DMA
   scripts/Makefile.build:273: recipe for target 
'/var/lib/dkms/nvidia/435.21/build/nvidia-drm/nvidia-drm-drv.o' failed
   make[2]: *** [/var/lib/dkms/nvidia/435.21/build/nvidia-drm/nvidia-drm-drv.o] 
Error 1
   make[2]: *** Waiting for unfinished jobs
  ./tools/objtool/objtool check  --module --retpoline --uaccess 
/var/lib/dkms/nvidia/435.21/build/nvidia-drm/nvidia-drm.o
  ./tools/objtool/objtool check  --module --retpoline --uaccess 
/var/lib/dkms/nvidia/435.21/build/nvidia-uvm/uvm8_range_group_tree_test.o
  ./tools/objtool/objtool check  --module --retpoline --uaccess 
/var/lib/dkms/nvidia/435.21/build/nvidia-drm/nvidia-drm-utils.o
  ./tools/objtool/objtool check  --module --retpoline --uaccess 
/var/lib/dkms/nvidia/435.21/build/nvidia-drm/nvidia-drm-encoder.o
  ./tools/objtool/objtool check  --module --retpoline --uaccess 
/var/lib/dkms/nvidia/435.21/build/nvidia-drm/nvidia-drm-gem.o
  ./tools/objtool/objtool check  --module --retpoline --uaccess 
/var/lib/dkms/nvidia/435.21/build/nvidia-drm/nvidia-drm-connector.o
  ./tools/objtool/objtool check  --module --retpoline --uaccess 
/var/lib/dkms/nvidia/435.21/build/nvidia-drm/nvidia-drm-crtc.o
   Makefile:1731: recipe for target '/var/lib/dkms/nvidia/435.21/build' failed
   make[1]: *** [/var/lib/dkms/nvidia/435.21/build] Error 2
   make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-42-generic'
   Makefile:81: recipe for target 'modules' failed
   make: *** [modules] Error 2
  DKMSKernelVersion: 5.4.0-42-generic
  Date: Wed Jul 22 08:08:55 2020
  DuplicateSignature: 
dkms:nvidia-kernel-source-435:435.21-0ubuntu0.18.04.2:/var/lib/dkms/nvidia/435.21/build/nvidia-drm/nvidia-drm-drv.c:662:44:
 error: ‘DRIVER_PRIME’ undeclared here (not in a function); did you mean 
‘DRIVER_PCI_DMA’?
  Package: nvidia-kernel-source-435 435.21-0ubuntu0.18.04.2
  PackageVersion: 435.21-0ubuntu0.18.04.2
  SourcePackage: nvidia-graphics-drivers-435
  Title: nvidia-kernel-source-435 435.21-0ubuntu0.18.04.2: nvidia kernel module 
failed to build

  ProblemType: Package
  DistroRelease: Ubuntu 18.04
  Package: nvidia-kernel-source-435 435.21-0ubuntu0.18.04.2
  ProcVersionSignature: Ubuntu 5.3.0-62.56~18.04.1-generic 5.3.18
  Uname: Linux 5.3.0-62-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia
  ApportVersion: 2.20.9-0ubuntu7.15
  Architecture: amd64
  DKMSKernelVersion: 5.4.0-42-generic
  Date: Wed Jul 22 08:08:55 2020
  Dependencies:
   
  DuplicateSignature: 
dkms:nvidia-kernel-source-435:435.21-0ubuntu0.18.04.2:/var/lib/dkms/nvidia/435.21/build/nvidia-drm/nvidia-drm-drv.c:662:44:
 error: ‘DRIVER_PRIME’ undeclared here (not in a function); did you mean 
‘DRIVER_PCI_DMA’?
  InstallationDate: Installed on 2020-01-06 (198 days ago)
  InstallationMedia: Ubuntu 18.04.3 LTS "Bionic Beaver" - Release amd64 
(20190805)
  PackageVersion: 435.21-0ubuntu0.18.04.2
  Python3Details: /usr/bin/python3.6, Python 3.6.9, python3-minimal, 
3.6.7-1~18.04
  PythonDetails: /usr/bin/python2.7, Python 2.7.17, python-minimal, 2.7.15~rc1-1
  RelatedPackageVersions:
   dpkg 1.19.0.5ubuntu2.3
   apt  1.6.12ubuntu0.1
  SourcePackage: nvidia-graphics-drivers-435
  Title: nvidia-kernel-source-435 435.21-0ubuntu0.18.04.2: nvidia kernel module 
failed to build
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-435/+bug/1888617/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp