07-13-2021, 09:30 PM
Thanks for your suggestion!
I tried following the installation guide for ubuntu: https://rocmdocs.amd.com/en/latest/Insta...Guide.html
Everything worked, but the last command threw an error...
I tried following the installation guide for ubuntu: https://rocmdocs.amd.com/en/latest/Insta...Guide.html
Everything worked, but the last command threw an error...
Code:
purpole@ubuntu:~$ sudo apt install rocm-dkms && sudo reboot
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
amdgpu-core autoconf automake autotools-dev comgr gcc-7-base gcc-8-base hip-base hip-doc hip-rocclr hip-samples hsa-amd-aqlprofile hsa-rocr-dev hsakmt-roct hsakmt-roct-dev libasan4 libcilkrts5 libdrm-dev libelf-dev libfile-copy-recursive-perl libfile-which-perl
libgcc-7-dev libllvm11.0-amdgpu libmpx2 libncurses5 libstdc++-7-dev libtinfo5 libubsan0 liburi-encode-perl llvm-amdgpu llvm-amdgpu-11.0 llvm-amdgpu-11.0-dev llvm-amdgpu-11.0-runtime llvm-amdgpu-runtime m4 mesa-common-dev openmp-extras rock-dkms rock-dkms-firmware
rocm-clang-ocl rocm-cmake rocm-dbgapi rocm-debug-agent rocm-dev rocm-device-libs rocm-gdb rocm-opencl rocm-opencl-dev rocm-smi-lib rocm-utils rocminfo rocprofiler-dev roctracer-dev zlib1g-dev
Suggested packages:
autoconf-archive gnu-standards autoconf-doc libtool gettext libstdc++-7-doc m4-doc
The following NEW packages will be installed:
amdgpu-core autoconf automake autotools-dev comgr gcc-7-base gcc-8-base hip-base hip-doc hip-rocclr hip-samples hsa-amd-aqlprofile hsa-rocr-dev hsakmt-roct hsakmt-roct-dev libasan4 libcilkrts5 libdrm-dev libelf-dev libfile-copy-recursive-perl libfile-which-perl
libgcc-7-dev libllvm11.0-amdgpu libmpx2 libncurses5 libstdc++-7-dev libtinfo5 libubsan0 liburi-encode-perl llvm-amdgpu llvm-amdgpu-11.0 llvm-amdgpu-11.0-dev llvm-amdgpu-11.0-runtime llvm-amdgpu-runtime m4 mesa-common-dev openmp-extras rock-dkms rock-dkms-firmware
rocm-clang-ocl rocm-cmake rocm-dbgapi rocm-debug-agent rocm-dev rocm-device-libs rocm-dkms rocm-gdb rocm-opencl rocm-opencl-dev rocm-smi-lib rocm-utils rocminfo rocprofiler-dev roctracer-dev zlib1g-dev
0 upgraded, 55 newly installed, 0 to remove and 0 not upgraded.
Need to get 117 MB/170 MB of archives.
After this operation, 1.053 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-core 21.10-1247438 [2.216 B]
Get:2 file:/var/opt/amdgpu-pro-local ./ libllvm11.0-amdgpu 1:11.0-1247438 [16,5 MB]
Get:3 file:/var/opt/amdgpu-pro-local ./ llvm-amdgpu-11.0-runtime 1:11.0-1247438 [80,3 kB]
Get:4 file:/var/opt/amdgpu-pro-local ./ llvm-amdgpu-runtime 1:11.0-1247438 [4.212 B]
Get:5 http://de.archive.ubuntu.com/ubuntu hirsute/main amd64 m4 amd64 1.4.18-5 [200 kB]
Get:6 file:/var/opt/amdgpu-pro-local ./ llvm-amdgpu-11.0 1:11.0-1247438 [11,1 MB]
Get:7 file:/var/opt/amdgpu-pro-local ./ llvm-amdgpu 1:11.0-1247438 [5.028 B]
Get:8 file:/var/opt/amdgpu-pro-local ./ llvm-amdgpu-11.0-dev 1:11.0-1247438 [24,9 MB]
Get:9 http://de.archive.ubuntu.com/ubuntu hirsute/main amd64 autoconf all 2.69-14 [293 kB]
Get:10 http://de.archive.ubuntu.com/ubuntu hirsute/main amd64 autotools-dev all 20180224.1+nmu1 [39,4 kB]
Get:11 http://de.archive.ubuntu.com/ubuntu hirsute/main amd64 automake all 1:1.16.3-2ubuntu1 [552 kB]
Get:12 http://de.archive.ubuntu.com/ubuntu hirsute/universe amd64 gcc-7-base amd64 7.5.0-6ubuntu4 [18,5 kB]
Get:13 http://de.archive.ubuntu.com/ubuntu hirsute/universe amd64 gcc-8-base amd64 8.4.0-7ubuntu3 [18,9 kB]
Get:14 http://de.archive.ubuntu.com/ubuntu hirsute/universe amd64 liburi-encode-perl all 1.1.1-1 [9.464 B]
Get:15 http://de.archive.ubuntu.com/ubuntu hirsute/universe amd64 libfile-copy-recursive-perl all 0.45-1 [17,3 kB]
Get:16 http://de.archive.ubuntu.com/ubuntu hirsute/main amd64 libfile-which-perl all 1.23-1 [13,8 kB]
Get:17 http://de.archive.ubuntu.com/ubuntu hirsute/universe amd64 libasan4 amd64 7.5.0-6ubuntu4 [359 kB]
Get:18 http://de.archive.ubuntu.com/ubuntu hirsute/universe amd64 libcilkrts5 amd64 7.5.0-6ubuntu4 [42,6 kB]
Get:19 http://de.archive.ubuntu.com/ubuntu hirsute-updates/main amd64 libdrm-dev amd64 2.4.105-3~21.04.1 [131 kB]
Get:20 http://de.archive.ubuntu.com/ubuntu hirsute/main amd64 zlib1g-dev amd64 1:1.2.11.dfsg-2ubuntu6 [156 kB]
Get:21 http://de.archive.ubuntu.com/ubuntu hirsute/main amd64 libelf-dev amd64 0.183-8 [58,9 kB]
Get:22 http://de.archive.ubuntu.com/ubuntu hirsute/universe amd64 libubsan0 amd64 7.5.0-6ubuntu4 [126 kB]
Get:23 http://de.archive.ubuntu.com/ubuntu hirsute/universe amd64 libmpx2 amd64 8.4.0-7ubuntu3 [11,8 kB]
Get:24 http://de.archive.ubuntu.com/ubuntu hirsute/universe amd64 libgcc-7-dev amd64 7.5.0-6ubuntu4 [2.310 kB]
Get:25 https://repo.radeon.com/rocm/apt/debian ubuntu/main amd64 rock-dkms-firmware all 1:4.2-21 [7.429 kB]
Get:26 http://de.archive.ubuntu.com/ubuntu hirsute/universe amd64 libtinfo5 amd64 6.2+20201114-2build1 [82,8 kB]
Get:27 http://de.archive.ubuntu.com/ubuntu hirsute/universe amd64 libncurses5 amd64 6.2+20201114-2build1 [96,5 kB]
Get:28 http://de.archive.ubuntu.com/ubuntu hirsute/universe amd64 libstdc++-7-dev amd64 7.5.0-6ubuntu4 [1.470 kB]
Get:29 http://de.archive.ubuntu.com/ubuntu hirsute/main amd64 mesa-common-dev amd64 21.0.1-2 [1.299 kB]
Get:30 https://repo.radeon.com/rocm/apt/debian ubuntu/main amd64 rock-dkms all 1:4.2-21 [6.654 kB]
Get:31 https://repo.radeon.com/rocm/apt/debian ubuntu/main amd64 comgr amd64 2.0.0.40200-21 [41,2 MB]
Get:32 https://repo.radeon.com/rocm/apt/debian ubuntu/main amd64 hip-base amd64 4.2.21155.5900.40200-21 [215 kB]
Get:33 https://repo.radeon.com/rocm/apt/debian ubuntu/main amd64 hip-doc amd64 4.2.21155.5900.40200-21 [2.233 kB]
Get:34 https://repo.radeon.com/rocm/apt/debian ubuntu/main amd64 hsakmt-roct amd64 20210315.0.7.40200-21 [75,0 kB]
Get:35 https://repo.radeon.com/rocm/apt/debian ubuntu/main amd64 hsa-rocr-dev amd64 1.3.0.40200-21 [904 kB]
Get:36 https://repo.radeon.com/rocm/apt/debian ubuntu/main amd64 rocminfo amd64 1.0.0.40200-21 [26,4 kB]
Get:37 https://repo.radeon.com/rocm/apt/debian ubuntu/main amd64 hip-rocclr amd64 4.2.21155.5900.40200-21 [6.741 kB]
Get:38 https://repo.radeon.com/rocm/apt/debian ubuntu/main amd64 hip-samples amd64 4.2.21155.5900.40200-21 [70,5 kB]
Get:39 https://repo.radeon.com/rocm/apt/debian ubuntu/main amd64 hsa-amd-aqlprofile amd64 1.0.0.40200-21 [91,5 kB]
Get:40 https://repo.radeon.com/rocm/apt/debian ubuntu/main amd64 hsakmt-roct-dev amd64 20210315.0.7.40200-21 [28,3 kB]
Get:41 https://repo.radeon.com/rocm/apt/debian ubuntu/main amd64 rocm-device-libs amd64 1.0.0.40200-21 [775 kB]
Get:42 https://repo.radeon.com/rocm/apt/debian ubuntu/main amd64 openmp-extras amd64 12.42.0.40200-21 [7.830 kB]
Get:43 https://repo.radeon.com/rocm/apt/debian ubuntu/main amd64 rocm-opencl amd64 2.0.0.40200-21 [547 kB]
Get:44 https://repo.radeon.com/rocm/apt/debian ubuntu/main amd64 rocm-opencl-dev amd64 2.0.0.40200-21 [125 kB]
Get:45 https://repo.radeon.com/rocm/apt/debian ubuntu/main amd64 rocm-clang-ocl amd64 0.5.0.40200-21 [1.686 B]
Get:46 https://repo.radeon.com/rocm/apt/debian ubuntu/main amd64 rocm-cmake amd64 0.4.0.40200-21 [11,0 kB]
Get:47 https://repo.radeon.com/rocm/apt/debian ubuntu/main amd64 rocm-dbgapi amd64 0.46.0.40200-21 [1.541 kB]
Get:48 https://repo.radeon.com/rocm/apt/debian ubuntu/main amd64 rocm-debug-agent amd64 2.0.1.40200-21 [56,0 kB]
Get:49 https://repo.radeon.com/rocm/apt/debian ubuntu/main amd64 rocm-gdb amd64 10.1.40200-21 [31,6 MB]
Get:50 https://repo.radeon.com/rocm/apt/debian ubuntu/main amd64 rocm-smi-lib amd64 2.8.0.40200-21 [983 kB]
Get:51 https://repo.radeon.com/rocm/apt/debian ubuntu/main amd64 rocm-utils amd64 4.2.0.40200-21 [788 B]
Get:52 https://repo.radeon.com/rocm/apt/debian ubuntu/main amd64 rocprofiler-dev amd64 1.0.0.40200-21 [260 kB]
Get:53 https://repo.radeon.com/rocm/apt/debian ubuntu/main amd64 roctracer-dev amd64 1.0.0.40200-21 [427 kB]
Get:54 https://repo.radeon.com/rocm/apt/debian ubuntu/main amd64 rocm-dev amd64 4.2.0.40200-21 [2.568 B]
Get:55 https://repo.radeon.com/rocm/apt/debian ubuntu/main amd64 rocm-dkms amd64 4.2.0.40200-21 [784 B]
Fetched 117 MB in 15s (7.780 kB/s)
Extracting templates from packages: 100%
Selecting previously unselected package rock-dkms-firmware.
(Reading database ... 201608 files and directories currently installed.)
Preparing to unpack .../rock-dkms-firmware_1%3a4.2-21_all.deb ...
Unpacking rock-dkms-firmware (1:4.2-21) ...
Selecting previously unselected package m4.
Preparing to unpack .../archives/m4_1.4.18-5_amd64.deb ...
Unpacking m4 (1.4.18-5) ...
Selecting previously unselected package autoconf.
Preparing to unpack .../autoconf_2.69-14_all.deb ...
Unpacking autoconf (2.69-14) ...
Selecting previously unselected package autotools-dev.
Preparing to unpack .../autotools-dev_20180224.1+nmu1_all.deb ...
Unpacking autotools-dev (20180224.1+nmu1) ...
Selecting previously unselected package automake.
Preparing to unpack .../automake_1%3a1.16.3-2ubuntu1_all.deb ...
Unpacking automake (1:1.16.3-2ubuntu1) ...
Setting up rock-dkms-firmware (1:4.2-21) ...
Selecting previously unselected package rock-dkms.
(Reading database ... 202323 files and directories currently installed.)
Preparing to unpack .../00-rock-dkms_1%3a4.2-21_all.deb ...
Unpacking rock-dkms (1:4.2-21) ...
Selecting previously unselected package amdgpu-core.
Preparing to unpack .../01-amdgpu-core_21.10-1247438_all.deb ...
Unpacking amdgpu-core (21.10-1247438) ...
Selecting previously unselected package comgr.
Preparing to unpack .../02-comgr_2.0.0.40200-21_amd64.deb ...
Unpacking comgr (2.0.0.40200-21) ...
Selecting previously unselected package gcc-7-base:amd64.
Preparing to unpack .../03-gcc-7-base_7.5.0-6ubuntu4_amd64.deb ...
Unpacking gcc-7-base:amd64 (7.5.0-6ubuntu4) ...
Selecting previously unselected package gcc-8-base:amd64.
Preparing to unpack .../04-gcc-8-base_8.4.0-7ubuntu3_amd64.deb ...
Unpacking gcc-8-base:amd64 (8.4.0-7ubuntu3) ...
Selecting previously unselected package liburi-encode-perl.
Preparing to unpack .../05-liburi-encode-perl_1.1.1-1_all.deb ...
Unpacking liburi-encode-perl (1.1.1-1) ...
Selecting previously unselected package libfile-copy-recursive-perl.
Preparing to unpack .../06-libfile-copy-recursive-perl_0.45-1_all.deb ...
Unpacking libfile-copy-recursive-perl (0.45-1) ...
Selecting previously unselected package libfile-which-perl.
Preparing to unpack .../07-libfile-which-perl_1.23-1_all.deb ...
Unpacking libfile-which-perl (1.23-1) ...
Selecting previously unselected package hip-base.
Preparing to unpack .../08-hip-base_4.2.21155.5900.40200-21_amd64.deb ...
Unpacking hip-base (4.2.21155.5900.40200-21) ...
Selecting previously unselected package hip-doc.
Preparing to unpack .../09-hip-doc_4.2.21155.5900.40200-21_amd64.deb ...
Unpacking hip-doc (4.2.21155.5900.40200-21) ...
Selecting previously unselected package hsakmt-roct.
Preparing to unpack .../10-hsakmt-roct_20210315.0.7.40200-21_amd64.deb ...
Unpacking hsakmt-roct (20210315.0.7.40200-21) ...
Selecting previously unselected package hsa-rocr-dev.
Preparing to unpack .../11-hsa-rocr-dev_1.3.0.40200-21_amd64.deb ...
Unpacking hsa-rocr-dev (1.3.0.40200-21) ...
Selecting previously unselected package rocminfo.
Preparing to unpack .../12-rocminfo_1.0.0.40200-21_amd64.deb ...
Unpacking rocminfo (1.0.0.40200-21) ...
Selecting previously unselected package libllvm11.0-amdgpu:amd64.
Preparing to unpack .../13-libllvm11.0-amdgpu_11.0-1247438_amd64.deb ...
Unpacking libllvm11.0-amdgpu:amd64 (1:11.0-1247438) ...
Selecting previously unselected package llvm-amdgpu-11.0-runtime.
Preparing to unpack .../14-llvm-amdgpu-11.0-runtime_11.0-1247438_amd64.deb ...
Unpacking llvm-amdgpu-11.0-runtime (1:11.0-1247438) ...
Selecting previously unselected package llvm-amdgpu-runtime.
Preparing to unpack .../15-llvm-amdgpu-runtime_11.0-1247438_amd64.deb ...
Unpacking llvm-amdgpu-runtime (1:11.0-1247438) ...
Selecting previously unselected package llvm-amdgpu-11.0.
Preparing to unpack .../16-llvm-amdgpu-11.0_11.0-1247438_amd64.deb ...
Unpacking llvm-amdgpu-11.0 (1:11.0-1247438) ...
Selecting previously unselected package llvm-amdgpu.
Preparing to unpack .../17-llvm-amdgpu_11.0-1247438_amd64.deb ...
Unpacking llvm-amdgpu (1:11.0-1247438) ...
Selecting previously unselected package hip-rocclr.
Preparing to unpack .../18-hip-rocclr_4.2.21155.5900.40200-21_amd64.deb ...
Unpacking hip-rocclr (4.2.21155.5900.40200-21) ...
Selecting previously unselected package hip-samples.
Preparing to unpack .../19-hip-samples_4.2.21155.5900.40200-21_amd64.deb ...
Unpacking hip-samples (4.2.21155.5900.40200-21) ...
Selecting previously unselected package hsa-amd-aqlprofile.
Preparing to unpack .../20-hsa-amd-aqlprofile_1.0.0.40200-21_amd64.deb ...
Unpacking hsa-amd-aqlprofile (1.0.0.40200-21) ...
Selecting previously unselected package hsakmt-roct-dev.
Preparing to unpack .../21-hsakmt-roct-dev_20210315.0.7.40200-21_amd64.deb ...
Unpacking hsakmt-roct-dev (20210315.0.7.40200-21) ...
Selecting previously unselected package libasan4:amd64.
Preparing to unpack .../22-libasan4_7.5.0-6ubuntu4_amd64.deb ...
Unpacking libasan4:amd64 (7.5.0-6ubuntu4) ...
Selecting previously unselected package libcilkrts5:amd64.
Preparing to unpack .../23-libcilkrts5_7.5.0-6ubuntu4_amd64.deb ...
Unpacking libcilkrts5:amd64 (7.5.0-6ubuntu4) ...
Selecting previously unselected package libdrm-dev:amd64.
Preparing to unpack .../24-libdrm-dev_2.4.105-3~21.04.1_amd64.deb ...
Unpacking libdrm-dev:amd64 (2.4.105-3~21.04.1) ...
Selecting previously unselected package zlib1g-dev:amd64.
Preparing to unpack .../25-zlib1g-dev_1%3a1.2.11.dfsg-2ubuntu6_amd64.deb ...
Unpacking zlib1g-dev:amd64 (1:1.2.11.dfsg-2ubuntu6) ...
Selecting previously unselected package libelf-dev:amd64.
Preparing to unpack .../26-libelf-dev_0.183-8_amd64.deb ...
Unpacking libelf-dev:amd64 (0.183-8) ...
Selecting previously unselected package libubsan0:amd64.
Preparing to unpack .../27-libubsan0_7.5.0-6ubuntu4_amd64.deb ...
Unpacking libubsan0:amd64 (7.5.0-6ubuntu4) ...
Selecting previously unselected package libmpx2:amd64.
Preparing to unpack .../28-libmpx2_8.4.0-7ubuntu3_amd64.deb ...
Unpacking libmpx2:amd64 (8.4.0-7ubuntu3) ...
Selecting previously unselected package libgcc-7-dev:amd64.
Preparing to unpack .../29-libgcc-7-dev_7.5.0-6ubuntu4_amd64.deb ...
Unpacking libgcc-7-dev:amd64 (7.5.0-6ubuntu4) ...
Selecting previously unselected package libtinfo5:amd64.
Preparing to unpack .../30-libtinfo5_6.2+20201114-2build1_amd64.deb ...
Unpacking libtinfo5:amd64 (6.2+20201114-2build1) ...
Selecting previously unselected package libncurses5:amd64.
Preparing to unpack .../31-libncurses5_6.2+20201114-2build1_amd64.deb ...
Unpacking libncurses5:amd64 (6.2+20201114-2build1) ...
Selecting previously unselected package libstdc++-7-dev:amd64.
Preparing to unpack .../32-libstdc++-7-dev_7.5.0-6ubuntu4_amd64.deb ...
Unpacking libstdc++-7-dev:amd64 (7.5.0-6ubuntu4) ...
Selecting previously unselected package llvm-amdgpu-11.0-dev.
Preparing to unpack .../33-llvm-amdgpu-11.0-dev_11.0-1247438_amd64.deb ...
Unpacking llvm-amdgpu-11.0-dev (1:11.0-1247438) ...
Selecting previously unselected package mesa-common-dev:amd64.
Preparing to unpack .../34-mesa-common-dev_21.0.1-2_amd64.deb ...
Unpacking mesa-common-dev:amd64 (21.0.1-2) ...
Selecting previously unselected package rocm-device-libs.
Preparing to unpack .../35-rocm-device-libs_1.0.0.40200-21_amd64.deb ...
Unpacking rocm-device-libs (1.0.0.40200-21) ...
Selecting previously unselected package openmp-extras.
Preparing to unpack .../36-openmp-extras_12.42.0.40200-21_amd64.deb ...
Unpacking openmp-extras (12.42.0.40200-21) ...
Selecting previously unselected package rocm-opencl.
Preparing to unpack .../37-rocm-opencl_2.0.0.40200-21_amd64.deb ...
Unpacking rocm-opencl (2.0.0.40200-21) ...
Selecting previously unselected package rocm-opencl-dev.
Preparing to unpack .../38-rocm-opencl-dev_2.0.0.40200-21_amd64.deb ...
Unpacking rocm-opencl-dev (2.0.0.40200-21) ...
Selecting previously unselected package rocm-clang-ocl.
Preparing to unpack .../39-rocm-clang-ocl_0.5.0.40200-21_amd64.deb ...
Unpacking rocm-clang-ocl (0.5.0.40200-21) ...
Selecting previously unselected package rocm-cmake.
Preparing to unpack .../40-rocm-cmake_0.4.0.40200-21_amd64.deb ...
Unpacking rocm-cmake (0.4.0.40200-21) ...
Selecting previously unselected package rocm-dbgapi.
Preparing to unpack .../41-rocm-dbgapi_0.46.0.40200-21_amd64.deb ...
Unpacking rocm-dbgapi (0.46.0.40200-21) ...
Selecting previously unselected package rocm-debug-agent.
Preparing to unpack .../42-rocm-debug-agent_2.0.1.40200-21_amd64.deb ...
Unpacking rocm-debug-agent (2.0.1.40200-21) ...
Selecting previously unselected package rocm-gdb.
Preparing to unpack .../43-rocm-gdb_10.1.40200-21_amd64.deb ...
Unpacking rocm-gdb (10.1.40200-21) ...
Selecting previously unselected package rocm-smi-lib.
Preparing to unpack .../44-rocm-smi-lib_2.8.0.40200-21_amd64.deb ...
Unpacking rocm-smi-lib (2.8.0.40200-21) ...
Selecting previously unselected package rocm-utils.
Preparing to unpack .../45-rocm-utils_4.2.0.40200-21_amd64.deb ...
Unpacking rocm-utils (4.2.0.40200-21) ...
Selecting previously unselected package rocprofiler-dev.
Preparing to unpack .../46-rocprofiler-dev_1.0.0.40200-21_amd64.deb ...
Unpacking rocprofiler-dev (1.0.0.40200-21) ...
Selecting previously unselected package roctracer-dev.
Preparing to unpack .../47-roctracer-dev_1.0.0.40200-21_amd64.deb ...
Unpacking roctracer-dev (1.0.0.40200-21) ...
Selecting previously unselected package rocm-dev.
Preparing to unpack .../48-rocm-dev_4.2.0.40200-21_amd64.deb ...
Unpacking rocm-dev (4.2.0.40200-21) ...
Selecting previously unselected package rocm-dkms.
Preparing to unpack .../49-rocm-dkms_4.2.0.40200-21_amd64.deb ...
Unpacking rocm-dkms (4.2.0.40200-21) ...
Setting up comgr (2.0.0.40200-21) ...
Setting up libfile-which-perl (1.23-1) ...
Setting up libdrm-dev:amd64 (2.4.105-3~21.04.1) ...
Setting up rocm-cmake (0.4.0.40200-21) ...
Setting up roctracer-dev (1.0.0.40200-21) ...
Setting up rocminfo (1.0.0.40200-21) ...
Setting up hsa-amd-aqlprofile (1.0.0.40200-21) ...
Setting up m4 (1.4.18-5) ...
Setting up libfile-copy-recursive-perl (0.45-1) ...
Setting up rocm-device-libs (1.0.0.40200-21) ...
Setting up autotools-dev (20180224.1+nmu1) ...
Setting up gcc-7-base:amd64 (7.5.0-6ubuntu4) ...
Setting up libasan4:amd64 (7.5.0-6ubuntu4) ...
Setting up rocm-dbgapi (0.46.0.40200-21) ...
Setting up liburi-encode-perl (1.1.1-1) ...
Setting up gcc-8-base:amd64 (8.4.0-7ubuntu3) ...
Setting up amdgpu-core (21.10-1247438) ...
Setting up autoconf (2.69-14) ...
Setting up libmpx2:amd64 (8.4.0-7ubuntu3) ...
Setting up zlib1g-dev:amd64 (1:1.2.11.dfsg-2ubuntu6) ...
Setting up libcilkrts5:amd64 (7.5.0-6ubuntu4) ...
Setting up libubsan0:amd64 (7.5.0-6ubuntu4) ...
Setting up mesa-common-dev:amd64 (21.0.1-2) ...
Setting up rocm-smi-lib (2.8.0.40200-21) ...
Setting up hsakmt-roct (20210315.0.7.40200-21) ...
Setting up libtinfo5:amd64 (6.2+20201114-2build1) ...
Setting up automake (1:1.16.3-2ubuntu1) ...
update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode
Setting up hip-base (4.2.21155.5900.40200-21) ...
Setting up hsa-rocr-dev (1.3.0.40200-21) ...
Setting up libncurses5:amd64 (6.2+20201114-2build1) ...
Setting up rock-dkms (1:4.2-21) ...
Loading new amdgpu-4.2-21 DKMS files...
Building for 5.11.0-22-generic
Building for architecture x86_64
Building initial module for 5.11.0-22-generic
Error! Bad return status for module build on kernel: 5.11.0-22-generic (x86_64)
Consult /var/lib/dkms/amdgpu/4.2-21/build/make.log for more information.
dpkg: error processing package rock-dkms (--configure):
installed rock-dkms package post-installation script subprocess returned error exit status 10
Setting up rocm-gdb (10.1.40200-21) ...
Setting up rocm-debug-agent (2.0.1.40200-21) ...
Setting up libelf-dev:amd64 (0.183-8) ...
Setting up rocm-opencl (2.0.0.40200-21) ...
Setting up libllvm11.0-amdgpu:amd64 (1:11.0-1247438) ...
Setting up libgcc-7-dev:amd64 (7.5.0-6ubuntu4) ...
Setting up hsakmt-roct-dev (20210315.0.7.40200-21) ...
dpkg: dependency problems prevent configuration of rocm-dkms:
rocm-dkms depends on rock-dkms; however:
Package rock-dkms is not configured yet.
dpkg: error processing package rocm-dkms (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up hip-doc (4.2.21155.5900.40200-21) ...
Setting up llvm-amdgpu-11.0-runtime (1:11.0-1247438) ...
Setting up libstdc++-7-dev:amd64 (7.5.0-6ubuntu4) ...
Setting up llvm-amdgpu-runtime (1:11.0-1247438) ...
Setting up hip-samples (4.2.21155.5900.40200-21) ...
Setting up rocm-opencl-dev (2.0.0.40200-21) ...
Setting up rocprofiler-dev (1.0.0.40200-21) ...
Setting up llvm-amdgpu-11.0 (1:11.0-1247438) ...
Setting up llvm-amdgpu (1:11.0-1247438) ...
Setting up llvm-amdgpu-11.0-dev (1:11.0-1247438) ...
Setting up rocm-clang-ocl (0.5.0.40200-21) ...
Setting up openmp-extras (12.42.0.40200-21) ...
Setting up rocm-utils (4.2.0.40200-21) ...
Setting up hip-rocclr (4.2.21155.5900.40200-21) ...
Setting up rocm-dev (4.2.0.40200-21) ...
/opt/rocm-4.2.0/bin/ca not found
update-alternatives: using /opt/rocm-4.2.0/bin/clang-ocl to provide /usr/bin/clang-ocl (clang-ocl) in auto mode
/opt/rocm-4.2.0/bin/extractkernel not found
update-alternatives: using /opt/rocm-4.2.0/bin/findcode.sh to provide /usr/bin/findcode.sh (findcode.sh) in auto mode
update-alternatives: using /opt/rocm-4.2.0/bin/finduncodep.sh to provide /usr/bin/finduncodep.sh (finduncodep.sh) in auto mode
update-alternatives: using /opt/rocm-4.2.0/bin/hipcc to provide /usr/bin/hipcc (hipcc) in auto mode
update-alternatives: using /opt/rocm-4.2.0/bin/hipcc_cmake_linker_helper to provide /usr/bin/hipcc_cmake_linker_helper (hipcc_cmake_linker_helper) in auto mode
update-alternatives: using /opt/rocm-4.2.0/bin/hipconfig to provide /usr/bin/hipconfig (hipconfig) in auto mode
update-alternatives: using /opt/rocm-4.2.0/bin/hipconvertinplace-perl.sh to provide /usr/bin/hipconvertinplace-perl.sh (hipconvertinplace-perl.sh) in auto mode
update-alternatives: using /opt/rocm-4.2.0/bin/hipconvertinplace.sh to provide /usr/bin/hipconvertinplace.sh (hipconvertinplace.sh) in auto mode
update-alternatives: using /opt/rocm-4.2.0/bin/hipdemangleatp to provide /usr/bin/hipdemangleatp (hipdemangleatp) in auto mode
update-alternatives: using /opt/rocm-4.2.0/bin/hipexamine-perl.sh to provide /usr/bin/hipexamine-perl.sh (hipexamine-perl.sh) in auto mode
update-alternatives: using /opt/rocm-4.2.0/bin/hipexamine.sh to provide /usr/bin/hipexamine.sh (hipexamine.sh) in auto mode
update-alternatives: using /opt/rocm-4.2.0/bin/hipify-cmakefile to provide /usr/bin/hipify-cmakefile (hipify-cmakefile) in auto mode
update-alternatives: using /opt/rocm-4.2.0/bin/hipify-perl to provide /usr/bin/hipify-perl (hipify-perl) in auto mode
/opt/rocm-4.2.0/bin/lpl not found
update-alternatives: using /opt/rocm-4.2.0/bin/rocgdb to provide /usr/bin/rocgdb (rocgdb) in auto mode
update-alternatives: using /opt/rocm-4.2.0/bin/rocm_agent_enumerator to provide /usr/bin/rocm_agent_enumerator (rocm_agent_enumerator) in auto mode
update-alternatives: using /opt/rocm-4.2.0/bin/rocminfo to provide /usr/bin/rocminfo (rocminfo) in auto mode
update-alternatives: using /opt/rocm-4.2.0/bin/rocm-smi to provide /usr/bin/rocm-smi (rocm-smi) in auto mode
update-alternatives: using /opt/rocm-4.2.0/bin/rocprof to provide /usr/bin/rocprof (rocprof) in auto mode
update-alternatives: using /opt/rocm-4.2.0 to provide /opt/rocm (rocm) in auto mode
Processing triggers for libc-bin (2.33-0ubuntu5) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for install-info (6.7.0.dfsg.2-6) ...
Errors were encountered while processing:
rock-dkms
rocm-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)