cancel
Showing results for 
Search instead for 
Did you mean: 

Drivers & Software

lbharti
Journeyman III

Ubuntu 23.10 DKMS error

Hi. I am trying to install amdgpu-pro on my Ubuntu 23.10 system. Everything goes well but the DKMS compilation fails. Build log is attached:

```

DKMS make.log for amdgpu-6.2.4-1683306.22.04 for kernel 6.5.0-13-generic (x86_64)
Wed Nov 22 09:09:49 AM IST 2023
make: Entering directory '/usr/src/linux-headers-6.5.0-13-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0
You are using: gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0
CC [M] /var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/scheduler/sched_main.o
CC [M] /var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/amd/amdxcp/amdgpu_xcp_drv.o
CC [M] /var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/ttm/ttm_tt.o
CC [M] /var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/amd/amdgpu/amdgpu_drv.o
In file included from /var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/ttm/backport/backport.h:15,
from <command-line>:
/var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/backport/kcl_mm_backport.h: In function ‘kcl_get_user_pages_remote’:
/var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:38: error: passing argument 1 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types]
36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE),
| ^~~
| |
| struct task_struct *
In file included from ./include/linux/scatterlist.h:8,
from ./include/linux/dma-mapping.h:11,
from /var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/kcl_dma_mapping.h:5,
from /var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/ttm/backport/backport.h:8:
./include/linux/mm.h:2397:46: note: expected ‘struct mm_struct *’ but argument is of type ‘struct task_struct *’
2397 | long get_user_pages_remote(struct mm_struct *mm,
| ~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:43: warning: passing argument 2 of ‘get_user_pages_remote’ makes integer from pointer without a cast [-Wint-conversion]
36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE),
| ^~
| |
| struct mm_struct *
./include/linux/mm.h:2398:42: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’
2398 | unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:64: warning: passing argument 5 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion]
36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
./include/linux/mm.h:2399:66: note: expected ‘struct page **’ but argument is of type ‘int’
2399 | unsigned int gup_flags, struct page **pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/backport/kcl_mm_backport.h:37:38: warning: passing argument 6 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion]
37 | !!(gup_flags & FOLL_FORCE), pages, vmas);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
./include/linux/mm.h:2400:33: note: expected ‘int *’ but argument is of type ‘int’
2400 | int *locked);
| ~~~~~^~~~~~
/var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:16: error: too many arguments to function ‘get_user_pages_remote’
36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE),
| ^~~~~~~~~~~~~~~~~~~~~
./include/linux/mm.h:2397:6: note: declared here
2397 | long get_user_pages_remote(struct mm_struct *mm,
| ^~~~~~~~~~~~~~~~~~~~~
In file included from ./arch/x86/include/asm/preempt.h:7,
from ./include/linux/preempt.h:79,
from ./include/linux/spinlock.h:56,
from ./include/linux/mmzone.h:8,
from ./include/linux/gfp.h:7,
from /var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/kcl_kernel.h:6,
from /var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/ttm/backport/backport.h:6:
/var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/backport/kcl_mm_backport.h: In function ‘_kcl_get_user_pages’:
./arch/x86/include/asm/current.h:44:17: warning: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion]
44 | #define current get_current()
| ^~~~~~~~~~~~~
| |
| struct task_struct *
/var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:31: note: in expansion of macro ‘current’
54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE),
| ^~~~~~~
./include/linux/mm.h:2430:35: note: expected ‘long unsigned int’ but argument is of type ‘struct task_struct *’
2430 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:47: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion]
54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE),
./include/linux/mm.h:2430:56: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’
2430 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~~~~
/var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:60: warning: passing argument 4 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion]
54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE),
| ^~~~~~~~
| |
| long unsigned int
./include/linux/mm.h:2431:59: note: expected ‘struct page **’ but argument is of type ‘long unsigned int’
2431 | unsigned int gup_flags, struct page **pages);
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:16: error: too many arguments to function ‘get_user_pages’
54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE),
| ^~~~~~~~~~~~~~
./include/linux/mm.h:2430:6: note: declared here
2430 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:251: /var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/ttm/ttm_tt.o] Error 1
make[2]: *** [scripts/Makefile.build:488: /var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/ttm] Error 2
make[2]: *** Waiting for unfinished jobs....
CC [M] /var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/amd/amdxcp/./backport/kcl_drm_drv.o
CC [M] /var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/amd/amdgpu/amdgpu_device.o
In file included from /var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/amd/backport/backport.h:34,
from <command-line>:
/var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/backport/kcl_mm_backport.h: In function ‘kcl_get_user_pages_remote’:
/var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:38: error: passing argument 1 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types]
36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE),
| ^~~
| |
| struct task_struct *
In file included from ./include/linux/scatterlist.h:8,
from ./include/linux/dma-mapping.h:11,
from /var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/kcl_dma_mapping.h:5,
from /var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/amd/backport/backport.h:12:
./include/linux/mm.h:2397:46: note: expected ‘struct mm_struct *’ but argument is of type ‘struct task_struct *’
2397 | long get_user_pages_remote(struct mm_struct *mm,
| ~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:43: warning: passing argument 2 of ‘get_user_pages_remote’ makes integer from pointer without a cast [-Wint-conversion]
36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE),
| ^~
| |
| struct mm_struct *
./include/linux/mm.h:2398:42: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’
2398 | unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:64: warning: passing argument 5 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion]
36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
./include/linux/mm.h:2399:66: note: expected ‘struct page **’ but argument is of type ‘int’
2399 | unsigned int gup_flags, struct page **pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/backport/kcl_mm_backport.h:37:38: warning: passing argument 6 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion]
37 | !!(gup_flags & FOLL_FORCE), pages, vmas);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
./include/linux/mm.h:2400:33: note: expected ‘int *’ but argument is of type ‘int’
2400 | int *locked);
| ~~~~~^~~~~~
/var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:16: error: too many arguments to function ‘get_user_pages_remote’
36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE),
| ^~~~~~~~~~~~~~~~~~~~~
./include/linux/mm.h:2397:6: note: declared here
2397 | long get_user_pages_remote(struct mm_struct *mm,
| ^~~~~~~~~~~~~~~~~~~~~
In file included from ./arch/x86/include/asm/nospec-branch.h:15,
from ./arch/x86/include/asm/paravirt_types.h:27,
from ./arch/x86/include/asm/ptrace.h:97,
from ./arch/x86/include/asm/math_emu.h:5,
from ./arch/x86/include/asm/processor.h:13,
from ./arch/x86/include/asm/timex.h:5,
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 /var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/kcl_moduleparam.h:5,
from /var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/amd/backport/backport.h:7:
/var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/backport/kcl_mm_backport.h: In function ‘_kcl_get_user_pages’:
./arch/x86/include/asm/current.h:44:17: warning: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion]
44 | #define current get_current()
| ^~~~~~~~~~~~~
| |
| struct task_struct *
/var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:31: note: in expansion of macro ‘current’
54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE),
| ^~~~~~~
./include/linux/mm.h:2430:35: note: expected ‘long unsigned int’ but argument is of type ‘struct task_struct *’
2430 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:47: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion]
54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE),
./include/linux/mm.h:2430:56: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’
2430 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~~~~
/var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:60: warning: passing argument 4 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion]
54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE),
| ^~~~~~~~
| |
| long unsigned int
./include/linux/mm.h:2431:59: note: expected ‘struct page **’ but argument is of type ‘long unsigned int’
2431 | unsigned int gup_flags, struct page **pages);
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:16: error: too many arguments to function ‘get_user_pages’
54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE),
| ^~~~~~~~~~~~~~
./include/linux/mm.h:2430:6: note: declared here
2430 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:251: /var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/amd/amdgpu/amdgpu_drv.o] Error 1
make[3]: *** Waiting for unfinished jobs....
CC [M] /var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/scheduler/sched_fence.o
LD [M] /var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/amd/amdxcp/amdxcp.o
CC [M] /var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/scheduler/sched_entity.o
In file included from /var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/amd/backport/backport.h:34,
from <command-line>:
/var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/backport/kcl_mm_backport.h: In function ‘kcl_get_user_pages_remote’:
/var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:38: error: passing argument 1 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types]
36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE),
| ^~~
| |
| struct task_struct *
In file included from ./include/linux/scatterlist.h:8,
from ./include/linux/dma-mapping.h:11,
from /var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/kcl_dma_mapping.h:5,
from /var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/amd/backport/backport.h:12:
./include/linux/mm.h:2397:46: note: expected ‘struct mm_struct *’ but argument is of type ‘struct task_struct *’
2397 | long get_user_pages_remote(struct mm_struct *mm,
| ~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:43: warning: passing argument 2 of ‘get_user_pages_remote’ makes integer from pointer without a cast [-Wint-conversion]
36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE),
| ^~
| |
| struct mm_struct *
./include/linux/mm.h:2398:42: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’
2398 | unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:64: warning: passing argument 5 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion]
36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
./include/linux/mm.h:2399:66: note: expected ‘struct page **’ but argument is of type ‘int’
2399 | unsigned int gup_flags, struct page **pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/backport/kcl_mm_backport.h:37:38: warning: passing argument 6 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion]
37 | !!(gup_flags & FOLL_FORCE), pages, vmas);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
./include/linux/mm.h:2400:33: note: expected ‘int *’ but argument is of type ‘int’
2400 | int *locked);
| ~~~~~^~~~~~
/var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:16: error: too many arguments to function ‘get_user_pages_remote’
36 | return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE),
| ^~~~~~~~~~~~~~~~~~~~~
./include/linux/mm.h:2397:6: note: declared here
2397 | long get_user_pages_remote(struct mm_struct *mm,
| ^~~~~~~~~~~~~~~~~~~~~
In file included from ./arch/x86/include/asm/nospec-branch.h:15,
from ./arch/x86/include/asm/paravirt_types.h:27,
from ./arch/x86/include/asm/ptrace.h:97,
from ./arch/x86/include/asm/math_emu.h:5,
from ./arch/x86/include/asm/processor.h:13,
from ./arch/x86/include/asm/timex.h:5,
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 /var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/kcl_moduleparam.h:5,
from /var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/amd/backport/backport.h:7:
/var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/backport/kcl_mm_backport.h: In function ‘_kcl_get_user_pages’:
./arch/x86/include/asm/current.h:44:17: warning: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion]
44 | #define current get_current()
| ^~~~~~~~~~~~~
| |
| struct task_struct *
/var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:31: note: in expansion of macro ‘current’
54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE),
| ^~~~~~~
./include/linux/mm.h:2430:35: note: expected ‘long unsigned int’ but argument is of type ‘struct task_struct *’
2430 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:47: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion]
54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE),
./include/linux/mm.h:2430:56: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’
2430 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ~~~~~~~~~~~~~~^~~~~~~~
/var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:60: warning: passing argument 4 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion]
54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE),
| ^~~~~~~~
| |
| long unsigned int
./include/linux/mm.h:2431:59: note: expected ‘struct page **’ but argument is of type ‘long unsigned int’
2431 | unsigned int gup_flags, struct page **pages);
| ~~~~~~~~~~~~~~^~~~~
/var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/backport/kcl_mm_backport.h:54:16: error: too many arguments to function ‘get_user_pages’
54 | return get_user_pages(current, current->mm, start, nr_pages, !!(gup_flags & FOLL_WRITE),
| ^~~~~~~~~~~~~~
./include/linux/mm.h:2430:6: note: declared here
2430 | long get_user_pages(unsigned long start, unsigned long nr_pages,
| ^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:251: /var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/amd/amdgpu/amdgpu_device.o] Error 1
make[2]: *** [scripts/Makefile.build:488: /var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/amd/amdgpu] Error 2
LD [M] /var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/scheduler/amd-sched.o
make[1]: *** [/usr/src/linux-headers-6.5.0-13-generic/Makefile:2037: /var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build] Error 2
make: *** [Makefile:234: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-6.5.0-13-generic'

```

