cancel
Showing results for 
Search instead for 
Did you mean: 

PC Drivers & Software

Seb-Solon
Journeyman III

Debian bookworm Kernel 6.0 errors

Hi,

My kernel version is 6.0.0-6-amd64 (that include by defaylt a amdgpu kernel module) with Debian bookworm/testing.

I've tried to use the amdgpu-install script along with the repo "repo.radeon.com/amdgpu/5.4.1/ubuntu" to have latest driver version. Unfortunately I have some errors.

First, the amdgpu-dkms install in failing when trying to Build for my kernel. Here is the output of the make command

make: Entering directory '/usr/src/linux-headers-6.0.0-6-amd64'
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/scheduler/sched_main.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/scheduler/sched_fence.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/scheduler/sched_entity.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/ttm/ttm_tt.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/drm_gem_ttm_helper.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/ttm/ttm_bo.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/ttm/ttm_bo_util.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/main.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/ttm/ttm_bo_vm.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/symbols.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/ttm/ttm_module.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_common.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/ttm/ttm_execbuf_util.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_kernel_params.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/ttm/ttm_range_manager.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/dma-buf/dma-resv.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/ttm/ttm_resource.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_backlight.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/ttm/ttm_pool.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_ioctl.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/ttm/ttm_device.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_kthread.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/ttm/ttm_sys_manager.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_io.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/ttm/ttm_agp_backend.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_perf_event.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_seq_file.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_suspend.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_pci.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_mm.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdgpu/amdgpu_drv.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdgpu/amdgpu_device.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_memory.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_sched.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_fence.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_fence_array.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_reservation.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_drm_cache.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_drm_auth.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_drm_fb.o
/var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/ttm/ttm_pool.c: In function ‘ttm_pool_mgr_init’:
/var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/ttm/ttm_pool.c:726:16: error: too few arguments to function ‘register_shrinker’
726 | return register_shrinker(&mm_shrinker);
| ^~~~~~~~~~~~~~~~~
In file included from /usr/src/linux-headers-6.0.0-6-common/include/linux/mm.h:20,
from /usr/src/linux-headers-6.0.0-6-common/include/linux/scatterlist.h:8,
from /usr/src/linux-headers-6.0.0-6-common/include/linux/dma-mapping.h:10,
from /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/include/kcl/kcl_dma_mapping.h:5,
from /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/ttm/backport/backport.h:9,
from <command-line>:
/usr/src/linux-headers-6.0.0-6-common/include/linux/shrinker.h:99:27: note: declared here
99 | extern int __printf(2, 3) register_shrinker(struct shrinker *shrinker,
| ^~~~~~~~~~~~~~~~~
/var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/ttm/ttm_pool.c:727:1: error: control reaches end of non-void function [-Werror=return-type]
727 | }
| ^
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/linux-headers-6.0.0-6-common/scripts/Makefile.build:254: /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/ttm/ttm_pool.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdgpu/amdgpu_kms.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdgpu/amdgpu_atombios.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_drm_print.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_fbmem.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_drm_crtc.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_drm_connector.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdgpu/atombios_crtc.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_drm_atomic_helper.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_device_cgroup.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_mn.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_drm_modes.o
In file included from /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdgpu/amdgpu.h:69,
from /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/backport/include/kcl/kcl_amdgpu_drm_fb_helper.h:35,
from /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/backport/backport.h:84,
from <command-line>:
/var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdgpu/amdgpu_mode.h:308:32: error: field ‘base’ has incomplete type
308 | struct drm_framebuffer base;
| ^~~~
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_time.o
In file included from /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/backport/backport.h:85:
/var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/backport/include/kcl/kcl_amdgpu_drm_gem_framebuffer_helper.h: In function ‘kcl_drm_gem_fb_set_obj’:
/var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/backport/include/kcl/kcl_amdgpu_drm_gem_framebuffer_helper.h:12:19: error: invalid use of undefined type ‘struct drm_framebuffer’
12 | fb->obj[index] = obj;
| ^~
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdgpu/amdgpu_connectors.o
In file included from /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdgpu/amdgpu.h:69,
from /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/backport/include/kcl/kcl_amdgpu_drm_fb_helper.h:35,
from /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/backport/backport.h:84,
from <command-line>:
/var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdgpu/amdgpu_mode.h:308:32: error: field ‘base’ has incomplete type
308 | struct drm_framebuffer base;
| ^~~~
In file included from /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/backport/backport.h:85:
/var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/backport/include/kcl/kcl_amdgpu_drm_gem_framebuffer_helper.h: In function ‘kcl_drm_gem_fb_set_obj’:
/var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/backport/include/kcl/kcl_amdgpu_drm_gem_framebuffer_helper.h:12:19: error: invalid use of undefined type ‘struct drm_framebuffer’
12 | fb->obj[index] = obj;
| ^~
LD [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amddrm_ttm_helper.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_ftrace.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_acpi_table.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_page_alloc.o
make[2]: *** [/usr/src/linux-headers-6.0.0-6-common/scripts/Makefile.build:254: /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdgpu/amdgpu_drv.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_numa.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_fs_read_write.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_drm_aperture.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_drm_drv.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_drm_simple_kms_helper.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_bitmap.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_vmscan.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_dma_fence_chain.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_mce_amd.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_workqueue.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_cpumask.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_drm_dsc_helper.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_debugfs_inode.o
/var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_cpumask.c:6:1: warning: "/*" within comment [-Wcomment]
6 | /**
|
CC [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_sysfs_emit.o
make[2]: *** [/usr/src/linux-headers-6.0.0-6-common/scripts/Makefile.build:254: /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdgpu/amdgpu_device.o] Error 1
In file included from /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdgpu/amdgpu.h:69,
from /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/backport/include/kcl/kcl_amdgpu_drm_fb_helper.h:35,
from /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/backport/backport.h:84,
from <command-line>:
/var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdgpu/amdgpu_mode.h:308:32: error: field ‘base’ has incomplete type
308 | struct drm_framebuffer base;
| ^~~~
In file included from /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/backport/backport.h:85:
/var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/backport/include/kcl/kcl_amdgpu_drm_gem_framebuffer_helper.h: In function ‘kcl_drm_gem_fb_set_obj’:
/var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/backport/include/kcl/kcl_amdgpu_drm_gem_framebuffer_helper.h:12:19: error: invalid use of undefined type ‘struct drm_framebuffer’
12 | fb->obj[index] = obj;
| ^~
make[1]: *** [/usr/src/linux-headers-6.0.0-6-common/scripts/Makefile.build:470: /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/ttm] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: *** [/usr/src/linux-headers-6.0.0-6-common/scripts/Makefile.build:254: /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdgpu/amdgpu_atombios.o] Error 1
In file included from /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdgpu/amdgpu.h:69,
from /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/backport/include/kcl/kcl_amdgpu_drm_fb_helper.h:35,
from /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/backport/backport.h:84,
from <command-line>:
/var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdgpu/amdgpu_mode.h:308:32: error: field ‘base’ has incomplete type
308 | struct drm_framebuffer base;
| ^~~~
In file included from /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/backport/backport.h:85:
/var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/backport/include/kcl/kcl_amdgpu_drm_gem_framebuffer_helper.h: In function ‘kcl_drm_gem_fb_set_obj’:
/var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/backport/include/kcl/kcl_amdgpu_drm_gem_framebuffer_helper.h:12:19: error: invalid use of undefined type ‘struct drm_framebuffer’
12 | fb->obj[index] = obj;
| ^~
In file included from /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdgpu/amdgpu.h:69,
from /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/backport/include/kcl/kcl_amdgpu_drm_fb_helper.h:35,
from /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/backport/backport.h:84,
from <command-line>:
/var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdgpu/amdgpu_mode.h:308:32: error: field ‘base’ has incomplete type
308 | struct drm_framebuffer base;
| ^~~~
In file included from /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/backport/backport.h:85:
/var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/backport/include/kcl/kcl_amdgpu_drm_gem_framebuffer_helper.h: In function ‘kcl_drm_gem_fb_set_obj’:
/var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/backport/include/kcl/kcl_amdgpu_drm_gem_framebuffer_helper.h:12:19: error: invalid use of undefined type ‘struct drm_framebuffer’
12 | fb->obj[index] = obj;
| ^~
LD [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/scheduler/amd-sched.o
make[2]: *** [/usr/src/linux-headers-6.0.0-6-common/scripts/Makefile.build:254: /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdgpu/amdgpu_kms.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.0.0-6-common/scripts/Makefile.build:254: /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdgpu/atombios_crtc.o] Error 1
In file included from /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdgpu/amdgpu.h:69,
from /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/backport/include/kcl/kcl_amdgpu_drm_fb_helper.h:35,
from /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/backport/backport.h:84,
from <command-line>:
/var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdgpu/amdgpu_mode.h:308:32: error: field ‘base’ has incomplete type
308 | struct drm_framebuffer base;
| ^~~~
In file included from /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/backport/backport.h:85:
/var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/backport/include/kcl/kcl_amdgpu_drm_gem_framebuffer_helper.h: In function ‘kcl_drm_gem_fb_set_obj’:
/var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/backport/include/kcl/kcl_amdgpu_drm_gem_framebuffer_helper.h:12:19: error: invalid use of undefined type ‘struct drm_framebuffer’
12 | fb->obj[index] = obj;
| ^~
LD [M] /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/amdkcl.o
make[2]: *** [/usr/src/linux-headers-6.0.0-6-common/scripts/Makefile.build:254: /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdgpu/amdgpu_connectors.o] Error 1
make[1]: *** [/usr/src/linux-headers-6.0.0-6-common/scripts/Makefile.build:470: /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdgpu] Error 2
make: *** [/usr/src/linux-headers-6.0.0-6-common/Makefile:1876: /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build] Error 2
make: Leaving directory '/usr/src/linux-headers-6.0.0-6-amd64'

 If I "ignore" the error and simply decide to live without the dkms package, it used to work until a apt ugrade yesterday.
I believe that there is a conflict with the driver in the debian repo because the updated packages were the following (removed non related)

mesa-va-drivers:amd64 (22.2.4-1, 22.3.1-1)
mesa-va-drivers:i386 (22.2.4-1, 22.3.1-1)
mesa-vulkan-drivers:amd64 (22.2.4-1, 22.3.1-1)
mesa-vulkan-drivers:i386 (22.2.4-1, 22.3.1-1)
firmware-amd-graphics:amd64 (20221109-4, 20221214-3)
libegl-mesa0:amd64 (22.2.4-1, 22.3.1-1)
libegl-mesa0:i386 (22.2.4-1, 22.3.1-1)
mesa-vdpau-drivers:amd64 (22.2.4-1, 22.3.1-1)
mesa-vdpau-drivers:i386 (22.2.4-1, 22.3.1-1)

 

My understanding is that radeon repo provide package with the amdgpu suffix ( ie: mesa-amdgpu-va-drivers)

Error was :

libGL error: failed to load driver: zink
NNlibGL error: MESA-LOADER: failed to open zink: /opt/amdgpu/lib/x86_64-linux-gnu/dri/zink_dri.so: cannot open shared object file: No such file or directory (search paths /opt/amdgpu/lib/x86_64-linux-gnu/dri, suffix _dri)

Trying to copy the so from /usr/lib did not change lot

 

libGL error: failed to load driver: zink
libGL error: glx: failed to create drisw screen

 

Removing all those package almost worked (amdgpu-install --uninstall) , I had to remove /etc/modprobe.d/blacklist-amdgpu.conf so that the kernel would load the default one.

I would expect that the package provided in the radeon repo would be more up to date, however it looks like it is not ready to work with Kernel 6.0.

Is there a way to know which version of driver I have? Looking a the package version provided in debian and the radeon one, they seems to be similar : 22.3.1-1 (debian) vs 1:22.3.0.50401-1518338.22.04 (radeon) . Is 22.3 something accurate?

Instead of the script do we have tarball / source of deb file so that I could manually install them / the one not included in the kernel (like propietary one I believe) ? Unless you advice me to not install them on follow the testing driver that are as up to date as radeon officials

5 Replies
dr_atomic
Journeyman III

Bump! AMD, please. I fought with myself to buy an AMD card instead of nVidia, and I did buy 6700 XT... And of course I'm having the same issue as described above. All packages are installing properly, but building and configuring the amdgpu-dkms package fails. Kernel 6.0.X. Pretty please.

Linux wilk 6.0.0-6-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.0.12-1 (2022-12-09) x86_64 GNU/Linux
DKMS make.log for amdgpu-5.18.13-1520974.22.04 for kernel 6.0.0-6-amd64 (amd64)
śro, 11 sty 2023, 19:13:34 CET
make: Wejście do katalogu '/usr/src/linux-headers-6.0.0-6-amd64'
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/scheduler/sched_main.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/scheduler/sched_fence.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/scheduler/sched_entity.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/ttm/ttm_tt.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/ttm/ttm_bo.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/drm_gem_ttm_helper.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/ttm/ttm_bo_util.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/ttm/ttm_bo_vm.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/main.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/ttm/ttm_module.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/symbols.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/ttm/ttm_execbuf_util.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_common.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/ttm/ttm_range_manager.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_kernel_params.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdgpu/amdgpu_drv.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdgpu/amdgpu_device.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/dma-buf/dma-resv.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/ttm/ttm_resource.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_backlight.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/ttm/ttm_pool.o
In file included from /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdgpu/amdgpu.h:69,
    ¦   ¦   ¦   ¦from /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/backport/include/kcl/kcl_amdgpu_drm_fb_helper.h:35,
    ¦   ¦   ¦   ¦from /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/backport/backport.h:84,
    ¦   ¦   ¦   ¦from <command-line>:
/var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdgpu/amdgpu_mode.h:308:32: error: field ‘base’ has incomplete type
  308 |         struct drm_framebuffer base;
    ¦ |                                ^~~~
In file included from /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/backport/backport.h:85:
/var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/backport/include/kcl/kcl_amdgpu_drm_gem_framebuffer_helper.h: In function ‘kcl_drm_gem_fb_set_obj’: 
/var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/backport/include/kcl/kcl_amdgpu_drm_gem_framebuffer_helper.h:12:19: error: invalid use of undefined type ‘struct drm_framebuffer’
   12 |                 fb->obj[index] = obj;
    ¦ |                   ^~
In file included from /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdgpu/amdgpu.h:69,
    ¦   ¦   ¦   ¦from /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/backport/include/kcl/kcl_amdgpu_drm_fb_helper.h:35,
    ¦   ¦   ¦   ¦from /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/backport/backport.h:84,
    ¦   ¦   ¦   ¦from <command-line>:
/var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdgpu/amdgpu_mode.h:308:32: error: field ‘base’ has incomplete type
  308 |         struct drm_framebuffer base;
    ¦ |                                ^~~~
In file included from /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/backport/backport.h:85:
/var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/backport/include/kcl/kcl_amdgpu_drm_gem_framebuffer_helper.h: In function ‘kcl_drm_gem_fb_set_obj’: 
/var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/backport/include/kcl/kcl_amdgpu_drm_gem_framebuffer_helper.h:12:19: error: invalid use of undefined type ‘struct drm_framebuffer’
   12 |                 fb->obj[index] = obj;
    ¦ |                   ^~
make[2]: *** [/usr/src/linux-headers-6.0.0-6-common/scripts/Makefile.build:254: /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdgpu/amdgpu_drv.o] Błąd 1
make[2]: *** Oczekiwanie na niezakończone zadania....
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/ttm/ttm_device.o
  LD [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amddrm_ttm_helper.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/ttm/ttm_sys_manager.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_ioctl.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/ttm/ttm_agp_backend.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_kthread.o
/var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/ttm/ttm_pool.c: In function ‘ttm_pool_mgr_init’:
/var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/ttm/ttm_pool.c:726:16: error: too few arguments to function ‘register_shrinker’
  726 |         return register_shrinker(&mm_shrinker);
    ¦ |                ^~~~~~~~~~~~~~~~~
In file included from /usr/src/linux-headers-6.0.0-6-common/include/linux/mm.h:20,
    ¦   ¦   ¦   ¦from /usr/src/linux-headers-6.0.0-6-common/include/linux/scatterlist.h:8,
    ¦   ¦   ¦   ¦from /usr/src/linux-headers-6.0.0-6-common/include/linux/dma-mapping.h:10,
    ¦   ¦   ¦   ¦from /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/include/kcl/kcl_dma_mapping.h:5,
    ¦   ¦   ¦   ¦from /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/ttm/backport/backport.h:9,
    ¦   ¦   ¦   ¦from <command-line>:
/usr/src/linux-headers-6.0.0-6-common/include/linux/shrinker.h:99:27: note: declared here
   99 | extern int __printf(2, 3) register_shrinker(struct shrinker *shrinker,
    ¦ |                           ^~~~~~~~~~~~~~~~~
/var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/ttm/ttm_pool.c:727:1: error: control reaches end of non-void function [-Werror=return-type]
  727 | } 
    ¦ | ^ 
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/linux-headers-6.0.0-6-common/scripts/Makefile.build:254: /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/ttm/ttm_pool.o] Błąd 1
make[2]: *** Oczekiwanie na niezakończone zadania....
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_io.o
make[2]: *** [/usr/src/linux-headers-6.0.0-6-common/scripts/Makefile.build:254: /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdgpu/amdgpu_device.o] Błąd 1
make[1]: *** [/usr/src/linux-headers-6.0.0-6-common/scripts/Makefile.build:470: /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdgpu] Błąd 2
make[1]: *** Oczekiwanie na niezakończone zadania....
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_perf_event.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_seq_file.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_suspend.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_pci.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_mm.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_memory.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_sched.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_fence.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_fence_array.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_reservation.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_drm_cache.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_drm_auth.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_drm_fb.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_drm_print.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_fbmem.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_drm_crtc.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_drm_connector.o
  LD [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/scheduler/amd-sched.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_drm_atomic_helper.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_device_cgroup.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_mn.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_drm_modes.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_time.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_ftrace.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_acpi_table.o
make[1]: *** [/usr/src/linux-headers-6.0.0-6-common/scripts/Makefile.build:470: /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/ttm] Błąd 2
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_page_alloc.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_numa.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_fs_read_write.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_drm_aperture.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_drm_drv.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_drm_simple_kms_helper.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_bitmap.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_vmscan.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_dma_fence_chain.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_mce_amd.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_workqueue.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_cpumask.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_drm_dsc_helper.o
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_debugfs_inode.o
/var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_cpumask.c:6:1: warning: "/*" within comment [-Wcomment]
    6 | /**
    ¦ |
  CC [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/kcl_sysfs_emit.o
  LD [M]  /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build/amd/amdkcl/amdkcl.o
make: *** [/usr/src/linux-headers-6.0.0-6-common/Makefile:1876: /var/lib/dkms/amdgpu/5.18.13-1520974.22.04/build] Błąd 2
make: Opuszczenie katalogu '/usr/src/linux-headers-6.0.0-6-amd64'

 

Linux wilk 6.0.0-6-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.0.12-1 (2022-12-09) x86_64 GNU/Linux

 

I've had the same problem. I bought AMD specifically because it's supposed to have good linux support. I spend $1000 on the rx 7900 xtx expecting it to be a "just works" gpu, without having to do too much to get it to work. Instead I ended up spending hours trying multiple times to get the drivers working in Debian, to no avail. I know linux can be really hard for companies to work with, but it's still really frustrating.

JetMouse
Journeyman III

Looks like they still don't have drivers for Debian released yet. Ping! AMD are you listening?

Same issue here. 

Debian Bookworm - kernel 6.1.0-5-amd64

Last piece of log:

/var/lib/dkms/amdgpu/5.18.13-1538762.22.04/build/amd/amdkcl/kcl_drm_print.c:175:1: note: in expansion of macro ‘EXPORT_SYMBOL’
175 | EXPORT_SYMBOL(drm_dev_dbg);
| ^~~~~~~~~~~~~
make[2]: *** [/usr/src/linux-headers-6.1.0-5-common/scripts/Makefile.build:255: /var/lib/dkms/amdgpu/5.18.13-1538762.22.04/build/amd/amdkcl/kcl_drm_print.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [/usr/src/linux-headers-6.1.0-5-common/scripts/Makefile.build:505: /var/lib/dkms/amdgpu/5.18.13-1538762.22.04/build/amd/amdkcl] Error 2
make: *** [/usr/src/linux-headers-6.1.0-5-common/Makefile:2030: /var/lib/dkms/amdgpu/5.18.13-1538762.22.04/build] Error 2
make: Leaving directory '/usr/src/linux-headers-6.1.0-5-amd64'