-
Notifications
You must be signed in to change notification settings - Fork 230
binder modules fails to build #21
Comments
Same thing occurs on Manjaro with 5.2rc0 kernel
make.log:
|
Same.
Let me know if more information is required. |
I didn't find the original source anymore and don't know how to properly build a patch file, but here is what I did: I replaced the lines in the file binder.c starting on line 3394: with the following lines: then run 'make' again. (The 'ashmem' module needs to be built separately, but no errors there). The modules should be built then. Insert them with 'modprobe'. |
Tried the ^^above^^ code change. Receiving the following error:
And this is from make.log:
To anyone reading this, let me know if you require any more information. |
This fork works for me on 5.1 and 5.2 |
seems to be a similiar or the same issue as: Temporary fix until merged |
@tyedco solution is working for me too.
I see the fix is uploaded already at anbox/anbox-modules
then all is good now so we can do next steps:
then
and
and all problems is solved. I dont want to be pendantic here but i put the commands only because copy & paste is the best speedy solution even for console commands. And Midnight Commander is THE console king ... and mcedit How to switch the editor in mc from nano to mcedit is more better, SHIFT + INSERT hint hint, that nano or vim for fresh penguins |
Hi, I am getting eventhough make is through, I installed it with checkinstall on Ubuntu and modprobe no compaints |
I tried everything in #21 (comment) But I'm still getting Logs: joe733 in ~/Downloads at xpsl502x
➜ code /var/lib/dkms/anbox/1/source/binder/binder.c
joe733 in ~/Downloads at xpsl502x took 3s
➜ sudo dkms autoinstall
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
'make' -j4 -C ashmem KERNEL_SRC=/lib/modules/5.4.0-48-generic/build && make -j4 -C binder KERNEL_SRC=/lib/modules/5.4.0-48-generic/build.....
cleaning build area...
DKMS: build completed.
ashmem_linux.ko:
Running module version sanity check.
- Original module
- Found /lib/modules/5.4.0-48-generic/kernel/drivers/staging/android/ashmem_linux.ko
- Storing in /var/lib/dkms/anbox/original_module/5.4.0-48-generic/x86_64/
- Archiving for uninstallation purposes
- Installation
- Installing to /lib/modules/5.4.0-48-generic/extra/
binder_linux.ko:
Running module version sanity check.
- Original module
- Found /lib/modules/5.4.0-48-generic/kernel/drivers/android/binder_linux.ko
- Storing in /var/lib/dkms/anbox/original_module/5.4.0-48-generic/x86_64/
- Archiving for uninstallation purposes
- Installation
- Installing to /lib/modules/5.4.0-48-generic/extra/
depmod.......
DKMS: install completed.
joe733 in ~/Downloads at xpsl502x took 22s
➜ modinfo ashmem_linux
filename: /lib/modules/5.4.0-48-generic/extra/ashmem_linux.ko
license: GPL
srcversion: 12E29970BD9D45CA6A1D6B8
depends:
retpoline: Y
name: ashmem_linux
vermagic: 5.4.0-48-generic SMP mod_unload
joe733 in ~/Downloads at xpsl502x
➜ modinfo binder_linux
filename: /lib/modules/5.4.0-48-generic/extra/binder_linux.ko
license: GPL v2
srcversion: 0983825193E99D7FE5A0EC1
depends:
retpoline: Y
name: binder_linux
vermagic: 5.4.0-48-generic SMP mod_unload
parm: debug_mask:uint
parm: proc_no_lock:bool
parm: num_devices:int
joe733 in ~/Downloads at xpsl502x
➜ modprobe ashmem_linux
joe733 in ~/Downloads at xpsl502x
➜ modprobe binder_linux
joe733 in ~/Downloads at xpsl502x
➜ lsmod | grep binder
binder_linux 176128 0
joe733 in ~/Downloads at xpsl502x
➜ lsmod | grep ashmem
ashmem_linux 20480 0
joe733 in ~/Downloads at xpsl502x
➜ ls -1 /dev/{ashmem,binder}
ls: cannot access '/dev/binder': No such file or directory
/dev/ashmem Edit: |
For centos 8 I needed to use the following: #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 1, 0) |
It fails with the following error:
DKMS make.log for anbox-modules-binder-r1096.ea2b7a3 for kernel 5.1.3-arch1-1-ARCH (x86_64)
Wed May 22 11:53:23 NZST 2019
make -C /lib/modules/5.1.3-arch1-1-ARCH/build V=0 M=$PWD
make[1]: Entering directory '/usr/lib/modules/5.1.3-arch1-1-ARCH/build'
CC [M] /var/lib/dkms/anbox-modules-binder/r1096.ea2b7a3/build/deps.o
CC [M] /var/lib/dkms/anbox-modules-binder/r1096.ea2b7a3/build/binder.o
/var/lib/dkms/anbox-modules-binder/r1096.ea2b7a3/build/binder.c:3406:11: error: initialization of ‘vm_fault_t (*)(struct vm_fault )’ {aka ‘unsigned int ()(struct vm_fault )’} from incompatible pointer type ‘int ()(struct vm_fault *)’ [-Werror=incompatible-pointer-types]
.fault = binder_vm_fault,
^~~~~~~~~~~~~~~
/var/lib/dkms/anbox-modules-binder/r1096.ea2b7a3/build/binder.c:3406:11: note: (near initialization for ‘binder_vm_ops.fault’)
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:275: /var/lib/dkms/anbox-modules-binder/r1096.ea2b7a3/build/binder.o] Error 1
make[1]: *** [Makefile:1571: module/var/lib/dkms/anbox-modules-binder/r1096.ea2b7a3/build] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.1.3-arch1-1-ARCH/build'
make: *** [Makefile:8: all] Error 2
The text was updated successfully, but these errors were encountered: