Çözüldü Anbox Modülleri Derlenmiyor

Bu konu çözüldü olarak işaretlenmiştir. Çözülmediğini düşünüyorsanız konuyu rapor edebilirsiniz.
Durum
Mesaj gönderimine kapalı.
Katılım
6 Temmuz 2018
Mesajlar
13.383
Makaleler
20
Çözümler
142
Yer
Nordschleife
Daha fazla  
Cinsiyet
Erkek
Meslek
Öğrenci
Waydroid için bu modüllerin derlenip DKMS ile derlenmesi gerekiyor ancak derleyemedim. 2 çıktısı veriyor.

Bash:
root@crusland:/home/cruslan# cd Belgeler
root@crusland:/home/cruslan/Belgeler# cd Build
root@crusland:/home/cruslan/Belgeler/Build# git clone https://github.com/anbox/anbox-modules.git
Klonlama konumu: 'anbox-modules'...
remote: Enumerating objects: 132, done.
remote: Total 132 (delta 0), reused 0 (delta 0), pack-reused 132
Nesneler alınıyor: 100% (132/132), 68.65 KiB | 418.00 KiB/sn, bitti.
Deltalar çözülüyor: 100% (48/48), bitti.

root@crusland:/home/cruslan/Belgeler/Build# ls
anbox-modules  intel-undervolt
root@crusland:/home/cruslan/Belgeler/Build# cd anbox-modules
root@crusland:/home/cruslan/Belgeler/Build/anbox-modules# sudo cp anbox.conf /etc/modules-load.d/
root@crusland:/home/cruslan/Belgeler/Build/anbox-modules# sudo cp 99-anbox.rules /lib/udev/rules.d/
root@crusland:/home/cruslan/Belgeler/Build/anbox-modules# sudo cp -rT ashmem /usr/src/anbox-ashmem-1
root@crusland:/home/cruslan/Belgeler/Build/anbox-modules# sudo cp -rT binder /usr/src/anbox-binder-1
root@crusland:/home/cruslan/Belgeler/Build/anbox-modules# sudo dkms install anbox-ashmem/1
Sign command: /usr/lib/linux-kbuild-6.1/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Creating symlink /var/lib/dkms/anbox-ashmem/1/source -> /usr/src/anbox-ashmem-1

Building module:
Cleaning build area...
make -j4 KERNELRELEASE=6.1.8-x64v3-xanmod1 all KERNEL_SRC=/lib/modules/6.1.8-x64v3-xanmod1/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.1.8-x64v3-xanmod1 (x86_64)
Consult /var/lib/dkms/anbox-ashmem/1/build/make.log for more information.
root@crusland:/home/cruslan/Belgeler/Build/anbox-modules# sudo dkms install anbox-binder/1
Sign command: /usr/lib/linux-kbuild-6.1/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Creating symlink /var/lib/dkms/anbox-binder/1/source -> /usr/src/anbox-binder-1

Building module:
Cleaning build area...
make -j4 KERNELRELEASE=6.1.8-x64v3-xanmod1 all KERNEL_SRC=/lib/modules/6.1.8-x64v3-xanmod1/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.1.8-x64v3-xanmod1 (x86_64)
Consult /var/lib/dkms/anbox-binder/1/build/make.log for more information.
root@crusland:/home/cruslan/Belgeler/Build/anbox-modules# sudo modprobe ashmem_linux
modprobe: FATAL: Module ashmem_linux not found in directory /lib/modules/6.1.8-x64v3-xanmod1
root@crusland:/home/cruslan/Belgeler/Build/anbox-modules# synaptic
Another synaptic is running. Trying to bring it to the foreground
root@crusland:/home/cruslan/Belgeler/Build/anbox-modules# /lib/modules/6.1.8-x64v3-xanmod1/build
bash: /lib/modules/6.1.8-x64v3-xanmod1/build: Bir dizin
root@crusland:/home/cruslan/Belgeler/Build/anbox-modules# nano /var/lib/dkms/anbox-binder/1/build/make.log
root@crusland:/home/cruslan/Belgeler/Build/anbox-modules# ls -1 /dev/{ashmem,binder}
ls: '/dev/ashmem' ögesine erişilemedi: Böyle bir dosya ya da dizin yok
ls: '/dev/binder' ögesine erişilemedi: Böyle bir dosya ya da dizin yok
root@crusland:/home/cruslan/Belgeler/Build/anbox-modules#

Kod:
 make.log for anbox-ashmem-1 for kernel 6.1.8-x64v3-xanmod1 (x86_64)
Prş 26 Oca 2023 14:21:24 +03
make -C /lib/modules/6.1.8-x64v3-xanmod1/build V=0 M=$PWD
make[1]: Entering directory '/usr/src/linux-headers-6.1.8-x64v3-xanmod1'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: gcc-12 (Debian 12.2.0-9) 12.2.0
  You are using:           gcc (Debian 12.2.0-14) 12.2.0
  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:250: /var/lib/dkms/anbox-ashmem/1/build/ashmem.o] Error 1
