Output of ./amdgpu-install -y --no-32:
Building for 5.8.0-55-generic
Building for architecture x86_64
Building initial module for 5.8.0-55-generic
configure: error: cannot detect CFLAGS...
Error! Bad return status for module build on kernel: 5.8.0-55-generic (x86_64)
Consult /var/lib/dkms/amdgpu/5.9.20.104-1247438/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.9.20.104-1247438); 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-1247438) ...
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.3.4-1247438) ...
Setting up libegl1-amdgpu-mesa:amd64 (1:20.3.4-1247438) ...
Setting up libgl1-amdgpu-mesa-glx:amd64 (1:20.3.4-1247438) ...
Setting up libgles2-amdgpu-mesa:amd64 (1:20.3.4-1247438) ...
Setting up libgl1-amdgpu-mesa-dri:amd64 (1:20.3.4-1247438) ...
Setting up libegl1-amdgpu-mesa-drivers:amd64 (1:20.3.4-1247438) ...
Setting up amdgpu-lib (21.10-1247438) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Errors were encountered while processing:
amdgpu-dkms
amdgpu
E: Sub-process /usr/bin/dpkg returned an error code (1)
Manually running dpkg --configure amdgpu-dkms:
Setting up amdgpu-dkms (1:5.9.20.104-1247438) ...
Removing old amdgpu-5.9.20.104-1247438 DKMS files...
------------------------------
Deleting module version: 5.9.20.104-1247438
completely from the DKMS tree.
------------------------------
Done.
Loading new amdgpu-5.9.20.104-1247438 DKMS files...
Building for 5.8.0-55-generic
Building for architecture x86_64
Building initial module for 5.8.0-55-generic
configure: error: cannot detect CFLAGS...
Error! Bad return status for module build on kernel: 5.8.0-55-generic (x86_64)
Consult /var/lib/dkms/amdgpu/5.9.20.104-1247438/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
Errors were encountered while processing:
amdgpu-dkms