- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
amdgpu-6.10.5-2109964 fails to compile with Linux kernel 6.12.6 (x86_64)
Hi team,
unfortunately the driver does not get compiled on my openSUSE system.
Compiler is gcc 14.2
This is what I get.
DKMS make.log for amdgpu-6.10.5-2109964 for kernel 6.12.6-lp155.2.gfb072de-tuxy (x86_64)
Wed Feb 12 23:44:10 CET 2025
make: Entering directory '/usr/src/linux-6.12.6-lp155.2.gfb072de-obj/x86_64/default'
CC [M] /tmp/amd.PhJpfOi5/scheduler/sched_main.o
CC [M] /tmp/amd.PhJpfOi5/scheduler/sched_fence.o
CC [M] /tmp/amd.PhJpfOi5/scheduler/sched_entity.o
CC [M] /tmp/amd.PhJpfOi5/amd/amdxcp/amdgpu_xcp_drv.o
CC [M] /tmp/amd.PhJpfOi5/amd/amdxcp/./backport/kcl_drm_drv.o
CC [M] /tmp/amd.PhJpfOi5/ttm/ttm_tt.o
CC [M] /tmp/amd.PhJpfOi5/ttm/ttm_bo.o
CC [M] /tmp/amd.PhJpfOi5/ttm/ttm_bo_util.o
CC [M] /tmp/amd.PhJpfOi5/ttm/ttm_bo_vm.o
CC [M] /tmp/amd.PhJpfOi5/ttm/ttm_module.o
CC [M] /tmp/amd.PhJpfOi5/amd/amdgpu/amdgpu_drv.o
CC [M] /tmp/amd.PhJpfOi5/ttm/ttm_execbuf_util.o
CC [M] /tmp/amd.PhJpfOi5/amd/amdkcl/main.o
CC [M] /tmp/amd.PhJpfOi5/ttm/ttm_range_manager.o
CC [M] /tmp/amd.PhJpfOi5/ttm/ttm_resource.o
CC [M] /tmp/amd.PhJpfOi5/drm_gem_ttm_helper.o
In file included from /usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/percpu.h:5,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/arch/x86/include/asm/msr.h:15,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/arch/x86/include/asm/tsc.h:10,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/arch/x86/include/asm/timex.h:6,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/timex.h:67,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/time32.h:13,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/time.h:60,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/jiffies.h:10,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/ktime.h:25,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/timer.h:6,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/workqueue.h:9,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/srcu.h:21,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/notifier.h:16,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/arch/x86/include/asm/uprobes.h:13,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/uprobes.h:50,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/mm_types.h:16,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/include/asm-generic/fixmap.h:19,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/arch/x86/include/asm/fixmap.h:191,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/arch/x86/include/asm/desc.h:8,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/arch/x86/include/asm/mmu_context.h:5,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/mmu_context.h:5,
from /tmp/amd.PhJpfOi5/include/kcl/kcl_kthread.h:7,
from /tmp/amd.PhJpfOi5/include/kcl/backport/kcl_kthread_backport.h:6,
from /tmp/amd.PhJpfOi5/scheduler/backport/backport.h:7,
from <command-line>:
/usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/alloc_tag.h:212:2: error: expected identifier or before token
212 | ({ \
| ^
/usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/slab.h:1053:49: note: in expansion of macro
1053 | #define kvrealloc(...) alloc_hooks(kvrealloc_noprof(__VA_ARGS__))
| ^~~~~~~~~~~
...
In file included from /usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/percpu.h:5,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/arch/x86/include/asm/msr.h:15,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/arch/x86/include/asm/tsc.h:10,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/arch/x86/include/asm/timex.h:6,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/timex.h:67,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/time32.h:13,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/time.h:60,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/jiffies.h:10,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/ktime.h:25,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/timer.h:6,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/workqueue.h:9,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/srcu.h:21,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/notifier.h:16,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/arch/x86/include/asm/uprobes.h:13,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/uprobes.h:50,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/mm_types.h:16,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/mmzone.h:22,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/gfp.h:7,
from /tmp/amd.PhJpfOi5/include/kcl/kcl_kernel.h:6,
from /tmp/amd.PhJpfOi5/ttm/backport/backport.h:6,
from <command-line>:
/usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/alloc_tag.h:212:2: error: expected identifier or before token
212 | ({ \
| ^
/usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/slab.h:1053:49: note: in expansion of macro
1053 | #define kvrealloc(...) alloc_hooks(kvrealloc_noprof(__VA_ARGS__))
/tmp/amd.PhJpfOi5/include/kcl/kcl_slab.h:42:14: note: in expansion of macro
42 | extern void *kvrealloc(const void *p, size_t oldsize, size_t newsize, gfp_t flags);
| ^~~~~~~~~
In file included from /usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/percpu.h:5,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/arch/x86/include/asm/msr.h:15,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/arch/x86/include/asm/tsc.h:10,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/arch/x86/include/asm/timex.h:6,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/timex.h:67,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/time32.h:13,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/time.h:60,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/stat.h:19,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/module.h:13,
from /tmp/amd.PhJpfOi5/include/kcl/kcl_moduleparam.h:5,
from /tmp/amd.PhJpfOi5/amd/backport/backport.h:7,
from <command-line>:
/usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/alloc_tag.h:212:2: error: expected identifier or before token
212 | ({ \
| ^
/usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/slab.h:1053:49: note: in expansion of macro
1053 | #define kvrealloc(...) alloc_hooks(kvrealloc_noprof(__VA_ARGS__))
| ^~~~~~~~~~~
/tmp/amd.PhJpfOi5/include/kcl/kcl_slab.h:42:14: note: in expansion of macro
42 | extern void *kvrealloc(const void *p, size_t oldsize, size_t newsize, gfp_t flags);
| ^~~~~~~~~
make[3]: *** [/usr/src/linux-6.12.6-lp155.2.gfb072de/scripts/Makefile.build:230: /tmp/amd.PhJpfOi5/amd/amdgpu/amdgpu_doorbell_mgr.o] Error 1
In file included from /usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/percpu.h:5,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/arch/x86/include/asm/msr.h:15,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/arch/x86/include/asm/tsc.h:10,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/arch/x86/include/asm/timex.h:6,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/timex.h:67,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/time32.h:13,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/time.h:60,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/stat.h:19,
from /usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/module.h:13,
from /tmp/amd.PhJpfOi5/include/kcl/kcl_moduleparam.h:5,
from /tmp/amd.PhJpfOi5/amd/backport/backport.h:7,
from <command-line>:
/usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/alloc_tag.h:212:2: error: expected identifier or before token
212 | ({ \
| ^
/usr/src/linux-6.12.6-lp155.2.gfb072de/include/linux/slab.h:1053:49: note: in expansion of macro
1053 | #define kvrealloc(...) alloc_hooks(kvrealloc_noprof(__VA_ARGS__))
| ^~~~~~~~~~~
/tmp/amd.PhJpfOi5/include/kcl/kcl_slab.h:42:14: note: in expansion of macro
42 | extern void *kvrealloc(const void *p, size_t oldsize, size_t newsize, gfp_t flags);
| ^~~~~~~~~
make[3]: *** [/usr/src/linux-6.12.6-lp155.2.gfb072de/scripts/Makefile.build:230: /tmp/amd.PhJpfOi5/amd/amdgpu/amdgpu_kms.o] Error 1
make[3]: *** [/usr/src/linux-6.12.6-lp155.2.gfb072de/scripts/Makefile.build:230: /tmp/amd.PhJpfOi5/amd/amdgpu/amdgpu_atombios.o] Error 1
make[3]: *** [/usr/src/linux-6.12.6-lp155.2.gfb072de/scripts/Makefile.build:230: /tmp/amd.PhJpfOi5/amd/amdgpu/amdgpu_device.o] Error 1
make[2]: *** [/usr/src/linux-6.12.6-lp155.2.gfb072de/scripts/Makefile.build:479: /tmp/amd.PhJpfOi5/amd/amdkcl] Error 2
make[3]: *** [/usr/src/linux-6.12.6-lp155.2.gfb072de/scripts/Makefile.build:230: /tmp/amd.PhJpfOi5/amd/amdgpu/atombios_crtc.o] Error 1
make[2]: *** [/usr/src/linux-6.12.6-lp155.2.gfb072de/scripts/Makefile.build:479: /tmp/amd.PhJpfOi5/amd/amdgpu] Error 2
make[1]: *** [/usr/src/linux-6.12.6-lp155.2.gfb072de/Makefile:1960: /tmp/amd.PhJpfOi5] Error 2
make: *** [../../../linux-6.12.6-lp155.2.gfb072de/Makefile:224: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-6.12.6-lp155.2.gfb072de-obj/x86_64/default'
Any idea how to proceed from here?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
bumping this as im having the exact same problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am also having the same problem. dkms builds with kernel 6.6.87, but not with 6.12.23.
The file that reports the error is the same for each kernel version.
I see that when I build 6.12.23 modules amdgpu.ko and amdxcp.ko are built, but not the others that are built with dkms. Could it be that the driver has been incorporated into kernel and dkms is not needed?
Or maybe more regressions could be looked at in the kernel source code. I need to reboot into 6.12.23 and see if I have a working amd driver.
