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 terminal output:
https://pastebin.com/HMicfcYp - Pastebin for the make.log:
https://pastebin.com/1v34Q2kZ
/var/lib/dkms/amdgpu/5.6.20.906316-1188099/build/make.log - Pastebin for DKMS crash:
https://pastebin.com/FqNK4Jg9
/var/crash/amdgpu-dkms.0.crash
FILES USED:
- Ubuntu 20.04.2.0 LTS (Focal Fossa)
- https://releases.ubuntu.com/focal/
- standard iso loaded onto usb:
https://ubuntu.com/tutorials/create-a-usb-stick-on-ubuntu#1-overview - Linux 5.8.0-45-generic
- Radeon™ Software for Linux® version 20.45 for Ubuntu 20.04.1
- https://www.amd.com/en/support/kb/release-notes/rn-amdgpu-unified-linux-20-45
- https://drivers.amd.com/drivers/linux/amdgpu-pro-20.45-1188099-ubuntu-20.04.tar.xz
HARDWARE
- 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
- log in, make sure system works
- Download and install
- unpack: amdgpu-pro-20.45-1188099-ubuntu-20.04.tar.xz
- $ ./amdgpu-install -y
- fails [see errors below]
- unpack: amdgpu-pro-20.45-1188099-ubuntu-20.04.tar.xz
- 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
Other Attempts:
- 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)
- downgrading kernel 5.8.0 —> 5.4.0 has been suggested
- 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.
========== ERROR OUTPUT ===========
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)
========== END ===========
1 / 1 / 0 Регистрация: 17.01.2020 Сообщений: 15 |
|
1 |
|
Не ставятся драйвера интегрированой видеокарты13.12.2020, 22:52. Показов 10488. Ответов 5
Пытаюсь уже не один час поставить драйвера для интегрированной графики процессора AMD Ryzen 5 4500U на убунту 20.04, но в конце установки пишет: При обработке следующих пакетов произошли ошибки:
__________________ 0 |
12380 / 7220 / 757 Регистрация: 09.09.2009 Сообщений: 28,177 |
|
14.12.2020, 00:57 |
2 |
в тырнетах пишут, вроде как ядро версии 5.8 уже поддерживает Ryzen и для 20.04 предлагают поставить пакет Код sudo apt install linux-generic-hwe-20.04 …а если не поможет, то тогда Код sudo apt install linux-generic-hwe-20.04-edge 0 |
2657 / 776 / 173 Регистрация: 14.01.2013 Сообщений: 3,573 |
|
14.12.2020, 04:11 |
3 |
При обработке следующих пакетов произошли ошибки: Лучше бы выхлоп консоли сюда запостили. 0 |
1 / 1 / 0 Регистрация: 17.01.2020 Сообщений: 15 |
|
14.12.2020, 14:06 [ТС] |
4 |
Не помогло, по прежнему выбрасывает ощибку при установке. Код Настраивается пакет amdgpu-dkms (1:5.6.0.15-1098277) … Loading new amdgpu-5.6.0.15-1098277 DKMS files... Building for 5.4.0-58-generic 5.8.0-33-generic Building for architecture x86_64 Building initial module for 5.4.0-58-generic ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/amdgpu-dkms-fi rmware.0.crash' Error! Bad return status for module build on kernel: 5.4.0-58-generic (x86_64) Consult /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/make.log for more informati on. dpkg: ошибка при обработке пакета amdgpu-dkms (--configure): installed amdgpu-dkms package post-installation script subprocess returned err or exit status 10 dpkg: зависимости пакетов не позволяют настроить пакет amdgpu: amdgpu зависит от amdgpu-dkms (= 1:5.6.0.15-1098277), однако: Пакет amdgpu-dkms пока не настроен. dpkg: ошибка при обработке пакета amdgpu (--configure): проблемы зависимостей — оставляем не настроенным Настраивается пакет xserver-xorg-amdgpu-video-amdgpu (1:19.1.0-1098277) … Отчёт apport не записан, так как сообщение об ошибке указывает на повторную оши бку от предыдущего отказа. Настраивается пакет mesa-amdgpu-omx-drivers:amd64 (1: 20.0.5-1098277) … Настраивается пакет libegl1-amdgpu-mesa:amd64 (1:20.0.5-1098277) … Настраивается пакет libegl1-amdgpu-mesa:i386 (1:20.0.5-1098277) … Настраивается пакет libgl1-amdgpu-mesa-glx:amd64 (1:20.0.5-1098277) … Настраивается пакет libgl1-amdgpu-mesa-glx:i386 (1:20.0.5-1098277) … Настраивается пакет libgles2-amdgpu-mesa:amd64 (1:20.0.5-1098277) … Настраивается пакет libgles2-amdgpu-mesa:i386 (1:20.0.5-1098277) … Настраивается пакет libgl1-amdgpu-mesa-dri:amd64 (1:20.0.5-1098277) … Настраивается пакет libgl1-amdgpu-mesa-dri:i386 (1:20.0.5-1098277) … Настраивается пакет libosmesa6-amdgpu:amd64 (1:20.0.5-1098277) … Настраивается пакет libosmesa6-amdgpu:i386 (1:20.0.5-1098277) … Настраивается пакет libegl1-amdgpu-mesa-drivers:amd64 (1:20.0.5-1098277) … Настраивается пакет libegl1-amdgpu-mesa-drivers:i386 (1:20.0.5-1098277) … Настраивается пакет amdgpu-lib (20.20-1098277) … Настраивается пакет amdgpu-lib32 (20.20-1098277) … Обрабатываются триггеры для libc-bin (2.31-0ubuntu9.1) … При обработке следующих пакетов произошли ошибки: amdgpu-dkms amdgpu E: Sub-process /usr/bin/dpkg returned an error code (1) Добавлено через 34 секунды 0 |
12380 / 7220 / 757 Регистрация: 09.09.2009 Сообщений: 28,177 |
|
14.12.2020, 14:45 |
5 |
0 |
Kubuntovod 2657 / 776 / 173 Регистрация: 14.01.2013 Сообщений: 3,573 |
||||
14.12.2020, 14:54 |
6 |
|||
ERROR: Cannot create report: [Errno 17] File exists: ‘/var/crash/amdgpu-dkms-fi
Consult /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/make.log for more information. Не пренебрегайте советами. Почитайте лог. Возможно, там будет более подробная инфа. 0 |
Всем доброго дня!
Очень вери нид хэлп ;(
Предыстория.
После установки Ubu 21.04 на моём HP ноуте HP 15=bw518ur при загрузке стала яркость 30%. Но менялась в верхнем баре и FN на нужную и держалась до перезагрузки. Перепробовал многие рецепты — толку 0. Но работало и ладно, менял каждый раз при загрузке.
Обновился до 21.10 (пробовал ставить новую чистую копию на другой диск с 0 — аналогично). При загрузке xorg сразу срывало изображение, либо загружалось нормально, но при выходе из хранителя экрана, сна или гибернации — срыв изображения. Работало нормально в Wayland. Но после очередного обновления ядра, стало срывать и в Wayland. Решил, что проблема в дровах и совместимости с видюхой:
*-display UNCLAIMED
Погуглил и напоролся на дрова от ATi Radeon™ Software for Linux® 21.30. Загрузил, установил. При установке получаю ошибку:
описание: VGA compatible controller
продукт: Stoney [Radeon R2/R3/R4/R5 Graphics]
производитель: Advanced Micro Devices, Inc. [AMD/ATI]
физический ID: 1
сведения о шине: pci@0000:00:01.0
версия: da
разрядность: 64 bits
частота: 33MHz
возможности: pm pciexpress msi vga_controller bus_master cap_list
конфигурация: latency=0
ресурсы: память:e0000000-efffffff память:f0800000-f0ffffff ioport:5000(размер=256) память:f0500000-f053ffff память:c0000-dffff
*-display UNCLAIMED
описание: Display controller
продукт: Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430 / Radeon 520 Mobile]
производитель: Advanced Micro Devices, Inc. [AMD/ATI]
физический ID: 0
сведения о шине: pci@0000:01:00.0
версия: 83
разрядность: 64 bits
частота: 33MHz
возможности: pm pciexpress msi cap_list
конфигурация: latency=0
ресурсы: память:d0000000-dfffffff память:f0400000-f043ffff ioport:4000(размер=256) память:f0440000-f045ffff
Настраивается пакет amdgpu-dkms (1:5.11.19.98-1290604) …
Removing old amdgpu-5.11.19.98-1290604 DKMS files...
------------------------------
Deleting module version: 5.11.19.98-1290604
completely from the DKMS tree.
------------------------------
Done.
Loading new amdgpu-5.11.19.98-1290604 DKMS files...
Building for 5.13.0-21-generic
Building for architecture x86_64
Building initial module for 5.13.0-21-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.13.0-21-generic (x86_64)
Consult /var/lib/dkms/amdgpu/5.11.19.98-1290604/build/make.log for more informat
ion.
dpkg: ошибка при обработке пакета amdgpu-dkms (--configure):
installed amdgpu-dkms package post-installation script subprocess returned erro
r exit status 10
dpkg: зависимости пакетов не позволяют настроить пакет amdgpu:
amdgpu зависит от amdgpu-dkms (= 1:5.11.19.98-1290604), однако:
Пакет amdgpu-dkms пока не настроен.
dpkg: ошибка при обработке пакета amdgpu (--configure):
проблемы зависимостей — оставляем не настроенным
Отчёт apport не записан, так как сообщение об ошибке указывает на повторную ошиб
ку от предыдущего отказа.
При обработке следующих пакетов произошли ошибки:
amdgpu-dkms
amdgpu
E: Sub-process /usr/bin/dpkg returned an error code (1)
При этом — система работает стабильно, изображение не срывает, но… не регулируется яркость. Совсем. Не реагирует вообще ни на что. Попытался снести эти драйвера и после перезагрузки не грузятся иксы. Пыпадаю в терминал, логинюсь, реконфигурю иксы и хрен. Восстанавливаю эти дрова и всё работает, акромя яркости.
Вопрос — можно ли пофиксить работу с этими дровами, либо как их снести к чёртовой матери и загрузить открытые дрова, что Ubuntu ставит. video-radeon не находится в репо.
Буду безумно признателен. Глаза вылазиют уже. А работать надо ;(
I had amdgpu-pro 17.40 installed and running fine but had some issues with a specific display (Dell U3014) not working over displayport. I opened a ticket with AMD and they suggested an update to amdgpu-pro 17.50.
Running the installer for amdgpu-pro 17.50 failed and has broken package manager such that I can not install or uninstall anything. I have reached out to AMD for help but have not gotten any response in 5 days…simply that they are still looking into it.
The results of install script and attempts to fix are:
./amdgpu-pro-install
[sudo] password for xxxx:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
amdgpu : Depends: amdgpu-core (= 17.50-511655) but it is not going to be installed
Depends: amdgpu-dkms (= 17.50-511655) but it is not going to be installed
Depends: libdrm2-amdgpu (= 1:2.4.82-511655) but it is not going to be installed
amdgpu-lib32 : Depends: libdrm2-amdgpu:i386 (= 1:2.4.82-511655)
glamor-amdgpu : Depends: amdgpu-core but it is not going to be installed
Depends: libdrm2-amdgpu but it is not going to be installed
gst-omx-amdgpu : Depends: amdgpu-core but it is not going to be installed
ids-amdgpu : Depends: amdgpu-core but it is not going to be installed
libdrm-amdgpu-amdgpu1:i386 : Depends: libdrm2-amdgpu:i386 (= 1:2.4.82-511655) but it is not going to be installed
libdrm-amdgpu-amdgpu1 : Depends: libdrm2-amdgpu (= 1:2.4.82-511655) but it is not going to be installed
libegl1-amdgpu-mesa:i386 : Depends: libdrm2-amdgpu:i386 but it is not going to be installed
Depends: amdgpu-core:i386
libegl1-amdgpu-mesa : Depends: libdrm2-amdgpu but it is not going to be installed
Depends: amdgpu-core but it is not going to be installed
libgbm1-amdgpu:i386 : Depends: libdrm2-amdgpu:i386 but it is not going to be installed
Depends: amdgpu-core:i386
libgbm1-amdgpu : Depends: libdrm2-amdgpu but it is not going to be installed
Depends: amdgpu-core but it is not going to be installed
libgl1-amdgpu-mesa-dri:i386 : Depends: libdrm2-amdgpu:i386 but it is not going to be installed
Depends: amdgpu-core:i386
libgl1-amdgpu-mesa-dri : Depends: libdrm2-amdgpu but it is not going to be installed
Depends: amdgpu-core but it is not going to be installed
libgl1-amdgpu-mesa-glx:i386 : Depends: libdrm2-amdgpu:i386 but it is not going to be installed
libgl1-amdgpu-mesa-glx : Depends: libdrm2-amdgpu but it is not going to be installed
libglapi-amdgpu-mesa:i386 : Depends: amdgpu-core:i386
libglapi-amdgpu-mesa : Depends: amdgpu-core but it is not going to be installed
libllvm5.0-amdgpu:i386 : Depends: amdgpu-core:i386
libllvm5.0-amdgpu : Depends: amdgpu-core but it is not going to be installed
libwayland-amdgpu-client0:i386 : Depends: amdgpu-core:i386
libwayland-amdgpu-client0 : Depends: amdgpu-core but it is not going to be installed
libwayland-amdgpu-server0:i386 : Depends: amdgpu-core:i386
libwayland-amdgpu-server0 : Depends: amdgpu-core but it is not going to be installed
libxatracker2-amdgpu:i386 : Depends: libdrm2-amdgpu:i386 but it is not going to be installed
libxatracker2-amdgpu : Depends: libdrm2-amdgpu but it is not going to be installed
mesa-amdgpu-omx-drivers : Depends: libdrm2-amdgpu but it is not going to be installed
mesa-amdgpu-vdpau-drivers:i386 : Depends: libdrm2-amdgpu:i386 but it is not going to be installed
Depends: amdgpu-core:i386
mesa-amdgpu-vdpau-drivers : Depends: libdrm2-amdgpu but it is not going to be installed
Depends: amdgpu-core but it is not going to be installed
xserver-xorg-amdgpu-video-amdgpu : Depends: amdgpu-core but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
And then, attempting to fix:
sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
cinnamon-desktop-data gyp javascript-common libcinnamon-desktop4 libjs-inherits libjs-jquery libjs-node-uuid libjs-underscore libssl-dev libssl-doc
libuv1 libuv1-dev linux-headers-4.10.0-28 linux-headers-4.10.0-28-generic linux-image-4.10.0-28-generic linux-image-extra-4.10.0-28-generic
node-abbrev node-ansi node-ansi-color-table node-archy node-async node-block-stream node-combined-stream node-cookie-jar node-delayed-stream
node-forever-agent node-form-data node-fstream node-fstream-ignore node-github-url-from-git node-glob node-graceful-fs node-gyp node-inherits
node-ini node-json-stringify-safe node-lockfile node-lru-cache node-mime node-minimatch node-mkdirp node-mute-stream node-node-uuid node-nopt
node-normalize-package-data node-npmlog node-once node-osenv node-qs node-read node-read-package-json node-request node-retry node-rimraf
node-semver node-sha node-sigmund node-slide node-tar node-tunnel-agent node-underscore node-which zlib1g-dev
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
amdgpu-dkms libdrm2-amdgpu:i386 libdrm2-amdgpu
The following NEW packages will be installed:
amdgpu-dkms libdrm2-amdgpu:i386 libdrm2-amdgpu
0 upgraded, 3 newly installed, 0 to remove and 56 not upgraded.
46 not fully installed or removed.
Need to get 0 B/5,638 kB of archives.
After this operation, 127 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 file:/var/opt/amdgpu-pro-local ./ amdgpu-dkms 17.50-511655 [5,578 kB]
Get:2 file:/var/opt/amdgpu-pro-local ./ libdrm2-amdgpu 1:2.4.82-511655 [29.5 kB]
Get:3 file:/var/opt/amdgpu-pro-local ./ libdrm2-amdgpu 1:2.4.82-511655 [30.5 kB]
(Reading database ... 334828 files and directories currently installed.)
Preparing to unpack .../amdgpu-dkms_17.50-511655_all.deb ...
Unpacking amdgpu-dkms (17.50-511655) ...
dpkg: error processing archive /var/opt/amdgpu-pro-local/./amdgpu-dkms_17.50-511655_all.deb (--unpack):
trying to overwrite '/etc/modprobe.d/blacklist-radeon.conf', which is also in package amdgpu-pro-dkms 17.40-492261
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../libdrm2-amdgpu_2.4.82-511655_amd64.deb ...
Unpacking libdrm2-amdgpu:amd64 (1:2.4.82-511655) ...
dpkg: error processing archive /var/opt/amdgpu-pro-local/./libdrm2-amdgpu_2.4.82-511655_amd64.deb (--unpack):
trying to overwrite '/lib/udev/rules.d/91-amdgpu-pro-modeset.rules', which is also in package libdrm2-amdgpu-pro:i386 1:2.4.82-492261
Preparing to unpack .../libdrm2-amdgpu_2.4.82-511655_i386.deb ...
Unpacking libdrm2-amdgpu:i386 (1:2.4.82-511655) ...
dpkg: error processing archive /var/opt/amdgpu-pro-local/./libdrm2-amdgpu_2.4.82-511655_i386.deb (--unpack):
trying to overwrite '/lib/udev/rules.d/91-amdgpu-pro-modeset.rules', which is also in package libdrm2-amdgpu-pro:i386 1:2.4.82-492261
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Errors were encountered while processing:
/var/opt/amdgpu-pro-local/./amdgpu-dkms_17.50-511655_all.deb
/var/opt/amdgpu-pro-local/./libdrm2-amdgpu_2.4.82-511655_amd64.deb
/var/opt/amdgpu-pro-local/./libdrm2-amdgpu_2.4.82-511655_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I would appreciate any ideas/guidance on how to fix this issue. At this point apt cant install or uninstall anything at all.
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?
uname -a
: Linux me 5.9.0-1-amd64 #1 SMP Debian 5.9.1-1 (2020-10-17) x86_64 GNU/Linux
When upgrading the amdgpu-dkms package it runs into an error in the kernel building phase. Both config.log
and make.log
complain of a missing autoconf.h
. make.log
suggests Run 'make oldconfig && make prepare' on kernel src to fix it.
That complains of a missing mkmakefile
. Could this be an issue with my linux headers installation or something else? How can I obtain or create the missing config files?
Output of sudo apt upgrade
:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 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.5.24-1109583) ...
Removing old amdgpu-5.6.5.24-1109583 DKMS files...
------------------------------
Deleting module version: 5.6.5.24-1109583
completely from the DKMS tree.
------------------------------
Done.
Loading new amdgpu-5.6.5.24-1109583 DKMS files...
Building for 5.9.0-1-amd64
Building for architecture amd64
Building initial module for 5.9.0-1-amd64
configure: error: in `/var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/dkms':
configure: error: C compiler cannot create executables
See `config.log' for more details
Error! Bad return status for module build on kernel: 5.9.0-1-amd64 (amd64)
Consult /var/lib/dkms/amdgpu/5.6.5.24-1109583/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.5.24-1109583); however:
Package amdgpu-dkms is not configured yet.
dpkg: error processing package amdgpu (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of amdgpu-pro:
amdgpu-pro depends on amdgpu (= 20.30-1109583); however:
Package amdgpu is not configured yet.
dpkg: error processing package amdgpu-pro (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of amdgpu-pro-lib32:
amdgpu-pro-lib32 depends on amdgpu (= 20.30-1109583) | amdgpu-hwe (= 20.30-1109583); however:
Package amdgpu is not configured yet.
Package amdgpu-hwe is not installed.
amdgpu-pro-lib32 depends on amdgpu-pro (= 20.30-1109583) | amdgpu-pro-hwe (= 20.30-1109583); 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
Errors were encountered while processing:
amdgpu-dkms
amdgpu
amdgpu-pro
amdgpu-pro-lib32
E: Sub-process /usr/bin/dpkg returned an error code (1)
Content of /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/dkms/config.log
:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by amdgpu-dkms configure 19.40, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure
## --------- ##
## Platform. ##
## --------- ##
hostname = windexDebiant
uname -m = x86_64
uname -r = 5.9.0-1-amd64
uname -s = Linux
uname -v = #1 SMP Debian 5.9.1-1 (2020-10-17)
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = x86_64
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /bin
PATH: /sbin
PATH: /usr/bin
PATH: /usr/sbin
PATH: /usr/lib/dkms
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1881: checking for a BSD-compatible install
configure:1949: result: /bin/install -c
configure:2008: checking for gcc
configure:2024: found /bin/gcc
configure:2035: result: gcc
configure:2264: checking for C compiler version
configure:2273: gcc --version >&5
gcc (Debian 10.2.0-15) 10.2.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:2284: $? = 0
configure:2273: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/10/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa:hsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 10.2.0-15' --with-bugurl=file:///usr/share/doc/gcc-10/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-10 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-10-mPxEea/gcc-10-10.2.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-10-mPxEea/gcc-10-10.2.0/debian/tmp-gcn/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.2.0 (Debian 10.2.0-15)
... rest of stderr output deleted ...
configure:2284: $? = 0
configure:2273: gcc -V >&5
gcc: error: unrecognized command-line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:2284: $? = 1
configure:2273: gcc -qversion >&5
gcc: error: unrecognized command-line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
configure:2284: $? = 1
configure:2304: checking whether the C compiler works
configure:2326: gcc -I/lib/modules/5.9.0-1-amd64/source/arch/x86/include -I/lib/modules/5.9.0-1-amd64/build/arch/x86/include/generated -I/lib/modules/5.9.0-1-amd64/source/include -I/lib/modules/5.9.0-1-amd64/build/include -I/lib/modules/5.9.0-1-amd64/source/include/uapi -include /lib/modules/5.9.0-1-amd64/source/include/linux/kconfig.h conftest.c >&5
In file included from <command-line>:32:
/lib/modules/5.9.0-1-amd64/source/include/linux/kconfig.h:7:10: fatal error: generated/autoconf.h: No such file or directory
7 | #include <generated/autoconf.h>
| ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
configure:2330: $? = 1
configure:2368: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "amdgpu-dkms"
| #define PACKAGE_TARNAME "amdgpu-dkms"
| #define PACKAGE_VERSION "19.40"
| #define PACKAGE_STRING "amdgpu-dkms 19.40"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2373: error: in `/var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/dkms':
configure:2375: error: C compiler cannot create executables
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value='-I/lib/modules/5.9.0-1-amd64/source/arch/x86/include -I/lib/modules/5.9.0-1-amd64/build/arch/x86/include/generated -I/lib/modules/5.9.0-1-amd64/source/include -I/lib/modules/5.9.0-1-amd64/build/include -I/lib/modules/5.9.0-1-amd64/source/include/uapi -include /lib/modules/5.9.0-1-amd64/source/include/linux/kconfig.h'
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_path_install='/bin/install -c'
ac_cv_prog_ac_ct_CC=gcc
## ----------------- ##
## Output variables. ##
## ----------------- ##
CC='gcc'
CFLAGS=''
CPP=''
CPPFLAGS='-I/lib/modules/5.9.0-1-amd64/source/arch/x86/include -I/lib/modules/5.9.0-1-amd64/build/arch/x86/include/generated -I/lib/modules/5.9.0-1-amd64/source/include -I/lib/modules/5.9.0-1-amd64/build/include -I/lib/modules/5.9.0-1-amd64/source/include/uapi -include /lib/modules/5.9.0-1-amd64/source/include/linux/kconfig.h'
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
KERNEL_MAKE=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LINUX=''
LINUX_OBJ=''
LINUX_SYMBOLS=''
LINUX_VERSION=''
LTLIBOBJS=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME='amdgpu-dkms'
PACKAGE_STRING='amdgpu-dkms 19.40'
PACKAGE_TARNAME='amdgpu-dkms'
PACKAGE_URL=''
PACKAGE_VERSION='19.40'
PATH_SEPARATOR=':'
SHELL='/bin/sh'
ac_ct_CC='gcc'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "amdgpu-dkms"
#define PACKAGE_TARNAME "amdgpu-dkms"
#define PACKAGE_VERSION "19.40"
#define PACKAGE_STRING "amdgpu-dkms 19.40"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
configure: exit 77
Content of /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/make.log
DKMS make.log for amdgpu-5.6.5.24-1109583 for kernel 5.9.0-1-amd64 (amd64)
Sat 24 Oct 2020 08:30:59 PM EDT
make: Entering directory '/usr/src/linux-headers-5.9.0-1-amd64'
ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.
make[1]: *** [/usr/src/linux-headers-5.9.0-1-common/Makefile:718: include/config/auto.conf] Error 1
make: *** [/usr/src/linux-headers-5.9.0-1-common/Makefile:185: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-5.9.0-1-amd64'
Output of sudo make oldconfig && make prepare
:
sh: /usr/src/linux-headers-5.9.0-1-common/scripts/mkmakefile: No such file or directory
make[1]: *** [/usr/src/linux-headers-5.9.0-1-common/Makefile:552: outputmakefile] Error 127
make: *** [/usr/src/linux-headers-5.9.0-1-common/Makefile:185: __sub-make] Error 2
uname -a
: Linux me 5.9.0-1-amd64 #1 SMP Debian 5.9.1-1 (2020-10-17) x86_64 GNU/Linux
When upgrading the amdgpu-dkms package it runs into an error in the kernel building phase. Both config.log
and make.log
complain of a missing autoconf.h
. make.log
suggests Run 'make oldconfig && make prepare' on kernel src to fix it.
That complains of a missing mkmakefile
. Could this be an issue with my linux headers installation or something else? How can I obtain or create the missing config files?
Output of sudo apt upgrade
:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 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.5.24-1109583) ...
Removing old amdgpu-5.6.5.24-1109583 DKMS files...
------------------------------
Deleting module version: 5.6.5.24-1109583
completely from the DKMS tree.
------------------------------
Done.
Loading new amdgpu-5.6.5.24-1109583 DKMS files...
Building for 5.9.0-1-amd64
Building for architecture amd64
Building initial module for 5.9.0-1-amd64
configure: error: in `/var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/dkms':
configure: error: C compiler cannot create executables
See `config.log' for more details
Error! Bad return status for module build on kernel: 5.9.0-1-amd64 (amd64)
Consult /var/lib/dkms/amdgpu/5.6.5.24-1109583/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.5.24-1109583); however:
Package amdgpu-dkms is not configured yet.
dpkg: error processing package amdgpu (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of amdgpu-pro:
amdgpu-pro depends on amdgpu (= 20.30-1109583); however:
Package amdgpu is not configured yet.
dpkg: error processing package amdgpu-pro (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of amdgpu-pro-lib32:
amdgpu-pro-lib32 depends on amdgpu (= 20.30-1109583) | amdgpu-hwe (= 20.30-1109583); however:
Package amdgpu is not configured yet.
Package amdgpu-hwe is not installed.
amdgpu-pro-lib32 depends on amdgpu-pro (= 20.30-1109583) | amdgpu-pro-hwe (= 20.30-1109583); 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
Errors were encountered while processing:
amdgpu-dkms
amdgpu
amdgpu-pro
amdgpu-pro-lib32
E: Sub-process /usr/bin/dpkg returned an error code (1)
Content of /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/dkms/config.log
:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by amdgpu-dkms configure 19.40, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure
## --------- ##
## Platform. ##
## --------- ##
hostname = windexDebiant
uname -m = x86_64
uname -r = 5.9.0-1-amd64
uname -s = Linux
uname -v = #1 SMP Debian 5.9.1-1 (2020-10-17)
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = x86_64
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /bin
PATH: /sbin
PATH: /usr/bin
PATH: /usr/sbin
PATH: /usr/lib/dkms
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1881: checking for a BSD-compatible install
configure:1949: result: /bin/install -c
configure:2008: checking for gcc
configure:2024: found /bin/gcc
configure:2035: result: gcc
configure:2264: checking for C compiler version
configure:2273: gcc --version >&5
gcc (Debian 10.2.0-15) 10.2.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:2284: $? = 0
configure:2273: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/10/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa:hsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 10.2.0-15' --with-bugurl=file:///usr/share/doc/gcc-10/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-10 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-10-mPxEea/gcc-10-10.2.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-10-mPxEea/gcc-10-10.2.0/debian/tmp-gcn/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.2.0 (Debian 10.2.0-15)
... rest of stderr output deleted ...
configure:2284: $? = 0
configure:2273: gcc -V >&5
gcc: error: unrecognized command-line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:2284: $? = 1
configure:2273: gcc -qversion >&5
gcc: error: unrecognized command-line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
configure:2284: $? = 1
configure:2304: checking whether the C compiler works
configure:2326: gcc -I/lib/modules/5.9.0-1-amd64/source/arch/x86/include -I/lib/modules/5.9.0-1-amd64/build/arch/x86/include/generated -I/lib/modules/5.9.0-1-amd64/source/include -I/lib/modules/5.9.0-1-amd64/build/include -I/lib/modules/5.9.0-1-amd64/source/include/uapi -include /lib/modules/5.9.0-1-amd64/source/include/linux/kconfig.h conftest.c >&5
In file included from <command-line>:32:
/lib/modules/5.9.0-1-amd64/source/include/linux/kconfig.h:7:10: fatal error: generated/autoconf.h: No such file or directory
7 | #include <generated/autoconf.h>
| ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
configure:2330: $? = 1
configure:2368: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "amdgpu-dkms"
| #define PACKAGE_TARNAME "amdgpu-dkms"
| #define PACKAGE_VERSION "19.40"
| #define PACKAGE_STRING "amdgpu-dkms 19.40"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2373: error: in `/var/lib/dkms/amdgpu/5.6.5.24-1109583/build/amd/dkms':
configure:2375: error: C compiler cannot create executables
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value='-I/lib/modules/5.9.0-1-amd64/source/arch/x86/include -I/lib/modules/5.9.0-1-amd64/build/arch/x86/include/generated -I/lib/modules/5.9.0-1-amd64/source/include -I/lib/modules/5.9.0-1-amd64/build/include -I/lib/modules/5.9.0-1-amd64/source/include/uapi -include /lib/modules/5.9.0-1-amd64/source/include/linux/kconfig.h'
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_path_install='/bin/install -c'
ac_cv_prog_ac_ct_CC=gcc
## ----------------- ##
## Output variables. ##
## ----------------- ##
CC='gcc'
CFLAGS=''
CPP=''
CPPFLAGS='-I/lib/modules/5.9.0-1-amd64/source/arch/x86/include -I/lib/modules/5.9.0-1-amd64/build/arch/x86/include/generated -I/lib/modules/5.9.0-1-amd64/source/include -I/lib/modules/5.9.0-1-amd64/build/include -I/lib/modules/5.9.0-1-amd64/source/include/uapi -include /lib/modules/5.9.0-1-amd64/source/include/linux/kconfig.h'
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
KERNEL_MAKE=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LINUX=''
LINUX_OBJ=''
LINUX_SYMBOLS=''
LINUX_VERSION=''
LTLIBOBJS=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME='amdgpu-dkms'
PACKAGE_STRING='amdgpu-dkms 19.40'
PACKAGE_TARNAME='amdgpu-dkms'
PACKAGE_URL=''
PACKAGE_VERSION='19.40'
PATH_SEPARATOR=':'
SHELL='/bin/sh'
ac_ct_CC='gcc'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "amdgpu-dkms"
#define PACKAGE_TARNAME "amdgpu-dkms"
#define PACKAGE_VERSION "19.40"
#define PACKAGE_STRING "amdgpu-dkms 19.40"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
configure: exit 77
Content of /var/lib/dkms/amdgpu/5.6.5.24-1109583/build/make.log
DKMS make.log for amdgpu-5.6.5.24-1109583 for kernel 5.9.0-1-amd64 (amd64)
Sat 24 Oct 2020 08:30:59 PM EDT
make: Entering directory '/usr/src/linux-headers-5.9.0-1-amd64'
ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.
make[1]: *** [/usr/src/linux-headers-5.9.0-1-common/Makefile:718: include/config/auto.conf] Error 1
make: *** [/usr/src/linux-headers-5.9.0-1-common/Makefile:185: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-5.9.0-1-amd64'
Output of sudo make oldconfig && make prepare
:
sh: /usr/src/linux-headers-5.9.0-1-common/scripts/mkmakefile: No such file or directory
make[1]: *** [/usr/src/linux-headers-5.9.0-1-common/Makefile:552: outputmakefile] Error 127
make: *** [/usr/src/linux-headers-5.9.0-1-common/Makefile:185: __sub-make] Error 2
Всем доброго дня!
Очень вери нид хэлп ;(
Предыстория.
После установки Ubu 21.04 на моём HP ноуте HP 15=bw518ur при загрузке стала яркость 30%. Но менялась в верхнем баре и FN на нужную и держалась до перезагрузки. Перепробовал многие рецепты — толку 0. Но работало и ладно, менял каждый раз при загрузке.
Обновился до 21.10 (пробовал ставить новую чистую копию на другой диск с 0 — аналогично). При загрузке xorg сразу срывало изображение, либо загружалось нормально, но при выходе из хранителя экрана, сна или гибернации — срыв изображения. Работало нормально в Wayland. Но после очередного обновления ядра, стало срывать и в Wayland. Решил, что проблема в дровах и совместимости с видюхой:
*-display UNCLAIMED
Погуглил и напоролся на дрова от ATi Radeon™ Software for Linux® 21.30. Загрузил, установил. При установке получаю ошибку:
описание: VGA compatible controller
продукт: Stoney [Radeon R2/R3/R4/R5 Graphics]
производитель: Advanced Micro Devices, Inc. [AMD/ATI]
физический ID: 1
сведения о шине: pci@0000:00:01.0
версия: da
разрядность: 64 bits
частота: 33MHz
возможности: pm pciexpress msi vga_controller bus_master cap_list
конфигурация: latency=0
ресурсы: память:e0000000-efffffff память:f0800000-f0ffffff ioport:5000(размер=256) память:f0500000-f053ffff память:c0000-dffff
*-display UNCLAIMED
описание: Display controller
продукт: Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430 / Radeon 520 Mobile]
производитель: Advanced Micro Devices, Inc. [AMD/ATI]
физический ID: 0
сведения о шине: pci@0000:01:00.0
версия: 83
разрядность: 64 bits
частота: 33MHz
возможности: pm pciexpress msi cap_list
конфигурация: latency=0
ресурсы: память:d0000000-dfffffff память:f0400000-f043ffff ioport:4000(размер=256) память:f0440000-f045ffff
Настраивается пакет amdgpu-dkms (1:5.11.19.98-1290604) …
Removing old amdgpu-5.11.19.98-1290604 DKMS files...
------------------------------
Deleting module version: 5.11.19.98-1290604
completely from the DKMS tree.
------------------------------
Done.
Loading new amdgpu-5.11.19.98-1290604 DKMS files...
Building for 5.13.0-21-generic
Building for architecture x86_64
Building initial module for 5.13.0-21-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.13.0-21-generic (x86_64)
Consult /var/lib/dkms/amdgpu/5.11.19.98-1290604/build/make.log for more informat
ion.
dpkg: ошибка при обработке пакета amdgpu-dkms (--configure):
installed amdgpu-dkms package post-installation script subprocess returned erro
r exit status 10
dpkg: зависимости пакетов не позволяют настроить пакет amdgpu:
amdgpu зависит от amdgpu-dkms (= 1:5.11.19.98-1290604), однако:
Пакет amdgpu-dkms пока не настроен.
dpkg: ошибка при обработке пакета amdgpu (--configure):
проблемы зависимостей — оставляем не настроенным
Отчёт apport не записан, так как сообщение об ошибке указывает на повторную ошиб
ку от предыдущего отказа.
При обработке следующих пакетов произошли ошибки:
amdgpu-dkms
amdgpu
E: Sub-process /usr/bin/dpkg returned an error code (1)
При этом — система работает стабильно, изображение не срывает, но… не регулируется яркость. Совсем. Не реагирует вообще ни на что. Попытался снести эти драйвера и после перезагрузки не грузятся иксы. Пыпадаю в терминал, логинюсь, реконфигурю иксы и хрен. Восстанавливаю эти дрова и всё работает, акромя яркости.
Вопрос — можно ли пофиксить работу с этими дровами, либо как их снести к чёртовой матери и загрузить открытые дрова, что Ubuntu ставит. video-radeon не находится в репо.
Буду безумно признателен. Глаза вылазиют уже. А работать надо ;(
1 / 1 / 0 Регистрация: 17.01.2020 Сообщений: 15 |
|
1 |
|
Не ставятся драйвера интегрированой видеокарты13.12.2020, 22:52. Показов 11288. Ответов 5
Пытаюсь уже не один час поставить драйвера для интегрированной графики процессора AMD Ryzen 5 4500U на убунту 20.04, но в конце установки пишет: При обработке следующих пакетов произошли ошибки:
0 |
12714 / 7283 / 772 Регистрация: 09.09.2009 Сообщений: 28,454 |
|
14.12.2020, 00:57 |
2 |
в тырнетах пишут, вроде как ядро версии 5.8 уже поддерживает Ryzen и для 20.04 предлагают поставить пакет Код sudo apt install linux-generic-hwe-20.04 …а если не поможет, то тогда Код sudo apt install linux-generic-hwe-20.04-edge
0 |
2927 / 818 / 184 Регистрация: 14.01.2013 Сообщений: 3,805 |
|
14.12.2020, 04:11 |
3 |
При обработке следующих пакетов произошли ошибки: Лучше бы выхлоп консоли сюда запостили.
0 |
1 / 1 / 0 Регистрация: 17.01.2020 Сообщений: 15 |
|
14.12.2020, 14:06 [ТС] |
4 |
Не помогло, по прежнему выбрасывает ощибку при установке. Код Настраивается пакет amdgpu-dkms (1:5.6.0.15-1098277) … Loading new amdgpu-5.6.0.15-1098277 DKMS files... Building for 5.4.0-58-generic 5.8.0-33-generic Building for architecture x86_64 Building initial module for 5.4.0-58-generic ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/amdgpu-dkms-fi rmware.0.crash' Error! Bad return status for module build on kernel: 5.4.0-58-generic (x86_64) Consult /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/make.log for more informati on. dpkg: ошибка при обработке пакета amdgpu-dkms (--configure): installed amdgpu-dkms package post-installation script subprocess returned err or exit status 10 dpkg: зависимости пакетов не позволяют настроить пакет amdgpu: amdgpu зависит от amdgpu-dkms (= 1:5.6.0.15-1098277), однако: Пакет amdgpu-dkms пока не настроен. dpkg: ошибка при обработке пакета amdgpu (--configure): проблемы зависимостей — оставляем не настроенным Настраивается пакет xserver-xorg-amdgpu-video-amdgpu (1:19.1.0-1098277) … Отчёт apport не записан, так как сообщение об ошибке указывает на повторную оши бку от предыдущего отказа. Настраивается пакет mesa-amdgpu-omx-drivers:amd64 (1: 20.0.5-1098277) … Настраивается пакет libegl1-amdgpu-mesa:amd64 (1:20.0.5-1098277) … Настраивается пакет libegl1-amdgpu-mesa:i386 (1:20.0.5-1098277) … Настраивается пакет libgl1-amdgpu-mesa-glx:amd64 (1:20.0.5-1098277) … Настраивается пакет libgl1-amdgpu-mesa-glx:i386 (1:20.0.5-1098277) … Настраивается пакет libgles2-amdgpu-mesa:amd64 (1:20.0.5-1098277) … Настраивается пакет libgles2-amdgpu-mesa:i386 (1:20.0.5-1098277) … Настраивается пакет libgl1-amdgpu-mesa-dri:amd64 (1:20.0.5-1098277) … Настраивается пакет libgl1-amdgpu-mesa-dri:i386 (1:20.0.5-1098277) … Настраивается пакет libosmesa6-amdgpu:amd64 (1:20.0.5-1098277) … Настраивается пакет libosmesa6-amdgpu:i386 (1:20.0.5-1098277) … Настраивается пакет libegl1-amdgpu-mesa-drivers:amd64 (1:20.0.5-1098277) … Настраивается пакет libegl1-amdgpu-mesa-drivers:i386 (1:20.0.5-1098277) … Настраивается пакет amdgpu-lib (20.20-1098277) … Настраивается пакет amdgpu-lib32 (20.20-1098277) … Обрабатываются триггеры для libc-bin (2.31-0ubuntu9.1) … При обработке следующих пакетов произошли ошибки: amdgpu-dkms amdgpu E: Sub-process /usr/bin/dpkg returned an error code (1) Добавлено через 34 секунды
0 |
12714 / 7283 / 772 Регистрация: 09.09.2009 Сообщений: 28,454 |
|
14.12.2020, 14:45 |
5 |
0 |
Kubuntovod 2927 / 818 / 184 Регистрация: 14.01.2013 Сообщений: 3,805 |
||||
14.12.2020, 14:54 |
6 |
|||
ERROR: Cannot create report: [Errno 17] File exists: ‘/var/crash/amdgpu-dkms-fi
Consult /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/make.log for more information. Не пренебрегайте советами. Почитайте лог. Возможно, там будет более подробная инфа.
0 |
0
1
Система Linux Mint. При запуске вылазит предупреждение, что не используется аппаратное ускорение, при этом cinnamon ест от 20% до 80% cpu.
Со страницы amd скачал архив для Ubuntu 20.04
Запускаю ./amdgpu-install
и в конце он выдаёт
Error! Bad return status for module build on kernel: 5.13.0-25-generic (amd64)
Consult /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/make.log for more information.
dpkg: ошибка при обработке пакета amdgpu-dkms (--configure):
installed amdgpu-dkms package post-installation script subprocess returned error exit status 10
dpkg: зависимости пакетов не позволяют настроить пакет amdgpu:
amdgpu зависит от amdgpu-dkms (= 1:5.6.0.15-1098277), однако:
Пакет amdgpu-dkms пока не настроен.
dpkg: ошибка при обработке пакета amdgpu (--configure):
проблемы зависимостей — оставляем не настроенным
При обработке следующих пакетов произошли ошибки:
amdgpu-dkms
amdgpu
Выхлоп make.log
pastebin
В конце написано:
make[1]: *** [scripts/Makefile.build:524: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/amd/amdkcl] Ошибка 2
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm/ttm_tt.o] Ошибка 1
make[1]: *** [scripts/Makefile.build:524: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build/ttm] Ошибка 2
make: *** [Makefile:1879: /var/lib/dkms/amdgpu/5.6.0.15-1098277/build] Ошибка 2
make: выход из каталога «/usr/src/linux-headers-5.13.0-25-generic»
Система: Linux Mint 20.3 (Una)
Ядро: 5.13.0-25-generic #26~20.04.1-Ubuntu SMP Fri Jan 7 16:27:40 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Ноутбук: HP 15s fq2030ur
На всякий lspci
0000:00:00.0 Host bridge: Intel Corporation Device 9a04 (rev 01)
0000:00:02.0 VGA compatible controller: Intel Corporation Device 9a78 (rev 01)
0000:00:04.0 Signal processing controller: Intel Corporation Device 9a03 (rev 01)
0000:00:08.0 System peripheral: Intel Corporation Device 9a11 (rev 01)
0000:00:0e.0 RAID bus controller: Intel Corporation Volume Management Device NVMe RAID Controller
0000:00:14.0 USB controller: Intel Corporation Device a0ed (rev 20)
0000:00:14.2 RAM memory: Intel Corporation Device a0ef (rev 20)
0000:00:15.0 Serial bus controller [0c80]: Intel Corporation Device a0e8 (rev 20)
0000:00:15.1 Serial bus controller [0c80]: Intel Corporation Device a0e9 (rev 20)
0000:00:16.0 Communication controller: Intel Corporation Device a0e0 (rev 20)
0000:00:1c.0 PCI bridge: Intel Corporation Device a0bf (rev 20)
0000:00:1d.0 System peripheral: Intel Corporation Device 09ab
0000:00:1f.0 ISA bridge: Intel Corporation Device a082 (rev 20)
0000:00:1f.3 Multimedia audio controller: Intel Corporation Device a0c8 (rev 20)
0000:00:1f.4 SMBus: Intel Corporation Device a0a3 (rev 20)
0000:00:1f.5 Serial bus controller [0c80]: Intel Corporation Device a0a4 (rev 20)
0000:01:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter
10000:e0:1d.0 PCI bridge: Intel Corporation Device a0b0 (rev 20)
10000:e1:00.0 Non-Volatile memory controller: SK hynix Device 1339
Ещё может будет полезно:
Graphics: Device-1: Intel vendor: Hewlett-Packard driver: i915 v: kernel bus ID: 0000:00:02.0
chip ID: 8086:9a78
Display: x11 server: X.Org 1.20.13 driver: modesetting unloaded: fbdev,vesa
resolution: 1920x1080~60Hz
OpenGL: renderer: llvmpipe (LLVM 10.0.0 256 bits) v: 3.3 Mesa 20.0.5 compat-v: 3.1
direct render: Yes
lshw -c video
*-display
описание: VGA compatible controller
продукт: Intel Corporation
производитель: Intel Corporation
физический ID: 2
сведения о шине: pci@0000:00:02.0
логическое имя: /dev/fb0
версия: 01
разрядность: 64 bits
частота: 33MHz
возможности: pciexpress msi pm vga_controller bus_master cap_list fb
конфигурация: depth=32 driver=i915 latency=0 mode=1920x1080 visual=truecolor xres=1920 yres=1080
ресурсы: iomemory:600-5ff iomemory:400-3ff IRQ:149 память:6002000000-6002ffffff память:4000000000-400fffffff ioport:4000(размер=64) память:c0000-dffff память:4010000000-4016ffffff память:4020000000-40ffffffff
UPD: видеокарта от intel, а я ставил от AMD.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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-openclI 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…
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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.