您尚未登录。

#1 2021-02-09 15:15:34

Bingheng
会员
注册时间: 2021-02-09
帖子: 1

anbox-modules-dkms-git 安装失败

如题,实际上是 dkms install --no-depmod -m anbox-modules-binder -v 1324.165db5c -k 5.10.12-zen1-1-zen-anbox 运行失败了。
返回了

Error! Bad return status for module build on kernel: 5.10.12-zen1-1-zen-anbox (x86_64)
Consult /var/lib/dkms/anbox-modules-binder/1324.165db5c/build/make.log for more information.

而 /var/lib/dkms/anbox-modules-binder/1324.165db5c/build/make.log 中的内容是:

DKMS make.log for anbox-modules-binder-1324.165db5c for kernel 5.10.12-zen1-1-zen-anbox (x86_64)
2021年 02月 09日 星期二 15:10:47 CST
make -C /lib/modules/5.10.12-zen1-1-zen-anbox/build V=0 M=$PWD
make[1]: 进入目录“/usr/lib/modules/5.10.12-zen1-1-zen-anbox/build”
  CC [M]  /var/lib/dkms/anbox-modules-binder/1324.165db5c/build/deps.o
  CC [M]  /var/lib/dkms/anbox-modules-binder/1324.165db5c/build/binder.o
In file included from ././include/linux/kconfig.h:7,
                 from <命令行>:
./include/generated/autoconf.h:4010: 警告:“CONFIG_ANDROID_BINDER_DEVICES”重定义
 4010 | #define CONFIG_ANDROID_BINDER_DEVICES "binder,hwbinder,vndbinder"
      | 
In file included from ././include/linux/kconfig.h:7,
                 from <命令行>:
./include/generated/autoconf.h:4010: 警告:“CONFIG_ANDROID_BINDER_DEVICES”重定义
 4010 | #define CONFIG_ANDROID_BINDER_DEVICES "binder,hwbinder,vndbinder"
      | 
<命令行>: 附注:这是先前定义的位置
<命令行>: 附注:这是先前定义的位置
/var/lib/dkms/anbox-modules-binder/1324.165db5c/build/binder.c: 在函数‘binder_update_page_range’中:
/var/lib/dkms/anbox-modules-binder/1324.165db5c/build/binder.c:633:19: 错误:‘struct mm_struct’ has no member named ‘mmap_sem’; did you mean ‘mmap_base’?
  633 |   down_write(&mm->mmap_sem);
      |                   ^~~~~~~~
      |                   mmap_base
/var/lib/dkms/anbox-modules-binder/1324.165db5c/build/binder.c:683:17: 错误:‘struct mm_struct’ has no member named ‘mmap_sem’; did you mean ‘mmap_base’?
  683 |   up_write(&mm->mmap_sem);
      |                 ^~~~~~~~
      |                 mmap_base
/var/lib/dkms/anbox-modules-binder/1324.165db5c/build/binder.c:710:17: 错误:‘struct mm_struct’ has no member named ‘mmap_sem’; did you mean ‘mmap_base’?
  710 |   up_write(&mm->mmap_sem);
      |                 ^~~~~~~~
      |                 mmap_base
make[2]: *** [scripts/Makefile.build:279:/var/lib/dkms/anbox-modules-binder/1324.165db5c/build/binder.o] 错误 1
make[1]: *** [Makefile:1805:/var/lib/dkms/anbox-modules-binder/1324.165db5c/build] 错误 2
make[1]: 离开目录“/usr/lib/modules/5.10.12-zen1-1-zen-anbox/build”
make: *** [Makefile:8:all] 错误 2

安装了 linux-zen 与 linux-zen-anbox ,都没有解决。依然是在运行 sudo modprobe  -a binder-linux ashmem-linux 时,返回

modprobe: WARNING: Module binder-linux not found in directory /lib/modules/5.10.13-arch1-1
modprobe: WARNING: Module ashmem-linux not found in directory /lib/modules/5.10.13-arch1-1

如何解决?

离线

#2 2021-02-09 17:11:09

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 6,217
个人网站

Re: anbox-modules-dkms-git 安装失败

这个不是收进树内了么。

离线

页脚