make[1]: *** [Makefile:2135: /var/lib/dkms/anbox-ashmem/1/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.1.8-x64v3-xanmod1'
make: *** [Makefile:12: all] Error 2
Kod:
DKMS make.log for anbox-binder-1 for kernel 6.1.8-x64v3-xanmod1 (x86_64)
Prş 26 Oca 2023 14:21:34 +03
make -C /lib/modules/6.1.8-x64v3-xanmod1/build V=0 M=$PWD
make[1]: Entering directory '/usr/src/linux-headers-6.1.8-x64v3-xanmod1'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: gcc-12 (Debian 12.2.0-9) 12.2.0
  You are using:           gcc (Debian 12.2.0-14) 12.2.0
  CC [M]  /var/lib/dkms/anbox-binder/1/build/deps.o
  CC [M]  /var/lib/dkms/anbox-binder/1/build/binder.o
In file included from ././include/linux/kconfig.h:5,
                 from <command-line>:
./include/generated/autoconf.h:4593: warning: "CONFIG_ANDROID_BINDER_DEVICES" redefined
 4593 | #define CONFIG_ANDROID_BINDER_DEVICES "binder,hwbinder,vndbinder"
      |
<command-line>: note: this is the location of the previous definition
In file included from ././include/linux/kconfig.h:5,
                 from <command-line>:
./include/generated/autoconf.h:4593: warning: "CONFIG_ANDROID_BINDER_DEVICES" redefined
 4593 | #define CONFIG_ANDROID_BINDER_DEVICES "binder,hwbinder,vndbinder"
      |
<command-line>: note: this is the location of the previous definition
/var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘task_get_unused_fd_flags’:
/var/lib/dkms/anbox-binder/1/build/binder.c:444:16: error: implicit declaration of function ‘__alloc_fd’ [-Werror=implicit-function-declaration]
  444 |         return __alloc_fd(files, 0, rlim_cur, flags);
      |                ^~~~~~~~~~
/var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘task_fd_install’:
/var/lib/dkms/anbox-binder/1/build/binder.c:454:17: error: implicit declaration of function ‘__fd_install’; did you mean ‘fd_install’? [-Werror=implicit-function-declaration]
  454 |                 __fd_install(proc->files, fd, file);
      |                 ^~~~~~~~~~~~
      |                 fd_install
/var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘task_close_fd’:
/var/lib/dkms/anbox-binder/1/build/binder.c:467:18: error: implicit declaration of function ‘__close_fd’; did you mean ‘close_fd’? [-Werror=implicit-function-declaration]
  467 |         retval = __close_fd(proc->files, fd);
      |                  ^~~~~~~~~~
      |                  close_fd
/var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘binder_update_page_range’:
/var/lib/dkms/anbox-binder/1/build/binder.c:633:33: error: ‘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-binder/1/build/binder.c:663:23: error: implicit declaration of function ‘map_kernel_range_noflush’ [-Werror=implicit-function-declaration]
  663 |                 ret = map_kernel_range_noflush((unsigned long)page_addr,
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/anbox-binder/1/build/binder.c:683:31: error: ‘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-binder/1/build/binder.c:701:17: error: implicit declaration of function ‘unmap_kernel_range’ [-Werror=implicit-function-declaration]
  701 |                 unmap_kernel_range((unsigned long)page_addr, PAGE_SIZE);
      |                 ^~~~~~~~~~~~~~~~~~
/var/lib/dkms/anbox-binder/1/build/binder.c:710:31: error: ‘struct mm_struct’ has no member named ‘mmap_sem’; did you mean ‘mmap_base’?
  710 |                 up_write(&mm->mmap_sem);
      |                               ^~~~~~~~
      |                               mmap_base
/var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘binder_translate_binder’:
/var/lib/dkms/anbox-binder/1/build/binder.c:1626:49: error: passing argument 1 of ‘security_binder_transfer_binder’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 1626 |         if (security_binder_transfer_binder(proc->tsk, target_proc->tsk))
      |                                             ~~~~^~~~~
      |                                                 |
      |                                                 struct task_struct *
In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:48:
./include/linux/security.h:268:56: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
  268 | int security_binder_transfer_binder(const struct cred *from,
      |                                     ~~~~~~~~~~~~~~~~~~~^~~~
/var/lib/dkms/anbox-binder/1/build/binder.c:1626:67: error: passing argument 2 of ‘security_binder_transfer_binder’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 1626 |         if (security_binder_transfer_binder(proc->tsk, target_proc->tsk))
      |                                                        ~~~~~~~~~~~^~~~~
      |                                                                   |
      |                                                                   struct task_struct *
./include/linux/security.h:269:56: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
  269 |                                     const struct cred *to);
      |                                     ~~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘binder_translate_handle’:
/var/lib/dkms/anbox-binder/1/build/binder.c:1668:49: error: passing argument 1 of ‘security_binder_transfer_binder’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 1668 |         if (security_binder_transfer_binder(proc->tsk, target_proc->tsk))
      |                                             ~~~~^~~~~
      |                                                 |
      |                                                 struct task_struct *
./include/linux/security.h:268:56: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
  268 | int security_binder_transfer_binder(const struct cred *from,
      |                                     ~~~~~~~~~~~~~~~~~~~^~~~
/var/lib/dkms/anbox-binder/1/build/binder.c:1668:67: error: passing argument 2 of ‘security_binder_transfer_binder’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 1668 |         if (security_binder_transfer_binder(proc->tsk, target_proc->tsk))
      |                                                        ~~~~~~~~~~~^~~~~
      |                                                                   |
      |                                                                   struct task_struct *
./include/linux/security.h:269:56: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
  269 |                                     const struct cred *to);
      |                                     ~~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘binder_translate_fd’:
/var/lib/dkms/anbox-binder/1/build/binder.c:1740:49: error: passing argument 1 of ‘security_binder_transfer_file’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 1740 |         ret = security_binder_transfer_file(proc->tsk, target_proc->tsk, file);
      |                                             ~~~~^~~~~
      |                                                 |
      |                                                 struct task_struct *
./include/linux/security.h:270:54: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
  270 | int security_binder_transfer_file(const struct cred *from,
      |                                   ~~~~~~~~~~~~~~~~~~~^~~~
/var/lib/dkms/anbox-binder/1/build/binder.c:1740:67: error: passing argument 2 of ‘security_binder_transfer_file’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 1740 |         ret = security_binder_transfer_file(proc->tsk, target_proc->tsk, file);
      |                                                        ~~~~~~~~~~~^~~~~
      |                                                                   |
      |                                                                   struct task_struct *
./include/linux/security.h:271:54: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
  271 |                                   const struct cred *to, struct file *file);
      |                                   ~~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘binder_transaction’:
/var/lib/dkms/anbox-binder/1/build/binder.c:1967:53: error: passing argument 1 of ‘security_binder_transaction’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 1967 |                 if (security_binder_transaction(proc->tsk,
      |                                                 ~~~~^~~~~
      |                                                     |
      |                                                     struct task_struct *
./include/linux/security.h:266:52: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
  266 | int security_binder_transaction(const struct cred *from,
      |                                 ~~~~~~~~~~~~~~~~~~~^~~~
/var/lib/dkms/anbox-binder/1/build/binder.c:1968:60: error: passing argument 2 of ‘security_binder_transaction’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 1968 |                                                 target_proc->tsk) < 0) {
      |                                                 ~~~~~~~~~~~^~~~~
      |                                                            |
      |                                                            struct task_struct *
./include/linux/security.h:267:52: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
  267 |                                 const struct cred *to);
      |                                 ~~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘binder_ioctl_set_ctx_mgr’:
/var/lib/dkms/anbox-binder/1/build/binder.c:3262:51: error: passing argument 1 of ‘security_binder_set_context_mgr’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 3262 |         ret = security_binder_set_context_mgr(proc->tsk);
      |                                               ~~~~^~~~~
      |                                                   |
      |                                                   struct task_struct *
./include/linux/security.h:265:56: note: expected ‘const struct cred *’ but argument is of type ‘struct task_struct *’
  265 | int security_binder_set_context_mgr(const struct cred *mgr);
      |                                     ~~~~~~~~~~~~~~~~~~~^~~
/var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘binder_mmap’:
/var/lib/dkms/anbox-binder/1/build/binder.c:3486:23: error: implicit declaration of function ‘get_files_struct’; did you mean ‘put_files_struct’? [-Werror=implicit-function-declaration]
 3486 |         proc->files = get_files_struct(current);
      |                       ^~~~~~~~~~~~~~~~
      |                       put_files_struct
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:250: /var/lib/dkms/anbox-binder/1/build/binder.o] Error 1
make[1]: *** [Makefile:2135: /var/lib/dkms/anbox-binder/1/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.1.8-x64v3-xanmod1'
make: *** [Makefile:8: all] Error 2

Debian Sid üzerinde Xanmod Stable 6.1.8'in x86_64-v3 çekirdeğini kullanıyorum. Bu çekirdeğin headerleri de yüklü.

Güncelleme; Ashmem isimli çekirdek modülü çekirdekten kaldırılmış. Binder ise hala duruyor. Wayland, ashmem yerine memfd kullanmak üzere düzenlenmiş. Binder'i modül olarak aktif etmem yetti ancak ashmem ve memfd meselesini hala çözemedim.
 
Son düzenleme:
Durum
Mesaj gönderimine kapalı.

Geri
Yukarı