0 Likes
4 Replies
dahs
Journeyman III

I get the same type of errors using the amdgpu-install (5.7.50702-1683306.22.04) on ubuntu 22.04.3 with the 6.5.0-14-generic kernel. Is this kernel version not compatible with the latest driver dkms config?

0 Likes
tyalassio
Adept I

Same on every Ubuntu install, now also on 22.04 which is supposed to be "compatible". I am left with my main computer almost fully broken, it's a pain in the butt...

 

  CC [M]  /var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/ttm/ttm_range_manager.o
  CC [M]  /var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/amd/amdkcl/kcl_kernel_params.o
In file included from /var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/ttm/backport/backport.h:15,
                 from <command-line>:
/var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/backport/kcl_mm_backport.h: In function ‘kcl_get_user_pages_remote’:
/var/lib/dkms/amdgpu/6.2.4-1683306.22.04/build/include/kcl/backport/kcl_mm_backport.h:36:38: error: passing argument 1 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompat>
   36 |         return get_user_pages_remote(tsk, mm, start, nr_pages, !!(gup_flags & FOLL_WRITE),

I have the same error.

I'm dumping AMD GPU cards.  At this juncture, I'm thankful I didn't spend too much on the one I have.  

0 Likes
tyalassio
Adept I

The newest kernels have all sort of errors when compiling AMD DKMS. I would love to help but I don't think we can as their source is controlled by them....

NVIDIA also has similar issues, it will break often (even more than AMD). The most stable so far are INTEL video drivers, because they are embedded in kernels already. I would love to stay with AMD if possible, but considering next laptop to be INTEL again.

In my particular case I must use the AMD driver because otherwise:

  1. The laptop won't suspend, or it will wake up in the bag reaching sun-surface temperatures
  2. The brightness adjust will not work, but if you remove the battery, it will drop to low levels and you cannot bring it up even if you connect the power cable back, the only way is to reboot the computer which, in the middle of setups and meetings, is not really an option.

Cheers,
Simone