Installed amdgpu dkms package post installation script subprocess returned error exit status 10

Hi, System: Ubuntu 20.04.1, Gpu: Sapphire RX 5700 XT, Drivers tested (20.30, 20.40, 20.45) When I try to install drivers, I get this: Building initial module for 5.4.0-56-generic ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/amdgpu-dkms-firmware.0.crash' Error! Bad return status f...

SurlyJest

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

I am getting a different error on Ubuntu 20.04  with kernel 5.4.0-56-generic:

ERROR: Cannot create report: [Errno 17] File exists: ‘/var/crash/amdgpu-dkms.0.crash’
Error! Bad return status for module build on kernel: 5.4.0-56-generic (x86_64)
Consult /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/make.log for more information.
dpkg: error processing package amdgpu-dkms (—configure):
installed amdgpu-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of amdgpu:
amdgpu depends on amdgpu-dkms (= 1:5.6.20.906300-1164792); however:
Package amdgpu-dkms is not configured yet.

dpkg: error processing package amdgpu (—configure):
dependency problems — leaving unconfigured
Setting up xserver-xorg-amdgpu-video-amdgpu (1:19.1.0-1164792) …
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up mesa-amdgpu-omx-drivers:amd64 (1:20.1.6-1164792) …

It seems to me that this version is unusable in the current version of Ubuntu 20.04 (I just updated today to a newer kernel).  So, I can’t use this until they fix this, unless I want to go fixing their code (and I’m not confident with that).

The make log file indicates several errors in compiling, possibly due to a compiler difference (mine is newer):
DKMS make.log for amdgpu-5.6.20.906300-1164792 for kernel 5.4.0-56-generic (x86_64)
Wed 02 Dec 2020 12:01:34 AM EST
make: Entering directory ‘/usr/src/linux-headers-5.4.0-56-generic’
/var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/Makefile:20: «Local GCC version 90303 does not match kernel compiler GCC version 90300»
/var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/Makefile:21: «This may cause unexpected and hard-to-isolate compiler-related issues»
AR /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/built-in.a
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/main.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/symbols.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_memory.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_ioctl.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/scheduler/sched_main.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/scheduler/sched_fence.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_memory.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/scheduler/sched_entity.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_device_cgroup.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_tt.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_drm_cache.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_drv.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_bo.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_device.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_drm.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_fence_array.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_fence.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_io.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_kthread.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_mm.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_pci.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_bo_util.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_perf_event.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_bo_vm.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_reservation.o
/var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_fence.c:30:1: warning: ‘dma_fence_test_signaled_any’ defined but not used [-Wunused-function]
30 | dma_fence_test_signaled_any(struct dma_fence **fences, uint32_t count,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_kms.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_suspend.o
LD [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/scheduler/amd-sched.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_workqueue.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_seq_file.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_connector.o
/var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_pci.c: In function ‘amdkcl_pci_init’:
/var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_pci.c:103:84: warning: passing argument 2 of ‘amdkcl_fp_setup’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualif
iers]
103 | _kcl_pcie_link_speed = (const unsigned char *) amdkcl_fp_setup(«pcie_link_speed», _kcl_pcie_link_speed_stub);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_pci.c:4:
/var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_common.h:12:63: note: expected ‘void *’ but argument is of type ‘const unsigned char *’
12 | static inline void *amdkcl_fp_setup(const char *symbol, void *fp_stup)

CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_backlight.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_drm_atomic_helper.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_drm_crtc.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_module.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_drm_fb.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_drm_modeset_lock.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_drm_modes.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_mn.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_execbuf_util.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_page_alloc.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/dma-buf/dma-resv.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_bo_manager.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_agp_backend.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_page_alloc_dma.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_atombios.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/atombios_crtc.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_connectors.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/atom.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_fence.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_ttm.o
LD [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/amdkcl.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_object.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_gart.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_encoders.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_display.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_i2c.o
LD [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/amdttm.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_fb.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_gem.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_ring.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_cs.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_bios.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_benchmark.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_test.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/atombios_dp.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_afmt.o
/var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_fb.c: In function ‘amdgpufb_create’:
/var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_fb.c:252:14: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
252 | info->fbops = &amdgpufb_ops;
| ^
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_trace_points.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/atombios_encoders.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_sa.o
/var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_bios.c: In function ‘amdgpu_read_platform_bios’:
/var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_bios.c:200:9: error: implicit declaration of function ‘pci_platform_rom’ [-Werror=implicit-function-declaration]
200 | bios = pci_platform_rom(adev->pdev, &size);
| ^~~~~~~~~~~~~~~~
/var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_bios.c:200:7: warning: assignment to ‘uint8_t *’ {aka ‘unsigned char *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]

SurlyJest

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

I may have exceeded a reply length — my message was truncated. The last bit of the make.log is:

cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:275: /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_bios.o] Error 1
make[2]: *** Waiting for unfinished jobs….
make[1]: *** [scripts/Makefile.build:522: /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu] Error 2
make: *** [Makefile:1757: /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build] Error 2
make: Leaving directory ‘/usr/src/linux-headers-5.4.0-56-generic’

So it is failing the build since it is set to treat these warnings as errors.

deepmindser

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

well, i’m not baszczer, but still.

Thanks to baszczer, I’ve tryed to use 5.4.0-54 (the previous one) and it just works!

To install 5.4.0-54 do next:

sudo apt install linux-image-5.4.0-54-generic linux-headers-5.4.0-54-generic linux-modules-extra-5.4.0-54-generic

then reboot to 5.4.0-54

then

sudo apt remove linux-image-5.4.0-56-generic linux-image-unsigned-5.4.0-56-generic

(unsigned mentioned here because it tryed to install it for me by some reason.. it just helped)

then do

sudo apt autoremove

then go to /usr/src and remove linux-headers-5.4.0-56-generic and inux-headers-5.4.0-56 (if any of them are there)

now you can do

sudo ./amdgpu-install -y

Rnd3sB3g13rng

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

Karocyt

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

You saved my afternoon ! (But it was already too late for my morning)
Found your thread by looking for «pci_platform_rom implicit declaration», as its removal from 5.4.0.56 was the true culprit behind this mess.
The Kernel update was apparently preventing my second monitor to work too, despite having installed the driver a while ago.

cyberbemon

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

Got the driver 20.45 followed the post that was marked as a solution, but I can’t get anything to work. I uninstalled everything and tried again, still no use. Same error.

This is so frustrating, I just wanna get my work done. Did anyone else manage to get this to work? any other linux distro I can use, where I don’t have to stay up till 5 am to get a driver working.

amdgpu.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.0-54-generic/updates/dkms/

amdttm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.0-54-generic/updates/dkms/

amdkcl.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.0-54-generic/updates/dkms/

amd-sched.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.0-54-generic/updates/dkms/

Running the post_install script:

depmod....

DKMS: install completed.
Building initial module for 5.8.0-40-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/amdgpu-dkms-fir
mware.0.crash'
Error! Bad return status for module build on kernel: 5.8.0-40-generic (x86_64)
Consult /var/lib/dkms/amdgpu/5.6.20.906316-1188099/build/make.log for more infor
mation.
dpkg: error processing package amdgpu-dkms (--configure):
 installed amdgpu-dkms package post-installation script subprocess returned erro
r exit status 10
dpkg: dependency problems prevent configuration of amdgpu:
 amdgpu depends on amdgpu-dkms (= 1:5.6.20.906316-1188099); however:
  Package amdgpu-dkms is not configured yet.

dpkg: error processing package amdgpu (--configure):
 dependency problems - leaving unconfigured
Setting up libatomic1:i386 (10.2.0-5ubuntu1~20.04) ...
No apport report written because the error message indicates its a followup erro
r from a previous failure.
                          Setting up xserver-xorg-amdgpu-video-amdgpu (1:19.1.0-
1188099) ...
Setting up mesa-amdgpu-omx-drivers:amd64 (1:20.1.6-1188099) ...
Setting up libdrm2:i386 (2.4.102-1ubuntu1~20.04.1) ...
Setting up libegl1-amdgpu-mesa:amd64 (1:20.1.6-1188099) ...
Setting up libx11-6:i386 (2:1.6.9-2ubuntu1.1) ...
Setting up libwayland-egl1:i386 (1.18.0-1) ...
Setting up libgl1-amdgpu-mesa-glx:amd64 (1:20.1.6-1188099) ...
Setting up amdgpu-pro-core (20.45-1188099) ...
Setting up libgles2-amdgpu-mesa:amd64 (1:20.1.6-1188099) ...
Setting up libgles2-amdgpu-mesa:i386 (1:20.1.6-1188099) ...
Setting up libdrm-amdgpu1:i386 (2.4.102-1ubuntu1~20.04.1) ...
Setting up libwayland-client0:i386 (1.18.0-1) ...
Setting up libwayland-server0:i386 (1.18.0-1) ...
Setting up libgl1-amdgpu-mesa-dri:amd64 (1:20.1.6-1188099) ...
Setting up libgl1-amdgpu-mesa-dri:i386 (1:20.1.6-1188099) ...
dpkg: dependency problems prevent configuration of amdgpu-pro-rocr-opencl:
 amdgpu-pro-rocr-opencl depends on amdgpu-dkms (= 1:5.6.20.906316-1188099); howe
ver:
  Package amdgpu-dkms is not configured yet.

dpkg: error processing package amdgpu-pro-rocr-opencl (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup erro
r from a previous failure.
                          Setting up libdrm-nouveau2:i386 (2.4.102-1ubuntu1~20.0
4.1) ...
Setting up libgbm1-amdgpu:i386 (1:20.1.6-1188099) ...
Setting up libxdamage1:i386 (1:1.1.5-2) ...
Setting up libosmesa6-amdgpu:amd64 (1:20.1.6-1188099) ...
Setting up libosmesa6-amdgpu:i386 (1:20.1.6-1188099) ...
Setting up gst-omx-amdgpu (1.0.0.1-1188099) ...
Setting up comgr-amdgpu-pro:amd64 (1.7.0-1188099) ...
Setting up libdrm-radeon1:i386 (2.4.102-1ubuntu1~20.04.1) ...
Setting up hsa-runtime-rocr-amdgpu:amd64 (1.2.0-1188099) ...
Setting up ocl-icd-libopencl1-amdgpu-pro:amd64 (20.45-1188099) ...
Setting up libxext6:i386 (2:1.3.4-0ubuntu1) ...
Setting up clinfo-amdgpu-pro (20.45-1188099) ...
Setting up hip-rocr-amdgpu-pro (20.45-1188099) ...
Setting up libxxf86vm1:i386 (1:1.1.4-1build1) ...
Setting up libllvm11:i386 (1:11.0.0-2~ubuntu20.04.1) ...
Setting up libxfixes3:i386 (1:5.0.3-2) ...
Setting up libegl1-amdgpu-mesa-drivers:amd64 (1:20.1.6-1188099) ...
Setting up libvdpau1:i386 (1.3-1ubuntu2) ...
Setting up libegl1-amdgpu-mesa:i386 (1:20.1.6-1188099) ...
Setting up libgl1-amdgpu-mesa-glx:i386 (1:20.1.6-1188099) ...
Setting up opencl-rocr-amdgpu-pro:amd64 (20.45-1188099) ...
Setting up mesa-vdpau-drivers:i386 (20.2.6-0ubuntu0.20.04.1) ...
Setting up mesa-amdgpu-vdpau-drivers:i386 (1:20.1.6-1188099) ...
Setting up amdgpu-lib (20.45-1188099) ...
Setting up libegl1-amdgpu-mesa-drivers:i386 (1:20.1.6-1188099) ...
Setting up vdpau-driver-all:i386 (1.3-1ubuntu2) ...
Setting up amdgpu-lib32 (20.45-1188099) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.1) ...
Errors were encountered while processing:
 amdgpu-dkms
 amdgpu
 amdgpu-pro-rocr-opencl

I tried this on

5.4.0-54-generic

mountkidd

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content


@cyberbemon wrote:

Got the driver 20.45 followed the post that was marked as a solution, but I can’t get anything to work. I uninstalled everything and tried again, still no use. Same error.

This is so frustrating, I just wanna get my work done. Did anyone else manage to get this to work? any other linux distro I can use, where I don’t have to stay up till 5 am to get a driver working.

amdgpu.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.0-54-generic/updates/dkms/

amdttm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.0-54-generic/updates/dkms/

amdkcl.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.0-54-generic/updates/dkms/

amd-sched.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.0-54-generic/updates/dkms/

Running the post_install script:

depmod....

DKMS: install completed.
Building initial module for 5.8.0-40-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/amdgpu-dkms-fir
mware.0.crash'
Error! Bad return status for module build on kernel: 5.8.0-40-generic (x86_64)
Consult /var/lib/dkms/amdgpu/5.6.20.906316-1188099/build/make.log for more infor
mation.
dpkg: error processing package amdgpu-dkms (--configure):
 installed amdgpu-dkms package post-installation script subprocess returned erro
r exit status 10
dpkg: dependency problems prevent configuration of amdgpu:
 amdgpu depends on amdgpu-dkms (= 1:5.6.20.906316-1188099); however:
  Package amdgpu-dkms is not configured yet.

dpkg: error processing package amdgpu (--configure):
 dependency problems - leaving unconfigured
Setting up libatomic1:i386 (10.2.0-5ubuntu1~20.04) ...
No apport report written because the error message indicates its a followup erro
r from a previous failure.
                          Setting up xserver-xorg-amdgpu-video-amdgpu (1:19.1.0-
1188099) ...
Setting up mesa-amdgpu-omx-drivers:amd64 (1:20.1.6-1188099) ...
Setting up libdrm2:i386 (2.4.102-1ubuntu1~20.04.1) ...
Setting up libegl1-amdgpu-mesa:amd64 (1:20.1.6-1188099) ...
Setting up libx11-6:i386 (2:1.6.9-2ubuntu1.1) ...
Setting up libwayland-egl1:i386 (1.18.0-1) ...
Setting up libgl1-amdgpu-mesa-glx:amd64 (1:20.1.6-1188099) ...
Setting up amdgpu-pro-core (20.45-1188099) ...
Setting up libgles2-amdgpu-mesa:amd64 (1:20.1.6-1188099) ...
Setting up libgles2-amdgpu-mesa:i386 (1:20.1.6-1188099) ...
Setting up libdrm-amdgpu1:i386 (2.4.102-1ubuntu1~20.04.1) ...
Setting up libwayland-client0:i386 (1.18.0-1) ...
Setting up libwayland-server0:i386 (1.18.0-1) ...
Setting up libgl1-amdgpu-mesa-dri:amd64 (1:20.1.6-1188099) ...
Setting up libgl1-amdgpu-mesa-dri:i386 (1:20.1.6-1188099) ...
dpkg: dependency problems prevent configuration of amdgpu-pro-rocr-opencl:
 amdgpu-pro-rocr-opencl depends on amdgpu-dkms (= 1:5.6.20.906316-1188099); howe
ver:
  Package amdgpu-dkms is not configured yet.

dpkg: error processing package amdgpu-pro-rocr-opencl (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup erro
r from a previous failure.
                          Setting up libdrm-nouveau2:i386 (2.4.102-1ubuntu1~20.0
4.1) ...
Setting up libgbm1-amdgpu:i386 (1:20.1.6-1188099) ...
Setting up libxdamage1:i386 (1:1.1.5-2) ...
Setting up libosmesa6-amdgpu:amd64 (1:20.1.6-1188099) ...
Setting up libosmesa6-amdgpu:i386 (1:20.1.6-1188099) ...
Setting up gst-omx-amdgpu (1.0.0.1-1188099) ...
Setting up comgr-amdgpu-pro:amd64 (1.7.0-1188099) ...
Setting up libdrm-radeon1:i386 (2.4.102-1ubuntu1~20.04.1) ...
Setting up hsa-runtime-rocr-amdgpu:amd64 (1.2.0-1188099) ...
Setting up ocl-icd-libopencl1-amdgpu-pro:amd64 (20.45-1188099) ...
Setting up libxext6:i386 (2:1.3.4-0ubuntu1) ...
Setting up clinfo-amdgpu-pro (20.45-1188099) ...
Setting up hip-rocr-amdgpu-pro (20.45-1188099) ...
Setting up libxxf86vm1:i386 (1:1.1.4-1build1) ...
Setting up libllvm11:i386 (1:11.0.0-2~ubuntu20.04.1) ...
Setting up libxfixes3:i386 (1:5.0.3-2) ...
Setting up libegl1-amdgpu-mesa-drivers:amd64 (1:20.1.6-1188099) ...
Setting up libvdpau1:i386 (1.3-1ubuntu2) ...
Setting up libegl1-amdgpu-mesa:i386 (1:20.1.6-1188099) ...
Setting up libgl1-amdgpu-mesa-glx:i386 (1:20.1.6-1188099) ...
Setting up opencl-rocr-amdgpu-pro:amd64 (20.45-1188099) ...
Setting up mesa-vdpau-drivers:i386 (20.2.6-0ubuntu0.20.04.1) ...
Setting up mesa-amdgpu-vdpau-drivers:i386 (1:20.1.6-1188099) ...
Setting up amdgpu-lib (20.45-1188099) ...
Setting up libegl1-amdgpu-mesa-drivers:i386 (1:20.1.6-1188099) ...
Setting up vdpau-driver-all:i386 (1.3-1ubuntu2) ...
Setting up amdgpu-lib32 (20.45-1188099) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.1) ...
Errors were encountered while processing:
 amdgpu-dkms
 amdgpu
 amdgpu-pro-rocr-opencl

I tried this on

5.4.0-54-generic

I see two different kernels referenced in this build 5.4.0-54 and 5.8.0-40.  There might remnants from a previous kernel install that have not been removed and should be.

If you are building for 5.4.0-54 amdgpu 20.30 or 20.40 might be the best choice.  If it’s amdgpu 20.45, kernel 5.4.0-58 and higher…

bridgman

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

Yep… the root problem here is that for some reason Canonical released a 5.8.0 kernel upgrade for 20.04.1 (which broke the driver install) rather than releasing it as part of 20.04.2 in Feb. We will be talking with them today to understand if that was an accident or a new plan.

The 20.45 driver should be OK with any of the 5.4.0-x kernels AFAIK. @mountkidd was there a reason you suggested 20.40 for 5.4.0-54 or earlier ? Wondering if we should be changing our advice.

mountkidd

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content


@bridgman wrote:

Yep… the root problem here is that for some reason Canonical released a 5.8.0 kernel upgrade for 20.04.1 (which broke the driver install) rather than releasing it as part of 20.04.2 in Feb. We will be talking with them today to understand if that was an accident or a new plan.

The 20.45 driver should be OK with any of the 5.4.0-x kernels AFAIK. @mountkidd was there a reason you suggested 20.40 for 5.4.0-54 or earlier ? Wondering if we should be changing our advice.


There have been a number of 20.45 installs that have failed with a variety of kernels. 

So back to basics.  5.4.0-54 and earlier do have the pci_platform_rom kernel symbol.  This can be checked with grep «pci_platform_rom» /boot/System.map-your-kernel-name.  If it is there, then install amdgpu 20.30 or 20.40.  If it is not there, then install amdgpu 20.45 as this version no longer uses the «pci_platform_rom» call and should be kernel independent.  I expect 20.45 should work with 5.8.0 kernels but the results have been mixed.

The same missing kernel call issue exists for 18.04.5 LTS.  Kernels 4.15.0-115/117 and amdgpu 20.30 (for 18.04 hwe) installed correctly.  As the kernel number migrated upward, the 20.30 driver install broke, while the kernel build got errors but still produced a bootable kernel.  Kernels 4.15.0-128/129/130/132 are all missing the «pci_platform_rom» call.  I suspect all was well up to about 4.15.0-122 before the poo started hitting the fan.  I did get my 18.04 LTS system functioning again by upgrading the kernel from 4.15.0-130 to kernel 5.4.0-52 and re-installing amdgpu-pro 20.30. 

Any progress on getting an amdgpu 20.45 version for 18.04 HWE?

baszczer

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content


@cyberbemon wrote:

Got the driver 20.45 followed the post that was marked as a solution, but I can’t get anything to work. I uninstalled everything and tried again, still no use. Same error.

This is so frustrating, I just wanna get my work done. Did anyone else manage to get this to work? any other linux distro I can use, where I don’t have to stay up till 5 am to get a driver working.

Hi, I did it that way:

«apt purge linux-generic-hwe-20.04» — removes linux-generic-hwe-20.04:amd64 (5.8.0.38.43~20.04.23)

«apt install linux-generic» — installs linux-modules-extra-5.4.0-62-generic:amd64 (5.4.0-62.70, automatic), linux-headers-generic:amd64 (5.4.0.62.65, automatic), linux-headers-5.4.0-62-generic:amd64 (5.4.0-62.70, automatic), linux-image-generic:amd64 (5.4.0.62.65, automatic), linux-modules-5.4.0-62-generic:amd64 (5.4.0-62.70, automatic), linux-headers-5.4.0-62:amd64 (5.4.0-62.70, automatic), linux-image-5.4.0-62-generic:amd64 (5.4.0-62.70, automatic), linux-generic:amd64 (5.4.0.62.65)

After that I’ve purged — linux-headers-5.8.0-38-generic:amd64 (5.8.0-38.43~20.04.1), linux-headers-generic-hwe-20.04:amd64 (5.8.0.38.43~20.04.23), linux-modules-extra-5.8.0-38-generic:amd64 (5.8.0-38.43~20.04.1), linux-modules-5.8.0-38-generic:amd64 (5.8.0-38.43~20.04.1), linux-image-generic-hwe-20.04:amd64 (5.8.0.38.43~20.04.23), linux-hwe-5.8-headers-5.8.0-38:amd64 (5.8.0-38.43~20.04.1), linux-image-5.8.0-38-generic:amd64 (5.8.0-38.43~20.04.1)

Then I’ve installed amdgpu-pro 20.45, Ubuntu works fine.

cyberbemon

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content


@baszczer wrote:


@cyberbemon wrote:

Got the driver 20.45 followed the post that was marked as a solution, but I can’t get anything to work. I uninstalled everything and tried again, still no use. Same error.

This is so frustrating, I just wanna get my work done. Did anyone else manage to get this to work? any other linux distro I can use, where I don’t have to stay up till 5 am to get a driver working.

After that I’ve purged — linux-headers-5.8.0-38-generic:amd64 (5.8.0-38.43~20.04.1), linux-headers-generic-hwe-20.04:amd64 (5.8.0.38.43~20.04.23), linux-modules-extra-5.8.0-38-generic:amd64 (5.8.0-38.43~20.04.1), linux-modules-5.8.0-38-generic:amd64 (5.8.0-38.43~20.04.1), linux-image-generic-hwe-20.04:amd64 (5.8.0.38.43~20.04.23), linux-hwe-5.8-headers-5.8.0-38:amd64 (5.8.0-38.43~20.04.1), linux-image-5.8.0-38-generic:amd64 (5.8.0-38.43~20.04.1)

Then I’ve installed amdgpu-pro 20.45, Ubuntu works fine.


Do you mind sharing the commands you run to do this? Just wanna make sure I don’t mess anything up.

baszczer

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content


@cyberbemon wrote:


@baszczer wrote:


@cyberbemon wrote:

Got the driver 20.45 followed the post that was marked as a solution, but I can’t get anything to work. I uninstalled everything and tried again, still no use. Same error.

This is so frustrating, I just wanna get my work done. Did anyone else manage to get this to work? any other linux distro I can use, where I don’t have to stay up till 5 am to get a driver working.

After that I’ve purged — linux-headers-5.8.0-38-generic:amd64 (5.8.0-38.43~20.04.1), linux-headers-generic-hwe-20.04:amd64 (5.8.0.38.43~20.04.23), linux-modules-extra-5.8.0-38-generic:amd64 (5.8.0-38.43~20.04.1), linux-modules-5.8.0-38-generic:amd64 (5.8.0-38.43~20.04.1), linux-image-generic-hwe-20.04:amd64 (5.8.0.38.43~20.04.23), linux-hwe-5.8-headers-5.8.0-38:amd64 (5.8.0-38.43~20.04.1), linux-image-5.8.0-38-generic:amd64 (5.8.0-38.43~20.04.1)

Then I’ve installed amdgpu-pro 20.45, Ubuntu works fine.


Do you mind sharing the commands you run to do this? Just wanna make sure I don’t mess anything up.


sudo apt purge «package name»

sudo apt remove «package name»

https://itsfoss.com/apt-command-guide/

hedleyroos

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

I have an RX 6800 and was able to install it with the 20.45 driver and a 5.4.0-42 kernel earlier in January by following the instructions on Radeon Software for Linux and uninstalling the 5.8 kernel before I started. On the evening of Thursday 22 Jan I was testing software to increase the power limit and I broke the system, leading to a reinstall on the Friday morning. It worked exactly as well as before.

On Saturday night 24 Jan I messed around with corectrl and broke it again (here’s a developing theme). This time around the drivers installed but they refused to show my GPU under clinfo. I reinstalled a few times, and even told Ubuntu to not upgrade packages during the install, but nothing worked. Something must have happened in those two days. By the way I also noticed my cleanly installed kernel version number is 5.8.0-40 as opposed to baszczer’s 5.8.0-38, but I didn’t run an update or upgrade even once, so I don’t know how that happened.

Eventually I got lucky and ran clinfo as root, and there was my GPU. I added my user to the video and render groups, restarted and suddenly OpenCL worked as expected.

Years ago I successfully built a cross compiler for an SGI O2 and I never thought I would ever have to struggle as much again, but the AMD driver proved me wrong. We really need a way to get more verbose logging.

ronluvsamd

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

Hi.. I want to switch to ubuntu full time and am new to all this so kindly please be patient with me.

I greatly appreciate all the help here.

sudo apt install linux-image-5.4.0-54-generic linux-headers-5.4.0-54-generic linux linux-modules-extra-5.4.0-54-generic
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package linux

So I tried the command and this is what I got. Was I supposed to download something before I used the command or  did I miss something here.

FYI System Info :

MSI 450 Pro VDH | AMD Ryzen 5 3400G with Vega Graphics | 8GB RAM | M.2 SSD

But I am using my Sony EX52 LED TV as my screen.

I hope that is not an issue. I got back to Ubuntu after almost 10 years and I am not as tech savy as I used to be.

Any suggestions would help greatly and will be much appreciated.

Thanks,

Rohan Reginald

baszczer

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content


@rick4665 wrote:

Hi baszczer, could you share how you installed the 5.4.0-52 kernel?  Any problems with the lower level kernel?


Hi,

yes, here you are:

sudo apt install linux-headers-5.4.0-52-generic
sudo apt install linux-image-5.4.0-52-generic 
sudo apt install linux-modules-extra-5.4.0-52-generic linux-tools-5.4.0-52-generic 

Works fine, I didn’t notice any problems.

c_zagarskas

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

I’m having similar issues with amdgpu-pro version…

your solution to downgrade the kernel seems like a good workaround… but If I am not physically near the box what are the risks? could I be stuck unable to remote into Ubuntu on Wayland?

currently I’m remotely accessing 1 Windows machine (on location) that has full local network access and then RDP via windows into each box.

as such, I’m concerned I could black screen the Ubuntu box and have to physically go there to repair it. is this a legit concern with a kernel downgrade as described here?


@baszczer wrote:

Temporary solution that worked for me is to remove 5.4.0-56 kernel and install drivers on 5.4.0-52.


baszczer

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content


@c_zagarskas wrote:

I’m having similar issues with amdgpu-pro version…

your solution to downgrade the kernel seems like a good workaround… but If I am not physically near the box what are the risks? could I be stuck unable to remote into Ubuntu on Wayland?

currently I’m remotely accessing 1 Windows machine (on location) that has full local network access and then RDP via windows into each box.

as such, I’m concerned I could black screen the Ubuntu box and have to physically go there to repair it. is this a legit concern with a kernel downgrade as described here?


@baszczer wrote:

Temporary solution that worked for me is to remove 5.4.0-56 kernel and install drivers on 5.4.0-52.



20.45 (Release Date:12/17/2020) works fine with latest (5.4.0-59-generic) kernel. Have had no issues with drivers installation.

tim-savage

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

Can also confirm that amdgpu-pro-20.45-1188099-ubuntu-20.04 release fixes the issue and will install on the latest (and previous) Ubuntu kernels.

The amdgpu-dkms module source has been patched with the change I linked in my previous reply.

c_zagarskas

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content


@tim-savage wrote:

Can also confirm that amdgpu-pro-20.45-1188099-ubuntu-20.04 release fixes the issue and will install on the latest (and previous) Ubuntu kernels.

The amdgpu-dkms module source has been patched with the change I linked in my previous reply.


uname -r
5.8.0-34-generic

download pack with amdgpu-pro-core_20.45-1188099_all.deb

ran:

./amdgpu-pro-install -y —opencl=rocr,legacy —headless

FIRST ERROR:

Building initial module for 5.8.0-34-generic
ERROR: Cannot create report: [Errno 17] File exists: ‘/var/crash/amdgpu-dkms.0.c
rash’
Error! Bad return status for module build on kernel: 5.8.0-34-generic (x86_64)
Consult /var/lib/dkms/amdgpu/5.6.20.906316-1188099/build/make.log for more infor
mation.
dpkg: error processing package amdgpu-dkms (—configure):
installed amdgpu-dkms package post-installation script subprocess returned erro
r exit status 10

END RESULT:

Errors were encountered while processing:
amdgpu-dkms
amdgpu-pro-rocr-opencl
E: Sub-process /usr/bin/dpkg returned an error code (1)

to confirm, problem persists on latest Ubuntu kernel

I think the rollback to the previous kernel and v 20.40 or earlier is worth a shot (will find out soon). I know my box had as far back as amdgpu-pro 20.17 (up to 20.40) installed without issue

baszczer

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

…here we go again:

Building for 5.8.0-34-generic
Building for architecture x86_64
Building initial module for 5.8.0-34-generic
ERROR: Cannot create report: [Errno 17] File exists: ‘/var/crash/amdgpu-dkms-firmware.0.crash’
Error! Bad return status for module build on kernel: 5.8.0-34-generic (x86_64)
Consult /var/lib/dkms/amdgpu/5.6.20.906316-1188099/build/make.log for more information.
dpkg: error processing package amdgpu-dkms (—configure):
installed amdgpu-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of amdgpu:
amdgpu depends on amdgpu-dkms (= 1:5.6.20.906316-1188099); however:
Package amdgpu-dkms is not configured yet.

dpkg: error processing package amdgpu (—configure):
dependency problems — leaving unconfigured
Setting up xserver-xorg-amdgpu-video-amdgpu (1:19.1.0-1188099) …
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up mesa-amdgpu-omx-drivers:amd64 (1:20.1.6-1188099) …
Setting up libegl1-amdgpu-mesa:amd64 (1:20.1.6-1188099) …
Setting up libegl1-amdgpu-mesa:i386 (1:20.1.6-1188099) …
Setting up libgl1-amdgpu-mesa-glx:amd64 (1:20.1.6-1188099) …
Setting up libgl1-amdgpu-mesa-glx:i386 (1:20.1.6-1188099) …
Setting up amdgpu-pro-core (20.45-1188099) …
Setting up libgles2-amdgpu-mesa:amd64 (1:20.1.6-1188099) …
Setting up libgles2-amdgpu-mesa:i386 (1:20.1.6-1188099) …
Setting up libgl1-amdgpu-mesa-dri:amd64 (1:20.1.6-1188099) …
Setting up libgl1-amdgpu-mesa-dri:i386 (1:20.1.6-1188099) …
dpkg: dependency problems prevent configuration of amdgpu-pro-rocr-opencl:
amdgpu-pro-rocr-opencl depends on amdgpu-dkms (= 1:5.6.20.906316-1188099); however:
Package amdgpu-dkms is not configured yet.

dpkg: error processing package amdgpu-pro-rocr-opencl (—configure):
dependency problems — leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up vulkan-amdgpu-pro:amd64 (20.45-1188099) …
Setting up libosmesa6-amdgpu:amd64 (1:20.1.6-1188099) …
Setting up libosmesa6-amdgpu:i386 (1:20.1.6-1188099) …
dpkg: dependency problems prevent configuration of amdgpu-pro:
amdgpu-pro depends on amdgpu (= 20.45-1188099); however:
Package amdgpu is not configured yet.

dpkg: error processing package amdgpu-pro (—configure):
dependency problems — leaving unconfigured
Setting up comgr-amdgpu-pro:amd64 (1.7.0-1188099) …
No apport report written because MaxReports is reached already
Setting up hsa-runtime-rocr-amdgpu:amd64 (1.2.0-1188099) …
Setting up ocl-icd-libopencl1-amdgpu-pro:amd64 (20.45-1188099) …
Setting up clinfo-amdgpu-pro (20.45-1188099) …
Setting up hip-rocr-amdgpu-pro (20.45-1188099) …
dpkg: dependency problems prevent configuration of amdgpu-pro-lib32:
amdgpu-pro-lib32 depends on amdgpu (= 20.45-1188099) | amdgpu-hwe (= 20.45-1188099); however:
Package amdgpu is not configured yet.
Package amdgpu-hwe is not installed.
amdgpu-pro-lib32 depends on amdgpu-pro (= 20.45-1188099) | amdgpu-pro-hwe (= 20.45-1188099); however:
Package amdgpu-pro is not configured yet.
Package amdgpu-pro-hwe is not installed.

dpkg: error processing package amdgpu-pro-lib32 (—configure):
dependency problems — leaving unconfigured
Setting up libglapi1-amdgpu-pro:amd64 (20.45-1188099) …
No apport report written because MaxReports is reached already
Setting up libglapi1-amdgpu-pro:i386 (20.45-1188099) …
Setting up libgl1-amdgpu-pro-dri:amd64 (20.45-1188099) …
Setting up libgl1-amdgpu-pro-dri:i386 (20.45-1188099) …
Setting up libgl1-amdgpu-pro-appprofiles (20.45-1188099) …
Setting up libegl1-amdgpu-pro:amd64 (20.45-1188099) …
Setting up libegl1-amdgpu-pro:i386 (20.45-1188099) …
Setting up libegl1-amdgpu-mesa-drivers:amd64 (1:20.1.6-1188099) …
Setting up libegl1-amdgpu-mesa-drivers:i386 (1:20.1.6-1188099) …
Setting up libgles2-amdgpu-pro:amd64 (20.45-1188099) …
Setting up libgles2-amdgpu-pro:i386 (20.45-1188099) …
Setting up libgl1-amdgpu-pro-glx:amd64 (20.45-1188099) …
Setting up libgl1-amdgpu-pro-glx:i386 (20.45-1188099) …
Setting up opencl-rocr-amdgpu-pro:amd64 (20.45-1188099) …
Setting up libgl1-amdgpu-pro-ext:amd64 (20.45-1188099) …
Setting up amdgpu-lib (20.45-1188099) …
Setting up amdgpu-lib32 (20.45-1188099) …
Processing triggers for libc-bin (2.31-0ubuntu9.1) …
Errors were encountered while processing:
amdgpu-dkms
amdgpu
amdgpu-pro-rocr-opencl
amdgpu-pro
amdgpu-pro-lib32
E: Sub-process /usr/bin/dpkg returned an error code (1)

adraffy

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

I have an Asus PN50 w/4500U running Ubuntu 20.04.1 LTS with 5.8.0 kernel. 

I am trying to get OpenCL operational using the proper drivers.  I have it working using pocl at the moment. 

AFAIK, the invocation I require is: «amdgpu-install —opencl=rocr —headless»

I have the same issue listed above w/r/t amdgpu-install failing on every public amd.com link I could find with linux drivers (including the latest 20.45).  My make.log clearly indicates the problems are simple failures like variable renames due to changes between 5.6 and 5.8 kernels.

I also tried the approach here without success: https://gist.github.com/tuxutku/79daa2edca131c1525a136b650cdbe0a#gistcomment-3583463

Tomash

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

I’ll join this topic because of facing similar issue, although with newer kernels: Ubuntu 20.04, after upgrading to mainline kernel 5.9.1 the Radeon for Linux 20.45 does not build/compile its dkms module, the error being:

kcl_drm.h error: implicit declaration of function ‘drm_gem_object_unreference_unlocked’; did you mean ‘drm_gem_object_put_unlocked’?

And indeed, this function has been renamed in the newer kernels, but it seems to have the same API:

https://github.com/Xilinx/XRT/pull/1530/files

Anyway the workarounds, from what I google, are:

— ./amdgpu-install —no-dkms (it installs cleanly then)

— do not use amdgpu on newer kernels because apparently the drivers are built into kernel since 5.7 AND amdgpu gets shipped with pretty outdated other libs (like Mesa etc.) which cause weird artifacts in some games (like Daggerfall Unity with DREAM mod high-res textures); this is not an option for people who need proprietary parts of amdgpu-pro

— wait for AMD team to update Radeon for Linux code to compile cleanly against newer kernels

KristijanZic

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

It’s even more broken now. I’ve installed the amdgpu-pro with pal OpenCL. I have vega64 GPU and threadripper 1900x CPU.

driver doesn’t even recognize my GPU.

When running clinfo I get this output:

$ clinfo
Number of platforms                               1
  Platform Name                                   AMD Accelerated Parallel Processing
  Platform Vendor                                 Advanced Micro Devices, Inc.
  Platform Version                                OpenCL 2.0 AMD-APP (3188.4)
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_icd cl_amd_event_callback 
  Platform Extensions function suffix             AMD

  Platform Name                                   AMD Accelerated Parallel Processing
Number of devices                                 0

NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  No platform
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   No platform
  clCreateContext(NULL, ...) [default]            No platform
  clCreateContext(NULL, ...) [other]              No platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  No devices found in platform

Here is my system info from the neofetch output:

OS: Ubuntu 20.04.1 LTS x86_64 
Kernel: 5.4.0-59-generic 
Uptime: 5 mins 
Packages: 2014 (dpkg), 81 (flatpak), 41 (snap) 
Shell: bash 5.0.17 
Resolution: 1920x1200, 2560x1440 
DE: GNOME 
WM: Mutter 
WM Theme: Adwaita 
Theme: Adwaita-dark [GTK2/3] 
Icons: Yaru [GTK2/3] 
Terminal: gnome-terminal 
CPU: AMD Ryzen Threadripper 1900X (16) @ 3.800GHz 
GPU: AMD ATI Radeon RX Vega 56/64 
Memory: 3015MiB / 15929MiB 

everton137

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

It was working until recently. My HDMI monitor stopped to work, so I tried to uninstall and install amdgpu-pro-20.20-1089974-ubuntu-20.04 and I get the following error: https://pastebin.com/ik8CNSa6

The relevant part seems to be:

Building initial module for 5.4.0-56-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/amdgpu-dkms.0.crash'
Error! Bad return status for module build on kernel: 5.4.0-56-generic (x86_64)
Consult /var/lib/dkms/amdgpu/5.6.0.13-1089974/build/make.log for more information.
dpkg: error processing package amdgpu-dkms (--configure):
 installed amdgpu-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of amdgpu:
 amdgpu depends on amdgpu-dkms (= 1:5.6.0.13-1089974); however:
  Package amdgpu-dkms is not configured yet.

dpkg: error processing package amdgpu (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 amdgpu-dkms
 amdgpu
E: Sub-process /usr/bin/dpkg returned an error code (1)

Here is the content of the file /var/lib/dkms/amdgpu/5.6.0.13-1089974/build/make.log  https://pastebin.com/JQ0QSz5C

I’ve also tried to purge and re-install the package amdgpu-dkms, which seems to be the source of the problem. It cannot not be installed.

everton137

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

I just tried to uninstall the previous version amdgpu-pro-20.20 and substitute by the latest one amdgpu-pro-20.45, but I got the same error reported on my previous comment. I am also running an Ubuntu 20.04.1 with the kernel (5.4.0-56-generic). ThinkPad Lenovo E14.

deepmindser

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

I have installed fresh ubuntu 20.04.1 and didnt do any updates. Then downloaded amdgpu-pro 20.45. Then tryed ./amdgpu-install -y. The same result…

It just worked right without any kind of problem serveral hour ago. And now it is just broken. Why? it’s so disappointing…

Do we have amd guys here who would try to install driver themself?

I do not even understand what is changed: ubuntu or amd driver packages?

bridgman

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content


Do we have amd guys here who would try to install driver themself?

I do not even understand what is changed: ubuntu or amd driver packages?


The problem is with the 5.4.0-56 Ubuntu kernel — normally update kernels do not change or remove kernel symbols but this one seems to be an exception. We will be discussing with Canonical to understand what happened.

Separately, we have a CI system that regularly downloads the latest supported Ubuntu release to catch issues like this, but it was temporarily sidelined with an unrelated error on our side. Very unfortunate coincidence, sorry about that.

We have updated the release notes to mention this issue and to recommend downgrading the kernel in the short term. We also have an updated version of 20.45 with a workaround going through testing, should hopefully be posted in a few days.

Just FYI there is another «gotcha» going on right now — Proton 5.13.2 and higher causes problems with any driver installed into the /opt folder, which impacts our Vulkan and OpenCL drivers. Valve has a beta build which includes a fix, but the most common workaround is to downgrade to Proton 5.10. Also added to release notes.

bridgman

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

Should work with 18.04.5 as well since it uses the same kernel & graphics userspace IIRC.

In general we do not remove support for older kernel/X versions, but testing focus shifts to the latest distro version.

I really need to move my home system off 16.04 to something newer, but I never seem to have time.

bernecky

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

I am now several days into trying to undo the kernel problems caused by attempting to install OPEN_CL on

an Ubuntu 20.10 system.  amdgpu-uninstall is inadequate. I keep running into this sort of thing:

Building initial module for 5.8.0-31-generic
ERROR (dkms apport): kernel package linux-headers-5.8.0-31-generic is not supported
Error! Bad return status for module build on kernel: 5.8.0-31-generic (x86_64)
Consult /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/make.log for more information.
dpkg: error processing package amdgpu-dkms (--configure):
 installed amdgpu-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of amdgpu:
 amdgpu depends on amdgpu-dkms (= 1:5.6.20.906300-1164792); however:
  Package amdgpu-dkms is not configured yet.

I have to boot an earlier recovery kernel, then «resume boot» from there. A normal boot does not manage to boot X.

Audio is dead; the system settings audio does not see the DisplayPort. Video through a DisplayPort link does work, though.
I do not know what kernel images or headers I can safely remove with apt. Suggestions welcome. It would be very nice to have a working system again…

Robert

bridgman

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

This probably needs a different thread since you are trying to install on 20.10, which is not supported by the packaged drivers.

Best bet would probably be:

— uninstall what you can

— check for an amdgpu blacklist in /etc/blacklist and remove if found

— use distro package manager to refresh the stock kernel and Mesa

— make sure video & audio are working at this point

— open up the 20.45 archive and install only the OpenCL packages

Were you trying to install the -pro or all-open version of the packaged drivers ? If you were trying to install the -pro version then you can skip the last step and just do a -pro install with the —no-dkms option.

Содержание

  1. Борьба с ошибкой Bad return status for module build on kernel
  2. Как устранить ошибку Bad return status for module build on kernel?
  3. AMDGPU-PRO DKMS module doesn’t install #1135
  4. Comments
  5. Linux Mint Forums
  6. [SOLVED] AMD GPU driver update installation issue
  7. [SOLVED] AMD GPU driver update installation issue
  8. Re: AMD GPU driver update installation issue
  9. Re: AMD GPU driver update installation issue
  10. Re: AMD GPU driver update installation issue

Борьба с ошибкой Bad return status for module build on kernel

При установке драйверов видеокарт в дистрибутивах с ядром LInux иногда возникает ошибка

Bad return status for module build on kernel: номер_ядра-generic (x86_64)

Затем обычно идет строчка, в которой указывается информация о логе, в котором содержится более подробная информация о проблемной инсталляции, например:

Лог содержит ошибки компиляции, например:

Обновление системы, повторная установка драйверов, в том числе принудительная, не помогает решить проблему, инсталляция завершается с теми же ошибками.

Подобные проблемы возникают как при установке драйверов Nvidia, так и AMD. Они часто связаны с наличием ошибок в коде драйверов, проявляющихся на конкретном ядре Linux.

Как устранить ошибку Bad return status for module build on kernel?

Обычно ошибки, связанные с установкой драйверов на какие-либо устройства решаются в обновленных версиях ядра. Поэтому желательно всегда сначала проводить обновление системы перед инсталляцией новых модулей.

Иногда для решения проблем нужно наоборот, произвести откат на более раннюю версию ядра (не устанавливать обновлений сразу после установки системы), поставить драйвера и только потом производить обновление системы. Такая ситуация часто возникает с видеокартами, для которых производители уже не выпускают обновленного кода в драйверах, стимулируя покупку новых моделей.

Для запуска видеокарт AMD Radeon R9 290/390 согласно статье «Как добиться от видеокарт Radeon R9 290/390 хешрейта 29-30 Mh/s на Ethash» на компьютерах с некоторыми ubuntu-дистрибутивами нужно ставить драйвер на вновь установленную систему (релиз 16.04), и только потом ее обновлять. Нужно отметить, что дистрибутив xubuntu 16.04 обычно ведет себя адекватно и драйвера на него ставятся как до, так и после обновления системы.

Проверить версию установленного ядра системы можно командой

На вновь установленной xubuntu 16.04.6 стоит ядро 4.10.0-45:

после установки последних обновлений версия ядра меняется на 4.15.0-132-generic или новее:

Для устранения ошибки нужно:

  • полностью удалить драйвер (модуль), который вызывал ошибку. Для драйверов AMD для этого выполняют команду (из папки с распакованным пакетом драйверов):
  • перезагрузить систему
  • при загрузке компьютера удерживать кнопку shift, выбрать Advanced options for Ubuntu:

  • выбрать предыдущую версию ядра (4.10.0-45), загрузиться:

  • установить нужный драйвер (модуль). Для драйверов AMD версии 17.40 установка производиться командой:
  • добавить пользователя в группу видео:
  • включить в Grub значение фрагментации, равное 9, а также отключить устаревшие radeon-драйвера:
  • обновить систему
  • перезагрузить компьютер (sudo reboot)

Если ошибка остается, нужно сначала устанавливать старую версию Ubuntu 16.04.1 LTS на старом ядре 4.4.0.35, устанавливать драйвера AMD, а потом производить обновление.

Источник

AMDGPU-PRO DKMS module doesn’t install #1135

Distribution (run cat /etc/os-release ):

Related Application and/or Package Version (run apt policy $PACKAGE NAME ):

9a1ea2e Candidate: 5.4.0-7634.38

9a1ea2e Version table: *** 5.4.0-7634.38

9a1ea2e 1001 1001 http://ppa.launchpad.net/system76/pop/ubuntu focal/main amd64 Packages 100 /var/lib/dpkg/status»>

9a1ea2e Candidate: 5.4.0.7634.38

9a1ea2e Version table: *** 5.4.0.7634.38

9a1ea2e 1001 1001 http://ppa.launchpad.net/system76/pop/ubuntu focal/main amd64 Packages 100 /var/lib/dpkg/status 5.4.0.40.43 500 500 http://us.archive.ubuntu.com/ubuntu focal-security/main amd64 Packages 500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages 5.4.0.26.32 500 500 http://us.archive.ubuntu.com/ubuntu focal/main amd64 Packages»>

Issue/Bug Description:
When trying to install amdgpu-pro drivers version 20.20 for Ubuntu 20.04 that are required to use DaVinci Resolve, as it needs recent OpenCL version, amdgpu-dkms installation fails with error:

Steps to reproduce (if you know):

It spends some time on amdgpu-dkms installation, and then fails with the following error output (previous dkms output is overwritten when the error happens, so I cannot copy it): https://gist.github.com/0x1eaf/3c2a18a6cd7ee80a181e37f1effb9686

I’ve managed to get the actual error output that gets overwritten, by running:

The linux-headers package version, mentioned in the error, matches the kernel version:

Looking at DKMS code it seems that the error is triggered whenever is_distro_package() returns False or raises an exception that package does not exist. To see if it raises an exception or simply returns False , I’ve ran:

So the culprit seems to be that is_distro_package(«linux-headers-5.4.0-7634-generic») returns False .

Expected behavior:

amdgpu-dkms for Ubuntu 20.04 should install successfully on Pop! OS 20.04.

Other Notes:

I care about this issue because there doesn’t seem to be a work-around:

I’ve tried installing open source amdgpu OpenCL drivers with:

But DaVinci Resolve crashes on launch with them.

I’ve tried to use —no-dkms option with ‘pro’ drivers, as recommended in: https://devtalk.blender.org/t/install-amd-proprietary-opencl-on-pop-os-and-some-ubuntu-derivates/13458
But it is no longer available in 20.20 driver version, and leads to an error:

Could you please take a look at the issue?

The text was updated successfully, but these errors were encountered:

I have the same issue.

Temporary workaround: Manually edit /etc/os-release (e.g. sudo gedit /etc/os-release ), change ID=pop to ID=ubuntu . This allows the DKMS module to build properly.

The «kernel package is not supported» message is coming up after the build has already failed— that is simply Apport saying it won’t offer to send an error report to Ubuntu because we’re not using the Ubuntu kernel, which is fine. The underlying issue is that the AMDGPU makefile is using the /etc/os-release ID to set some variables, which are being left blank since the makefile does not expect an ID of pop .

Attempting to build the dkms module manually shows the actual errors: pop-i1135-make1.txt

The makefile (which comes from amdgpu) already contained a section mapping an /etc/os-release ID of «linuxmint» to «ubuntu»:

We can add an additional section to also map «pop» to «ubuntu»:

While this does change the output, the build still fails: pop-i1135-make2.txt

This is the error message that makes it look like there’s a variable not getting set:

There’s an «a» in between the parenthesis, but the error message says nothing is there. It seems like the AMDGPU DKMS makefile needs to be adjusted somewhere (aside from the OS_NAME check) to treat pop the same way that it treats ubuntu (or to use ID_LIKE in addition to/instead of ID , since we set ID_LIKE=ubuntu debian .)

This is unrelated to the AMDGPU DKMS build issue, but for Resolve to open, I did need to use —opencl=legacy instead of —opencl=pal for the RX 580 I’m using to test with.

Thank you for such a detailed explanation, prompt response and the investigation itself! 🌸

Changing ID to ubuntu worked like a charm 🙂

And —opencl=pal has worked with Resolve for RX 5700… 🤷🏻‍♀️

same problem here with a RX 5500 XT. I’ll try your solution to install it.

Same problem here, but nothing worked. 😢
My config:

I edited the /etc/os-release and run the command: ./amdgpu-pro-install neither —opencl=pal or —opencl=legacy didn’t worked.

Same error here!

setup works with the —no-dkms option — but that doesn’t fix da Vinci’s resolve OpenCL issue =/

@zsenfuka That Ask Ubuntu answer appears to be about the NVIDIA driver. While the NVIDIA and AMDGPU-PRO drivers can have problems if both are installed at the same time, I don’t think it’s related to this issue.

As an update, Pop!_OS currently ships kernel 5.8.0 (so does Ubuntu 20.04.2 HWE.) The latest AMDGPU-PRO version, 20.45, lists Ubuntu 20.04.1 (which did not ship higher than kernel 5.4.0) as a requirement. I can confirm the workaround I posted back in July about editing /etc/os-release no longer works. Here is the log from attempting to install AMDGPU-PRO with that workaround today: make.log

We can’t really do anything about this except wait for AMD to update their proprietary driver to support newer kernel versions. I’m renaming this issue so it’s a little easier to find and collapsing some of the long output in earlier messages.

An update on this, AMDGPU-PRO 20.50 provides «preview support» for Ubuntu 20.04.2, and using the /etc/os-release ID workaround, it does install successfully on Pop!_OS with kernel 5.8. I get a segmentation fault when attempting to render in Blender, but that was a known issue with AMDGPU-PRO 20.45; DaVinci Resolve does open and import/play back video successfully.

However, on kernel 5.11, the DKMS module fails to install again. Pop!_OS/Ubuntu 21.04 (slated for release late next month) will include 5.11, and it is being backported to Pop 20.04 (ironically, for the in-tree RX 6000 support.) The entire make log is very short:

Blender and Resolve both seem to have the same functionality with the 5.11 kernel even after that particular DKMS module fails to install, though. Maybe the in-tree amdgpu driver is similar enough to the DKMS amdgpu module with these versions that the DKMS module isn’t needed. (apt is still unhappy about it, though.)

Источник

Linux Mint Forums

Welcome to the Linux Mint forums!

[SOLVED] AMD GPU driver update installation issue

[SOLVED] AMD GPU driver update installation issue

Post by Vermin » Wed Jun 15, 2022 2:27 pm

Re: AMD GPU driver update installation issue

Post by SMG » Wed Jun 15, 2022 3:51 pm

Welcome to the forum, Vermin.

AMD GPU drivers are in the kernel and load automatically. One typically gets a newer driver version (if needed for their newer GPU) by moving to a newer kernel series.

If one needs OpenCL or vulkan files then one can install those packages using files from the AMD website.

Drivers are not handled the same way in Linux-based distros as they are in other operating systems so that may be part of why I am not sure what you mean by trying to install updates. What exactly are you trying to install?

Please open the System Reports app and click the System Information tab on the left. Your computer’s information should come up in the right pane. Then click Copy and paste the results into a reply window here so we can see how Linux Mint views your hardware. That will give us a better idea of what your system might need.

Re: AMD GPU driver update installation issue

Post by Vermin » Wed Jun 15, 2022 4:36 pm

Hello! Thank you for the welcome! Linux has been an amazing experience so far! Between the OS, autonomy and the community, I don’t think I’m ever switching back!

As for what I was trying to install, I got a notification in my Update Manager which suggested that I needed to install two updates. Namely: linux-lib-dev and linux-headers-generic. The text pasted in the original post is the «Details» bit that I got. Along with this message:

«E: amdgpu-dkms: installed amdgpu-dkms package post-installation script subprocess returned error exit status 10
E: amdgpu: dependency problems — leaving unconfigured»

As for the system information, this is what it shows:

Re: AMD GPU driver update installation issue

Post by SMG » Wed Jun 15, 2022 5:54 pm

I’m going to start with a tip regarding troubleshooting your particular computer. You know your computer has an AMD GPU, and, because of my past work with others, I know your computer has an AMD GPU. However, notice that only the Intel GPU is showing as a device. There should also be a Device-2 for the AMD GPU.

Graphics:
Device-1: Intel UHD Graphics 620 vendor: Hewlett-Packard driver: i915 v: kernel
bus ID: 00:02.0 chip ID: 8086:5917
Display: x11 server: X.Org 1.20.13 driver: amdgpu,ati,modesetting unloaded: fbdev,vesa
resolution: 1920×1080

60Hz
OpenGL: renderer: Mesa DRI Intel UHD Graphics 620 (KBL GT2) v: 4.6 Mesa 21.2.6
compat-v: 3.0 direct render: Yes

But, the driver line is showing amdgpu and ati (from AMD) and modesetting (from Intel). I’m going to take a wild guess and say your computer has a Topaz XT AMD GPU. If you run the command:

It will show two lines and it is likely the one with the AMD GPU will be very long. There is a bug in an underlying program used by inxi that cuts off information in the long lines. Users on this forum actually helped the inxi developer discover that issue in this topic My AMD gpu is missing in action. (Found)(?Resolved?).

Newer versions of inxi (which you can install using directions in this topic How to Update the inxi command to the latest version) have a workaround in place so both of your computer’s GPUs would show in the output instead of just the one showing. I recommend you update to that version of inxi.

As for what I was trying to install, I got a notification in my Update Manager which suggested that I needed to install two updates. Namely: linux-lib-dev and linux-headers-generic. The text pasted in the original post is the «Details» bit that I got. Along with this message:

«E: amdgpu-dkms: installed amdgpu-dkms package post-installation script subprocess returned error exit status 10
E: amdgpu: dependency problems — leaving unconfigured»

It is odd to see the 5.6.0.15-1098277 kernel referenced in the messages because that is not a Linux Mint kernel. However, I do believe that kernel was the highest one which could be used on certain AMD graphics drivers one would download from the AMD website.

Your repo list indicates you may have installed the drivers from the website instead of using the drivers in the kernel. Because of the missing information in inxi, we can not yet see what drivers the AMD GPU is attempting to use.

What was the reason for using the drivers from the website? Did you need OpenCL or vulkan capabilities?

Part of the reason I am asking is because your computer had an 8th-gen Intel CPU, I would normally recommend you upgrade to a newer kernel version than 5.4. There were improvements for 8th-gen Intel CPUs added to kernels newer than 5.4. However, if you have a old amdgpu-pro driver installed that only works up through the 5.6 kernel (which the older ones did until the newer versions came out), then there will be more problems with dkms.

Do you have full-drive encryption? Encryption is often a reason the amount used shows as more than 100%.

Источник

I’m going to start with a tip regarding troubleshooting your particular computer. You know your computer has an AMD GPU, and, because of my past work with others, I know your computer has an AMD GPU. However, notice that only the Intel GPU is showing as a device. There should also be a Device-2 for the AMD GPU.

Graphics:
Device-1: Intel UHD Graphics 620 vendor: Hewlett-Packard driver: i915 v: kernel
bus ID: 00:02.0 chip ID: 8086:5917
Display: x11 server: X.Org 1.20.13 driver: amdgpu,ati,modesetting unloaded: fbdev,vesa
resolution: 1920×1080~60Hz
OpenGL: renderer: Mesa DRI Intel UHD Graphics 620 (KBL GT2) v: 4.6 Mesa 21.2.6
compat-v: 3.0 direct render: Yes

But, the driver line is showing amdgpu and ati (from AMD) and modesetting (from Intel). I’m going to take a wild guess and say your computer has a Topaz XT AMD GPU. If you run the command:

It will show two lines and it is likely the one with the AMD GPU will be very long. There is a bug in an underlying program used by inxi that cuts off information in the long lines. Users on this forum actually helped the inxi developer discover that issue in this topic My AMD gpu is missing in action. (Found)(?Resolved?).

Newer versions of inxi (which you can install using directions in this topic How to Update the inxi command to the latest version) have a workaround in place so both of your computer’s GPUs would show in the output instead of just the one showing. I recommend you update to that version of inxi.

Vermin wrote: ↑

Wed Jun 15, 2022 4:36 pm

As for what I was trying to install, I got a notification in my Update Manager which suggested that I needed to install two updates. Namely: linux-lib-dev and linux-headers-generic. The text pasted in the original post is the «Details» bit that I got. Along with this message:

«E: amdgpu-dkms: installed amdgpu-dkms package post-installation script subprocess returned error exit status 10
E: amdgpu: dependency problems — leaving unconfigured»

It is odd to see the 5.6.0.15-1098277 kernel referenced in the messages because that is not a Linux Mint kernel. However, I do believe that kernel was the highest one which could be used on certain AMD graphics drivers one would download from the AMD website.

Your repo list indicates you may have installed the drivers from the website instead of using the drivers in the kernel. Because of the missing information in inxi, we can not yet see what drivers the AMD GPU is attempting to use.

Code: Select all

Active apt repos in: /etc/apt/sources.list.d/amdgpu-pro-local.list 
           1: deb [ trusted=yes ] file: /var/opt/amdgpu-pro-local/ ./

What was the reason for using the drivers from the website? Did you need OpenCL or vulkan capabilities?

Part of the reason I am asking is because your computer had an 8th-gen Intel CPU, I would normally recommend you upgrade to a newer kernel version than 5.4. There were improvements for 8th-gen Intel CPUs added to kernels newer than 5.4. However, if you have a old amdgpu-pro driver installed that only works up through the 5.6 kernel (which the older ones did until the newer versions came out), then there will be more problems with dkms.

Do you have full-drive encryption? Encryption is often a reason the amount used shows as more than 100%.

Code: Select all

Drives:    Local Storage: total: 238.47 GiB used: 256.50 GiB (107.6%) 
           ID-1: /dev/nvme0n1 vendor: SK Hynix model: BC501 HFM256GDJTNG-8310A size: 238.47 GiB 
           speed: 15.8 Gb/s lanes: 2 serial: <filter> 
Partition: ID-1: / size: 233.24 GiB used: 128.25 GiB (55.0%) fs: ext4 dev: /dev/nvme0n1p2 

Image
A woman typing on a laptop with LM20.3 Cinnamon.

I recently bought the ASUS TUF Gaming FA506IH with Ryzen 5 4600H and dedicated NVIDIA gtx 1650Ti. I am not much of a gamer so I installed Ubuntu 20.04 and thought of not using Nvidia drivers (because of compatibility issue with newer kernels) until I needed it, and just go with the integrated Radeon graphics. However, I noticed that newer gen Radeon graphics are not supported in 5.4 kernel so I installed mainline 5.8 kernel and after installing the amdgpu drivers, it seems to work fine, but I am getting an error with dkms saying it is not supported in kernel 5.8. I also tried xanmod kernel 5.8, but still the same issue. This is the error message that I get when amdgpu tries to build its package on this kernel.

Setting up amdgpu-dkms (1:5.6.0.15-1098277) ...
Removing old amdgpu-5.6.0.15-1098277 DKMS files...

------------------------------
Deleting module version: 5.6.0.15-1098277
completely from the DKMS tree.
------------------------------
Done.
Loading new amdgpu-5.6.0.15-1098277 DKMS files...
Building for 5.8.16-xanmod1
Building for architecture x86_64
Building initial module for 5.8.16-xanmod1
ERROR (dkms apport): kernel package linux-headers-5.8.16-xanmod1 is not supported
Error! Bad return status for module build on kernel: 5.8.16-xanmod1 (x86_64)
Consult /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/make.log for more information.
dpkg: error processing package amdgpu-dkms (--configure):
 installed amdgpu-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of amdgpu:
 amdgpu depends on amdgpu-dkms (= 1:5.6.0.15-1098277); however:
  Package amdgpu-dkms is not configured yet.

dpkg: error processing package amdgpu (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.

Errors were encountered while processing:
 amdgpu-dkms
 amdgpu
E: Sub-process /usr/bin/dpkg returned an error code (1)

I get the same error when I try installing amdgpu on kernel 5.8.*-generic.

asked Oct 29, 2020 at 8:19

zean_7's user avatar

5

While searching more about this topic. I came to know that you don’t really need to install any proprietary drivers for the newer gen AMD Renoir graphics to work on any kernel >= 5.7, because the support already comes out-of-the-box.
So I just uninstalled amdgpu using amdgpu-uninstall and everything works fine now.


As suggested by @red_trumpet in the comments section, you can also install the driver without dkms with the command ./amdgpu-install --no-dkms. You can also specify an opencl installation using ./amdgpu-install --opencl=pal,legacy --no-dkms. I’ve tested this, and have been using this for two months now.

NOTE: This does not work with the pro version of the driver.

answered Nov 1, 2020 at 14:56

zean_7's user avatar

zean_7zean_7

2411 gold badge2 silver badges9 bronze badges

2

Distribution (run cat /etc/os-release):

> cat /etc/os-release 
NAME="Pop!_OS"
VERSION="20.04 LTS"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 20.04 LTS"
VERSION_ID="20.04"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
LOGO=distributor-logo-pop-os

Related Application and/or Package Version (run apt policy $PACKAGE NAME):

> apt policy linux-headers-5.4.0-7634-generic
linux-headers-5.4.0-7634-generic:
  Installed: 5.4.0-7634.38~1592497129~20.04~9a1ea2e
  Candidate: 5.4.0-7634.38~1592497129~20.04~9a1ea2e
  Version table:
 *** 5.4.0-7634.38~1592497129~20.04~9a1ea2e 1001
       1001 http://ppa.launchpad.net/system76/pop/ubuntu focal/main amd64 Packages
        100 /var/lib/dpkg/status
> apt policy linux-headers-generic
linux-headers-generic:
  Installed: 5.4.0.7634.38~1592497129~20.04~9a1ea2e
  Candidate: 5.4.0.7634.38~1592497129~20.04~9a1ea2e
  Version table:
 *** 5.4.0.7634.38~1592497129~20.04~9a1ea2e 1001
       1001 http://ppa.launchpad.net/system76/pop/ubuntu focal/main amd64 Packages
        100 /var/lib/dpkg/status
     5.4.0.40.43 500
        500 http://us.archive.ubuntu.com/ubuntu focal-security/main amd64 Packages
        500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
     5.4.0.26.32 500
        500 http://us.archive.ubuntu.com/ubuntu focal/main amd64 Packages

Issue/Bug Description:
When trying to install amdgpu-pro drivers version 20.20 for Ubuntu 20.04 that are required to use DaVinci Resolve, as it needs recent OpenCL version, amdgpu-dkms installation fails with error:

ERROR (dkms apport): kernel package linux-headers-5.4.0-7634-generic is not supported
Error! Bad return status for module build on kernel: 5.4.0-7634-generic (amd64)

Steps to reproduce (if you know):

~/D/amdgpu-pro-20.20-1089974-ubuntu-20.04> ./amdgpu-pro-install --opencl=pal

It spends some time on amdgpu-dkms installation, and then fails with the following error output (previous dkms output is overwritten when the error happens, so I cannot copy it): https://gist.github.com/0x1eaf/3c2a18a6cd7ee80a181e37f1effb9686

I’ve managed to get the actual error output that gets overwritten, by running:

~/D/amdgpu-pro-20.20-1089974-ubuntu-20.04> sudo dpkg -i amdgpu-dkms_5.6.0.13-1089974_all.deb
(Reading database ... 223600 files and directories currently installed.)
Preparing to unpack amdgpu-dkms_5.6.0.13-1089974_all.deb ...

------------------------------
Deleting module version: 5.6.0.13-1089974
completely from the DKMS tree.
------------------------------
Done.
Unpacking amdgpu-dkms (1:5.6.0.13-1089974) over (1:5.6.0.13-1089974) ...
Setting up amdgpu-dkms (1:5.6.0.13-1089974) ...
Loading new amdgpu-5.6.0.13-1089974 DKMS files...
Building for 5.4.0-7634-generic
Building for architecture amd64
Building initial module for 5.4.0-7634-generic
ERROR (dkms apport): kernel package linux-headers-5.4.0-7634-generic is not supported
Error! Bad return status for module build on kernel: 5.4.0-7634-generic (amd64)
Consult /var/lib/dkms/amdgpu/5.6.0.13-1089974/build/make.log for more information.
dpkg: error processing package amdgpu-dkms (--install):
 installed amdgpu-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
 amdgpu-dkms

The linux-headers package version, mentioned in the error, matches the kernel version:

> uname -r
5.4.0-7634-generic

Looking at DKMS code it seems that the error is triggered whenever is_distro_package() returns False or raises an exception that package does not exist. To see if it raises an exception or simply returns False, I’ve ran:

> python3
Python 3.8.2 (default, Apr 27 2020, 15:53:34) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import apport
>>> apport.packaging.is_distro_package("linux-headers-5.4.0-7634-generic")
False
>>> 

So the culprit seems to be that is_distro_package("linux-headers-5.4.0-7634-generic") returns False.

Expected behavior:

amdgpu-dkms for Ubuntu 20.04 should install successfully on Pop! OS 20.04.

Other Notes:

I care about this issue because there doesn’t seem to be a work-around:

I’ve tried installing open source amdgpu OpenCL drivers with:

~/D/amdgpu-pro-20.20-1089974-ubuntu-20.04> ./amdgpu-install --opencl=pal --no-dkms --headless

But DaVinci Resolve crashes on launch with them.

I’ve tried to use --no-dkms option with ‘pro’ drivers, as recommended in: https://devtalk.blender.org/t/install-amd-proprietary-opencl-on-pop-os-and-some-ubuntu-derivates/13458
But it is no longer available in 20.20 driver version, and leads to an error:

ERROR: using --no-dkms with a pro install is invalid.
Did you want to run the following instead?
amdgpu-install --no-dkms

Could you please take a look at the issue?

Борьба с ошибкой Bad return status for module build on kernel

При установке драйверов видеокарт в дистрибутивах с ядром LInux иногда возникает ошибка

Bad return status for module build on kernel: номер_ядра-generic (x86_64)

Затем обычно идет строчка, в которой указывается информация о логе, в котором содержится более подробная информация о проблемной инсталляции, например:

Лог содержит ошибки компиляции, например:

Обновление системы, повторная установка драйверов, в том числе принудительная, не помогает решить проблему, инсталляция завершается с теми же ошибками.

Подобные проблемы возникают как при установке драйверов Nvidia, так и AMD. Они часто связаны с наличием ошибок в коде драйверов, проявляющихся на конкретном ядре Linux.

Как устранить ошибку Bad return status for module build on kernel?

Обычно ошибки, связанные с установкой драйверов на какие-либо устройства решаются в обновленных версиях ядра. Поэтому желательно всегда сначала проводить обновление системы перед инсталляцией новых модулей.

Иногда для решения проблем нужно наоборот, произвести откат на более раннюю версию ядра (не устанавливать обновлений сразу после установки системы), поставить драйвера и только потом производить обновление системы. Такая ситуация часто возникает с видеокартами, для которых производители уже не выпускают обновленного кода в драйверах, стимулируя покупку новых моделей.

Для запуска видеокарт AMD Radeon R9 290/390 согласно статье «Как добиться от видеокарт Radeon R9 290/390 хешрейта 29-30 Mh/s на Ethash» на компьютерах с некоторыми ubuntu-дистрибутивами нужно ставить драйвер на вновь установленную систему (релиз 16.04), и только потом ее обновлять. Нужно отметить, что дистрибутив xubuntu 16.04 обычно ведет себя адекватно и драйвера на него ставятся как до, так и после обновления системы.

Проверить версию установленного ядра системы можно командой

На вновь установленной xubuntu 16.04.6 стоит ядро 4.10.0-45:

после установки последних обновлений версия ядра меняется на 4.15.0-132-generic или новее:

Для устранения ошибки нужно:

  • полностью удалить драйвер (модуль), который вызывал ошибку. Для драйверов AMD для этого выполняют команду (из папки с распакованным пакетом драйверов):
  • перезагрузить систему
  • при загрузке компьютера удерживать кнопку shift, выбрать Advanced options for Ubuntu:

  • выбрать предыдущую версию ядра (4.10.0-45), загрузиться:

  • установить нужный драйвер (модуль). Для драйверов AMD версии 17.40 установка производиться командой:
  • добавить пользователя в группу видео:
  • включить в Grub значение фрагментации, равное 9, а также отключить устаревшие radeon-драйвера:
  • обновить систему
  • перезагрузить компьютер (sudo reboot)

Если ошибка остается, нужно сначала устанавливать старую версию Ubuntu 16.04.1 LTS на старом ядре 4.4.0.35, устанавливать драйвера AMD, а потом производить обновление.

Источник

Drivers & Software

  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page

Summary:
both amdgpu and amdgpu-pro-20.45-1188099 fail to install on fresh Ubuntu 20.04.2.0 LTS system.
failure is on [amdgpu-dkms]

Expected behavior:
amdgpu-pro 20.45 should install on Ubuntu 20.04.2.0 LTS system without issue

    Screen recording of install attempts and errors:
    https://www.screencast.com/t/OU9WUUdFZL
    (to help prove I am a reasonably sane end user)

Pastebin for the make.log:
https://pastebin.com/1v34Q2kZ
/var/lib/dkms/amdgpu/5.6.20.906316-1188099/build/make.log

  • CPU: Ryzen 3950
  • MB: B550M Pro VDH Wifi
  • GPU: Vega 10 XL/XT [Radeon RX Vega 56]
  • PSU: Corsair 1000gold

TO RECREATE ISSUE:

  • Fresh install of Ubuntu 20 LTS from usb onto new SSD
    • log in, make sure system works
      • reboot
      • sudo apt update
      • reboot
    • log in, make sure system works — all good
  • Download and install
    • unpack: amdgpu-pro-20.45-1188099-ubuntu-20.04.tar.xz
      • $ ./amdgpu-install -y
      • fails [see errors below]
  • reboot
    • black screen — Ubuntu wont start
    • To fix have to sideload GRUB [alt+right] and uninstall via command line
      • amdgpu-pro-uninstall
      • reboot
    • system powers up and GPU works again
    • However, NO openCL drivers
  • None of the existing forum suggestions fix the problem
    • fresh wipe/install of Ubuntu does not fix issue
    • trying to use » —no-dkms» does not work as this command does not exist anymore
    • no solution: https://community.amd.com/t5/drivers-software/amdgpu-20-40-fails-on-fresh-install-of-ub.
      • downgrading kernel 5.8.0 —> 5.4.0 has been suggested
        but does not work (or I am not doing it correctly)
    • no solution: https://community.amd.com/t5/drivers-software/amdgpu-pro-20-45-install-fails-on-ubuntu-.
  • all of the following fail
    • $ ./amdgpu-install -y
    • $ ./amdgpu-pro-install -y
    • $ ./amdgpu-pro-install -y —opencl=pal,legacy —headless
  • Results are always the same for each failure [posted below]
  • To reproduce this issue simply try to install amdgpu-pro on any Ubuntu 20 LTS system
    • I suspect you will get the same results.

At this time I am unable to build and deliver systems to customers with working drivers and GPU’s in them. Thus far my only solution has been to clone an old drive I have which has previous version of Ubuntu 20LTS and the amdgpu-pro 17 driver. This of course is not ideal because then I have to tell people to never apt update the system.

I remain hopeful a solution will be released, please advise. However, I would humbly ask you attempt a fresh install to see for yourself what’s going on here.

sudo ./amdgpu-pro-install -y

[removed download lines and skipped to first failure]

Setting up amdgpu-dkms (1:5.6.20.906316-1188099) .
Loading new amdgpu-5.6.20.906316-1188099 DKMS files.
Building for 5.8.0-45-generic
Building for architecture x86_64
Building initial module for 5.8.0-45-generic
ERROR: Cannot create report: [Errno 17] File exists: ‘/var/crash/amdgpu-dkms.0.crash’
Error! Bad return status for module build on kernel: 5.8.0-45-generic (x86_64)
Consult /var/lib/dkms/amdgpu/5.6.20.906316-1188099/build/make.log for more information.
dpkg: error processing package amdgpu-dkms (—configure):
installed amdgpu-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of amdgpu:
amdgpu depends on amdgpu-dkms (= 1:5.6.20.906316-1188099); however:
Package amdgpu-dkms is not configured yet.

dpkg: error processing package amdgpu (—configure):
dependency problems — leaving unconfigured
Setting up xserver-xorg-amdgpu-video-amdgpu (1:19.1.0-1188099) .
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up mesa-amdgpu-omx-
drivers:amd64 (1:20.1.6-1188099) .
Setting up libegl1-amdgpu-mesa:amd64 (1:20.1.6-1188099) .
Setting up libegl1-amdgpu-mesa:i386 (1:20.1.6-1188099) .
Setting up libgl1-amdgpu-mesa-glx:amd64 (1:20.1.6-1188099) .
Setting up libgl1-amdgpu-mesa-glx:i386 (1:20.1.6-1188099) .
Setting up amdgpu-pro-core (20.45-1188099) .
Setting up libgles2-amdgpu-mesa:amd64 (1:20.1.6-1188099) .
Setting up libgles2-amdgpu-mesa:i386 (1:20.1.6-1188099) .
Setting up libgl1-amdgpu-mesa-dri:amd64 (1:20.1.6-1188099) .
Setting up libgl1-amdgpu-mesa-dri:i386 (1:20.1.6-1188099) .
Setting up vulkan-amdgpu-pro:amd64 (20.45-1188099) .
Setting up libosmesa6-amdgpu:amd64 (1:20.1.6-1188099) .
Setting up libosmesa6-amdgpu:i386 (1:20.1.6-1188099) .
dpkg: dependency problems prevent configuration of amdgpu-pro:
amdgpu-pro depends on amdgpu (= 20.45-1188099); however:
Package amdgpu is not configured yet.

dpkg: error processing package amdgpu-pro (—configure):
dependency problems — leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems p
revent configuration of amdgpu-pro-lib32:
amdgpu-pro-lib32 depends on amdgpu (= 20.45-1188099) | amdgpu-hwe (= 20.45-1188099); however:
Package amdgpu is not configured yet.
Package amdgpu-hwe is not installed.
amdgpu-pro-lib32 depends on amdgpu-pro (= 20.45-1188099) | amdgpu-pro-hwe (= 20.45-1188099); however:
Package amdgpu-pro is not configured yet.
Package amdgpu-pro-hwe is not installed.

dpkg: error processing package amdgpu-pro-lib32 (—configure):
dependency problems — leaving unconfigured
Setting up libglapi1-amdgpu-pro:amd64 (20.45-1188099) .
No apport report written because MaxReports is reached already
Setting up libglapi1-amdgpu-pro:i386 (20.45-1188099) .
Setting up libgl1-amdgpu-pro-dri:amd64 (20.45-1188099) .
Setting up libgl1-amdgpu-pro-dri:i386 (20.45-1188099) .
Setting up libgl1-amdgpu-pro-appprofiles (20.45-1188099) .
Setting up libegl1-amdgpu-pro:amd64 (20.45-1188099) .
Setting up libegl1-amdgpu-pro:i386 (20.45-1188099) .
Setting up libegl1-amdgpu-mesa-drivers:amd64 (1:20.1.6-1188099) .
Setting up libegl1-amdgpu-mesa-drivers:i386 (1:20.1.6-1188099) .
Setting up libgles2-amdgpu-pro:amd64 (20.45-1188099) .
Setting up libgles2-amdgpu-pro:i386 (20.45-1188099) .
Setting up libgl1-amdgpu-pro-glx:amd64 (20.45-1188099) .
Setting up libgl1-amdgpu-pro-glx:i386 (20.45-1188099) .
Setting up libgl1-amdgpu-pro-ext:amd64 (20.45-1188099) .
Setting up amdgpu-lib (20.45-1188099) .
Setting up amdgpu-lib32 (20.45-1188099) .
Processing triggers for libc-bin (2.31-0ubuntu9.2) .
Errors were encountered while processing:
amdgpu-dkms
amdgpu
amdgpu-pro
amdgpu-pro-lib32
E: Sub-process /usr/bin/dpkg returned an error code (1)

Источник

AMDGPU-PRO DKMS module doesn’t install #1135

Comments

0x1eaf commented Jul 8, 2020

Distribution (run cat /etc/os-release ):

Related Application and/or Package Version (run apt policy $PACKAGE NAME ):

9a1ea2e Candidate: 5.4.0-7634.38

9a1ea2e Version table: *** 5.4.0-7634.38

9a1ea2e 1001 1001 http://ppa.launchpad.net/system76/pop/ubuntu focal/main amd64 Packages 100 /var/lib/dpkg/status»>

9a1ea2e Candidate: 5.4.0.7634.38

9a1ea2e Version table: *** 5.4.0.7634.38

9a1ea2e 1001 1001 http://ppa.launchpad.net/system76/pop/ubuntu focal/main amd64 Packages 100 /var/lib/dpkg/status 5.4.0.40.43 500 500 http://us.archive.ubuntu.com/ubuntu focal-security/main amd64 Packages 500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages 5.4.0.26.32 500 500 http://us.archive.ubuntu.com/ubuntu focal/main amd64 Packages»>

Issue/Bug Description:
When trying to install amdgpu-pro drivers version 20.20 for Ubuntu 20.04 that are required to use DaVinci Resolve, as it needs recent OpenCL version, amdgpu-dkms installation fails with error:

Steps to reproduce (if you know):

It spends some time on amdgpu-dkms installation, and then fails with the following error output (previous dkms output is overwritten when the error happens, so I cannot copy it): https://gist.github.com/0x1eaf/3c2a18a6cd7ee80a181e37f1effb9686

I’ve managed to get the actual error output that gets overwritten, by running:

The linux-headers package version, mentioned in the error, matches the kernel version:

Looking at DKMS code it seems that the error is triggered whenever is_distro_package() returns False or raises an exception that package does not exist. To see if it raises an exception or simply returns False , I’ve ran:

So the culprit seems to be that is_distro_package(«linux-headers-5.4.0-7634-generic») returns False .

Expected behavior:

amdgpu-dkms for Ubuntu 20.04 should install successfully on Pop! OS 20.04.

Other Notes:

I care about this issue because there doesn’t seem to be a work-around:

I’ve tried installing open source amdgpu OpenCL drivers with:

But DaVinci Resolve crashes on launch with them.

I’ve tried to use —no-dkms option with ‘pro’ drivers, as recommended in: https://devtalk.blender.org/t/install-amd-proprietary-opencl-on-pop-os-and-some-ubuntu-derivates/13458
But it is no longer available in 20.20 driver version, and leads to an error:

Could you please take a look at the issue?

The text was updated successfully, but these errors were encountered:

ambronet commented Jul 9, 2020

I have the same issue.

jacobgkau commented Jul 10, 2020

Temporary workaround: Manually edit /etc/os-release (e.g. sudo gedit /etc/os-release ), change ID=pop to ID=ubuntu . This allows the DKMS module to build properly.

The «kernel package is not supported» message is coming up after the build has already failed— that is simply Apport saying it won’t offer to send an error report to Ubuntu because we’re not using the Ubuntu kernel, which is fine. The underlying issue is that the AMDGPU makefile is using the /etc/os-release ID to set some variables, which are being left blank since the makefile does not expect an ID of pop .

Attempting to build the dkms module manually shows the actual errors: pop-i1135-make1.txt

The makefile (which comes from amdgpu) already contained a section mapping an /etc/os-release ID of «linuxmint» to «ubuntu»:

We can add an additional section to also map «pop» to «ubuntu»:

While this does change the output, the build still fails: pop-i1135-make2.txt

This is the error message that makes it look like there’s a variable not getting set:

There’s an «a» in between the parenthesis, but the error message says nothing is there. It seems like the AMDGPU DKMS makefile needs to be adjusted somewhere (aside from the OS_NAME check) to treat pop the same way that it treats ubuntu (or to use ID_LIKE in addition to/instead of ID , since we set ID_LIKE=ubuntu debian .)

This is unrelated to the AMDGPU DKMS build issue, but for Resolve to open, I did need to use —opencl=legacy instead of —opencl=pal for the RX 580 I’m using to test with.

0x1eaf commented Jul 12, 2020

Thank you for such a detailed explanation, prompt response and the investigation itself! 🌸

Changing ID to ubuntu worked like a charm 🙂

And —opencl=pal has worked with Resolve for RX 5700… 🤷🏻‍♀️

Aisyk commented Jul 13, 2020

same problem here with a RX 5500 XT. I’ll try your solution to install it.

mhadaniya commented Jul 22, 2020

Same problem here, but nothing worked. 😢
My config:

I edited the /etc/os-release and run the command: ./amdgpu-pro-install neither —opencl=pal or —opencl=legacy didn’t worked.

sebastianwebber commented Jul 23, 2020 •

Same error here!

sebastianwebber commented Jul 23, 2020 •

setup works with the —no-dkms option — but that doesn’t fix da Vinci’s resolve OpenCL issue =/

tundachef commented Jan 1, 2021

jacobgkau commented Feb 24, 2021

@zsenfuka That Ask Ubuntu answer appears to be about the NVIDIA driver. While the NVIDIA and AMDGPU-PRO drivers can have problems if both are installed at the same time, I don’t think it’s related to this issue.

As an update, Pop!_OS currently ships kernel 5.8.0 (so does Ubuntu 20.04.2 HWE.) The latest AMDGPU-PRO version, 20.45, lists Ubuntu 20.04.1 (which did not ship higher than kernel 5.4.0) as a requirement. I can confirm the workaround I posted back in July about editing /etc/os-release no longer works. Here is the log from attempting to install AMDGPU-PRO with that workaround today: make.log

We can’t really do anything about this except wait for AMD to update their proprietary driver to support newer kernel versions. I’m renaming this issue so it’s a little easier to find and collapsing some of the long output in earlier messages.

jacobgkau commented Mar 24, 2021 •

An update on this, AMDGPU-PRO 20.50 provides «preview support» for Ubuntu 20.04.2, and using the /etc/os-release ID workaround, it does install successfully on Pop!_OS with kernel 5.8. I get a segmentation fault when attempting to render in Blender, but that was a known issue with AMDGPU-PRO 20.45; DaVinci Resolve does open and import/play back video successfully.

However, on kernel 5.11, the DKMS module fails to install again. Pop!_OS/Ubuntu 21.04 (slated for release late next month) will include 5.11, and it is being backported to Pop 20.04 (ironically, for the in-tree RX 6000 support.) The entire make log is very short:

Blender and Resolve both seem to have the same functionality with the 5.11 kernel even after that particular DKMS module fails to install, though. Maybe the in-tree amdgpu driver is similar enough to the DKMS amdgpu module with these versions that the DKMS module isn’t needed. (apt is still unhappy about it, though.)

Источник

##unable to upgrade install amd gpu drivers I tried manually doing it from the website but that failed too

here is the error code

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  fwupd fwupd-signed linux-generic linux-headers-5.11.0-7612-generic
  linux-headers-generic linux-image-5.11.0-7612-generic linux-image-generic
  linux-modules-extra-5.11.0-7612-generic linux-system76
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up amdgpu-dkms (1:5.6.0.15-1098277) ...
Removing old amdgpu-5.6.0.15-1098277 DKMS files...

------------------------------
Deleting module version: 5.6.0.15-1098277
completely from the DKMS tree.
------------------------------
Done.
Loading new amdgpu-5.6.0.15-1098277 DKMS files...
Building for 5.11.0-7612-generic
Building for architecture amd64
Building initial module for 5.11.0-7612-generic
ERROR (dkms apport): kernel package linux-headers-5.11.0-7612-generic is not supported
Error! Bad return status for module build on kernel: 5.11.0-7612-generic (amd64)
Consult /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/make.log for more information.
dpkg: error processing package amdgpu-dkms (--configure):
 installed amdgpu-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of amdgpu:
 amdgpu depends on amdgpu-dkms (= 1:5.6.0.15-1098277); however:
  Package amdgpu-dkms is not configured yet.

dpkg: error processing package amdgpu (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          Errors were encountered while processing:
 amdgpu-dkms
 amdgpu
E: Sub-process /usr/bin/dpkg returned an error code (1)

Vojtech Trefny's user avatar

asked Apr 25, 2021 at 4:14

Sai Charan 's user avatar

  1. undo the failed install: amdgpu-uninstall

  2. re-install without dkms: ./amdgpu-install --opencl=pal,legacy --no-dkms

akira's user avatar

akira

1,0626 silver badges13 bronze badges

answered Apr 27, 2021 at 17:16

user1657248's user avatar

Brief summary of the problem:

Hi guys

When I tried to install amdgpu on my Asus FA506II.315 with AMD Ryzen 7 4800H, with Radeon Graphics on Debian 10 Buster,
using the command:
dpkg -i amdgpu-dkms-firmware_5.6.20.906316-1188099_all.deb amdgpu-dkms_5.6.20.906316-1188099_all.deb amdgpu-core_20.45-1188099_all.deb

according with Debian support available here https://wiki.debian.org/AMDGPUDriverOnStretchAndBuster2

I got the following output error:

  • root@mobile:/home/luis/Downloads/amdgpu-pro-20.45-1188099-ubuntu-20.04# dpkg -i amdgpu-dkms-firmware_5.6.20.906316-1188099_all.deb amdgpu-dkms_5.6.20.906316-1188099_all.deb amdgpu-core_20.45-1188099_all.deb
  • (Reading database … 510643 files and directories currently installed.)
  • Preparing to unpack amdgpu-dkms-firmware_5.6.20.906316-1188099_all.deb …
  • Unpacking amdgpu-dkms-firmware (1:5.6.20.906316-1188099) over (1:5.6.20.906316-1188099) …
  • Preparing to unpack amdgpu-dkms_5.6.20.906316-1188099_all.deb …
  • Unpacking amdgpu-dkms (1:5.6.20.906316-1188099) …
  • Preparing to unpack amdgpu-core_20.45-1188099_all.deb …
  • Unpacking amdgpu-core (20.45-1188099) over (20.45-1188099) …
  • Setting up amdgpu-dkms-firmware (1:5.6.20.906316-1188099) …
  • Setting up amdgpu-dkms (1:5.6.20.906316-1188099) …
  • Loading new amdgpu-5.6.20.906316-1188099 DKMS files…
  • Building for 5.11.2
  • Building for architecture amd64
  • Building initial module for 5.11.2
  • Error! Bad return status for module build on kernel: 5.11.2 (amd64)
  • Consult /var/lib/dkms/amdgpu/5.6.20.906316-1188099/build/make.log for more information.
  • dpkg: error processing package amdgpu-dkms (—install):
  • installed amdgpu-dkms package post-installation script subprocess returned error exit status 10
  • Setting up amdgpu-core (20.45-1188099) …
  • Errors were encountered while processing:
  • amdgpu-dkms

I know the problem to use most recent hardware in Linux, but I need this machine to job purpose, I expect this could be help to others, who has the same machine made by Asus this is the specific model ASUS TUF Gaming A15

Hardware description:

  • CPU: AMD Ryzen 7 4800H with Radeon Graphics
  • GPU:
  • `01:00.0 VGA compatible controller [0300]: NVIDIA Corporation Device [10de:1f95] (rev a1)
  • 05:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Renoir [1002:1636] (rev c6)`
  • System Memory: 8 GB Type: DDR4 Type Detail: Synchronous Unbuffered (Unregistered) Speed: 3200 MT/s
  • Display(s): Laptop Display
  • Type of Diplay Connection: DP-USB-C, HDMI and Internal Panel of laptop

System information:

  • Distro name and Version: Debian GNU/Linux 10 (buster)

  • Custom kernel: Linux mobile 5.11.2 #1 SMP Sat Mar 13 08:25:13 CST 2021 x86_64 GNU/Linux downloaded from kernel.org because currently Debian 10 has kernel 4.19 which is not compatible with NVIDIA and AMDGPU drivers in recent versions

  • AMD package version: Radeon™ Software for Linux® 20.45 (Release Date: November 18, 2020)

How to reproduce the issue:

  • [1] Download AMDGPU drivers from Radeon™ Software for Linux® 20.45 (Release Date: November 18, 2020)
  • [2] Install with this command: dpkg -i amdgpu-dkms-firmware_5.6.20.906316-1188099_all.deb amdgpu-dkms_5.6.20.906316-1188099_all.deb amdgpu-core_20.45-1188099_all.deb
  • [3] At the end you can see the error:
  • [4] `Building initial module for 5.11.2
  • [ 5] Error! Bad return status for module build on kernel: 5.11.2 (amd64)
  • [6] Consult /var/lib/dkms/amdgpu/5.6.20.906316-1188099/build/make.log for more information.
  • [7] dpkg: error processing package amdgpu-dkms (—install):
  • [8] installed amdgpu-dkms package post-installation script subprocess returned error exit status 10
  • [9] Setting up amdgpu-core (20.45-1188099) …
  • [10] Errors were encountered while processing:
  • [12] amdgpu-dkms`

Attached files:

  • amdgpu-bug.zip with all my hardware specification according with steps to report bugs
    into it you can see whole logs of Consult /var/lib/dkms/amdgpu/5.6.20.906316-1188099/build/make.log and other related to hardware specifications

Thanks in advance for all your help

My apologies for my bad English

Понравилась статья? Поделить с друзьями:
  • Installed addons can cause problems or crashes anomaly как исправить
  • Installation success or error status 1603
  • Installation script error kaspersky
  • Installation path is too long forza horizon 5 как исправить
  • Installation on case sensitive volumes is not supported mac ошибка