cancel
Showing results for 
Search instead for 
Did you mean: 

Drivers & Software

baszczer
Adept III

Can't install amdgpu drivers on Ubuntu 20.04.1 (5.4.0-56-generic)

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 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) ...
Setting up libegl1-amdgpu-mesa:amd64 (1:20.1.6-1164792) ...
Setting up libegl1-amdgpu-mesa:i386 (1:20.1.6-1164792) ...
Setting up libgl1-amdgpu-mesa-glx:amd64 (1:20.1.6-1164792) ...
Setting up libgl1-amdgpu-mesa-glx:i386 (1:20.1.6-1164792) ...
Setting up amdgpu-pro-core (20.45-1164792) ...
Setting up libgles2-amdgpu-mesa:amd64 (1:20.1.6-1164792) ...
Setting up libgles2-amdgpu-mesa:i386 (1:20.1.6-1164792) ...
Setting up libgl1-amdgpu-mesa-dri:amd64 (1:20.1.6-1164792) ...
Setting up libgl1-amdgpu-mesa-dri:i386 (1:20.1.6-1164792) ...
dpkg: dependency problems prevent configuration of amdgpu-pro-rocr-opencl:
amdgpu-pro-rocr-opencl depends on amdgpu-dkms (= 1:5.6.20.906300-1164792); however:
Package amdgpu-dkms is not configured yet.

dpkg: error processing package amdgpu-pro-rocr-opencl (--configure):
dependency problems - leaving unconfigured
Setting up vulkan-amdgpu-pro:amd64 (20.45-1164792) ...
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up libosmesa6-amdgpu:amd64 (1:20.1.6-1164792) ...
Setting up libosmesa6-amdgpu:i386 (1:20.1.6-1164792) ...
dpkg: dependency problems prevent configuration of amdgpu-pro:
amdgpu-pro depends on amdgpu (= 20.45-1164792); 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-1164792) ...
No apport report written because MaxReports is reached already
Setting up hsa-runtime-rocr-amdgpu:amd64 (1.2.0-1164792) ...
Setting up ocl-icd-libopencl1-amdgpu-pro:amd64 (20.45-1164792) ...
Setting up clinfo-amdgpu-pro (20.45-1164792) ...
Setting up hip-rocr-amdgpu-pro (20.45-1164792) ...
dpkg: dependency problems prevent configuration of amdgpu-pro-lib32:
amdgpu-pro-lib32 depends on amdgpu (= 20.45-1164792) | amdgpu-hwe (= 20.45-1164792); however:
Package amdgpu is not configured yet.
Package amdgpu-hwe is not installed.
amdgpu-pro-lib32 depends on amdgpu-pro (= 20.45-1164792) | amdgpu-pro-hwe (= 20.45-1164792); 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-1164792) ...
No apport report written because MaxReports is reached already
Setting up libglapi1-amdgpu-pro:i386 (20.45-1164792) ...
Setting up libgl1-amdgpu-pro-dri:amd64 (20.45-1164792) ...
Setting up libgl1-amdgpu-pro-dri:i386 (20.45-1164792) ...
Setting up libgl1-amdgpu-pro-appprofiles (20.45-1164792) ...
Setting up libegl1-amdgpu-pro:amd64 (20.45-1164792) ...
Setting up libegl1-amdgpu-pro:i386 (20.45-1164792) ...
Setting up libegl1-amdgpu-mesa-drivers:amd64 (1:20.1.6-1164792) ...
Setting up libegl1-amdgpu-mesa-drivers:i386 (1:20.1.6-1164792) ...
Setting up libgles2-amdgpu-pro:amd64 (20.45-1164792) ...
Setting up libgles2-amdgpu-pro:i386 (20.45-1164792) ...
Setting up libgl1-amdgpu-pro-glx:amd64 (20.45-1164792) ...
Setting up libgl1-amdgpu-pro-glx:i386 (20.45-1164792) ...
Setting up opencl-rocr-amdgpu-pro:amd64 (20.45-1164792) ...
Setting up libgl1-amdgpu-pro-ext:amd64 (20.45-1164792) ...
Setting up amdgpu-lib (20.45-1164792) ...
Setting up amdgpu-lib32 (20.45-1164792) ...
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)

1 Solution

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

View solution in original post

200 Replies
rick4665
Adept I

I have the same problem.  Amdgpu-pro driver ver 40 was working great.  Tried to upgrade to ver 45 and get that same error.  Tried reinstalling ver 40 now I get the same error with that driver as well.

SurlyJest
Adept I

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]

 

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.

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

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

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

Thanks Deepmindser, 

Installing kernel 5.4.0-54 worked for me too.  I was able to install ver 20.45 of AMD driver.

0 Likes

Thank you! That did it:)

0 Likes

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.

0 Likes

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

 

0 Likes

@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...

0 Likes

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.

0 Likes

@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?

0 Likes

@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.

 

0 Likes

@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.

0 Likes

@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/

0 Likes

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.

0 Likes

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

 

0 Likes

Thank you so much for this post. I was able to finally get my miner running after trying for hours to get the OpenCL drivers installed. 

0 Likes

@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.

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.


 

0 Likes

@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.

0 Likes

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.


@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

0 Likes

...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)

0 Likes

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

0 Likes

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

0 Likes
ca-ja
Journeyman III

Does anyone have a clue when the AMD team will release a debugged version? At least tentative date...
Thanks for the estimate.

JC

0 Likes

Linux Kernel 5.8.X is from Ubuntu 20.10 (groovy) not sure if none LTS releases are supported.

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 

 

0 Likes

I have the same problem. It started right after an update.

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.

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.

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?


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.

nite
Journeyman III

Will this updated 20.45 driver also be available for 18.04.5 HWE, which is currently on 20.40? The same kernel issue exists here.

Glad that you are aware and this is being worked on though.

0 Likes

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.

0 Likes

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

 

0 Likes

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.

0 Likes