Anbox, cannot access '/dev/binder'

aliquo93

New Member
Credits
34
Hi, I have the same problem described in this thread on Super User:

https://superuser.com/questions/159...dev-binder-no-such-file-or-directory-in-anbox

Anyway, when I run INSTALL.sh as suggested by Yadu, I get the following:

Code:
Kernel preparation unnecessary for this kernel.  Skipping...
    
    Building module:
    cleaning build area...
    make -j4 KERNELRELEASE=5.8.0-38-generic all KERNEL_SRC=/lib/modules/5.8.0-38-generic/build....(bad exit status: 2)
    ERROR (dkms apport): binary package for anbox-ashmem: 1 not found
    Error! Bad return status for module build on kernel: 5.8.0-38-generic (x86_64)
    Consult /var/lib/dkms/anbox-ashmem/1/build/make.log for more information.
    
    Kernel preparation unnecessary for this kernel.  Skipping...
    
    Building module:
    cleaning build area...
    make -j4 KERNELRELEASE=5.8.0-38-generic all KERNEL_SRC=/lib/modules/5.8.0-38-generic/build....(bad exit status: 2)
    ERROR (dkms apport): binary package for anbox-binder: 1 not found
    Error! Bad return status for module build on kernel: 5.8.0-38-generic (x86_64)
    Consult /var/lib/dkms/anbox-binder/1/build/make.log for more information.
    binder_linux          192512  0
    ashmem_linux           20480  0
    ls: impossibile accedere a '/dev/binder': File o directory non esistente
    crw------- 1 root root 10, 58 gen 17 17:32 /dev/ashmem
Any help? I hope that here I can find someone who can help, because on Super User no one cared about my problem. I'm on Kubuntu 20.10.
 


f33dm3bits

Gold Member
Gold Supporter
Credits
12,612
I would do as it says: "Consult /var/lib/dkms/anbox-binder/1/build/make.log for more information." And it seems it can't find the binary package anbox-binder, I would start by looking at those.
 

aliquo93

New Member
Credits
34
I would do as it says: "Consult /var/lib/dkms/anbox-binder/1/build/make.log for more information." And it seems it can't find the binary package anbox-binder, I would start by looking at those.
Hi, thanks for your reply. Here's the content of '/var/lib/dkms/anbox-binder/1/build/make.log':

Code:
DKMS make.log for anbox-binder-1 for kernel 5.8.0-40-generic (x86_64)
Thu Jan 21 13:44:32 CET 2021
make -C /lib/modules/5.8.0-40-generic/build V=0 M=$PWD
make[1]: Entering directory '/usr/src/linux-headers-5.8.0-40-generic'
  AR      /var/lib/dkms/anbox-binder/1/build/built-in.a
  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:7,
                 from <command-line>:
./include/generated/autoconf.h:4296: warning: "CONFIG_ANDROID_BINDER_DEVICES" redefined
 4296 | #define CONFIG_ANDROID_BINDER_DEVICES ""
      |
<command-line>: note: this is the location of the previous definition
In file included from ././include/linux/kconfig.h:7,
                 from <command-line>:
./include/generated/autoconf.h:4296: warning: "CONFIG_ANDROID_BINDER_DEVICES" redefined
 4296 | #define CONFIG_ANDROID_BINDER_DEVICES ""
      |
<command-line>: note: this is the location of the previous definition
/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:19: 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:683:17: 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:710:17: error: '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:288: /var/lib/dkms/anbox-binder/1/build/binder.o] Error 1
make[1]: *** [Makefile:1780: /var/lib/dkms/anbox-binder/1/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.8.0-40-generic'
make: *** [Makefile:8: all] Error 2
 

f33dm3bits

Gold Member
Gold Supporter
Credits
12,612
What distribution are you running?
 

f33dm3bits

Gold Member
Gold Supporter
Credits
12,612
I was able to build it without any problems. What happens when you run these commands from the command-line seperately from that anbox-modules git directory, can you share the output?
Code:
sudo dkms install anbox-ashmem/1
sudo dkms install anbox-binder/1
 

aliquo93

New Member
Credits
34
I was able to build it without any problems. What happens when you run these commands from the command-line seperately from that anbox-modules git directory, can you share the output?
Code:
sudo dkms install anbox-ashmem/1
sudo dkms install anbox-binder/1
Code:
[email protected]e-HP:~$ sudo dkms install anbox-ashmem/1
[sudo] password di daniele:

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j4 KERNELRELEASE=5.8.0-40-generic all KERNEL_SRC=/lib/modules/5.8.0-40-generic/build....(bad exit status: 2)
ERROR (dkms apport): binary package for anbox-ashmem: 1 not found
Error! Bad return status for module build on kernel: 5.8.0-40-generic (x86_64)
Consult /var/lib/dkms/anbox-ashmem/1/build/make.log for more information.
[email protected]:~$ sudo dkms install anbox-binder/1

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j4 KERNELRELEASE=5.8.0-40-generic all KERNEL_SRC=/lib/modules/5.8.0-40-generic/build....(bad exit status: 2)
ERROR (dkms apport): binary package for anbox-binder: 1 not found
Error! Bad return status for module build on kernel: 5.8.0-40-generic (x86_64)
Consult /var/lib/dkms/anbox-binder/1/build/make.log for more information.
[email protected]:~$
 

f33dm3bits

Gold Member
Gold Supporter
Credits
12,612
Looks like it's a bug with kernel 5.8.x:
Can you share the output of the following:
Code:
lsmod | egrep "binder|ashmem"
 

aliquo93

New Member
Credits
34
Looks like it's a bug with kernel 5.8.x:
Can you share the output of the following:
Code:
lsmod | egrep "binder|ashmem"
Code:
[email protected]:~$ lsmod | egrep "binder|ashmem"
binder_linux          192512  0
ashmem_linux           20480  0
[email protected]:~$
 

f33dm3bits

Gold Member
Gold Supporter
Credits
12,612
Code:
[email protected]:~$ lsmod | egrep "binder|ashmem"
binder_linux          192512  0
ashmem_linux           20480  0
[email protected]:~$
That means the modules you install are already loaded so you should be good to go according to what is mentioned in the github issue, if not you will have to wait until they fix the bug.
 

Members online


Top