Skip to content
This repository was archived by the owner on Feb 13, 2024. It is now read-only.
This repository was archived by the owner on Feb 13, 2024. It is now read-only.

Unable to use "dmks" command to install modules #109

@FangcatChina

Description

@FangcatChina

Here's the console output:

pi@raspberrypi:~ $ sudo dkms install anbox-ashmem/1

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j4 KERNELRELEASE=6.1.21-v8+ all KERNEL_SRC=/lib/modules/6.1.21-v8+/build....(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.1.21-v8+ (aarch64)
Consult /var/lib/dkms/anbox-ashmem/1/build/make.log for more information.

Logs:

KMS make.log for anbox-ashmem-1 for kernel 6.1.21-v8+ (aarch64)
2023年 08月 14日 星期一 10:03:25 CST
make -C /lib/modules/6.1.21-v8+/build V=0 M=$PWD
make[1]: 进入目录“/usr/src/linux-headers-6.1.21-v8+”
  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:2: 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 ./arch/arm64/include/asm/elf.h:141,
                 from ./include/linux/elf.h:6,
                 from ./include/linux/module.h:19,
                 from /var/lib/dkms/anbox-ashmem/1/build/ashmem.c:21:
./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:250:/var/lib/dkms/anbox-ashmem/1/build/ashmem.o] 错误 1
make[1]: *** [Makefile:2012:/var/lib/dkms/anbox-ashmem/1/build] 错误 2
make[1]: 离开目录“/usr/src/linux-headers-6.1.21-v8+”

Running on Raspberry Pi OS(64-bit)(just Debian Bullseye,Aarch64)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions