[RESOLVED] Issue building amdgpu-dkms with Liquorix on Ubuntu 22.04
Title says it all. I can upload any artifacts needed for diagnosis.
I'm open to advice on how to build any modules etc. myself, but I'm having trouble finding the public source code. I followed one guide (https://community.amd.com/t5/pc-drivers-software/manually-build-amdgpu-dkms-kernel-module-failed-without-clear/m-p/658320) that built the files from the extracted .deb file, but mine gives me a DRM error. APT Install error: :: Code ::
$ sudo apt install amdgpu-dkms Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: amdgpu-dkms-firmware dctrl-tools dkms Suggested packages: debtags menu The following NEW packages will be installed: amdgpu-dkms amdgpu-dkms-firmware dctrl-tools dkms 0 upgraded, 4 newly installed, 0 to remove and 114 not upgraded. Need to get 0 B/26.3 MB of archives. After this operation, 612 MB of additional disk space will be used. Do you want to continue? [Y/n] y Selecting previously unselected package dctrl-tools. (Reading database ... 181830 files and directories currently installed.) Preparing to unpack .../dctrl-tools_2.24-3build2_amd64.deb ... Unpacking dctrl-tools (2.24-3build2) ... Selecting previously unselected package dkms. Preparing to unpack .../dkms_2.8.7-2ubuntu2.2_all.deb ... Unpacking dkms (2.8.7-2ubuntu2.2) ... Selecting previously unselected package amdgpu-dkms-firmware. Preparing to unpack .../amdgpu-dkms-firmware_1%3a6.8.5.60203-2044426.22.04_all.deb ... Unpacking amdgpu-dkms-firmware (1:6.8.5.60203-2044426.22.04) ... Selecting previously unselected package amdgpu-dkms. Preparing to unpack .../amdgpu-dkms_1%3a6.8.5.60203-2044426.22.04_all.deb ... Unpacking amdgpu-dkms (1:6.8.5.60203-2044426.22.04) ... Setting up amdgpu-dkms-firmware (1:6.8.5.60203-2044426.22.04) ... Setting up dctrl-tools (2.24-3build2) ... Setting up dkms (2.8.7-2ubuntu2.2) ... Setting up amdgpu-dkms (1:6.8.5.60203-2044426.22.04) ... Loading new amdgpu-6.8.5-2044426.22.04 DKMS files... Building for 6.12.8-1-liquorix-amd64 Building for architecture x86_64 Building initial module for 6.12.8-1-liquorix-amd64 ERROR (dkms apport): kernel package linux-headers-6.12.8-1-liquorix-amd64 is not supported Error! Bad return status for module build on kernel: 6.12.8-1-liquorix-amd64 (x86_64) Consult /var/lib/dkms/amdgpu/6.8.5-2044426.22.04/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 Processing triggers for man-db (2.10.2-1) ... Errors were encountered while processing: amdgpu-dkms E: Sub-process /usr/bin/dpkg returned an error code (1) Contents of /var/lib/dkms/amdgpu/6.8.5-2044426.22.04/build/make.log: :: Code ::
$ cat /var/lib/dkms/amdgpu/6.8.5-2044426.22.04/build/make.log DKMS make.log for amdgpu-6.8.5-2044426.22.04 for kernel 6.12.8-1-liquorix-amd64 (x86_64) Tue Jan 7 06:30:24 PM EST 2025 make: Entering directory '/usr/src/linux-headers-6.12.8-1-liquorix-amd64' CC [M] /tmp/amd.7AEci9m9/scheduler/sched_main.o CC [M] /tmp/amd.7AEci9m9/scheduler/sched_fence.o CC [M] /tmp/amd.7AEci9m9/scheduler/sched_entity.o CC [M] /tmp/amd.7AEci9m9/amd/amdxcp/amdgpu_xcp_drv.o CC [M] /tmp/amd.7AEci9m9/ttm/ttm_tt.o In file included from ./include/linux/percpu.h:5, from ./arch/x86/include/asm/msr.h:15, from ./arch/x86/include/asm/tsc.h:10, from ./arch/x86/include/asm/timex.h:6, from ./include/linux/timex.h:67, from ./include/linux/time32.h:13, from ./include/linux/time.h:60, from ./include/linux/jiffies.h:10, from ./include/linux/ktime.h:25, from ./include/linux/timer.h:6, from ./include/linux/workqueue.h:9, from ./include/linux/mm_types.h:19, from ./include/asm-generic/fixmap.h:19, from ./arch/x86/include/asm/fixmap.h:191, from ./arch/x86/include/asm/desc.h:8, from ./arch/x86/include/asm/mmu_context.h:5, from ./include/linux/mmu_context.h:5, from /tmp/amd.7AEci9m9/include/kcl/kcl_kthread.h:7, from /tmp/amd.7AEci9m9/include/kcl/backport/kcl_kthread_backport.h:6, from /tmp/amd.7AEci9m9/scheduler/backport/backport.h:7, from <command-line>: ./include/linux/alloc_tag.h:217:2: error: expected identifier or ‘(’ before ‘{’ token 217 | ({ \ | ^ ./include/linux/slab.h:1053:49: note: in expansion of macro ‘alloc_hooks’ 1053 | #define kvrealloc(...) alloc_hooks(kvrealloc_noprof(__VA_ARGS__)) | ^~~~~~~~~~~ /tmp/amd.7AEci9m9/include/kcl/kcl_slab.h:42:14: note: in expansion of macro ‘kvrealloc’ 42 | extern void *kvrealloc(const void *p, size_t oldsize, size_t newsize, gfp_t flags); | ^~~~~~~~~ In file included from ./include/linux/percpu.h:5, from ./arch/x86/include/asm/msr.h:15, from ./arch/x86/include/asm/tsc.h:10, from ./arch/x86/include/asm/timex.h:6, from ./include/linux/timex.h:67, from ./include/linux/time32.h:13, from ./include/linux/time.h:60, from ./include/linux/jiffies.h:10, from ./include/linux/ktime.h:25, from ./include/linux/timer.h:6, from ./include/linux/workqueue.h:9, from ./include/linux/mm_types.h:19, from ./include/asm-generic/fixmap.h:19, from ./arch/x86/include/asm/fixmap.h:191, from ./arch/x86/include/asm/desc.h:8, from ./arch/x86/include/asm/mmu_context.h:5, from ./include/linux/mmu_context.h:5, from /tmp/amd.7AEci9m9/include/kcl/kcl_kthread.h:7, from /tmp/amd.7AEci9m9/include/kcl/backport/kcl_kthread_backport.h:6, from /tmp/amd.7AEci9m9/scheduler/backport/backport.h:7, from <command-line>: ./include/linux/alloc_tag.h:217:2: error: expected identifier or ‘(’ before ‘{’ token 217 | ({ \ | ^ ./include/linux/slab.h:1053:49: note: in expansion of macro ‘alloc_hooks’ 1053 | #define kvrealloc(...) alloc_hooks(kvrealloc_noprof(__VA_ARGS__)) | ^~~~~~~~~~~ /tmp/amd.7AEci9m9/include/kcl/kcl_slab.h:42:14: note: in expansion of macro ‘kvrealloc’ 42 | extern void *kvrealloc(const void *p, size_t oldsize, size_t newsize, gfp_t flags); | ^~~~~~~~~ CC [M] /tmp/amd.7AEci9m9/amd/amdgpu/amdgpu_drv.o make[3]: *** [scripts/Makefile.build:229: /tmp/amd.7AEci9m9/scheduler/sched_entity.o] Error 1 make[3]: *** Waiting for unfinished jobs.... CC [M] /tmp/amd.7AEci9m9/amd/amdgpu/amdgpu_device.o In file included from ./include/trace/trace_events.h:445, from ./include/trace/define_trace.h:102, from /tmp/amd.7AEci9m9/scheduler/gpu_scheduler_trace.h:114, from /tmp/amd.7AEci9m9/scheduler/sched_main.c:88: /tmp/amd.7AEci9m9/scheduler/./gpu_scheduler_trace.h:60:1: error: macro "__assign_str" passed 2 arguments, but takes just 1 60 | ); | ^~ In file included from ./include/trace/trace_events.h:378, from ./include/trace/define_trace.h:102, from /tmp/amd.7AEci9m9/scheduler/gpu_scheduler_trace.h:114, from /tmp/amd.7AEci9m9/scheduler/sched_main.c:88: ./include/trace/stages/stage6_event_callback.h:34: note: macro "__assign_str" defined here 34 | #define __assign_str(dst) \ | In file included from ./include/trace/define_trace.h:102, from /tmp/amd.7AEci9m9/scheduler/gpu_scheduler_trace.h:114, from /tmp/amd.7AEci9m9/scheduler/sched_main.c:88: /tmp/amd.7AEci9m9/scheduler/./gpu_scheduler_trace.h: In function ‘do_trace_event_raw_event_drm_sched_job’: /tmp/amd.7AEci9m9/scheduler/./gpu_scheduler_trace.h:51:28: error: ‘__assign_str’ undeclared (first use in this function) 51 | __assign_str(name, sched_job->sched->name); | ^~~~~~~~~~~~ ./include/trace/trace_events.h:405:11: note: in definition of macro ‘__DECLARE_EVENT_CLASS’ 405 | { assign; } \ | ^~~~~~ ./include/trace/trace_events.h:413:23: note: in expansion of macro ‘PARAMS’ 413 | PARAMS(assign), PARAMS(print)) \ | ^~~~~~ /tmp/amd.7AEci9m9/scheduler/./gpu_scheduler_trace.h:35:1: note: in expansion of macro ‘DECLARE_EVENT_CLASS’ 35 | DECLARE_EVENT_CLASS(drm_sched_job, | ^~~~~~~~~~~~~~~~~~~ /tmp/amd.7AEci9m9/scheduler/./gpu_scheduler_trace.h:47:13: note: in expansion of macro ‘TP_fast_assign’ 47 | TP_fast_assign( | ^~~~~~~~~~~~~~ /tmp/amd.7AEci9m9/scheduler/./gpu_scheduler_trace.h:51:28: note: each undeclared identifier is reported only once for each function it appears in 51 | __assign_str(name, sched_job->sched->name); | ^~~~~~~~~~~~ ./include/trace/trace_events.h:405:11: note: in definition of macro ‘__DECLARE_EVENT_CLASS’ 405 | { assign; } \ | ^~~~~~ ./include/trace/trace_events.h:413:23: note: in expansion of macro ‘PARAMS’ 413 | PARAMS(assign), PARAMS(print)) \ | ^~~~~~ /tmp/amd.7AEci9m9/scheduler/./gpu_scheduler_trace.h:35:1: note: in expansion of macro ‘DECLARE_EVENT_CLASS’ 35 | DECLARE_EVENT_CLASS(drm_sched_job, | ^~~~~~~~~~~~~~~~~~~ /tmp/amd.7AEci9m9/scheduler/./gpu_scheduler_trace.h:47:13: note: in expansion of macro ‘TP_fast_assign’ 47 | TP_fast_assign( | ^~~~~~~~~~~~~~ In file included from ./include/trace/trace_events.h:445, from ./include/trace/define_trace.h:102, from /tmp/amd.7AEci9m9/scheduler/gpu_scheduler_trace.h:114, from /tmp/amd.7AEci9m9/scheduler/sched_main.c:88: /tmp/amd.7AEci9m9/scheduler/./gpu_scheduler_trace.h: At top level: /tmp/amd.7AEci9m9/scheduler/./gpu_scheduler_trace.h:107:1: error: macro "__assign_str" passed 2 arguments, but takes just 1 107 | ); | ^~ In file included from ./include/trace/trace_events.h:378, from ./include/trace/define_trace.h:102, from /tmp/amd.7AEci9m9/scheduler/gpu_scheduler_trace.h:114, from /tmp/amd.7AEci9m9/scheduler/sched_main.c:88: ./include/trace/stages/stage6_event_callback.h:34: note: macro "__assign_str" defined here 34 | #define __assign_str(dst) \ | In file included from ./include/trace/define_trace.h:102, from /tmp/amd.7AEci9m9/scheduler/gpu_scheduler_trace.h:114, from /tmp/amd.7AEci9m9/scheduler/sched_main.c:88: /tmp/amd.7AEci9m9/scheduler/./gpu_scheduler_trace.h: In function ‘do_trace_event_raw_event_drm_sched_job_wait_dep’: /tmp/amd.7AEci9m9/scheduler/./gpu_scheduler_trace.h:97:28: error: ‘__assign_str’ undeclared (first use in this function) 97 | __assign_str(name, sched_job->sched->name); | ^~~~~~~~~~~~ ./include/trace/trace_events.h:405:11: note: in definition of macro ‘__DECLARE_EVENT_CLASS’ 405 | { assign; } \ | ^~~~~~ ./include/trace/trace_events.h:413:23: note: in expansion of macro ‘PARAMS’ 413 | PARAMS(assign), PARAMS(print)) \ | ^~~~~~ ./include/trace/trace_events.h:40:9: note: in expansion of macro ‘DECLARE_EVENT_CLASS’ 40 | DECLARE_EVENT_CLASS(name, \ | ^~~~~~~~~~~~~~~~~~~ ./include/trace/trace_events.h:44:30: note: in expansion of macro ‘PARAMS’ 44 | PARAMS(assign), \ | ^~~~~~ /tmp/amd.7AEci9m9/scheduler/./gpu_scheduler_trace.h:85:1: note: in expansion of macro ‘TRACE_EVENT’ 85 | TRACE_EVENT(drm_sched_job_wait_dep, | ^~~~~~~~~~~ /tmp/amd.7AEci9m9/scheduler/./gpu_scheduler_trace.h:96:13: note: in expansion of macro ‘TP_fast_assign’ 96 | TP_fast_assign( | ^~~~~~~~~~~~~~ In file included from ./include/trace/trace_events.h:497, from ./include/trace/define_trace.h:102, from /tmp/amd.7AEci9m9/scheduler/gpu_scheduler_trace.h:114, from /tmp/amd.7AEci9m9/scheduler/sched_main.c:88: /tmp/amd.7AEci9m9/scheduler/./gpu_scheduler_trace.h: At top level: /tmp/amd.7AEci9m9/scheduler/./gpu_scheduler_trace.h:107:1: error: macro "__assign_str" passed 2 arguments, but takes just 1 107 | ); | ^~ In file included from ./include/trace/trace_events.h:378, from ./include/trace/define_trace.h:102, from /tmp/amd.7AEci9m9/scheduler/gpu_scheduler_trace.h:114, from /tmp/amd.7AEci9m9/scheduler/sched_main.c:88: ./include/trace/stages/stage6_event_callback.h:34: note: macro "__assign_str" defined here 34 | #define __assign_str(dst) \ | In file included from ./include/trace/perf.h:75, from ./include/trace/define_trace.h:103, from /tmp/amd.7AEci9m9/scheduler/gpu_scheduler_trace.h:114, from /tmp/amd.7AEci9m9/scheduler/sched_main.c:88: /tmp/amd.7AEci9m9/scheduler/./gpu_scheduler_trace.h:60:1: error: macro "__assign_str" passed 2 arguments, but takes just 1 60 | ); | ^~ In file included from ./include/trace/perf.h:7, from ./include/trace/define_trace.h:103, from /tmp/amd.7AEci9m9/scheduler/gpu_scheduler_trace.h:114, from /tmp/amd.7AEci9m9/scheduler/sched_main.c:88: ./include/trace/stages/stage6_event_callback.h:34: note: macro "__assign_str" defined here 34 | #define __assign_str(dst) \ | CC [M] /tmp/amd.7AEci9m9/amd/amdxcp/./backport/kcl_drm_drv.o In file included from ./include/linux/percpu.h:5, from ./arch/x86/include/asm/msr.h:15, from ./arch/x86/include/asm/tsc.h:10, from ./arch/x86/include/asm/timex.h:6, from ./include/linux/timex.h:67, from ./include/linux/time32.h:13, from ./include/linux/time.h:60, from ./include/linux/jiffies.h:10, from ./include/linux/ktime.h:25, from ./include/linux/timer.h:6, from ./include/linux/workqueue.h:9, from ./include/linux/mm_types.h:19, from ./include/asm-generic/fixmap.h:19, from ./arch/x86/include/asm/fixmap.h:191, from ./arch/x86/include/asm/desc.h:8, from ./arch/x86/include/asm/mmu_context.h:5, from ./include/linux/mmu_context.h:5, from /tmp/amd.7AEci9m9/include/kcl/kcl_kthread.h:7, from /tmp/amd.7AEci9m9/include/kcl/backport/kcl_kthread_backport.h:6, from /tmp/amd.7AEci9m9/scheduler/backport/backport.h:7, from <command-line>: ./include/linux/alloc_tag.h:217:2: error: expected identifier or ‘(’ before ‘{’ token 217 | ({ \ | ^ ./include/linux/slab.h:1053:49: note: in expansion of macro ‘alloc_hooks’ 1053 | #define kvrealloc(...) alloc_hooks(kvrealloc_noprof(__VA_ARGS__)) | ^~~~~~~~~~~ /tmp/amd.7AEci9m9/include/kcl/kcl_slab.h:42:14: note: in expansion of macro ‘kvrealloc’ 42 | extern void *kvrealloc(const void *p, size_t oldsize, size_t newsize, gfp_t flags); | ^~~~~~~~~ In file included from ./include/trace/define_trace.h:103, from /tmp/amd.7AEci9m9/scheduler/gpu_scheduler_trace.h:114, from /tmp/amd.7AEci9m9/scheduler/sched_main.c:88: /tmp/amd.7AEci9m9/scheduler/./gpu_scheduler_trace.h: In function ‘perf_trace_drm_sched_job’: /tmp/amd.7AEci9m9/scheduler/./gpu_scheduler_trace.h:51:28: error: ‘__assign_str’ undeclared (first use in this function) 51 | __assign_str(name, sched_job->sched->name); | ^~~~~~~~~~~~ /tmp/amd.7AEci9m9/scheduler/./gpu_scheduler_trace.h:35:1: note: in expansion of macro ‘DECLARE_EVENT_CLASS’ 35 | DECLARE_EVENT_CLASS(drm_sched_job, | ^~~~~~~~~~~~~~~~~~~ /tmp/amd.7AEci9m9/scheduler/./gpu_scheduler_trace.h:47:13: note: in expansion of macro ‘TP_fast_assign’ 47 | TP_fast_assign( | ^~~~~~~~~~~~~~ In file included from ./include/trace/perf.h:75, from ./include/trace/define_trace.h:103, from /tmp/amd.7AEci9m9/scheduler/gpu_scheduler_trace.h:114, from /tmp/amd.7AEci9m9/scheduler/sched_main.c:88: /tmp/amd.7AEci9m9/scheduler/./gpu_scheduler_trace.h: At top level: /tmp/amd.7AEci9m9/scheduler/./gpu_scheduler_trace.h:107:1: error: macro "__assign_str" passed 2 arguments, but takes just 1 107 | ); | ^~ In file included from ./include/trace/perf.h:7, from ./include/trace/define_trace.h:103, from /tmp/amd.7AEci9m9/scheduler/gpu_scheduler_trace.h:114, from /tmp/amd.7AEci9m9/scheduler/sched_main.c:88: ./include/trace/stages/stage6_event_callback.h:34: note: macro "__assign_str" defined here 34 | #define __assign_str(dst) \ | In file included from ./include/trace/define_trace.h:103, from /tmp/amd.7AEci9m9/scheduler/gpu_scheduler_trace.h:114, from /tmp/amd.7AEci9m9/scheduler/sched_main.c:88: /tmp/amd.7AEci9m9/scheduler/./gpu_scheduler_trace.h: In function ‘perf_trace_drm_sched_job_wait_dep’: /tmp/amd.7AEci9m9/scheduler/./gpu_scheduler_trace.h:97:28: error: ‘__assign_str’ undeclared (first use in this function) 97 | __assign_str(name, sched_job->sched->name); | ^~~~~~~~~~~~ ./include/trace/perf.h:51:11: note: in definition of macro ‘DECLARE_EVENT_CLASS’ 51 | { assign; } \ | ^~~~~~ ./include/trace/trace_events.h:44:30: note: in expansion of macro ‘PARAMS’ 44 | PARAMS(assign), \ | ^~~~~~ /tmp/amd.7AEci9m9/scheduler/./gpu_scheduler_trace.h:85:1: note: in expansion of macro ‘TRACE_EVENT’ 85 | TRACE_EVENT(drm_sched_job_wait_dep, | ^~~~~~~~~~~ /tmp/amd.7AEci9m9/scheduler/./gpu_scheduler_trace.h:96:13: note: in expansion of macro ‘TP_fast_assign’ 96 | TP_fast_assign( | ^~~~~~~~~~~~~~ In file included from ./include/trace/bpf_probe.h:117, from ./include/trace/define_trace.h:104, from /tmp/amd.7AEci9m9/scheduler/gpu_scheduler_trace.h:114, from /tmp/amd.7AEci9m9/scheduler/sched_main.c:88: /tmp/amd.7AEci9m9/scheduler/./gpu_scheduler_trace.h: At top level: /tmp/amd.7AEci9m9/scheduler/./gpu_scheduler_trace.h:107:1: error: macro "__assign_str" passed 2 arguments, but takes just 1 107 | ); | ^~ In file included from ./include/trace/bpf_probe.h:7, from ./include/trace/define_trace.h:104, from /tmp/amd.7AEci9m9/scheduler/gpu_scheduler_trace.h:114, from /tmp/amd.7AEci9m9/scheduler/sched_main.c:88: ./include/trace/stages/stage6_event_callback.h:34: note: macro "__assign_str" defined here 34 | #define __assign_str(dst) \ | make[3]: *** [scripts/Makefile.build:229: /tmp/amd.7AEci9m9/scheduler/sched_fence.o] Error 1 In file included from ./include/linux/percpu.h:5, from ./arch/x86/include/asm/msr.h:15, from ./arch/x86/include/asm/tsc.h:10, from ./arch/x86/include/asm/timex.h:6, from ./include/linux/timex.h:67, from ./include/linux/time32.h:13, from ./include/linux/time.h:60, from ./include/linux/jiffies.h:10, from ./include/linux/ktime.h:25, from ./include/linux/timer.h:6, from ./include/linux/workqueue.h:9, from ./include/linux/mm_types.h:19, from ./include/linux/mmzone.h:22, from ./include/linux/gfp.h:7, from /tmp/amd.7AEci9m9/include/kcl/kcl_kernel.h:6, from /tmp/amd.7AEci9m9/ttm/backport/backport.h:6, from <command-line>: ./include/linux/alloc_tag.h:217:2: error: expected identifier or ‘(’ before ‘{’ token 217 | ({ \ | ^ ./include/linux/slab.h:1053:49: note: in expansion of macro ‘alloc_hooks’ 1053 | #define kvrealloc(...) alloc_hooks(kvrealloc_noprof(__VA_ARGS__)) | ^~~~~~~~~~~ /tmp/amd.7AEci9m9/include/kcl/kcl_slab.h:42:14: note: in expansion of macro ‘kvrealloc’ 42 | extern void *kvrealloc(const void *p, size_t oldsize, size_t newsize, gfp_t flags); | ^~~~~~~~~ CC [M] /tmp/amd.7AEci9m9/amd/amdgpu/amdgpu_doorbell_mgr.o make[3]: *** [scripts/Makefile.build:229: /tmp/amd.7AEci9m9/scheduler/sched_main.o] Error 1 make[2]: *** [scripts/Makefile.build:478: /tmp/amd.7AEci9m9/scheduler] Error 2 make[2]: *** Waiting for unfinished jobs.... CC [M] /tmp/amd.7AEci9m9/ttm/ttm_bo.o make[3]: *** [scripts/Makefile.build:229: /tmp/amd.7AEci9m9/ttm/ttm_tt.o] Error 1 make[3]: *** Waiting for unfinished jobs.... CC [M] /tmp/amd.7AEci9m9/amd/amdgpu/amdgpu_kms.o In file included from ./include/linux/percpu.h:5, from ./arch/x86/include/asm/msr.h:15, from ./arch/x86/include/asm/tsc.h:10, from ./arch/x86/include/asm/timex.h:6, from ./include/linux/timex.h:67, from ./include/linux/time32.h:13, from ./include/linux/time.h:60, from ./include/linux/stat.h:19, from ./include/linux/module.h:13, from /tmp/amd.7AEci9m9/include/kcl/kcl_moduleparam.h:5, from /tmp/amd.7AEci9m9/amd/backport/backport.h:7, from <command-line>: ./include/linux/alloc_tag.h:217:2: error: expected identifier or ‘(’ before ‘{’ token 217 | ({ \ | ^ ./include/linux/slab.h:1053:49: note: in expansion of macro ‘alloc_hooks’ 1053 | #define kvrealloc(...) alloc_hooks(kvrealloc_noprof(__VA_ARGS__)) | ^~~~~~~~~~~ /tmp/amd.7AEci9m9/include/kcl/kcl_slab.h:42:14: note: in expansion of macro ‘kvrealloc’ 42 | extern void *kvrealloc(const void *p, size_t oldsize, size_t newsize, gfp_t flags); | ^~~~~~~~~ LD [M] /tmp/amd.7AEci9m9/amd/amdxcp/amdxcp.o In file included from ./include/linux/percpu.h:5, from ./arch/x86/include/asm/msr.h:15, from ./arch/x86/include/asm/tsc.h:10, from ./arch/x86/include/asm/timex.h:6, from ./include/linux/timex.h:67, from ./include/linux/time32.h:13, from ./include/linux/time.h:60, from ./include/linux/jiffies.h:10, from ./include/linux/ktime.h:25, from ./include/linux/timer.h:6, from ./include/linux/workqueue.h:9, from ./include/linux/mm_types.h:19, from ./include/linux/mmzone.h:22, from ./include/linux/gfp.h:7, from /tmp/amd.7AEci9m9/include/kcl/kcl_kernel.h:6, from /tmp/amd.7AEci9m9/ttm/backport/backport.h:6, from <command-line>: ./include/linux/alloc_tag.h:217:2: error: expected identifier or ‘(’ before ‘{’ token 217 | ({ \ | ^ ./include/linux/slab.h:1053:49: note: in expansion of macro ‘alloc_hooks’ 1053 | #define kvrealloc(...) alloc_hooks(kvrealloc_noprof(__VA_ARGS__)) | ^~~~~~~~~~~ /tmp/amd.7AEci9m9/include/kcl/kcl_slab.h:42:14: note: in expansion of macro ‘kvrealloc’ 42 | extern void *kvrealloc(const void *p, size_t oldsize, size_t newsize, gfp_t flags); | ^~~~~~~~~ In file included from ./include/linux/percpu.h:5, from ./arch/x86/include/asm/msr.h:15, from ./arch/x86/include/asm/tsc.h:10, from ./arch/x86/include/asm/timex.h:6, from ./include/linux/timex.h:67, from ./include/linux/time32.h:13, from ./include/linux/time.h:60, from ./include/linux/stat.h:19, from ./include/linux/module.h:13, from /tmp/amd.7AEci9m9/include/kcl/kcl_moduleparam.h:5, from /tmp/amd.7AEci9m9/amd/backport/backport.h:7, from <command-line>: ./include/linux/alloc_tag.h:217:2: error: expected identifier or ‘(’ before ‘{’ token 217 | ({ \ | ^ ./include/linux/slab.h:1053:49: note: in expansion of macro ‘alloc_hooks’ 1053 | #define kvrealloc(...) alloc_hooks(kvrealloc_noprof(__VA_ARGS__)) | ^~~~~~~~~~~ /tmp/amd.7AEci9m9/include/kcl/kcl_slab.h:42:14: note: in expansion of macro ‘kvrealloc’ 42 | extern void *kvrealloc(const void *p, size_t oldsize, size_t newsize, gfp_t flags); | ^~~~~~~~~ In file included from ./include/linux/percpu.h:5, from ./arch/x86/include/asm/msr.h:15, from ./arch/x86/include/asm/tsc.h:10, from ./arch/x86/include/asm/timex.h:6, from ./include/linux/timex.h:67, from ./include/linux/time32.h:13, from ./include/linux/time.h:60, from ./include/linux/stat.h:19, from ./include/linux/module.h:13, from /tmp/amd.7AEci9m9/include/kcl/kcl_moduleparam.h:5, from /tmp/amd.7AEci9m9/amd/backport/backport.h:7, from <command-line>: ./include/linux/alloc_tag.h:217:2: error: expected identifier or ‘(’ before ‘{’ token 217 | ({ \ | ^ ./include/linux/slab.h:1053:49: note: in expansion of macro ‘alloc_hooks’ 1053 | #define kvrealloc(...) alloc_hooks(kvrealloc_noprof(__VA_ARGS__)) | ^~~~~~~~~~~ /tmp/amd.7AEci9m9/include/kcl/kcl_slab.h:42:14: note: in expansion of macro ‘kvrealloc’ 42 | extern void *kvrealloc(const void *p, size_t oldsize, size_t newsize, gfp_t flags); | ^~~~~~~~~ CC [M] /tmp/amd.7AEci9m9/amd/amdgpu/amdgpu_atombios.o make[3]: *** [scripts/Makefile.build:229: /tmp/amd.7AEci9m9/ttm/ttm_bo.o] Error 1 make[2]: *** [scripts/Makefile.build:478: /tmp/amd.7AEci9m9/ttm] Error 2 CC [M] /tmp/amd.7AEci9m9/amd/amdgpu/atombios_crtc.o make[3]: *** [scripts/Makefile.build:229: /tmp/amd.7AEci9m9/amd/amdgpu/amdgpu_doorbell_mgr.o] Error 1 make[3]: *** Waiting for unfinished jobs.... /tmp/amd.7AEci9m9/amd/amdgpu/amdgpu_drv.c: In function ‘amdgpu_pci_probe’: /tmp/amd.7AEci9m9/amd/amdgpu/amdgpu_drv.c:2390:25: error: implicit declaration of function ‘drm_fbdev_generic_setup’ [-Werror=implicit-function-declaration] 2390 | drm_fbdev_generic_setup(adev_to_drm(adev), 8); | ^~~~~~~~~~~~~~~~~~~~~~~ /tmp/amd.7AEci9m9/amd/amdgpu/amdgpu_drv.c: At top level: /tmp/amd.7AEci9m9/amd/amdgpu/amdgpu_drv.c:3031:10: error: ‘struct drm_driver’ has no member named ‘lastclose’; did you mean ‘postclose’? 3031 | .lastclose = amdgpu_driver_lastclose_kms, | ^~~~~~~~~ | postclose /tmp/amd.7AEci9m9/amd/amdgpu/amdgpu_drv.c:3111:10: error: ‘const struct drm_driver’ has no member named ‘lastclose’; did you mean ‘postclose’? 3111 | .lastclose = amdgpu_driver_lastclose_kms, | ^~~~~~~~~ | postclose cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:229: /tmp/amd.7AEci9m9/amd/amdgpu/amdgpu_drv.o] Error 1 In file included from ./include/linux/percpu.h:5, from ./arch/x86/include/asm/msr.h:15, from ./arch/x86/include/asm/tsc.h:10, from ./arch/x86/include/asm/timex.h:6, from ./include/linux/timex.h:67, from ./include/linux/time32.h:13, from ./include/linux/time.h:60, from ./include/linux/stat.h:19, from ./include/linux/module.h:13, from /tmp/amd.7AEci9m9/include/kcl/kcl_moduleparam.h:5, from /tmp/amd.7AEci9m9/amd/backport/backport.h:7, from <command-line>: ./include/linux/alloc_tag.h:217:2: error: expected identifier or ‘(’ before ‘{’ token 217 | ({ \ | ^ ./include/linux/slab.h:1053:49: note: in expansion of macro ‘alloc_hooks’ 1053 | #define kvrealloc(...) alloc_hooks(kvrealloc_noprof(__VA_ARGS__)) | ^~~~~~~~~~~ /tmp/amd.7AEci9m9/include/kcl/kcl_slab.h:42:14: note: in expansion of macro ‘kvrealloc’ 42 | extern void *kvrealloc(const void *p, size_t oldsize, size_t newsize, gfp_t flags); | ^~~~~~~~~ make[3]: *** [scripts/Makefile.build:229: /tmp/amd.7AEci9m9/amd/amdgpu/amdgpu_device.o] Error 1 make[3]: *** [scripts/Makefile.build:229: /tmp/amd.7AEci9m9/amd/amdgpu/amdgpu_kms.o] Error 1 In file included from ./include/linux/percpu.h:5, from ./arch/x86/include/asm/msr.h:15, from ./arch/x86/include/asm/tsc.h:10, from ./arch/x86/include/asm/timex.h:6, from ./include/linux/timex.h:67, from ./include/linux/time32.h:13, from ./include/linux/time.h:60, from ./include/linux/stat.h:19, from ./include/linux/module.h:13, from /tmp/amd.7AEci9m9/include/kcl/kcl_moduleparam.h:5, from /tmp/amd.7AEci9m9/amd/backport/backport.h:7, from <command-line>: ./include/linux/alloc_tag.h:217:2: error: expected identifier or ‘(’ before ‘{’ token 217 | ({ \ | ^ ./include/linux/slab.h:1053:49: note: in expansion of macro ‘alloc_hooks’ 1053 | #define kvrealloc(...) alloc_hooks(kvrealloc_noprof(__VA_ARGS__)) | ^~~~~~~~~~~ /tmp/amd.7AEci9m9/include/kcl/kcl_slab.h:42:14: note: in expansion of macro ‘kvrealloc’ 42 | extern void *kvrealloc(const void *p, size_t oldsize, size_t newsize, gfp_t flags); | ^~~~~~~~~ In file included from ./include/linux/percpu.h:5, from ./arch/x86/include/asm/msr.h:15, from ./arch/x86/include/asm/tsc.h:10, from ./arch/x86/include/asm/timex.h:6, from ./include/linux/timex.h:67, from ./include/linux/time32.h:13, from ./include/linux/time.h:60, from ./include/linux/stat.h:19, from ./include/linux/module.h:13, from /tmp/amd.7AEci9m9/include/kcl/kcl_moduleparam.h:5, from /tmp/amd.7AEci9m9/amd/backport/backport.h:7, from <command-line>: ./include/linux/alloc_tag.h:217:2: error: expected identifier or ‘(’ before ‘{’ token 217 | ({ \ | ^ ./include/linux/slab.h:1053:49: note: in expansion of macro ‘alloc_hooks’ 1053 | #define kvrealloc(...) alloc_hooks(kvrealloc_noprof(__VA_ARGS__)) | ^~~~~~~~~~~ /tmp/amd.7AEci9m9/include/kcl/kcl_slab.h:42:14: note: in expansion of macro ‘kvrealloc’ 42 | extern void *kvrealloc(const void *p, size_t oldsize, size_t newsize, gfp_t flags); | ^~~~~~~~~ make[3]: *** [scripts/Makefile.build:229: /tmp/amd.7AEci9m9/amd/amdgpu/amdgpu_atombios.o] Error 1 make[3]: *** [scripts/Makefile.build:229: /tmp/amd.7AEci9m9/amd/amdgpu/atombios_crtc.o] Error 1 make[2]: *** [scripts/Makefile.build:478: /tmp/amd.7AEci9m9/amd/amdgpu] Error 2 make[1]: *** [/usr/src/linux-headers-6.12.8-1-liquorix-amd64/Makefile:1948: /tmp/amd.7AEci9m9] Error 2 make: *** [Makefile:224: __sub-make] Error 2 make: Leaving directory '/usr/src/linux-headers-6.12.8-1-liquorix-amd64' Extracting and building from .deb (deb-src): :: Code ::
ubuntu@ubuntu:~/Downloads/dkms-extract/usr/src/amdgpu-6.3.6-1697589.22.04$ ls amd dkms.conf drm_buddy.c drm_gem_ttm_helper.c include Makefile nano.30034.save scheduler ttm ubuntu@ubuntu:~/Downloads/dkms-extract/usr/src/amdgpu-6.3.6-1697589.22.04$ make Makefile:38: *** CONFIG_DRM disabled, exit.... Stop. Back to top |
|||||
Why are you attempting to install an out-of-tree variant of amdgpu? It's already part of Liquorix. Installing amdgpu DKMS is only useful if you run an ancient kernel and want the updates for performance, stability, features, or hardware support.
Back to top |
|||||
A game complained that the AMD drivers were out of date. Should I just rebuild the module instead of trying to pull from a source? Or could this be a conflict from keeping the Ubuntu "generic" kernel alongside Liquorix?
Back to top |
|||||
If you're talking about games through Steam/Proton, games that try to detect your driver version will always get it wrong, the version given between Linux and Windows are completely different and have no resemblance to each other.
However, you can always add an updated mesa stack to your system by using this PPA: launchpad.net/~oibaf/+archive/ubuntu/graphics-drivers Use at your own risk. Back to top |
|||||
Marking this as resolved, your only option is to update mesa and the error you're seeing is benign.
Back to top |
|||||
All times are GMT - 8 Hours
|