-
Notifications
You must be signed in to change notification settings - Fork 230
In fedora 37, when install kernel module by dkms there's some issue reported #104
Comments
I'm having the same issue. |
+1 |
That is correct 👍 ⚡ you could try to adapt my write up from the fedora documentation: |
Today I wanted to upgrade my Debian 11 to 12 and in the process new kernel modules was attempted to be compiled with the same error. |
I do not know what will I loose/not work, but I uninstalled linux-headers and only installed linux-image 6.1.0-9 and so far I see no issues. But what will I loose without these modules installed? |
To clarify you need to build ASHMEM with patches from user choff on github as a module for use with anbox as anbox IS a container system.. First of all it is recommend to clean installed binder and ashmem modules out of dkms beforehand: sudo dkms remove -m anbox-ashmem/1 --all And then you can look here to rebuild the fedora kernel with enabled BINDER inside the ".config" file. Hope this helps a bit 🙂 |
DKMS make.log for anbox-ashmem-1 for kernel 6.0.16-300.fc37.x86_64 (x86_64)
Sun Jan 8 01:13:59 PM CST 2023
make -C /lib/modules/6.0.16-300.fc37.x86_64/build V=0 M=$PWD
make[1]: Entering directory '/usr/src/kernels/6.0.16-300.fc37.x86_64'
CC [M] /var/lib/dkms/anbox-ashmem/1/build/deps.o
CC [M] /var/lib/dkms/anbox-ashmem/1/build/ashmem.o
/var/lib/dkms/anbox-ashmem/1/build/ashmem.c: In function ‘ashmem_init’:
/var/lib/dkms/anbox-ashmem/1/build/ashmem.c:877:9: error: too few arguments to function ‘register_shrinker’
877 | register_shrinker(&ashmem_shrinker);
| ^~~~~~~~~~~~~~~~~
In file included from ./include/linux/list_lru.h:13,
from ./include/linux/fs.h:13,
from /var/lib/dkms/anbox-ashmem/1/build/ashmem.c:25:
./include/linux/shrinker.h:99:27: note: declared here
99 | extern int __printf(2, 3) register_shrinker(struct shrinker *shrinker,
| ^~~~~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:249: /var/lib/dkms/anbox-ashmem/1/build/ashmem.o] Error 1
make[1]: *** [Makefile:1856: /var/lib/dkms/anbox-ashmem/1/build] Error 2
make[1]: Leaving directory '/usr/src/kernels/6.0.16-300.fc37.x86_64'
make: *** [Makefile:12: all] Error 2
The text was updated successfully, but these errors were encountered: