Git Product home page Git Product logo

anbox-modules's Introduction

IMPORTANT - Hi there 👋

The Anbox project was once ago created in 2017 to bring Android to any Linux based desktop operating system. It's development has however stalled in the past years and it's only fair to say that now in 2023 it's no longer actively developed.

In the past years new alternatives have came up which are carrying the same idea of a containerized Android forward:

If you're looking for a solution to run Android on your Linux desktop:

  • Waydroid is rebuilding the original idea behind Anbox with explicit focus on modern Wayland powered desktop environments.

If you're looking for a solution to run Android in the cloud:

  • Anbox Cloud as a solution developed by Canonical, the company behind Ubuntu, to bring Android at scale to any cloud with support for ultra low latency video streaming and recent Android versions.

The existing repositories will remain as is but no active maintence will be applied going forward.

Thank you all for your support!


Anbox

Anbox is a container-based approach to boot a full Android system on a regular GNU/Linux system like Ubuntu. In other words: Anbox will let you run Android on your Linux system without the slowness of virtualization.

Overview

Anbox uses Linux namespaces (user, pid, uts, net, mount, ipc) to run a full Android system in a container and provide Android applications on any GNU/Linux-based platform.

The Android inside the container has no direct access to any hardware. All hardware access is going through the anbox daemon on the host. We're reusing what Android implemented within the QEMU-based emulator for OpenGL ES accelerated rendering. The Android system inside the container uses different pipes to communicate with the host system and sends all hardware access commands through these.

For more details have a look at the following documentation pages:

Anbox is currently suited for the desktop use case but can be used on mobile operating systems like Ubuntu Touch or postmarketOS (installation instructions). However this is still a work in progress.

The Android runtime environment ships with a minimal customized Android system image based on the Android Open Source Project. The used image is currently based on Android 7.1.1

Installation

See our installation instructions for details.

Supported Linux Distributions

At the moment we officially support the following Linux distributions:

  • Ubuntu 18.04 (bionic)
  • Ubuntu 20.04 (focal)

However all other distributions supporting snap packages should work as well as long as they provide the mandatory kernel support (see documentation).

Install and Run Android Applications

You can install Android applications from the command line using adb.

adb install xyz.apk

The apk files you will sometimes find on the internet tend to only have arm support, and will therefore not work on x86_64.

You may want to install F-Droid to get applications graphically. Note that the Google Play Store will not work as is, because it relies on the proprietary Google Play Services, which are not installed.

Build from source

Requirements

To build the Anbox runtime itself there is nothing special to know. We're using cmake as build system. A few build dependencies need to be present on your host system:

  • libdbus
  • google-mock
  • google-test
  • libboost
  • libboost-filesystem
  • libboost-log
  • libboost-iostreams
  • libboost-program-options
  • libboost-system
  • libboost-test
  • libboost-thread
  • libcap
  • libexpat1-dev
  • libsystemd
  • mesa (libegl1, libgles2)
  • libglm
  • libsdl2
  • libprotobuf
  • protobuf-compiler
  • python3
  • lxc (>= 3.0)

On an Ubuntu system you can install all build dependencies with the following command:

$ sudo apt install build-essential cmake cmake-data debhelper dbus google-mock \
    libboost-dev libboost-filesystem-dev libboost-log-dev libboost-iostreams-dev \
    libboost-program-options-dev libboost-system-dev libboost-test-dev \
    libboost-thread-dev libcap-dev libexpat1-dev libsystemd-dev libegl1-mesa-dev \
    libgles2-mesa-dev libglm-dev libgtest-dev liblxc1 \
    libproperties-cpp-dev libprotobuf-dev libsdl2-dev libsdl2-image-dev lxc-dev \
    pkg-config protobuf-compiler python3-minimal

We recommend Ubuntu 20.04 (focal) as your build environment.

Build

Afterwards you can build Anbox with

$ git clone https://github.com/anbox/anbox.git --recurse-submodules
$ cd anbox
$ mkdir build
$ cd build
$ cmake ..
$ make

A simple

$ sudo make install

will install the necessary bits into your system.

If you want to build the anbox snap instead you can do this with the following steps:

$ ARCH=$(uname -m)
$ cp /path/to/android.img data/android-images/android-$ARCH.img
$ snapcraft

The result will be a .snap file you can install on a system supporting snaps

$ snap install --dangerous --devmode anbox_1_amd64.snap

Run Anbox

Running Anbox from a local build requires a few more things you need to know about. Please have a look at the "Runtime Setup" documentation.

Documentation

You will find additional documentation for Anbox in the docs subdirectory of the project source.

Interesting things to have a look at

Reporting bugs

If you have found an issue with Anbox, please file a bug.

Get in Touch

If you want to get in contact with the developers please feel free to join the #anbox IRC channel on Libera.Chat.

Copyright and Licensing

Anbox reuses code from other projects like the Android QEMU emulator. These projects are available in the external/ subdirectory with the licensing terms included.

The Anbox source itself, if not stated differently in the relevant source files, is licensed under the terms of the GPLv3 license.

anbox-modules's People

Contributors

bentolor avatar devhammed avatar johnstultz-work avatar megies avatar mkhon avatar morphis avatar pevik avatar zhsj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

anbox-modules's Issues

There is no /dev/binder.... binder is always missing in /dev/

daniel  optiplex  ../anbox-modules-master  sudo modprobe ashmem_linux

daniel  optiplex  ../anbox-modules-master  sudo modprobe binder_linux

daniel  optiplex  ../anbox-modules-master  lsmod | grep -e ashmem_linux -e binder_linux
binder_linux 180224 0
ashmem_linux 20480 0

daniel  optiplex  ../anbox-modules-master  ls -alh /dev/binder /dev/ashmem
ls: cannot access '/dev/binder': No such file or directory
crw------- 1 root root 10, 58 Jun 13 12:27 /dev/ashmem

Please kindly help me out

ERROR (dkms apport): kernel package linux-headers-5.2.21-050221-generic is not supported

sudo add-apt-repository ppa:morphis/anbox-support
sudo apt install  anbox-modules-dkms
Loading new anbox-1 DKMS files...
Building for 5.2.21-050221-generic
Building initial module for 5.2.21-050221-generic
ERROR (dkms apport): kernel package linux-headers-5.2.21-050221-generic is not supported
Error! Bad return status for module build on kernel: 5.2.21-050221-generic (x86_64)
Consult /var/lib/dkms/anbox/1/build/make.log for more information.

Not working

Console:

sudo: dkms: command not found
sudo: dkms: command not found
modprobe: ERROR: could not insert 'ashmem_linux': Operation not permitted
binder_linux 180224 0
ls: cannot access '/dev/binder': No such file or directory
ls: cannot access '/dev/ashmem': No such file or directory

udev rules generate errors

NAME="%k" is ignored, because it breaks kernel supplied names, please remove it

The device seems to be created just fine regardless. Not sure if it is necessary to keep it for older systems? Running eudev 3.2.6 and Linux 4.18.

Minimum kernel version/config?

Hi,

I would like to know on which kernel config options (kconfig) anbox build relies on (modules? specific virtualization options?) and what is the minimum kernel version (e.g: is 3.10 Kernel supported?)

Thanks!

Build fails on Fedora 32

uname -a
Linux tgn-ws01-tgn-home 5.6.19-300.fc32.x86_64 #1 SMP Wed Jun 17 16:10:48 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

When running INSTALL.sh

./INSTALL.sh
modprobe: FATAL: Module ashmem_linux not found in directory /lib/modules/5.6.19-300.fc32.x86_64
modprobe: FATAL: Module binder_linux not found in directory /lib/modules/5.6.19-300.fc32.x86_64

Kernel oops caused by ashmem_mem on Fedora 31 running 5.3.16-300.fc31.x86_64

When opening settings, I will get a kernel oops:
Information can be found here: https://retrace.fedoraproject.org/faf/reports/2766265/
The kernel module is built with the latest git version of anbox-modules.
This seems to happen on all 5.3.y version.
...And seems to have something to do with the bug I mentioned here anbox/anbox#1115 (comment) (opening settings will crash the whole wsl 2)

[  512.965908] BUG: unable to handle page fault for address: 0000000040b81000
[  512.965911] #PF: supervisor write access in kernel mode
[  512.965913] #PF: error_code(0x0002) - not-present page
[  512.965914] PGD 5f5c8067 P4D 5f5c8067 PUD 8006f067 PMD 6fb0f067 PTE 0
[  512.965920] Oops: 0002 [#1] SMP NOPTI
[  512.965924] CPU: 2 PID: 4627 Comm: AsyncTask #3 Tainted: G           OE     5.3.16-300.fc31.x86_64 #1
[  512.965925] Hardware name: Hewlett-Packard HP ProBook 4446s/17EA, BIOS 68CPD Ver. F.68 03/28/2018
[  512.965932] RIP: 0010:__memcpy+0x12/0x20
[  512.965935] Code: 31 48 c1 e2 20 48 09 c2 48 31 d3 e9 71 ff ff ff 90 90 90 90 90 90 90 90 0f 1f 44 00 00 48 89 f8 48 89 d1 48 c1 e9 03 83 e2 07 <f3> 48 a5 89 d1 f3 a4 c3 66 0f 1f 44 00 00 48 89 f8 48 89 d1 f3 a4
[  512.965937] RSP: 0018:ffff9fc144f83c90 EFLAGS: 00010246
[  512.965939] RAX: 0000000040b8000c RBX: ffff9fc144f83dd8 RCX: 0000000000000002
[  512.965940] RDX: 0000000000000000 RSI: ffff91f764866ff0 RDI: 0000000040b80ffc
[  512.965941] RBP: 0000000000001000 R08: 0000000000000001 R09: ffffd33c00921980
[  512.965943] R10: 0000000000000091 R11: 0000000000000000 R12: 0000000000001000
[  512.965944] R13: 0000000000001000 R14: 0000000000000000 R15: ffff9fc144f83dc8
[  512.965946] FS:  00007f3712ff54e8(0000) GS:ffff91f909300000(0000) knlGS:00007f37193cb000
[  512.965948] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  512.965949] CR2: 0000000040b81000 CR3: 000000008006a000 CR4: 00000000000406e0
[  512.965950] Call Trace:
[  512.965957]  _copy_to_iter+0x155/0x420
[  512.965962]  copy_page_to_iter+0x1b8/0x320
[  512.965966]  shmem_file_read_iter+0xf6/0x440
[  512.965970]  new_sync_read+0x12a/0x1c0
[  512.965974]  vfs_read+0x9d/0x150
[  512.965976]  kernel_read+0x2c/0x40
[  512.965982]  ashmem_read+0x5f/0xb0 [ashmem_linux]
[  512.965985]  vfs_read+0x9d/0x150
[  512.965988]  ksys_read+0x5f/0xe0
[  512.965992]  do_syscall_64+0x5f/0x1a0
[  512.965995]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[  512.965998] RIP: 0033:0x7f371c2c42e7
[  512.966001] Code: 1f 40 00 49 89 ca b8 28 01 00 00 0f 05 48 3d 01 f0 ff ff 72 09 f7 d8 89 c7 e8 65 38 fa ff c3 0f 1f 40 00 b8 00 00 00 00 0f 05 <48> 3d 01 f0 ff ff 72 09 f7 d8 89 c7 e8 48 38 fa ff c3 0f 1f 80 00
[  512.966002] RSP: 002b:00007f3712ff4738 EFLAGS: 00000202 ORIG_RAX: 0000000000000000
[  512.966004] RAX: ffffffffffffffda RBX: 00007f3700e75080 RCX: 00007f371c2c42e7
[  512.966005] RDX: 0000000000005400 RSI: 0000000040b8000c RDI: 000000000000002f
[  512.966006] RBP: 000000000000002f R08: 0000000000000000 R09: 0000000000005400
[  512.966008] R10: 0000000070a7e000 R11: 0000000000000202 R12: 0000000040b8000c
[  512.966009] R13: 0000000000000000 R14: 00007f3712ff4770 R15: 00007f3700e75080
[  512.966011] Modules linked in: xt_NFLOG xt_u32 xt_connmark tcp_diag inet_diag nfnetlink_log veth squashfs zstd_decompress loop xt_comment uinput xt_CHECKSUM xt_MASQUERADE nf_nat_tftp nf_conntrack_tftp nf_conntrack_netbios_ns nf_conntrack_broadcast xt_CT ip6t_REJECT nf_reject_ipv6 ip6t_rpfilter ipt_REJECT nf_reject_ipv4 xt_conntrack ebtable_nat ebtable_broute ip6table_nat ip6table_mangle ip6table_raw ip6table_security iptable_nat nf_nat iptable_mangle iptable_raw iptable_security nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c tun bridge stp llc ip_set nfnetlink ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter sunrpc vfat fat edac_mce_amd kvm_amd ccp kvm snd_hda_codec_idt snd_hda_codec_generic irqbypass ledtrig_audio snd_hda_codec_hdmi snd_hda_intel uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common videodev mc snd_hda_codec snd_hda_core jmb38x_ms snd_hwdep crct10dif_pclmul iwldvm snd_seq crc32_pclmul memstick snd_seq_device mac80211 snd_pcm
[  512.966057]  snd_timer libarc4 snd ghash_clmulni_intel iwlwifi cfg80211 hp_wmi sparse_keymap wmi_bmof rfkill joydev hp_accel soundcore lis3lv02d input_polldev hp_wireless sp5100_tco i2c_piix4 k10temp acpi_cpufreq binder_linux(OE) ashmem_linux(OE) ip_tables radeon crc32c_intel i2c_algo_bit drm_kms_helper serio_raw ttm sdhci_pci drm cqhci sdhci mmc_core wmi r8169 video fuse
[  512.966080] CR2: 0000000040b81000
[  512.966082] ---[ end trace ab3c5a18a10042b5 ]---
[  512.966086] RIP: 0010:__memcpy+0x12/0x20
[  512.966088] Code: 31 48 c1 e2 20 48 09 c2 48 31 d3 e9 71 ff ff ff 90 90 90 90 90 90 90 90 0f 1f 44 00 00 48 89 f8 48 89 d1 48 c1 e9 03 83 e2 07 <f3> 48 a5 89 d1 f3 a4 c3 66 0f 1f 44 00 00 48 89 f8 48 89 d1 f3 a4
[  512.966089] RSP: 0018:ffff9fc144f83c90 EFLAGS: 00010246
[  512.966091] RAX: 0000000040b8000c RBX: ffff9fc144f83dd8 RCX: 0000000000000002
[  512.966092] RDX: 0000000000000000 RSI: ffff91f764866ff0 RDI: 0000000040b80ffc
[  512.966094] RBP: 0000000000001000 R08: 0000000000000001 R09: ffffd33c00921980
[  512.966095] R10: 0000000000000091 R11: 0000000000000000 R12: 0000000000001000
[  512.966096] R13: 0000000000001000 R14: 0000000000000000 R15: ffff9fc144f83dc8
[  512.966098] FS:  00007f3712ff54e8(0000) GS:ffff91f909300000(0000) knlGS:00007f37193cb000
[  512.966099] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  512.966101] CR2: 0000000040b81000 CR3: 000000008006a000 CR4: 00000000000406e0

Fedora 33 : install modules ...

I need to fix kernel drivers on Fedora 33 and the dnf tool don't find these modules.
Any idea?
Thank you.

$ anbox check-features
WARNING: cgroup v2 is not fully supported yet, proceeding with partial confinement
Your computer does meet all requirements to run Anbox

$ anbox session-manager
WARNING: cgroup v2 is not fully supported yet, proceeding with partial confinement
[ 2020-12-21 21:57:35] [session_manager.cpp:133@operator()] Failed to start as either binder or ashmem kernel drivers are not loaded

this completely broke dpkg

When I am try to upgrade my computer I get error saying

Setting up linux-headers-5.8.0-7630-generic (5.8.0-7630.32~1605108806~20.10~7e52b13) ...
/etc/kernel/header_postinst.d/dkms:
 * dkms: running auto installation service for kernel 5.8.0-7630-generic
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/anbox-ashmem/1/source/dkms.conf does not exist.
   ...fail!

I dont understand why it is trying to find those since I deleted andbox and the modules because they no longer work properly with newest ubuntu.
At this point anbox modules leaves the system in an unusable state is there any fix for this?

OpenSuse Tumbleweed cannot build modules on kernel 5.8.7-1-default

flap@SFX:~/Downloads/anbox-modules-master> sudo sh INSTALL.sh 
[sudo] password for root: 

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j4 KERNELRELEASE=5.8.7-1-default all KERNEL_SRC=/lib/modules/5.8.7-1-default/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.8.7-1-default (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.7-1-default all KERNEL_SRC=/lib/modules/5.8.7-1-default/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.8.7-1-default (x86_64)
Consult /var/lib/dkms/anbox-binder/1/build/make.log for more information.
modprobe: FATAL: Module ashmem_linux not found in directory /lib/modules/5.8.7-1-default
modprobe: FATAL: Module binder_linux not found in directory /lib/modules/5.8.7-1-default
ls: cannot access '/dev/binder': No such file or directory
ls: cannot access '/dev/ashmem': No such file or directory
flap@SFX:~/Downloads/anbox-modules-master> 

CONTENT OF make.log

DKMS make.log for anbox-binder-1 for kernel 5.8.7-1-default (x86_64)
nie, 20 wrz 2020, 01:56:58 CEST
make -C /lib/modules/5.8.7-1-default/build V=0 M=$PWD
make[1]: Entering directory '/usr/src/linux-5.8.7-1-obj/x86_64/default'
  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
/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[3]: *** [/usr/src/linux-5.8.7-1/scripts/Makefile.build:281: /var/lib/dkms/anbox-binder/1/build/binder.o] Error 1
make[2]: *** [/usr/src/linux-5.8.7-1/Makefile:1770: /var/lib/dkms/anbox-binder/1/build] Error 2
make[1]: *** [../../../linux-5.8.7-1/Makefile:185: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-5.8.7-1-obj/x86_64/default'
make: *** [Makefile:8: all] Error 2

CentOs 7.6 build fails with compilation errors.

I am following the steps in the read me. When I get to "sudo dkms install anbox-ashmem/1" it fails. Looking at the log file I see:

/var/lib/dkms/anbox-ashmem/1/build/ashmem.c: In function ‘ashmem_mmap’:
/var/lib/dkms/anbox-ashmem/1/build/ashmem.c:387:2: error: too few arguments to function ‘calc_vm_prot_bits’

When running "sudo dkms install anbox-binder/1" it appears to complete and installs the module, but it shows these errors:

Adding any weak-modules
depmod: ERROR: fstatat(5, vboxdrv.ko): No such file or directory
depmod: ERROR: fstatat(5, vboxnetadp.ko): No such file or directory
depmod: ERROR: fstatat(5, vboxsf.ko): No such file or directory
depmod: ERROR: fstatat(5, vboxnetflt.ko): No such file or directory
depmod: ERROR: fstatat(5, vboxguest.ko): No such file or directory
depmod: ERROR: fstatat(5, vboxvideo.ko): No such file or directory
depmod: ERROR: fstatat(5, vboxdrv.ko): No such file or directory
depmod: ERROR: fstatat(5, vboxnetadp.ko): No such file or directory
depmod: ERROR: fstatat(5, vboxsf.ko): No such file or directory
depmod: ERROR: fstatat(5, vboxnetflt.ko): No such file or directory
depmod: ERROR: fstatat(5, vboxguest.ko): No such file or directory
depmod: ERROR: fstatat(5, vboxvideo.ko): No such file or directory

Cannot build on Librem 5 dev kit

I'm running the pureOS kernel with CONFIG_CGROUP_FREEZER enabled.
https://developer.puri.sm/Librem5/Development_Environment/Boards/HowTo/Rebuilding_the_Kernel.html

git show
commit 816dd4d6e702cf77a44cfe208659af6c39e02b57 (HEAD -> master, origin/master, origin/HEAD)
Merge: 27fd47e 85d3854
Author: Simon Fels <[email protected]>
Date:   Sat Jul 13 11:32:21 2019 +0200

    Merge pull request #19 from 86423355844265459587182778/master
    
    Fix compilation on kernels >= 5.1

purism@pureos:~/anbox-modules$ cat /var/lib/dkms/anbox-ashmem/1/build/make.log
DKMS make.log for anbox-ashmem-1 for kernel 5.2.0-g1c21a97839ca-dirty (aarch64)
Thu Sep 26 20:00:27 PDT 2019
make -C /lib/modules/5.2.0-g1c21a97839ca-dirty/build V=0 M=$PWD
make[1]: Entering directory '/usr/src/linux-headers-5.2.0-g1c21a97839ca-dirty'
  CC [M]  /var/lib/dkms/anbox-ashmem/1/build/deps.o
  CC [M]  /var/lib/dkms/anbox-ashmem/1/build/ashmem.o
/bin/sh: 1: scripts/basic/fixdep: Exec format error
make[2]: *** [scripts/Makefile.build:279: /var/lib/dkms/anbox-ashmem/1/build/deps.o] Error 2
make[2]: *** Deleting file '/var/lib/dkms/anbox-ashmem/1/build/deps.o'
make[2]: *** Waiting for unfinished jobs....
/bin/sh: 1: scripts/basic/fixdep: Exec format error
make[2]: *** [scripts/Makefile.build:279: /var/lib/dkms/anbox-ashmem/1/build/ashmem.o] Error 2
make[2]: *** Deleting file '/var/lib/dkms/anbox-ashmem/1/build/ashmem.o'
make[1]: *** [Makefile:1595: _module_/var/lib/dkms/anbox-ashmem/1/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.2.0-g1c21a97839ca-dirty'
make: *** [Makefile:12: all] Error 2

Thoughts?

Tutorial to uninstall anbox-modules

Hello everyone,
I try to manually remove anbox-modules, which is installed according to the guide
When runing sudo dkms remove anbox-binder/1 --all
An error comes

Error! Could not locate dkms.conf file.
File: /var/lib/dkms/anbox-binder/1/source/dkms.conf does not exist.

Any advice?

ls: cannot access '/dev/binder': No such file or directory

I am using ubuntu 19.10
I am unable to install anbox modules. The main problem is with last line.

$lsmod | grep -e ashmem_linux -e binder_linux
binder_linux 163840 0
ashmem_linux 20480 0
$ ls -alh /dev/binder /dev/ashmem
ls: cannot access '/dev/binder': No such file or directory
crw-rw-rw- 1 root root 10, 53 Jan 1 11:35 /dev/ashmem

unable to access '/ dev / binder': No such file or directory

hello, trouble on the last command.
$ sudo modprobe ashmem_linux
$ sudo modprobe binder_linux
$ lsmod | grep -e ashmem_linux -e binder_linux
binder_linux 151552 0
ashmem_linux 20480 0
$ ls -alh /dev/binder /dev/ashmem
ls: unable to access '/ dev / binder': No such file or directory
crw------- 1 root root 10, 54 мая 15 12:33 /dev/ashmem

ubuntu 19.4

anbox not finding binder on Ubuntu 20.10

I am running the default ubuntu kernel for Ubuntu 20.10 (at the moment linux 5.8.0-18) which has support for the ashmem and binder module.
Running modinfo binder_linux gives this output and lsmod | grep binder returns binder_linux 192512 35.

But anbox system-info says there is no binder support (anbox is installed with sudo snap install --devmode --beta anbox).
I also tested the edge channel but that did not help either.

Is there a workaround or is this a bug?

cannot build binder dkms module

user /tmp/anbox-modules $ sudo dkms install anbox-binder/1

Creating symlink /var/lib/dkms/anbox-binder/1/source ->
                 /usr/src/anbox-binder-1

DKMS: add completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j8 KERNELRELEASE=5.1.7-arch1-1-ARCH all KERNEL_SRC=/lib/modules/5.1.7-arch1-1-ARCH/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.1.7-arch1-1-ARCH (x86_64)
Consult /var/lib/dkms/anbox-binder/1/build/make.log for more information.
user /tmp/anbox-modules $ cat /var/lib/dkms/anbox-binder/1/build/make.log 
DKMS make.log for anbox-binder-1 for kernel 5.1.7-arch1-1-ARCH (x86_64)
Thu 06 Jun 2019 10:57:40 AM +03
make -C /lib/modules/5.1.7-arch1-1-ARCH/build V=0 M=$PWD
make[1]: Entering directory '/usr/lib/modules/5.1.7-arch1-1-ARCH/build'
  CC [M]  /var/lib/dkms/anbox-binder/1/build/deps.o
  CC [M]  /var/lib/dkms/anbox-binder/1/build/binder.o
/var/lib/dkms/anbox-binder/1/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]
 3406 |  .fault = binder_vm_fault,
      |           ^~~~~~~~~~~~~~~
/var/lib/dkms/anbox-binder/1/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-binder/1/build/binder.o] Error 1
make[1]: *** [Makefile:1571: _module_/var/lib/dkms/anbox-binder/1/build] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.1.7-arch1-1-ARCH/build'
make: *** [Makefile:8: all] Error 2

"Exec format error" on openSUSE Tumbleweed

Following the instructions in the README and ensuring that I had the kernel-default-devel package installed with the correct version, I was able to build the modules successfully:

Build output:

damien@damien-laptop:~> sudo dkms install anbox-ashmem/1

Creating symlink /var/lib/dkms/anbox-ashmem/1/source ->
                 /usr/src/anbox-ashmem-1

DKMS: add completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j8 KERNELRELEASE=4.20.13-1-default all KERNEL_SRC=/lib/modules/4.20.13-1-default/build....
cleaning build area...

DKMS: build completed.

ashmem_linux.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.20.13-1-default/updates/

depmod...

DKMS: install completed.



damien@damien-laptop:~> sudo dkms install anbox-binder/1

Creating symlink /var/lib/dkms/anbox-binder/1/source ->
                 /usr/src/anbox-binder-1

DKMS: add completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j8 KERNELRELEASE=4.20.13-1-default all KERNEL_SRC=/lib/modules/4.20.13-1-default/build.....
cleaning build area...

DKMS: build completed.

binder_linux.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.20.13-1-default/updates/

depmod...

DKMS: install completed.

but modprobe then runs into the following error:

modprobe: ERROR: could not insert 'ashmem_linux': Exec format error
modprobe: ERROR: could not insert 'binder_linux': Exec format error

Kernel version: 4.20.13-1-default
DKMS version: 2.6.1-1.2

Any ideas what could be going wrong?

cannot compile on Manjaro with rt kernel.

When installing anbox-modules from AUR, it failed to install modules on linux kernel and yield the following error message:


==> Unable to install module anbox-modules-ashmem/r982.82f31f3 for kernel 4.14.67-1-MANJARO: Missing kernel headers.
==> Unable to install module anbox-modules-binder/r982.82f31f3 for kernel 4.16.18-rt12-MANJARO: Missing kernel headers.
==> Unable to install module anbox-modules-ashmem/r982.82f31f3 for kernel 4.16.18-rt12-MANJARO: Missing kernel headers.
==> Unable to install module anbox-modules-binder/r982.82f31f3 for kernel 4.14.67-1-MANJARO: Missing kernel headers.

Full message attached

Preparing...
Checking dependencies...
Running pre-transaction hooks...
Remove DKMS modules
Removing anbox-modules-dkms-git (1:r982.82f31f3-1)...
Transaction successfully finished.

Preparing...

Building anbox-git...
Cloning into 'anbox-git'...
remote: Enumerating objects: 105, done.        
remote: Counting objects: 100% (105/105), done.        
remote: Compressing objects: 100% (74/74), done.        
remote: Total 105 (delta 28), reused 105 (delta 28)        
Receiving objects: 100% (105/105), 39.24 KiB | 248.00 KiB/s, done.
Resolving deltas: 100% (28/28), done.
==> Making package: anbox-git 1:r880.69e75c9-1 (Fri 07 Sep 2018 05:43:47 PM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning anbox git repo...
Cloning into bare repository '/tmp/pamac-build-peng/anbox-git/anbox'...
remote: Counting objects: 9181, done.        
remote: Compressing objects: 100% (66/66), done.        
remote: Total 9181 (delta 41), reused 54 (delta 24), pack-reused 9091        
Receiving objects: 100% (9181/9181), 6.51 MiB | 245.00 KiB/s, done.
Resolving deltas: 100% (5853/5853), done.
  -> Cloning anbox-modules git repo...
Cloning into bare repository '/tmp/pamac-build-peng/anbox-git/anbox-modules'...
remote: Counting objects: 134, done.        
remote: Compressing objects: 100% (20/20), done.        
remote: Total 134 (delta 9), reused 9 (delta 4), pack-reused 110        
Receiving objects: 100% (134/134), 267.57 KiB | 165.00 KiB/s, done.
Resolving deltas: 100% (31/31), done.
  -> Found anbox-container-manager.service
  -> Found anbox-session-manager.service
  -> Found 99-anbox.rules
  -> Found anbox.conf
  -> Found anbox.desktop
  -> Found anbox-bridge.network
  -> Found anbox-bridge.netdev
==> Validating source files with sha256sums...
    anbox ... Skipped
    anbox-modules ... Skipped
    anbox-container-manager.service ... Passed
    anbox-session-manager.service ... Passed
    99-anbox.rules ... Passed
    anbox.conf ... Passed
    anbox.desktop ... Passed
    anbox-bridge.network ... Passed
    anbox-bridge.netdev ... Passed
==> Extracting sources...
  -> Creating working copy of anbox git repo...
Cloning into 'anbox'...
done.
  -> Creating working copy of anbox-modules git repo...
Cloning into 'anbox-modules'...
done.
==> Starting prepare()...
==> Starting pkgver()...
==> Updated version: anbox-git 1:r982.82f31f3-1
==> Starting build()...
-- The C compiler identification is GNU 8.2.0
-- The CXX compiler identification is GNU 8.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Treat warnings as errors
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Boost version: 1.67.0
-- Found the following Boost libraries:
--   filesystem
--   log
--   serialization
--   system
--   thread
--   program_options
--   date_time
--   log_setup
--   regex
--   chrono
--   atomic
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.5.3") 
-- Found EGL: /usr/lib/libEGL.so  
-- Found GLESv2: /usr/lib/libGLESv2.so  
-- Found Protobuf: /usr/lib/libprotobuf.so;-lpthread (found version "3.6.0") 
-- Checking for module 'sdl2'
--   Found sdl2, version 2.0.8
-- Checking for module 'SDL2_image'
--   Found SDL2_image, version 2.0.3
-- Checking for module 'dbus-1'
--   Found dbus-1, version 1.12.10
-- Checking for module 'lxc'
--   Found lxc, version 3.0.2
-- Checking for module 'properties-cpp'
--   Found properties-cpp, version 0.0.1
-- Checking for module 'libsystemd'
--   Found libsystemd, version 239
-- Boost version: 1.67.0
-- Found the following Boost libraries:
--   iostreams
--   system
--   regex
-- Boost version: 1.67.0
-- Found the following Boost libraries:
--   filesystem
--   system
--   unit_test_framework
-- Found libdw: /usr/lib/libdw.so  
-- Found libbfd: /usr/lib/libbfd.so  
-- Could NOT find libdwarf (missing: LIBDWARF_LIBRARY LIBDWARF_INCLUDE_DIR) 
-- Found Backward: /tmp/pamac-build-peng/anbox-git/src/anbox/external/backward-cpp  
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/pamac-build-peng/anbox-git/src/anbox/build
Scanning dependencies of target process-cpp
[  0%] Building CXX object external/process-cpp-minimal/src/CMakeFiles/process-cpp.dir/core/posix/backtrace.cpp.o
[  1%] Building CXX object external/process-cpp-minimal/src/CMakeFiles/process-cpp.dir/core/posix/child_process.cpp.o
[  1%] Building CXX object external/process-cpp-minimal/src/CMakeFiles/process-cpp.dir/core/posix/exec.cpp.o
[  2%] Building CXX object external/process-cpp-minimal/src/CMakeFiles/process-cpp.dir/core/posix/fork.cpp.o
[  2%] Building CXX object external/process-cpp-minimal/src/CMakeFiles/process-cpp.dir/core/posix/process.cpp.o
[  3%] Building CXX object external/process-cpp-minimal/src/CMakeFiles/process-cpp.dir/core/posix/process_group.cpp.o
[  3%] Building CXX object external/process-cpp-minimal/src/CMakeFiles/process-cpp.dir/core/posix/signal.cpp.o
[  4%] Building CXX object external/process-cpp-minimal/src/CMakeFiles/process-cpp.dir/core/posix/signalable.cpp.o
[  4%] Building CXX object external/process-cpp-minimal/src/CMakeFiles/process-cpp.dir/core/posix/standard_stream.cpp.o
[  4%] Building CXX object external/process-cpp-minimal/src/CMakeFiles/process-cpp.dir/core/posix/wait.cpp.o
[  5%] Building CXX object external/process-cpp-minimal/src/CMakeFiles/process-cpp.dir/core/posix/this_process.cpp.o
[  5%] Building CXX object external/process-cpp-minimal/src/CMakeFiles/process-cpp.dir/core/posix/linux/proc/process/oom_adj.cpp.o
[  6%] Building CXX object external/process-cpp-minimal/src/CMakeFiles/process-cpp.dir/core/posix/linux/proc/process/oom_score.cpp.o
[  6%] Building CXX object external/process-cpp-minimal/src/CMakeFiles/process-cpp.dir/core/posix/linux/proc/process/oom_score_adj.cpp.o
[  7%] Building CXX object external/process-cpp-minimal/src/CMakeFiles/process-cpp.dir/core/posix/linux/proc/process/stat.cpp.o
[  7%] Building CXX object external/process-cpp-minimal/src/CMakeFiles/process-cpp.dir/core/testing/cross_process_sync.cpp.o
[  8%] Building CXX object external/process-cpp-minimal/src/CMakeFiles/process-cpp.dir/core/testing/fork_and_run.cpp.o
[  8%] Linking CXX static library libprocess-cpp.a
[  8%] Built target process-cpp
Scanning dependencies of target emugen
[  8%] Building CXX object external/android-emugl/host/tools/emugen/CMakeFiles/emugen.dir/ApiGen.cpp.o
[  9%] Building CXX object external/android-emugl/host/tools/emugen/CMakeFiles/emugen.dir/EntryPoint.cpp.o
[  9%] Building CXX object external/android-emugl/host/tools/emugen/CMakeFiles/emugen.dir/main.cpp.o
[ 10%] Building CXX object external/android-emugl/host/tools/emugen/CMakeFiles/emugen.dir/Parser.cpp.o
[ 10%] Building CXX object external/android-emugl/host/tools/emugen/CMakeFiles/emugen.dir/strUtils.cpp.o
[ 11%] Building CXX object external/android-emugl/host/tools/emugen/CMakeFiles/emugen.dir/TypeFactory.cpp.o
[ 11%] Linking CXX executable emugen
[ 11%] Built target emugen
Scanning dependencies of target OpenglCodecCommon
[ 11%] Building CXX object external/android-emugl/shared/OpenglCodecCommon/CMakeFiles/OpenglCodecCommon.dir/ChecksumCalculator.cpp.o
[ 13%] Building CXX object external/android-emugl/shared/OpenglCodecCommon/CMakeFiles/OpenglCodecCommon.dir/ChecksumCalculatorThreadInfo.cpp.o
[ 13%] Building CXX object external/android-emugl/shared/OpenglCodecCommon/CMakeFiles/OpenglCodecCommon.dir/glUtils.cpp.o
[ 13%] Linking CXX static library libOpenglCodecCommon.a
[ 13%] Built target OpenglCodecCommon
Scanning dependencies of target GLHeaders
Generating /tmp/pamac-build-peng/anbox-git/src/anbox/build/external/android-emugl/host/include/OpenGLESDispatch/RenderEGL_functions.h
Generating /tmp/pamac-build-peng/anbox-git/src/anbox/build/external/android-emugl/host/include/OpenGLESDispatch/RenderEGL_extensions_functions.h
Generating /tmp/pamac-build-peng/anbox-git/src/anbox/build/external/android-emugl/host/include/OpenGLESDispatch/gles_common_functions.h
Generating /tmp/pamac-build-peng/anbox-git/src/anbox/build/external/android-emugl/host/include/OpenGLESDispatch/gles_extensions_functions.h
Generating /tmp/pamac-build-peng/anbox-git/src/anbox/build/external/android-emugl/host/include/OpenGLESDispatch/gles1_only_functions.h
Generating /tmp/pamac-build-peng/anbox-git/src/anbox/build/external/android-emugl/host/include/OpenGLESDispatch/gles1_extensions_functions.h
Generating /tmp/pamac-build-peng/anbox-git/src/anbox/build/external/android-emugl/host/include/OpenGLESDispatch/gles2_only_functions.h
Generating /tmp/pamac-build-peng/anbox-git/src/anbox/build/external/android-emugl/host/include/OpenGLESDispatch/gles2_extensions_functions.h
Generating /tmp/pamac-build-peng/anbox-git/src/anbox/build/external/android-emugl/host/include/OpenGLESDispatch/gles3_only_functions.h
[ 13%] Built target GLHeaders
[ 13%] Generating gles1_dec.cpp, gles1_opcodes.h, gles1_server_context.cpp
Scanning dependencies of target GLESv1_dec
[ 13%] Building CXX object external/android-emugl/host/libs/GLESv1_dec/CMakeFiles/GLESv1_dec.dir/GLESv1Decoder.cpp.o
[ 14%] Building CXX object external/android-emugl/host/libs/GLESv1_dec/CMakeFiles/GLESv1_dec.dir/gles1_dec.cpp.o
[ 14%] Building CXX object external/android-emugl/host/libs/GLESv1_dec/CMakeFiles/GLESv1_dec.dir/gles1_server_context.cpp.o
[ 15%] Linking CXX static library libGLESv1_dec.a
[ 15%] Built target GLESv1_dec
[ 15%] Generating gles2_dec.cpp, gles2_opcodes.h, gles2_server_context.cpp
Scanning dependencies of target GLESv2_dec
[ 16%] Building CXX object external/android-emugl/host/libs/GLESv2_dec/CMakeFiles/GLESv2_dec.dir/GLESv2Decoder.cpp.o
[ 16%] Building CXX object external/android-emugl/host/libs/GLESv2_dec/CMakeFiles/GLESv2_dec.dir/gles2_dec.cpp.o
[ 16%] Building CXX object external/android-emugl/host/libs/GLESv2_dec/CMakeFiles/GLESv2_dec.dir/gles2_server_context.cpp.o
[ 17%] Linking CXX static library libGLESv2_dec.a
[ 17%] Built target GLESv2_dec
Scanning dependencies of target emugl_common
[ 17%] Building CXX object external/android-emugl/shared/emugl/common/CMakeFiles/emugl_common.dir/crash_reporter.cpp.o
[ 18%] Building CXX object external/android-emugl/shared/emugl/common/CMakeFiles/emugl_common.dir/id_to_object_map.cpp.o
[ 18%] Building CXX object external/android-emugl/shared/emugl/common/CMakeFiles/emugl_common.dir/lazy_instance.cpp.o
[ 19%] Building CXX object external/android-emugl/shared/emugl/common/CMakeFiles/emugl_common.dir/logging.cpp.o
[ 19%] Building CXX object external/android-emugl/shared/emugl/common/CMakeFiles/emugl_common.dir/message_channel.cpp.o
[ 20%] Building CXX object external/android-emugl/shared/emugl/common/CMakeFiles/emugl_common.dir/mutex_unittest.cpp.o
[ 20%] Building CXX object external/android-emugl/shared/emugl/common/CMakeFiles/emugl_common.dir/pod_vector.cpp.o
[ 21%] Building CXX object external/android-emugl/shared/emugl/common/CMakeFiles/emugl_common.dir/shared_library.cpp.o
[ 21%] Building CXX object external/android-emugl/shared/emugl/common/CMakeFiles/emugl_common.dir/smart_ptr.cpp.o
[ 21%] Building CXX object external/android-emugl/shared/emugl/common/CMakeFiles/emugl_common.dir/sockets.cpp.o
[ 22%] Building CXX object external/android-emugl/shared/emugl/common/CMakeFiles/emugl_common.dir/thread_pthread.cpp.o
[ 22%] Building CXX object external/android-emugl/shared/emugl/common/CMakeFiles/emugl_common.dir/thread_store.cpp.o
[ 23%] Building CXX object external/android-emugl/shared/emugl/common/CMakeFiles/emugl_common.dir/thread_unittest.cpp.o
[ 23%] Linking CXX static library libemugl_common.a
[ 23%] Built target emugl_common
Scanning dependencies of target OpenGLESDispatch
[ 23%] Building CXX object external/android-emugl/host/libs/libOpenGLESDispatch/CMakeFiles/OpenGLESDispatch.dir/EGLDispatch.cpp.o
[ 25%] Building CXX object external/android-emugl/host/libs/libOpenGLESDispatch/CMakeFiles/OpenGLESDispatch.dir/GLESv2Dispatch.cpp.o
[ 25%] Building CXX object external/android-emugl/host/libs/libOpenGLESDispatch/CMakeFiles/OpenGLESDispatch.dir/GLESv1Dispatch.cpp.o
[ 26%] Linking CXX static library libOpenGLESDispatch.a
[ 26%] Built target OpenGLESDispatch
[ 26%] Generating renderControl_dec.cpp, renderControl_server_context.cpp
Scanning dependencies of target renderControl_dec
[ 27%] Building CXX object external/android-emugl/host/libs/renderControl_dec/CMakeFiles/renderControl_dec.dir/renderControl_dec.cpp.o
[ 27%] Building CXX object external/android-emugl/host/libs/renderControl_dec/CMakeFiles/renderControl_dec.dir/renderControl_server_context.cpp.o
[ 28%] Linking CXX static library librenderControl_dec.a
[ 28%] Built target renderControl_dec
Scanning dependencies of target xdg
[ 28%] Building CXX object external/xdg/CMakeFiles/xdg.dir/xdg.cpp.o
[ 29%] Linking CXX static library libxdg.a
[ 29%] Built target xdg
Scanning dependencies of target xdg_test
[ 29%] Building CXX object external/xdg/CMakeFiles/xdg_test.dir/xdg_test.cpp.o
[ 30%] Linking CXX executable xdg_test
[ 30%] Built target xdg_test
Scanning dependencies of target backward_object
[ 30%] Building CXX object external/backward-cpp/CMakeFiles/backward_object.dir/backward.cpp.o
In file included from /tmp/pamac-build-peng/anbox-git/src/anbox/external/backward-cpp/backward.cpp:26:
/tmp/pamac-build-peng/anbox-git/src/anbox/external/backward-cpp/backward.hpp:3707: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas]
 #pragma clang diagnostic push
 
/tmp/pamac-build-peng/anbox-git/src/anbox/external/backward-cpp/backward.hpp:3708: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas]
 #pragma clang diagnostic ignored "-Wdisabled-macro-expansion"
 
/tmp/pamac-build-peng/anbox-git/src/anbox/external/backward-cpp/backward.hpp:3710: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas]
 #pragma clang diagnostic pop
 
In file included from /tmp/pamac-build-peng/anbox-git/src/anbox/external/backward-cpp/backward.cpp:26:
/tmp/pamac-build-peng/anbox-git/src/anbox/external/backward-cpp/backward.hpp: In member function ‘backward::ResolvedTrace backward::TraceResolverLinuxImpl<backward::trace_resolver_tag::libdw>::resolve(backward::ResolvedTrace)’:
/tmp/pamac-build-peng/anbox-git/src/anbox/external/backward-cpp/backward.hpp:1324:46: warning: use of old-style cast to ‘Dwarf_Addr’ {aka ‘long unsigned int’} [-Wold-style-cast]
   Dwarf_Addr trace_addr = (Dwarf_Addr) trace.addr;
                                              ^~~~
                           -----------------------
                           reinterpret_cast<Dwarf_Addr> ( trace.addr)
/tmp/pamac-build-peng/anbox-git/src/anbox/external/backward-cpp/backward.hpp: In member function ‘void backward::TraceResolverLinuxImpl<backward::trace_resolver_tag::libdw>::inliners_search_cb::operator()(Dwarf_Die*)’:
/tmp/pamac-build-peng/anbox-git/src/anbox/external/backward-cpp/backward.hpp:1507:28: warning: use of old-style cast to ‘unsigned int’ [-Wold-style-cast]
      sloc.line = (unsigned)line;
                            ^~~~
                  --------------
                  static_cast<unsigned> (line)
/tmp/pamac-build-peng/anbox-git/src/anbox/external/backward-cpp/backward.hpp:1508:27: warning: use of old-style cast to ‘unsigned int’ [-Wold-style-cast]
      sloc.col = (unsigned)col;
                           ^~~
                 -------------
                 static_cast<unsigned> (col)
/tmp/pamac-build-peng/anbox-git/src/anbox/external/backward-cpp/backward.hpp:1483:11: warning: switch missing default case [-Wswitch-default]
    switch (dwarf_tag(die)) {
           ^
/tmp/pamac-build-peng/anbox-git/src/anbox/external/backward-cpp/backward.hpp: In static member function ‘static Dwarf_Die* backward::TraceResolverLinuxImpl<backward::trace_resolver_tag::libdw>::find_fundie_by_pc(Dwarf_Die*, Dwarf_Addr, Dwarf_Die*)’:
/tmp/pamac-build-peng/anbox-git/src/anbox/external/backward-cpp/backward.hpp:1559:11: warning: switch missing default case [-Wswitch-default]
    switch (dwarf_tag(die)) {
           ^
[ 30%] Built target backward_object
Scanning dependencies of target backward
[ 30%] Building CXX object external/backward-cpp/CMakeFiles/backward.dir/backward.cpp.o
In file included from /tmp/pamac-build-peng/anbox-git/src/anbox/external/backward-cpp/backward.cpp:26:
/tmp/pamac-build-peng/anbox-git/src/anbox/external/backward-cpp/backward.hpp:3707: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas]
 #pragma clang diagnostic push
 
/tmp/pamac-build-peng/anbox-git/src/anbox/external/backward-cpp/backward.hpp:3708: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas]
 #pragma clang diagnostic ignored "-Wdisabled-macro-expansion"
 
/tmp/pamac-build-peng/anbox-git/src/anbox/external/backward-cpp/backward.hpp:3710: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas]
 #pragma clang diagnostic pop
 
In file included from /tmp/pamac-build-peng/anbox-git/src/anbox/external/backward-cpp/backward.cpp:26:
/tmp/pamac-build-peng/anbox-git/src/anbox/external/backward-cpp/backward.hpp: In member function ‘backward::ResolvedTrace backward::TraceResolverLinuxImpl<backward::trace_resolver_tag::libdw>::resolve(backward::ResolvedTrace)’:
/tmp/pamac-build-peng/anbox-git/src/anbox/external/backward-cpp/backward.hpp:1324:46: warning: use of old-style cast to ‘Dwarf_Addr’ {aka ‘long unsigned int’} [-Wold-style-cast]
   Dwarf_Addr trace_addr = (Dwarf_Addr) trace.addr;
                                              ^~~~
                           -----------------------
                           reinterpret_cast<Dwarf_Addr> ( trace.addr)
/tmp/pamac-build-peng/anbox-git/src/anbox/external/backward-cpp/backward.hpp: In member function ‘void backward::TraceResolverLinuxImpl<backward::trace_resolver_tag::libdw>::inliners_search_cb::operator()(Dwarf_Die*)’:
/tmp/pamac-build-peng/anbox-git/src/anbox/external/backward-cpp/backward.hpp:1507:28: warning: use of old-style cast to ‘unsigned int’ [-Wold-style-cast]
      sloc.line = (unsigned)line;
                            ^~~~
                  --------------
                  static_cast<unsigned> (line)
/tmp/pamac-build-peng/anbox-git/src/anbox/external/backward-cpp/backward.hpp:1508:27: warning: use of old-style cast to ‘unsigned int’ [-Wold-style-cast]
      sloc.col = (unsigned)col;
                           ^~~
                 -------------
                 static_cast<unsigned> (col)
/tmp/pamac-build-peng/anbox-git/src/anbox/external/backward-cpp/backward.hpp:1483:11: warning: switch missing default case [-Wswitch-default]
    switch (dwarf_tag(die)) {
           ^
/tmp/pamac-build-peng/anbox-git/src/anbox/external/backward-cpp/backward.hpp: In static member function ‘static Dwarf_Die* backward::TraceResolverLinuxImpl<backward::trace_resolver_tag::libdw>::find_fundie_by_pc(Dwarf_Die*, Dwarf_Addr, Dwarf_Die*)’:
/tmp/pamac-build-peng/anbox-git/src/anbox/external/backward-cpp/backward.hpp:1559:11: warning: switch missing default case [-Wswitch-default]
    switch (dwarf_tag(die)) {
           ^
[ 31%] Linking CXX static library libbackward.a
[ 31%] Built target backward
Scanning dependencies of target cpu_features
[ 32%] Building C object external/cpu_features/CMakeFiles/cpu_features.dir/src/linux_features_aggregator.c.o
[ 32%] Building C object external/cpu_features/CMakeFiles/cpu_features.dir/src/cpuid_x86_clang_gcc.c.o
[ 33%] Building C object external/cpu_features/CMakeFiles/cpu_features.dir/src/cpuid_x86_msvc.c.o
[ 33%] Building C object external/cpu_features/CMakeFiles/cpu_features.dir/src/cpuinfo_aarch64.c.o
/tmp/pamac-build-peng/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_aarch64.c: In function ‘GetAarch64FeaturesEnumValue’:
/tmp/pamac-build-peng/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_aarch64.c:100:3: warning: switch missing default case [-Wswitch-default]
   switch (value) {
   ^~~~~~
/tmp/pamac-build-peng/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_aarch64.c: In function ‘GetAarch64FeaturesEnumName’:
/tmp/pamac-build-peng/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_aarch64.c:122:3: warning: switch missing default case [-Wswitch-default]
   switch (value) {
   ^~~~~~
[ 33%] Building C object external/cpu_features/CMakeFiles/cpu_features.dir/src/cpuinfo_arm.c.o
/tmp/pamac-build-peng/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_arm.c: In function ‘FixErrors’:
/tmp/pamac-build-peng/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_arm.c:130:32: warning: overflow in conversion from ‘int’ to ‘signed char:1’ changes value from ‘1’ to ‘-1’ [-Woverflow]
         info->features.idiva = true;
                                ^~~~
/tmp/pamac-build-peng/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_arm.c:141:30: warning: overflow in conversion from ‘int’ to ‘signed char:1’ changes value from ‘1’ to ‘-1’ [-Woverflow]
       info->features.idiva = true;
                              ^~~~
/tmp/pamac-build-peng/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_arm.c:142:30: warning: overflow in conversion from ‘int’ to ‘signed char:1’ changes value from ‘1’ to ‘-1’ [-Woverflow]
       info->features.idivt = true;
                              ^~~~
/tmp/pamac-build-peng/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_arm.c:121:3: warning: switch missing default case [-Wswitch-default]
   switch (GetCpuId(info)) {
   ^~~~~~
/tmp/pamac-build-peng/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_arm.c:147:52: warning: overflow in conversion from ‘int’ to ‘signed char:1’ changes value from ‘1’ to ‘-1’ [-Woverflow]
   if (info->features.vfpv4) info->features.vfpv3 = true;
                                                    ^~~~
/tmp/pamac-build-peng/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_arm.c:148:51: warning: overflow in conversion from ‘int’ to ‘signed char:1’ changes value from ‘1’ to ‘-1’ [-Woverflow]
   if (info->features.neon) info->features.vfpv3 = true;
                                                   ^~~~
/tmp/pamac-build-peng/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_arm.c:149:50: warning: overflow in conversion from ‘int’ to ‘signed char:1’ changes value from ‘1’ to ‘-1’ [-Woverflow]
   if (info->features.vfpv3) info->features.vfp = true;
                                                  ^~~~
/tmp/pamac-build-peng/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_arm.c: In function ‘GetArmFeaturesEnumValue’:
/tmp/pamac-build-peng/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_arm.c:194:3: warning: switch missing default case [-Wswitch-default]
   switch (value) {
   ^~~~~~
/tmp/pamac-build-peng/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_arm.c: In function ‘GetArmFeaturesEnumName’:
/tmp/pamac-build-peng/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_arm.c:228:3: warning: switch missing default case [-Wswitch-default]
   switch (value) {
   ^~~~~~
[ 34%] Building C object external/cpu_features/CMakeFiles/cpu_features.dir/src/cpuinfo_mips.c.o
/tmp/pamac-build-peng/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_mips.c: In function ‘GetMipsFeaturesEnumValue’:
/tmp/pamac-build-peng/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_mips.c:77:3: warning: switch missing default case [-Wswitch-default]
   switch (value) {
   ^~~~~~
/tmp/pamac-build-peng/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_mips.c: In function ‘GetMipsFeaturesEnumName’:
/tmp/pamac-build-peng/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_mips.c:89:3: warning: switch missing default case [-Wswitch-default]
   switch (value) {
   ^~~~~~
[ 34%] Building C object external/cpu_features/CMakeFiles/cpu_features.dir/src/cpuinfo_ppc.c.o
/tmp/pamac-build-peng/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_ppc.c: In function ‘GetPPCFeaturesEnumValue’:
/tmp/pamac-build-peng/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_ppc.c:180:3: warning: switch missing default case [-Wswitch-default]
   switch (value) {
   ^~~~~~
/tmp/pamac-build-peng/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_ppc.c: In function ‘GetPPCFeaturesEnumName’:
/tmp/pamac-build-peng/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_ppc.c:271:3: warning: switch missing default case [-Wswitch-default]
   switch (value) {
   ^~~~~~
[ 35%] Building C object external/cpu_features/CMakeFiles/cpu_features.dir/src/cpuinfo_x86.c.o
/tmp/pamac-build-peng/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_x86.c: In function ‘GetX86FeaturesEnumValue’:
/tmp/pamac-build-peng/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_x86.c:264:3: warning: switch missing default case [-Wswitch-default]
   switch (value) {
   ^~~~~~
/tmp/pamac-build-peng/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_x86.c: In function ‘GetX86FeaturesEnumName’:
/tmp/pamac-build-peng/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_x86.c:332:3: warning: switch missing default case [-Wswitch-default]
   switch (value) {
   ^~~~~~
/tmp/pamac-build-peng/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_x86.c: In function ‘GetX86MicroarchitectureName’:
/tmp/pamac-build-peng/anbox-git/src/anbox/external/cpu_features/src/cpuinfo_x86.c:400:3: warning: switch missing default case [-Wswitch-default]
   switch (uarch) {
   ^~~~~~
[ 35%] Building C object external/cpu_features/CMakeFiles/cpu_features.dir/src/filesystem.c.o
[ 36%] Building C object external/cpu_features/CMakeFiles/cpu_features.dir/src/hwcaps.c.o
[ 36%] Building C object external/cpu_features/CMakeFiles/cpu_features.dir/src/stack_line_reader.c.o
[ 36%] Building C object external/cpu_features/CMakeFiles/cpu_features.dir/src/string_view.c.o
[ 38%] Linking C static library libcpu_features.a
[ 38%] Built target cpu_features
Scanning dependencies of target list_cpu_features
[ 39%] Building C object external/cpu_features/CMakeFiles/list_cpu_features.dir/src/utils/list_cpu_features.c.o
/tmp/pamac-build-peng/anbox-git/src/anbox/external/cpu_features/src/utils/list_cpu_features.c: In function ‘PrintEscapedAscii’:
/tmp/pamac-build-peng/anbox-git/src/anbox/external/cpu_features/src/utils/list_cpu_features.c:29:5: warning: switch missing default case [-Wswitch-default]
     switch (*str) {
     ^~~~~~
[ 39%] Linking C executable list_cpu_features
[ 39%] Built target list_cpu_features
[ 40%] Running C++ protocol buffer compiler on anbox/protobuf/anbox_container.proto
[libprotobuf WARNING google/protobuf/compiler/parser.cc:562] No syntax specified for the proto file: anbox_container.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[ 41%] Running C++ protocol buffer compiler on anbox/protobuf/anbox_bridge.proto
[libprotobuf WARNING google/protobuf/compiler/parser.cc:562] No syntax specified for the proto file: anbox_bridge.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[ 41%] Running C++ protocol buffer compiler on anbox/protobuf/anbox_rpc.proto
[libprotobuf WARNING google/protobuf/compiler/parser.cc:562] No syntax specified for the proto file: anbox_rpc.proto. Please use 'syntax = "proto2";' or 'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
Scanning dependencies of target anbox-protobuf
[ 41%] Building CXX object src/CMakeFiles/anbox-protobuf.dir/anbox_bridge.pb.cc.o
[ 41%] Building CXX object src/CMakeFiles/anbox-protobuf.dir/anbox_rpc.pb.cc.o
[ 42%] Building CXX object src/CMakeFiles/anbox-protobuf.dir/anbox_container.pb.cc.o
[ 42%] Building CXX object src/CMakeFiles/anbox-protobuf.dir/anbox/protobuf/google_protobuf_guard.cpp.o
[ 43%] Linking CXX static library libanbox-protobuf.a
[ 43%] Built target anbox-protobuf
Scanning dependencies of target anbox-core
[ 44%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/android/intent.cpp.o
[ 44%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/android/ip_config_builder.cpp.o
[ 45%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/application/database.cpp.o
[ 45%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/application/launcher_storage.cpp.o
[ 46%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/audio/server.cpp.o
[ 46%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/bridge/android_api_stub.cpp.o
[ 46%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/bridge/platform_api_skeleton.cpp.o
[ 47%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/bridge/platform_message_processor.cpp.o
[ 47%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/cmds/container_manager.cpp.o
[ 48%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/cmds/launch.cpp.o
[ 48%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/cmds/session_manager.cpp.o
[ 50%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/cmds/system_info.cpp.o
[ 50%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/cmds/version.cpp.o
[ 51%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/cmds/wait_ready.cpp.o
[ 51%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/cmds/check_features.cpp.o
[ 51%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/common/binary_writer.cpp.o
[ 52%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/common/dispatcher.cpp.o
[ 52%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/common/fd.cpp.o
[ 53%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/common/loop_device_allocator.cpp.o
[ 53%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/common/loop_device.cpp.o
[ 54%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/common/message_channel.cpp.o
[ 54%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/common/mount_entry.cpp.o
[ 55%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/common/wait_handle.cpp.o
[ 55%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/container/client.cpp.o
[ 55%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/container/container.cpp.o
[ 56%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/container/lxc_container.cpp.o
[ 56%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/container/management_api_message_processor.cpp.o
[ 57%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/container/management_api_skeleton.cpp.o
[ 57%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/container/management_api_stub.cpp.o
[ 58%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/container/service.cpp.o
[ 58%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/dbus/bus.cpp.o
[ 59%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/dbus/skeleton/application_manager.cpp.o
[ 59%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/dbus/skeleton/service.cpp.o
[ 59%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/dbus/stub/application_manager.cpp.o
[ 60%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/graphics/buffered_io_stream.cpp.o
[ 60%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/graphics/buffer_queue.cpp.o
[ 61%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/graphics/density.cpp.o
[ 61%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/graphics/gl_renderer_server.cpp.o
[ 63%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/graphics/layer_composer.cpp.o
[ 63%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/graphics/multi_window_composer_strategy.cpp.o
[ 63%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/graphics/opengles_message_processor.cpp.o
[ 64%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/graphics/program_family.cpp.o
[ 64%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/graphics/rect.cpp.o
[ 65%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/graphics/single_window_composer_strategy.cpp.o
[ 65%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/graphics/emugl/ColorBuffer.cpp.o
[ 66%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/graphics/emugl/DisplayManager.cpp.o
[ 66%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/graphics/emugl/ReadBuffer.cpp.o
[ 67%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/graphics/emugl/Renderable.cpp.o
[ 67%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/graphics/emugl/RenderApi.cpp.o
[ 67%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/graphics/emugl/RenderContext.cpp.o
[ 68%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/graphics/emugl/RenderControl.cpp.o
[ 68%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/graphics/emugl/RendererConfig.cpp.o
[ 69%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/graphics/emugl/Renderer.cpp.o
[ 69%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/graphics/emugl/RenderThread.cpp.o
[ 70%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/graphics/emugl/RenderThreadInfo.cpp.o
[ 70%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/graphics/emugl/TextureDraw.cpp.o
[ 71%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/graphics/emugl/TextureResize.cpp.o
[ 71%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/graphics/emugl/TimeUtils.cpp.o
[ 71%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/graphics/emugl/WindowSurface.cpp.o
[ 72%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/input/device.cpp.o
[ 72%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/input/manager.cpp.o
[ 73%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/network/base_socket_messenger.cpp.o
[ 73%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/network/connection_context.cpp.o
[ 75%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/network/connection_creator.cpp.o
[ 75%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/network/credentials.cpp.o
[ 76%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/network/delegate_message_processor.cpp.o
[ 76%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/network/fd_socket_transmission.cpp.o
[ 76%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/network/local_socket_messenger.cpp.o
[ 77%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/network/published_socket_connector.cpp.o
[ 77%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/network/socket_connection.cpp.o
[ 78%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/network/socket_helper.cpp.o
[ 78%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/network/socket_messenger.cpp.o
[ 79%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/network/tcp_socket_connector.cpp.o
[ 79%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/network/tcp_socket_messenger.cpp.o
[ 80%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/platform/base_platform.cpp.o
[ 80%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/platform/null/platform.cpp.o
[ 80%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/platform/sdl/audio_sink.cpp.o
[ 81%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/platform/sdl/keycode_converter.cpp.o
[ 81%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/platform/sdl/platform.cpp.o
[ 82%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/platform/sdl/window.cpp.o
[ 82%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/protobuf/google_protobuf_guard.cpp.o
[ 83%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/qemu/adb_message_processor.cpp.o
[ 83%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/qemu/at_parser.cpp.o
[ 84%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/qemu/bootanimation_message_processor.cpp.o
[ 84%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/qemu/boot_properties_message_processor.cpp.o
[ 84%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/qemu/camera_message_processor.cpp.o
[ 85%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/qemu/fingerprint_message_processor.cpp.o
[ 85%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/qemu/gsm_message_processor.cpp.o
[ 86%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/qemu/hwcontrol_message_processor.cpp.o
[ 86%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/qemu/null_message_processor.cpp.o
[ 88%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/qemu/pipe_connection_creator.cpp.o
[ 88%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/qemu/qemud_message_processor.cpp.o
[ 89%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/qemu/sensors_message_processor.cpp.o
[ 89%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/rpc/channel.cpp.o
[ 89%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/rpc/connection_creator.cpp.o
[ 90%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/rpc/message_processor.cpp.o
[ 90%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/rpc/pending_call_cache.cpp.o
[ 91%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/ui/splash_screen.cpp.o
[ 91%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/utils/environment_file.cpp.o
[ 92%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/wm/display.cpp.o
[ 92%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/wm/manager.cpp.o
[ 92%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/wm/multi_window_manager.cpp.o
[ 93%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/wm/single_window_manager.cpp.o
[ 93%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/wm/stack.cpp.o
[ 94%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/wm/task.cpp.o
[ 94%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/wm/window.cpp.o
[ 95%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/wm/window_state.cpp.o
[ 95%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/cli.cpp.o
[ 96%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/daemon.cpp.o
[ 96%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/logger.cpp.o
[ 96%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/not_reachable.cpp.o
[ 97%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/utils.cpp.o
[ 97%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/runtime.cpp.o
[ 98%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/system_configuration.cpp.o
[ 98%] Linking CXX static library libanbox-core.a
[ 98%] Built target anbox-core
Scanning dependencies of target anbox
[100%] Building CXX object src/CMakeFiles/anbox.dir/main.cpp.o
[100%] Linking CXX executable anbox
[100%] Built target anbox
==> Entering fakeroot environment...
==> Starting package_anbox-git()...
make: Entering directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
make[1]: Entering directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
make[2]: Entering directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
make[2]: Leaving directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
[  8%] Built target process-cpp
make[2]: Entering directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
make[2]: Leaving directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
[ 11%] Built target emugen
make[2]: Entering directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
make[2]: Leaving directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
[ 13%] Built target OpenglCodecCommon
make[2]: Entering directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
make[2]: Leaving directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
make[2]: Entering directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
Generating /tmp/pamac-build-peng/anbox-git/src/anbox/build/external/android-emugl/host/include/OpenGLESDispatch/RenderEGL_functions.h
Generating /tmp/pamac-build-peng/anbox-git/src/anbox/build/external/android-emugl/host/include/OpenGLESDispatch/RenderEGL_extensions_functions.h
Generating /tmp/pamac-build-peng/anbox-git/src/anbox/build/external/android-emugl/host/include/OpenGLESDispatch/gles_common_functions.h
Generating /tmp/pamac-build-peng/anbox-git/src/anbox/build/external/android-emugl/host/include/OpenGLESDispatch/gles_extensions_functions.h
Generating /tmp/pamac-build-peng/anbox-git/src/anbox/build/external/android-emugl/host/include/OpenGLESDispatch/gles1_only_functions.h
Generating /tmp/pamac-build-peng/anbox-git/src/anbox/build/external/android-emugl/host/include/OpenGLESDispatch/gles1_extensions_functions.h
Generating /tmp/pamac-build-peng/anbox-git/src/anbox/build/external/android-emugl/host/include/OpenGLESDispatch/gles2_only_functions.h
Generating /tmp/pamac-build-peng/anbox-git/src/anbox/build/external/android-emugl/host/include/OpenGLESDispatch/gles2_extensions_functions.h
Generating /tmp/pamac-build-peng/anbox-git/src/anbox/build/external/android-emugl/host/include/OpenGLESDispatch/gles3_only_functions.h
make[2]: Leaving directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
[ 13%] Built target GLHeaders
make[2]: Entering directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
make[2]: Leaving directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
[ 15%] Built target GLESv1_dec
make[2]: Entering directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
make[2]: Leaving directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
[ 17%] Built target GLESv2_dec
make[2]: Entering directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
make[2]: Leaving directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
[ 23%] Built target emugl_common
make[2]: Entering directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
Scanning dependencies of target OpenGLESDispatch
make[2]: Leaving directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
make[2]: Entering directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
[ 23%] Building CXX object external/android-emugl/host/libs/libOpenGLESDispatch/CMakeFiles/OpenGLESDispatch.dir/EGLDispatch.cpp.o
[ 25%] Building CXX object external/android-emugl/host/libs/libOpenGLESDispatch/CMakeFiles/OpenGLESDispatch.dir/GLESv2Dispatch.cpp.o
[ 25%] Building CXX object external/android-emugl/host/libs/libOpenGLESDispatch/CMakeFiles/OpenGLESDispatch.dir/GLESv1Dispatch.cpp.o
[ 26%] Linking CXX static library libOpenGLESDispatch.a
make[2]: Leaving directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
[ 26%] Built target OpenGLESDispatch
make[2]: Entering directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
make[2]: Leaving directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
[ 28%] Built target renderControl_dec
make[2]: Entering directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
make[2]: Leaving directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
[ 29%] Built target xdg
make[2]: Entering directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
make[2]: Leaving directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
[ 30%] Built target xdg_test
make[2]: Entering directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
make[2]: Leaving directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
[ 30%] Built target backward_object
make[2]: Entering directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
make[2]: Leaving directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
[ 31%] Built target backward
make[2]: Entering directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
make[2]: Leaving directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
[ 38%] Built target cpu_features
make[2]: Entering directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
make[2]: Leaving directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
[ 39%] Built target list_cpu_features
make[2]: Entering directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
make[2]: Leaving directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
[ 43%] Built target anbox-protobuf
make[2]: Entering directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
Scanning dependencies of target anbox-core
make[2]: Leaving directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
make[2]: Entering directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
[ 44%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/cmds/system_info.cpp.o
[ 45%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/graphics/program_family.cpp.o
[ 45%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/graphics/emugl/ColorBuffer.cpp.o
[ 45%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/graphics/emugl/RenderApi.cpp.o
[ 45%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/graphics/emugl/RenderContext.cpp.o
[ 46%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/graphics/emugl/RenderControl.cpp.o
[ 46%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/graphics/emugl/RendererConfig.cpp.o
[ 47%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/graphics/emugl/Renderer.cpp.o
[ 47%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/graphics/emugl/RenderThread.cpp.o
[ 47%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/graphics/emugl/TextureDraw.cpp.o
[ 48%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/graphics/emugl/TextureResize.cpp.o
[ 48%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/graphics/emugl/WindowSurface.cpp.o
[ 48%] Linking CXX static library libanbox-core.a
make[2]: Leaving directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
[ 98%] Built target anbox-core
make[2]: Entering directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
make[2]: Leaving directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
make[2]: Entering directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
[ 98%] Linking CXX executable anbox
make[2]: Leaving directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
[100%] Built target anbox
make[1]: Leaving directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
Install the project...
-- Install configuration: "Release"
-- Installing: /tmp/pamac-build-peng/anbox-git/pkg/anbox-git/usr/share/anbox/ui/loading-screen.png
-- Installing: /tmp/pamac-build-peng/anbox-git/pkg/anbox-git/usr/include/backward.hpp
-- Installing: /tmp/pamac-build-peng/anbox-git/pkg/anbox-git/usr/lib/backward/BackwardConfig.cmake
-- Installing: /tmp/pamac-build-peng/anbox-git/pkg/anbox-git/usr/lib/libcpu_features.a
-- Installing: /tmp/pamac-build-peng/anbox-git/pkg/anbox-git/usr/include/cpu_features/cpuinfo_aarch64.h
-- Installing: /tmp/pamac-build-peng/anbox-git/pkg/anbox-git/usr/include/cpu_features/cpuinfo_arm.h
-- Installing: /tmp/pamac-build-peng/anbox-git/pkg/anbox-git/usr/include/cpu_features/cpuinfo_mips.h
-- Installing: /tmp/pamac-build-peng/anbox-git/pkg/anbox-git/usr/include/cpu_features/cpuinfo_ppc.h
-- Installing: /tmp/pamac-build-peng/anbox-git/pkg/anbox-git/usr/include/cpu_features/cpuinfo_x86.h
-- Installing: /tmp/pamac-build-peng/anbox-git/pkg/anbox-git/usr/include/cpu_features/cpu_features_macros.h
-- Installing: /tmp/pamac-build-peng/anbox-git/pkg/anbox-git/usr/bin/list_cpu_features
-- Installing: /tmp/pamac-build-peng/anbox-git/pkg/anbox-git/usr/lib/cmake/CpuFeatures/CpuFeaturesTargets.cmake
-- Installing: /tmp/pamac-build-peng/anbox-git/pkg/anbox-git/usr/lib/cmake/CpuFeatures/CpuFeaturesTargets-release.cmake
-- Installing: /tmp/pamac-build-peng/anbox-git/pkg/anbox-git/usr/lib/cmake/CpuFeatures/CpuFeaturesConfig.cmake
-- Installing: /tmp/pamac-build-peng/anbox-git/pkg/anbox-git/usr/lib/cmake/CpuFeatures/CpuFeaturesConfigVersion.cmake
-- Installing: /tmp/pamac-build-peng/anbox-git/pkg/anbox-git/usr/bin/anbox
make: Leaving directory '/tmp/pamac-build-peng/anbox-git/src/anbox/build'
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> WARNING: Package contains reference to $srcdir
usr/bin/anbox
==> Creating package "anbox-git"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Starting package_anbox-modules-dkms-git()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "anbox-modules-dkms-git"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: anbox-git 1:r982.82f31f3-1 (Fri 07 Sep 2018 05:49:24 PM EDT)
==> Cleaning up...

Resolving dependencies...
Checking inter-conflicts...
Checking keyring...
Checking integrity...
Loading packages files...
Checking file conflicts...
Checking available disk space...
Installing anbox-modules-dkms-git (1:r982.82f31f3-1)...
Running post-transaction hooks...
Install DKMS modules
==> Unable to install module anbox-modules-ashmem/r982.82f31f3 for kernel 4.14.67-1-MANJARO: Missing kernel headers.
==> Unable to install module anbox-modules-binder/r982.82f31f3 for kernel 4.16.18-rt12-MANJARO: Missing kernel headers.
==> Unable to install module anbox-modules-ashmem/r982.82f31f3 for kernel 4.16.18-rt12-MANJARO: Missing kernel headers.
==> Unable to install module anbox-modules-binder/r982.82f31f3 for kernel 4.14.67-1-MANJARO: Missing kernel headers.
Arming ConditionNeedsUpdate...
Transaction successfully finished.

Installation of kernel module anbox-binder failed with compilation error on RHEL 8.3

Failed to install module anbox-binder because of a compilation error. The log message is provided below:

DKMS make.log for anbox-binder-1 for kernel 4.18.0-240.8.1.el8_3.x86_64 (x86_64)  
2020年 12月 19日 星期六 00:47:15 CST  
make -C /lib/modules/4.18.0-240.8.1.el8_3.x86_64/build V=0 M=$PWD  
make[1]: 进入目录“/usr/src/kernels/4.18.0-240.8.1.el8_3.x86_64”  
  CC [M]  /var/lib/dkms/anbox-binder/1/build/deps.o  
  CC [M]  /var/lib/dkms/anbox-binder/1/build/binder.o  
/var/lib/dkms/anbox-binder/1/build/binder.c:3408:11: 错误:initialization of ‘vm_fault_t (*)(struct vm_fault *)’ {或称 ‘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-binder/1/build/binder.c:3408:11: 附注:(在‘binder_vm_ops.fault’的初始化附近)  
cc1:有些警告被当作是错误  
make[2]: *** [scripts/Makefile.build:315:/var/lib/dkms/anbox-binder/1/build/binder.o] 错误 1  
make[1]: *** [Makefile:1544:_module_/var/lib/dkms/anbox-binder/1/build] 错误 2  
make[1]: 离开目录“/usr/src/kernels/4.18.0-240.8.1.el8_3.x86_64”  
make: *** [Makefile:8:all] 错误 2  

It seems that the compiler flag -Werror was enabled, but I didn't find it in the makefile.
uname -a: Linux ThinkPad-P15v-Gen1 4.18.0-240.8.1.el8_3.x86_64 #1 SMP Fri Dec 4 12:24:03 EST 2020 x86_64 x86_64 x86_64 GNU/Linux

Build error on Kernel 5.7.0

The kernel modules do not seem to install on kernel 5.7.0-rc2

Asmem:

DKMS make.log for anbox-modules-ashmem-r1166.1edeb4f for kernel 5.7.0-rc2-1-git-00355-gab51cac00ef2 (x86_64)
Sat 25 Apr 2020 12:16:40 PM CEST
make -C /lib/modules/5.7.0-rc2-1-git-00355-gab51cac00ef2/build V=0 M=$PWD
make[1]: Entering directory '/usr/lib/modules/5.7.0-rc2-1-git-00355-gab51cac00ef2/build'
  AR      /var/lib/dkms/anbox-modules-ashmem/r1166.1edeb4f/build/built-in.a
  CC [M]  /var/lib/dkms/anbox-modules-ashmem/r1166.1edeb4f/build/deps.o
  CC [M]  /var/lib/dkms/anbox-modules-ashmem/r1166.1edeb4f/build/ashmem.o
  LD [M]  /var/lib/dkms/anbox-modules-ashmem/r1166.1edeb4f/build/ashmem_linux.o
  MODPOST 1 modules
ERROR: modpost: "kallsyms_lookup_name" [/var/lib/dkms/anbox-modules-ashmem/r1166.1edeb4f/build/ashmem_linux.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:94: __modpost] Error 1
make[1]: *** [Makefile:1635: modules] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.7.0-rc2-1-git-00355-gab51cac00ef2/build'
make: *** [Makefile:12: all] Error 2

Binder:

DKMS make.log for anbox-modules-binder-r1166.1edeb4f for kernel 5.7.0-rc2-1-git-00355-gab51cac00ef2 (x86_64)
Sat 25 Apr 2020 12:16:36 PM CEST
make -C /lib/modules/5.7.0-rc2-1-git-00355-gab51cac00ef2/build V=0 M=$PWD
make[1]: Entering directory '/usr/lib/modules/5.7.0-rc2-1-git-00355-gab51cac00ef2/build'
  AR      /var/lib/dkms/anbox-modules-binder/r1166.1edeb4f/build/built-in.a
  CC [M]  /var/lib/dkms/anbox-modules-binder/r1166.1edeb4f/build/deps.o
  CC [M]  /var/lib/dkms/anbox-modules-binder/r1166.1edeb4f/build/binder.o
  LD [M]  /var/lib/dkms/anbox-modules-binder/r1166.1edeb4f/build/binder_linux.o
  MODPOST 1 modules
ERROR: modpost: "kallsyms_lookup_name" [/var/lib/dkms/anbox-modules-binder/r1166.1edeb4f/build/binder_linux.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:94: __modpost] Error 1
make[1]: *** [Makefile:1635: modules] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.7.0-rc2-1-git-00355-gab51cac00ef2/build'
make: *** [Makefile:8: all] Error 2

Any thoughts on?

debian 10 linux 4.4.154

I have the linux sdk source. Do I still need to use this?
I can modify config to generate /dev/binder /dev/ashmem
root@rk3288:$ ls -alh /dev/binder /dev/ashmem
crw------- 1 root root 10, 62 Oct 17 02:26 /dev/ashmem
crw------- 1 root root 10, 61 Oct 17 02:26 /dev/binder
root@rk3288:
$

But it ends immediately after running

[ 66.068586] IPv6: ADDRCONF(NETDEV_UP): veth84N6CR: link is not ready
[ 66.079042] IPVS: Creating netns size=1104 id=4
[ 66.144121] eth0: renamed from veth0UNFAJ
[ 66.201683] IPv6: ADDRCONF(NETDEV_CHANGE): veth84N6CR: link becomes ready
[ 66.208689] anbox0: port 1(veth84N6CR) entered listening state
[ 66.214597] anbox0: port 1(veth84N6CR) entered listening state
[ 66.826058] init: init first stage started!
[ 66.831333] init: init second stage started!
[ 66.848425] init: Running restorecon...
[ 66.853164] init: waitpid failed: No child processes
[ 66.858790] init: (Loading properties from /default.prop took 0.00s.)
[ 66.868588] init: (Parsing /init.environ.rc took 0.00s.)
[ 66.875405] init: (Parsing /init.usb.rc took 0.00s.)
[ 66.881496] init: (Parsing /init.goldfish.rc took 0.00s.)
[ 66.887774] init: (Parsing /init.zygote32.rc took 0.00s.)
[ 66.893731] init: (Parsing /init.rc took 0.03s.)
[ 66.899241] init: write_file: Unable to open '/proc/sys/kernel/sysrq': Read-only file system
[ 66.908621] init: Starting service 'ueventd'...
[ 66.913677] init: Waiting for /dev/.coldboot_done...
[ 66.914900] ueventd: ueventd started!
[ 66.926036] ueventd: Coldboot took 0.00s.
[ 66.932831] init: Waiting for /dev/.coldboot_done took 0.02s.
[ 66.938726] init: /dev/hw_random not found
[ 66.945597] init: write_file: Unable to open '/proc/sys/kernel/panic_on_oops': Read-only file system
[ 66.955376] init: write_file: Unable to open '/proc/sys/kernel/hung_task_timeout_secs': Read-only file system
[ 66.965902] init: write_file: Unable to open '/proc/sys/kernel/sched_tunable_scaling': Read-only file system
[ 66.976194] init: write_file: Unable to open '/proc/sys/kernel/sched_latency_ns': Read-only file system
[ 66.985849] init: write_file: Unable to open '/proc/sys/kernel/sched_wakeup_granularity_ns': Read-only file system
[ 66.996365] init: write_file: Unable to open '/proc/sys/kernel/sched_child_runs_first': Read-only file system
[ 67.006412] init: write_file: Unable to open '/proc/sys/kernel/randomize_va_space': Read-only file system
[ 67.016099] init: write_file: Unable to open '/proc/sys/kernel/kptr_restrict': Read-only file system
[ 67.025368] init: write_file: Unable to open '/proc/sys/vm/mmap_min_addr': Read-only file system
[ 67.034367] init: write_file: Unable to open '/proc/sys/kernel/sched_rt_runtime_us': Read-only file system
[ 67.044158] init: write_file: Unable to open '/proc/sys/kernel/sched_rt_period_us': Read-only file system
[ 67.054666] cgroup: new mount options do not match the existing superblock, will be ignored
[ 67.063175] init: write_file: Unable to open '/dev/cpuset/foreground/cpus': Permission denied
[ 67.071767] init: write_file: Unable to open '/dev/cpuset/foreground/mems': Permission denied
[ 67.080453] init: write_file: Unable to open '/dev/cpuset/foreground/boost/cpus': Permission denied
[ 67.089569] init: write_file: Unable to open '/dev/cpuset/foreground/boost/mems': Permission denied
[ 67.098788] init: write_file: Unable to open '/dev/cpuset/background/cpus': Permission denied
[ 67.107416] init: write_file: Unable to open '/dev/cpuset/background/mems': Permission denied
[ 67.116157] init: write_file: Unable to open '/dev/cpuset/system-background/cpus': Permission denied
[ 67.125405] init: write_file: Unable to open '/dev/cpuset/system-background/mems': Permission denied
[ 67.134760] init: write_file: Unable to open '/dev/cpuset/top-app/cpus': Permission denied
[ 67.143089] init: write_file: Unable to open '/dev/cpuset/top-app/mems': Permission denied
[ 67.152199] init: write_file: Unable to open '/proc/sys/abi/swp': No such file or directory
[ 67.161318] fs_mgr: No entries found in fstab
[ 67.166006] init: fs_mgr_mount_all returned an error
[ 67.181599] init: (Parsing /system/etc/init/anboxd.rc took 0.01s.)
[ 67.188336] init: (Parsing /system/etc/init/atrace.rc took 0.00s.)
[ 67.194776] init: (Parsing /system/etc/init/audioserver.rc took 0.00s.)
[ 67.201510] init: (Parsing /system/etc/init/bootanim.rc took 0.00s.)
[ 67.208228] init: (Parsing /system/etc/init/bootstat.rc took 0.00s.)
[ 67.214869] init: (Parsing /system/etc/init/cameraserver.rc took 0.00s.)
[ 67.221718] init: (Parsing /system/etc/init/debuggerd.rc took 0.00s.)
[ 67.228391] init: (Parsing /system/etc/init/drmserver.rc took 0.00s.)
[ 67.235130] init: (Parsing /system/etc/init/dumpstate.rc took 0.00s.)
[ 67.241745] init: (Parsing /system/etc/init/gatekeeperd.rc took 0.00s.)
[ 67.248588] init: (Parsing /system/etc/init/init-debug.rc took 0.00s.)
[ 67.255319] init: (Parsing /system/etc/init/installd.rc took 0.00s.)
[ 67.261843] init: (Parsing /system/etc/init/keystore.rc took 0.00s.)
[ 67.268420] init: (Parsing /system/etc/init/lmkd.rc took 0.00s.)
[ 67.274741] init: (Parsing /system/etc/init/logcatd.rc took 0.00s.)
[ 67.281177] init: (Parsing /system/etc/init/logd.rc took 0.00s.)
[ 67.287410] init: (Parsing /system/etc/init/mdnsd.rc took 0.00s.)
[ 67.293663] init: (Parsing /system/etc/init/mediacodec.rc took 0.00s.)
[ 67.300378] init: (Parsing /system/etc/init/mediadrmserver.rc took 0.00s.)
[ 67.307490] init: (Parsing /system/etc/init/mediaextractor.rc took 0.00s.)
[ 67.314594] init: (Parsing /system/etc/init/mediaserver.rc took 0.00s.)
[ 67.321372] init: (Parsing /system/etc/init/mtpd.rc took 0.00s.)
[ 67.327640] init: (Parsing /system/etc/init/netd.rc took 0.00s.)
[ 67.333822] init: (Parsing /system/etc/init/perfprofd.rc took 0.00s.)
[ 67.340503] init: (Parsing /system/etc/init/racoon.rc took 0.00s.)
[ 67.350796] init: (Parsing /system/etc/init/servicemanager.rc took 0.00s.)
[ 67.358299] init: (Parsing /system/etc/init/surfaceflinger.rc took 0.00s.)
[ 67.365419] init: (Parsing /system/etc/init/uncrypt.rc took 0.00s.)
[ 67.372172] init: (Parsing /system/etc/init/vdc.rc took 0.00s.)
[ 67.378387] init: (Parsing /system/etc/init/vold.rc took 0.00s.)
[ 67.384788] init: fs_mgr_mount_all returned unexpected error 255
[ 67.393795] init: Starting service 'logd'...
[ 67.401988] init: property_set("ro.hardware", "goldfish") failed
[ 67.409235] init: (Loading properties from /system/build.prop took 0.01s.)
[ 67.416666] init: (Loading properties from /vendor/build.prop took 0.00s.)
[ 67.416703] init: (Loading properties from /factory/factory.prop took 0.00s.)
[ 67.416793] fs_mgr: No entries found in fstab
[ 67.416812] init: unable to read fstab /fstab.goldfish: No such file or directory
[ 67.417043] init: Starting service 'debuggerd'...
[ 67.417554] init: do_start: Service debuggerd64 not found
[ 67.417804] init: Starting service 'vold'...
[ 67.446314] init: Not bootcharting.
[ 67.742688] fs_mgr: No entries found in fstab
[ 67.758625] init: Starting service 'exec 1 (/system/bin/tzdatacheck)'...
[ 67.784337] init: Service 'exec 1 (/system/bin/tzdatacheck)' (pid 19) exited with status 0
[ 67.793056] init: (Loading properties from /data/local.prop took 0.00s.)
[ 67.800206] init: Starting service 'logd-reinit'...
[ 67.805921] init: write_file: Unable to open '/proc/sys/kernel/hostname': Read-only file system
[ 67.814723] init: write_file: Unable to open '/proc/sys/kernel/domainname': Read-only file system
[ 67.823713] init: Service 'logd-reinit' (pid 20) exited with status 0
[ 67.830254] init: write_file: Unable to open '/proc/sys/vm/overcommit_memory': Read-only file system
[ 67.839447] init: write_file: Unable to open '/proc/sys/vm/min_free_order_shift': No such file or directory
[ 67.849288] init: write_file: Unable to open '/proc/sys/vm/dirty_expire_centisecs': Read-only file system
[ 67.858898] init: write_file: Unable to open '/proc/sys/vm/dirty_background_ratio': Read-only file system
[ 67.870033] init: Starting service 'healthd'...
[ 67.875152] init: Starting service 'qemu-props'...
[ 67.891753] init: Starting service 'anboxd'...
[ 67.896701] init: Starting service 'anbox-log-dumper'...
[ 67.902519] init: Starting service 'lmkd'...
[ 67.907388] init: Starting service 'servicemanager'...
[ 67.913074] init: Starting service 'surfaceflinger'...
[ 67.918842] init: cannot find '/system/bin/install-recovery.sh' (No such file or directory), disabling 'flash_recovery'
[ 67.930087] init: Starting service 'zygote'...
[ 67.935014] init: Starting service 'audioserver'...
[ 67.951024] init: Starting service 'cameraserver'...
[ 67.951738] binder: 1218:1218 transaction failed 29189/-22, size 0-0 line 2961
[ 67.963678] init: couldn't write 30 to /dev/cpuset/camera-daemon/tasks: No such file or directory
[ 67.963722] init: Starting service 'drm'...
[ 67.964199] init: Starting service 'installd'...
[ 67.964711] init: Starting service 'keystore'...
[ 67.965130] init: Starting service 'mediacodec'...
[ 67.965540] init: Starting service 'mediadrm'...
[ 67.965948] init: Starting service 'mediaextractor'...
[ 67.966354] init: Starting service 'media'...
[ 67.966804] init: Starting service 'netd'...
[ 67.967312] init: Starting service 'fingerprintd'...
[ 67.967696] init: Starting service 'gatekeeperd'...
[ 67.968744] init: Starting service 'perfprofd'...
[ 67.969348] init: property_set("ro.build.product", "generic") failed
[ 67.969365] init: property_set("ro.product.device", "generic") failed
[ 67.969610] init: do_stop: Service dund not found
[ 67.969622] init: do_stop: Service akmd not found
[ 67.970955] init: Starting service 'qemud'...
[ 67.971326] init: Starting service 'goldfish-logcat'...
[ 67.972957] init: Starting service 'goldfish-setup'...
[ 67.973577] init: write_file: Unable to open '/proc/sys/kernel/perf_event_paranoid': Read-only file system
[ 67.973844] init: Starting service 'console'...
[ 67.978846] init: Starting service 'adbd'...
[ 67.979279] init: write_file: Unable to open '/sys/class/android_usb/android0/enable': No such file or directory
[ 67.979307] init: write_file: Unable to open '/sys/class/android_usb/android0/idVendor': No such file or directory
[ 67.979329] init: write_file: Unable to open '/sys/class/android_usb/android0/idProduct': No such file or directory
[ 67.979357] init: write_file: Unable to open '/sys/class/android_usb/android0/functions': No such file or directory
[ 67.979378] init: write_file: Unable to open '/sys/class/android_usb/android0/enable': No such file or directory
[ 67.983731] init: write_file: Unable to open '/sys/class/android_usb/android0/enable': No such file or directory
[ 67.983762] init: write_file: Unable to open '/sys/class/android_usb/android0/idVendor': No such file or directory
[ 67.983784] init: write_file: Unable to open '/sys/class/android_usb/android0/idProduct': No such file or directory
[ 67.983811] init: write_file: Unable to open '/sys/class/android_usb/android0/functions': No such file or directory
[ 67.983834] init: write_file: Unable to open '/sys/class/android_usb/android0/enable': No such file or directory
[ 67.985172] init: write_file: Unable to open '/sys/class/android_usb/android0/enable': No such file or directory
[ 67.985200] init: write_file: Unable to open '/sys/class/android_usb/android0/idVendor': No such file or directory
[ 67.985223] init: write_file: Unable to open '/sys/class/android_usb/android0/idProduct': No such file or directory
[ 67.985250] init: write_file: Unable to open '/sys/class/android_usb/android0/functions': No such file or directory
[ 67.985280] init: write_file: Unable to open '/sys/class/android_usb/android0/enable': No such file or directory
[ 67.986485] init: Service 'qemu-props' (pid 22) exited with status 0
[ 67.990647] binder: 1220:1220 transaction failed 29189/-22, size 0-0 line 2961
[ 68.431908] init: Service 'qemud' (pid 42) exited with status 1
[ 68.489730] init: property_set("ro.radio.noril", "yes") failed
[ 68.556512] init: no such service 'ril-daemon'
[ 68.608076] init: Service 'goldfish-setup' (pid 44) exited with status 0
[ 68.952338] healthd: No battery devices found
[ 69.558593] anbox0: port 1(veth84N6CR) entered disabled state
[ 69.568018] device veth84N6CR left promiscuous mode
[ 69.572902] anbox0: port 1(veth84N6CR) entered disabled state

Could you make anbox10 or similar branch?

I porting android 10 in Anbox.
So, I wish 'Pull requests' my code to your repositories.
In this time only display enabled, but I will support touch event and networks ASAP.
Can you make anbox10 or other similar branch to push my code to your branch?
(anbox-moudeues and other repositories)

ERROR: modpost: "kallsyms_lookup_name" [/var/lib/dkms/anbox-ashmem/1/build/ashmem_linux.ko] undefined!

sudo dkms install anbox-ashmem/1

[root@centos boot]# sudo dkms install anbox-ashmem/1

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j20 KERNELRELEASE=5.9.13-1.el8.elrepo.x86_64 all KERNEL_SRC=/lib/modules/5.9.13-1.el8.elrepo.x86_64/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.9.13-1.el8.elrepo.x86_64 (x86_64)
Consult /var/lib/dkms/anbox-ashmem/1/build/make.log for more information.
[root@centos boot]# cat /var/lib/dkms/anbox-ashmem/1/build/make.log
DKMS make.log for anbox-ashmem-1 for kernel 5.9.13-1.el8.elrepo.x86_64 (x86_64)
Thu Dec 10 19:16:42 IST 2020
make -C /lib/modules/5.9.13-1.el8.elrepo.x86_64/build V=0 M=$PWD
make[1]: Entering directory '/usr/src/kernels/5.9.13-1.el8.elrepo.x86_64'
  AR      /var/lib/dkms/anbox-ashmem/1/build/built-in.a
  CC [M]  /var/lib/dkms/anbox-ashmem/1/build/deps.o
  CC [M]  /var/lib/dkms/anbox-ashmem/1/build/ashmem.o
  LD [M]  /var/lib/dkms/anbox-ashmem/1/build/ashmem_linux.o
  MODPOST /var/lib/dkms/anbox-ashmem/1/build/Module.symvers
ERROR: modpost: "kallsyms_lookup_name" [/var/lib/dkms/anbox-ashmem/1/build/ashmem_linux.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:111: /var/lib/dkms/anbox-ashmem/1/build/Module.symvers] Error 1
make[2]: *** Deleting file '/var/lib/dkms/anbox-ashmem/1/build/Module.symvers'
make[1]: *** [Makefile:1697: modules] Error 2
make[1]: Leaving directory '/usr/src/kernels/5.9.13-1.el8.elrepo.x86_64'
make: *** [Makefile:12: all] Error 2

sudo dkms install anbox-binder/1

[root@centos boot]# sudo dkms install anbox-binder/1

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j20 KERNELRELEASE=5.9.13-1.el8.elrepo.x86_64 all KERNEL_SRC=/lib/modules/5.9.13-1.el8.elrepo.x86_64/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.9.13-1.el8.elrepo.x86_64 (x86_64)
Consult /var/lib/dkms/anbox-binder/1/build/make.log for more information.
[root@centos boot]# cat /var/lib/dkms/anbox-binder/1/build/make.log
DKMS make.log for anbox-binder-1 for kernel 5.9.13-1.el8.elrepo.x86_64 (x86_64)
Thu Dec 10 19:27:08 IST 2020
make -C /lib/modules/5.9.13-1.el8.elrepo.x86_64/build V=0 M=$PWD
make[1]: Entering directory '/usr/src/kernels/5.9.13-1.el8.elrepo.x86_64'
  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
/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’?
   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’?
   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’?
   up_write(&mm->mmap_sem);
                 ^~~~~~~~
                 mmap_base
make[2]: *** [scripts/Makefile.build:283: /var/lib/dkms/anbox-binder/1/build/binder.o] Error 1
make[1]: *** [Makefile:1784: /var/lib/dkms/anbox-binder/1/build] Error 2
make[1]: Leaving directory '/usr/src/kernels/5.9.13-1.el8.elrepo.x86_64'
make: *** [Makefile:8: all] Error 2

Issues with kernel 5.3 rc3

I am running on linux kernel 5.3 rc3 with Ubuntu 19.04 and getting the following errors when trying to install anbox-modules-dkms:

Sætter anbox-modules-dkms (13~disco1) op ...
Removing old anbox-1 DKMS files...

------------------------------
Deleting module version: 1
completely from the DKMS tree.
------------------------------
Done.
Loading new anbox-1 DKMS files...
Building for 5.3.0-050300rc3-generic
Building initial module for 5.3.0-050300rc3-generic
ERROR (dkms apport): kernel package linux-headers-5.3.0-050300rc3-generic is not supported
Error! Bad return status for module build on kernel: 5.3.0-050300rc3-generic (x86_64)
Consult /var/lib/dkms/anbox/1/build/make.log for more information.
dpkg: fejl under behandling af pakken anbox-modules-dkms (--configure):
 installed anbox-modules-dkms package post-installation script subprocess returned error exit status 10
Der opstod fejl under behandlingen:
 anbox-modules-dkms

This is the log:

DKMS make.log for anbox-1 for kernel 5.3.0-050300rc3-generic (x86_64)                                                                                                                                                
man 12 aug 14:20:26 CEST 2019                                                                                                                                                                                        
make: Entering directory '/var/lib/dkms/anbox/1/build/ashmem'                                                                                                                                                        
make -C /lib/modules/5.3.0-050300rc3-generic/build V=0 M=$PWD                                                                                                                                                        
make[1]: Entering directory '/usr/src/linux-headers-5.3.0-050300rc3-generic'                                                                                                                                         
  CC [M]  /var/lib/dkms/anbox/1/build/ashmem/deps.o                                                                                                                                                                  
  CC [M]  /var/lib/dkms/anbox/1/build/ashmem/ashmem.o                                                                                                                                                                
  LD [M]  /var/lib/dkms/anbox/1/build/ashmem/ashmem_linux.o                                                                                                                                                          
  Building modules, stage 2.                                                                                                                                                                                         
  MODPOST 1 modules
  CC      /var/lib/dkms/anbox/1/build/ashmem/ashmem_linux.mod.o
  LD [M]  /var/lib/dkms/anbox/1/build/ashmem/ashmem_linux.ko
make[1]: Leaving directory '/usr/src/linux-headers-5.3.0-050300rc3-generic'
make: Leaving directory '/var/lib/dkms/anbox/1/build/ashmem'
make: Entering directory '/var/lib/dkms/anbox/1/build/binder'
make -C /lib/modules/5.3.0-050300rc3-generic/build V=0 M=$PWD
make[1]: Entering directory '/usr/src/linux-headers-5.3.0-050300rc3-generic'
  CC [M]  /var/lib/dkms/anbox/1/build/binder/deps.o
  CC [M]  /var/lib/dkms/anbox/1/build/binder/binder.o
/var/lib/dkms/anbox/1/build/binder/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/1/build/binder/binder.c:3406:11: note: (near initialization for ‘binder_vm_ops.fault’)
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:273: /var/lib/dkms/anbox/1/build/binder/binder.o] Error 1
make[1]: *** [Makefile:1621: _module_/var/lib/dkms/anbox/1/build/binder] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.3.0-050300rc3-generic'
make: *** [Makefile:8: all] Error 2
make: Leaving directory '/var/lib/dkms/anbox/1/build/binder'

unable to install the modules on armhf

Ive recently compile a kenel to have the proper headers (they arent on the repo)
the log is strange

DKMS make.log for anbox-ashmem-1 for kernel 5.1.0-v7+ (armv7l)
vie may 10 13:24:08 -03 2019
make -C /lib/modules/5.1.0-v7+/build V=0 M=$PWD

why its trying to load something of my linux compilation folder??

make[1]: se entra en el directorio '/home/pi/Desktop/linux'

i need to export my gcc??

make[1]: gcc: No se encontró el programa
  CC [M]  /var/lib/dkms/anbox-ashmem/1/build/deps.o
/bin/sh: 1: gcc: not found
scripts/Makefile.build:275: fallo en las instrucciones para el objetivo '/var/lib/dkms/anbox-ashmem/1/build/deps.o'
make[2]: *** [/var/lib/dkms/anbox-ashmem/1/build/deps.o] Error 127
make[2]: *** Se espera a que terminen otras tareas....
  CC [M]  /var/lib/dkms/anbox-ashmem/1/build/ashmem.o
/bin/sh: 1: gcc: not found
scripts/Makefile.build:275: fallo en las instrucciones para el objetivo '/var/lib/dkms/anbox-ashmem/1/build/ashmem.o'
make[2]: *** [/var/lib/dkms/anbox-ashmem/1/build/ashmem.o] Error 127
Makefile:1571: fallo en las instrucciones para el objetivo '_module_/var/lib/dkms/anbox-ashmem/1/build'
make[1]: *** [_module_/var/lib/dkms/anbox-ashmem/1/build] Error 2
make[1]: se sale del directorio '/home/pi/Desktop/linux'
Makefile:12: fallo en las instrucciones para el objetivo 'all'
make: *** [all] Error 2
pi@pi:~ $ gcc --version
gcc (GCC) 8.1.0
Copyright (C) 2018 Free Software Foundation, Inc.
Esto es software libre; vea el código para las condiciones de copia.  NO hay
garantía; ni siquiera para MERCANTIBILIDAD o IDONEIDAD PARA UN PROPÓSITO EN
PARTICULAR

Version tag / release to pinpoint

Having a git tag / release pinned would greatly help in creating a module for gentoo, as it needs some reference to build against.

While its possible to simply pull the latest master-state from git, it won't be accepted by gentoo-upstream (afaik).

Maybe such can be considered once the 5.8 kernel fixes are implemented.

Snap can't find libudev.so.1 despite it being installed

I have libudev.so.1 installed, so why can't the snap find it? Is there a way to modify/unsquashfs the Snap package before it is installed? After it's installed it mounts as read-only, and in my particular version (xubuntu 16.04.3 very old) the particular snap "Core" can't even be removed or unmounted!

CentOS 7.7 Build Failed

Hello there,

My machine has CentOS Linux release 7.7.1908 (Core).
Steps sudo dkms install anbox-ashmen/1 is failed with following error.
`
Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
make -j8 KERNELRELEASE=3.10.0-1062.12.1.el7.x86_64 all KERNEL_SRC=/lib/modules/3.10.0-1062.12.1.el7.x86_64/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 3.10.0-1062.12.1.el7.x86_64 (x86_64)
Here is the log -
DKMS make.log for anbox-ashmen-1 for kernel 3.10.0-1062.12.1.el7.x86_64 (x86_64)
Sat Feb 29 13:58:37 IST 2020
make -C /lib/modules/3.10.0-1062.12.1.el7.x86_64/build V=0 M=$PWD
make[1]: Entering directory /usr/src/kernels/3.10.0-1062.12.1.el7.x86_64' LD /var/lib/dkms/anbox-ashmen/1/build/built-in.o CC [M] /var/lib/dkms/anbox-ashmen/1/build/deps.o CC [M] /var/lib/dkms/anbox-ashmen/1/build/ashmem.o /var/lib/dkms/anbox-ashmen/1/build/deps.c: In function ‘shmem_zero_setup’: /var/lib/dkms/anbox-ashmen/1/build/deps.c:9:24: warning: assignment makes pointer from integer without a cast [enabled by default] shmem_zero_setup_ptr = kallsyms_lookup_name("shmem_zero_setup"); ^ /var/lib/dkms/anbox-ashmen/1/build/deps.c: At top level: cc1: warning: unrecognized command line option "-Wno-int-conversion" [enabled by default] /var/lib/dkms/anbox-ashmen/1/build/ashmem.c: In function ‘ashmem_read’: /var/lib/dkms/anbox-ashmen/1/build/ashmem.c:324:3: warning: passing argument 2 of ‘kernel_read’ makes integer from pointer without a cast [enabled by default] ret = kernel_read(asma->file, buf, len, pos); ^ In file included from /var/lib/dkms/anbox-ashmen/1/build/ashmem.c:25:0: include/linux/fs.h:2877:12: note: expected ‘loff_t’ but argument is of type ‘char *’ extern int kernel_read(struct file *, loff_t, char *, unsigned long); ^ /var/lib/dkms/anbox-ashmen/1/build/ashmem.c:324:3: warning: passing argument 3 of ‘kernel_read’ makes pointer from integer without a cast [enabled by default] ret = kernel_read(asma->file, buf, len, pos); ^ In file included from /var/lib/dkms/anbox-ashmen/1/build/ashmem.c:25:0: include/linux/fs.h:2877:12: note: expected ‘char *’ but argument is of type ‘size_t’ extern int kernel_read(struct file *, loff_t, char *, unsigned long); ^ /var/lib/dkms/anbox-ashmen/1/build/ashmem.c:324:3: warning: passing argument 4 of ‘kernel_read’ makes integer from pointer without a cast [enabled by default] ret = kernel_read(asma->file, buf, len, pos); ^ In file included from /var/lib/dkms/anbox-ashmen/1/build/ashmem.c:25:0: include/linux/fs.h:2877:12: note: expected ‘long unsigned int’ but argument is of type ‘loff_t *’ extern int kernel_read(struct file *, loff_t, char *, unsigned long); ^ In file included from include/linux/kernel.h:13:0, from include/linux/cache.h:4, from include/linux/time.h:4, from include/linux/stat.h:18, from include/linux/module.h:10, from /var/lib/dkms/anbox-ashmen/1/build/ashmem.c:21: /var/lib/dkms/anbox-ashmen/1/build/ashmem.c: In function ‘ashmem_init’: include/linux/printk.h:222:18: error: expected ‘)’ before ‘pr_fmt’ printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__) ^ /var/lib/dkms/anbox-ashmen/1/build/ashmem.c:862:3: note: in expansion of macro ‘pr_err’ pr_err("failed to create slab cache\n"); ^ include/linux/printk.h:222:18: error: expected ‘)’ before ‘pr_fmt’ printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__) ^ /var/lib/dkms/anbox-ashmen/1/build/ashmem.c:870:3: note: in expansion of macro ‘pr_err’ pr_err("failed to create slab cache\n"); ^ include/linux/printk.h:222:18: error: expected ‘)’ before ‘pr_fmt’ printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__) ^ /var/lib/dkms/anbox-ashmen/1/build/ashmem.c:876:3: note: in expansion of macro ‘pr_err’ pr_err("failed to register misc device!\n"); ^ /var/lib/dkms/anbox-ashmen/1/build/ashmem.c: At top level: cc1: warning: unrecognized command line option "-Wno-int-conversion" [enabled by default] make[2]: *** [/var/lib/dkms/anbox-ashmen/1/build/ashmem.o] Error 1 make[1]: *** [_module_/var/lib/dkms/anbox-ashmen/1/build] Error 2 make[1]: Leaving directory /usr/src/kernels/3.10.0-1062.12.1.el7.x86_64'
make: *** [all] Error 2
`

Any one has the idea what is wrong ?

Thanks,
Prakash

Binder DKMS Build Errors on Jetson Nano

Binder failed to build on my Jetson Nano.

First problem was in:

static int binder_set_stop_on_user_error(const char *val,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0)
const struct kernel_param *kp)
#else
struct kernel_param *kp)
#endif

Even though my tegra had KERNELRELEASE=4.9.140-tegra, I had to force it to use the const version. (I did this by simply commenting out the preprocessor statements and else case)

That allowed me to build the module, but then it failed to insert. Turns out something else was already using 511:

cat /proc/devices | grep 511
511 vfio

As a workaround I changed the major number in binder.c to 444, which I chose arbitrarily and have no idea if it is less likely to collide, but it worked on my Nano.

After that I rebuilt and the modules appeared to install and insert correctly.

Binder is not found

Hi,

I've done all things, which were described in manual, but still I can find binder Kernel with ls -alh /dev/binder /dev/ashmem command. Only ashmen directory exists inside /dev.

On the other hand, the second command gives me these infos:

binder_linux          159744  0
ashmem_linux           20480  0

My question is: how can I install binder and what's the problem here?

My System:

Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.4 LTS
Release:	18.04
Codename:	bionic

Cannot build kernel modules on jetson nano

I am not able to build the kernel modules on the jetson nano which has the L4T linux kernel based on Ubuntu 18.04

depmod...

DKMS: install completed.
Building initial module for 4.9.140-tegra
ERROR (dkms apport): kernel package linux-headers-4.9.140-tegra is not supported
Error! Bad return status for module build on kernel: 4.9.140-tegra (aarch64)
Consult /var/lib/dkms/anbox/1/build/make.log for more information.
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...

rreddy78@jetson:~$ cat /var/lib/dkms/anbox/1/build/make.log
DKMS make.log for anbox-1 for kernel 4.9.140-tegra (aarch64)
Sat Oct 31 09:25:35 IST 2020
make: Entering directory '/var/lib/dkms/anbox/1/build/ashmem'
make -C /lib/modules/4.9.140-tegra/build V=0 M=$PWD
make[1]: Entering directory '/usr/src/linux-headers-4.9.140-tegra-ubuntu18.04_aarch64/kernel-4.9'
LD /var/lib/dkms/anbox/1/build/ashmem/built-in.o
CC [M] /var/lib/dkms/anbox/1/build/ashmem/deps.o
CC [M] /var/lib/dkms/anbox/1/build/ashmem/ashmem.o
LD [M] /var/lib/dkms/anbox/1/build/ashmem/ashmem_linux.o
Building modules, stage 2.
MODPOST 1 modules
CC /var/lib/dkms/anbox/1/build/ashmem/ashmem_linux.mod.o
LD [M] /var/lib/dkms/anbox/1/build/ashmem/ashmem_linux.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.9.140-tegra-ubuntu18.04_aarch64/kernel-4.9'
make: Leaving directory '/var/lib/dkms/anbox/1/build/ashmem'
make: Entering directory '/var/lib/dkms/anbox/1/build/binder'
make -C /lib/modules/4.9.140-tegra/build V=0 M=$PWD
make[1]: Entering directory '/usr/src/linux-headers-4.9.140-tegra-ubuntu18.04_aarch64/kernel-4.9'
LD /var/lib/dkms/anbox/1/build/binder/built-in.o
CC [M] /var/lib/dkms/anbox/1/build/binder/deps.o
CC [M] /var/lib/dkms/anbox/1/build/binder/binder.o
In file included from ./include/linux/module.h:18:0,
from /var/lib/dkms/anbox/1/build/binder/binder.c:29:
/var/lib/dkms/anbox/1/build/binder/binder.c:153:39: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
module_param_call(stop_on_user_error, binder_set_stop_on_user_error,
^
./include/linux/moduleparam.h:230:24: note: in definition of macro ‘module_param_call’
{ .flags = 0, .set = _set, .get = _get };
^~~~
/var/lib/dkms/anbox/1/build/binder/binder.c:153:39: note: (near initialization for ‘__param_ops_stop_on_user_error.set’)
module_param_call(stop_on_user_error, binder_set_stop_on_user_error,
^
./include/linux/moduleparam.h:230:24: note: in definition of macro ‘module_param_call’
{ .flags = 0, .set = _set, .get = _get };
^~~~
cc1: some warnings being treated as errors
scripts/Makefile.build:335: recipe for target '/var/lib/dkms/anbox/1/build/binder/binder.o' failed
make[2]: *** [/var/lib/dkms/anbox/1/build/binder/binder.o] Error 1
Makefile:1629: recipe for target 'module/var/lib/dkms/anbox/1/build/binder' failed
make[1]: *** [module/var/lib/dkms/anbox/1/build/binder] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.9.140-tegra-ubuntu18.04_aarch64/kernel-4.9'
Makefile:8: recipe for target 'all' failed
make: *** [all] Error 2
make: Leaving directory '/var/lib/dkms/anbox/1/build/binder'

ashmem_read cause kernel Oops

[ 2125.437678] BUG: unable to handle kernel paging request at 00000000408f6000
[ 2125.437688] PGD 800000080fcdc067 P4D 800000080fcdc067 PUD 78988e067 PMD 789c5e067 PTE 0
[ 2125.437696] Oops: 0002 [#1] SMP PTI
[ 2125.437699] Modules linked in: nf_conntrack_ipv6 nf_defrag_ipv6 xt_NFLOG xt_u32 xt_connmark tcp_diag inet_diag nfnetlink_log veth cpuid rfcomm xt_TCPMSS xt_tcpmss xt_comment xt_nat xt_CHECKSUM iptable_mangle ip6t_REJECT nf_reject_ipv6 ipt_REJECT nf_reject_ipv4 xt_tcpudp tun devlink ebtable_filter ebtables ip6table_filter ip6_tables ipt_MASQUERADE nf_nat_masquerade_ipv4 nf_conntrack_netlink nfnetlink xfrm_user xfrm_algo iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 xt_addrtype xt_conntrack nf_nat nf_conntrack br_netfilter bridge overlay aufs(O) cpufreq_powersave cpufreq_conservative cpufreq_userspace msr iptable_filter pppoe pppox ppp_generic slhc cmac bnep fuse binfmt_misc nls_ascii nls_cp437 vfat fat snd_hda_codec_hdmi intel_rapl btusb btrtl btbcm btintel sb_edac bluetooth x86_pkg_temp_thermal
[ 2125.437762] intel_powerclamp kvm_intel jitterentropy_rng 8812au(O) kvm drbg ansi_cprng ecdh_generic intel_cstate snd_virtuoso joydev cfg80211 intel_uncore snd_hda_intel snd_oxygen_lib snd_hda_codec evdev snd_mpu401_uart intel_rapl_perf usblp rfkill snd_hda_core snd_rawmidi efi_pstore snd_hwdep snd_seq_device ib_iser ast efivars snd_pcm pcspkr rdma_cm snd_timer iw_cm snd ttm ib_cm soundcore iTCO_wdt sg ib_core iTCO_vendor_support shpchp wmi configfs tpm_crb iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi nvidia_drm(PO) tpm_tis tpm_tis_core drm_kms_helper tpm rng_core button drm nvidia_modeset(PO) nvidia(PO) squashfs loop ipmi_devintf ipmi_msghandler nct6775 hwmon_vid coretemp vfio_pci vfio_virqfd irqbypass vfio_iommu_type1 vfio 8021q garp mrp stp llc parport_pc ppdev lp parport binder_linux(O)
[ 2125.437831] ashmem_linux(O) efivarfs ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 fscrypto ecb btrfs zstd_decompress zstd_compress xxhash algif_skcipher af_alg sdhci mmc_block mmc_core sd_mod dm_crypt dm_mod raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor hid_generic usbhid hid uas usb_storage raid6_pq libcrc32c crc32c_generic raid1 raid0 multipath linear md_mod crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel pcbc ehci_pci xhci_pci xhci_hcd ehci_hcd aesni_intel aes_x86_64 crypto_simd ahci cryptd glue_helper libahci mpt3sas raid_class igb i2c_algo_bit libata scsi_transport_sas usbcore dca i2c_i801 lpc_ich usb_common scsi_mod
[ 2125.437895] CPU: 8 PID: 24493 Comm: AsyncTask #4 Tainted: P O 4.17.0-1-amd64 #1 Debian 4.17.8-1
[ 2125.437897] Hardware name:
[ 2125.437906] RIP: 0010:memcpy_erms+0x6/0x10
[ 2125.437908] RSP: 0018:ffffa8334fb7fca8 EFLAGS: 00010206
[ 2125.437911] RAX: 00000000408f500c RBX: 0000000000001000 RCX: 000000000000000c
[ 2125.437914] RDX: 0000000000001000 RSI: ffff955039ecfff4 RDI: 00000000408f6000
[ 2125.437916] RBP: 0000000000001000 R08: fffff7d85ce7b3dc R09: fffff7d85ce7b3c0
[ 2125.437919] R10: 0000000000000000 R11: ffff955039ecf000 R12: ffffa8334fb7fe18
[ 2125.437921] R13: 0000000000001000 R14: ffff955039ed0000 R15: ffffa8334fb7fde0
[ 2125.437924] FS: 00007f9b191ff4e8(0000) GS:ffff95515f800000(0000) knlGS:00007f9b192d3000
[ 2125.437927] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 2125.437929] CR2: 00000000408f6000 CR3: 000000078a0b6005 CR4: 00000000001606e0
[ 2125.437931] Call Trace:
[ 2125.437940] _copy_to_iter+0x286/0x3d0
[ 2125.437945] copy_page_to_iter+0x1b4/0x2f0
[ 2125.437952] shmem_file_read_iter+0xea/0x320
[ 2125.437959] new_sync_read+0xe9/0x140
[ 2125.437964] vfs_read+0x89/0x130
[ 2125.437968] kernel_read+0x2c/0x40
[ 2125.437975] ashmem_read+0x5c/0xa0 [ashmem_linux]
[ 2125.437979] vfs_read+0x89/0x130
[ 2125.437983] ksys_read+0x52/0xc0
[ 2125.437992] do_syscall_64+0x55/0x110
[ 2125.437998] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 2125.438002] RIP: 0033:0x7f9b35dc02e7
[ 2125.438004] RSP: 002b:00007f9b191fe738 EFLAGS: 00000202 ORIG_RAX: 0000000000000000
[ 2125.438007] RAX: ffffffffffffffda RBX: 00007f9b2d41c680 RCX: 00007f9b35dc02e7
[ 2125.438009] RDX: 000000000000e758 RSI: 00000000408f500c RDI: 0000000000000031
[ 2125.438012] RBP: 0000000000000031 R08: 0000000000000000 R09: 000000000000e758
[ 2125.438014] R10: 000000007079e000 R11: 0000000000000202 R12: 00000000408f500c
[ 2125.438016] R13: 0000000000000000 R14: 00007f9b191fe770 R15: 00007f9b2d41c680
[ 2125.438019] Code: 90 90 90 90 90 eb 1e 0f 1f 00 48 89 f8 48 89 d1 48 c1 e9 03 83 e2 07 f3 48 a5 89 d1 f3 a4 c3 66 0f 1f 44 00 00 48 89 f8 48 89 d1 a4 c3 0f 1f 80 00 00 00 00 48 89 f8 48 83 fa 20 72 7e 40 38
[ 2125.438065] RIP: memcpy_erms+0x6/0x10 RSP: ffffa8334fb7fca8
[ 2125.438067] CR2: 00000000408f6000
[ 2125.438070] ---[ end trace 0d2e777423428bd4 ]---

Kernel 5.8

У меня ubuntu 20.04 и собранное мной ядро 5.8 под него. Выдает следующее:
I have ubuntu 20.04 and the 5.8 kernel I built for it. Outputs the following:

Creating symlink /var/lib/dkms/anbox-ashmem/1/source ->
/usr/src/anbox-ashmem-1

DKMS: add completed.
Error! Your kernel headers for kernel 5.8.0 cannot be found.
Please install the linux-headers-5.8.0 package,
or use the --kernelsourcedir option to tell DKMS where it's located

Creating symlink /var/lib/dkms/anbox-binder/1/source ->
/usr/src/anbox-binder-1

DKMS: add completed.
Error! Your kernel headers for kernel 5.8.0 cannot be found.
Please install the linux-headers-5.8.0 package,
or use the --kernelsourcedir option to tell DKMS where it's located
modprobe: FATAL: Module ashmem_linux not found in directory /lib/modules/5.8.0
modprobe: FATAL: Module binder_linux not found in directory /lib/modules/5.8.0
ls: cannot access '/dev/binder': No such file or directory
ls: cannot access '/dev/ashmem': No such file or directory

Пакета linux-headers-5.8.0 конечно-же нет. Где найти исходный код?/The linux-headers-5.8.0 package of course-no. Where can I find the source code?

issue about building binder driver on centos 8

issue description:
make -j4 KERNELRELEASE=4.18.0-193.6.3.el8_2.x86_64 all KERNEL_SRC=/lib/modules/4.18.0-193.6.3.el8_2.x86_64/build....(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.18.0-193.6.3.el8_2.x86_64 (x86_64)
Consult /var/lib/dkms/anbox-binder/1/build/make.log for more information.

/var/lib/dkms/anbox-binder/1/build/make.log:
anbox-modules/binder/binder.c:3408:11: 错误:initialization of ‘vm_fault_t (*)(struct vm_fault )’ {或称 ‘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-binder/1/source/binder.c :3408:11: 附注:(在‘binder_vm_ops.fault’的初始化附近)
cc1:有些警告被当作是错误

kernel version:Linux 4.18.0-193.6.3.el8_2.x86_64 #1 SMP Wed Jun 10 11:09:32 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

how to resovle:

modify file anbox-modules/binder/binder.c:
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
static int binder_vm_fault(struct vm_fault *vmf)
==>
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
static vm_fault_t binder_vm_fault(struct vm_fault *vmf)

Binder load not permitted Linux 5.7.2

Both modules compile fine after the workaround I found in issue 49 is applied to my kernel source
5.7.0 was tested and working with the reverted patch, 5.7.1 was not tested

$ uname -a
Linux Opal 5.7.2-2-ARCH-ARM #1 SMP Sat Jun 13 11:46:34 AEST 2020 aarch64 GNU/Linux

$ lsmod | grep _linux
ashmem_linux           24576  0

$ sudo modprobe binder_linux
modprobe: ERROR: could not insert 'binder_linux': Operation not permitted

$ ls /dev/{ashmem,binder}
ls: cannot access '/dev/binder': No such file or directory
/dev/ashmem

binder modules fails to build

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

Cannot install the modules with kernel version 5.8

When I try to install anbox on Fedora32 and kernel version 5.8 I get this error message

$ sudo ./INSTALL.sh                                                      

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j12 KERNELRELEASE=5.8.9-200.fc32.x86_64 all KERNEL_SRC=/lib/modules/5.8.9-200.fc32.x86_64/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.8.9-200.fc32.x86_64 (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 -j12 KERNELRELEASE=5.8.9-200.fc32.x86_64 all KERNEL_SRC=/lib/modules/5.8.9-200.fc32.x86_64/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.8.9-200.fc32.x86_64 (x86_64)
Consult /var/lib/dkms/anbox-binder/1/build/make.log for more information.
modprobe: FATAL: Module ashmem_linux not found in directory /lib/modules/5.8.9-200.fc32.x86_64
modprobe: FATAL: Module binder_linux not found in directory /lib/modules/5.8.9-200.fc32.x86_64
ls: cannot access '/dev/binder': No such file or directory
ls: cannot access '/dev/ashmem': No such file or directory

Compile error with CentOS 7 kernel

DKMS make.log for anbox-ashmem-1 for kernel 3.10.0-957.el7.x86_64 (x86_64)
Sun Dec 2 14:14:33 EST 2018
make -C /lib/modules/3.10.0-957.el7.x86_64/build V=0 M=$PWD
make[1]: Entering directory /usr/src/kernels/3.10.0-957.el7.x86_64' LD /var/lib/dkms/anbox-ashmem/1/build/built-in.o 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/deps.c: In function ‘shmem_zero_setup’: /var/lib/dkms/anbox-ashmem/1/build/deps.c:9:24: warning: assignment makes pointer from integer without a cast [enabled by default] shmem_zero_setup_ptr = kallsyms_lookup_name("shmem_zero_setup"); ^ /var/lib/dkms/anbox-ashmem/1/build/deps.c: At top level: cc1: warning: unrecognized command line option "-Wno-int-conversion" [enabled by default] /var/lib/dkms/anbox-ashmem/1/build/ashmem.c: In function ‘ashmem_read’: /var/lib/dkms/anbox-ashmem/1/build/ashmem.c:321:3: warning: passing argument 2 of ‘kernel_read’ makes integer from pointer without a cast [enabled by default] ret = kernel_read(asma->file, buf, len, pos); ^ In file included from /var/lib/dkms/anbox-ashmem/1/build/ashmem.c:25:0: include/linux/fs.h:2855:12: note: expected ‘loff_t’ but argument is of type ‘char *’ extern int kernel_read(struct file *, loff_t, char *, unsigned long); ^ /var/lib/dkms/anbox-ashmem/1/build/ashmem.c:321:3: warning: passing argument 3 of ‘kernel_read’ makes pointer from integer without a cast [enabled by default] ret = kernel_read(asma->file, buf, len, pos); ^ In file included from /var/lib/dkms/anbox-ashmem/1/build/ashmem.c:25:0: include/linux/fs.h:2855:12: note: expected ‘char *’ but argument is of type ‘size_t’ extern int kernel_read(struct file *, loff_t, char *, unsigned long); ^ /var/lib/dkms/anbox-ashmem/1/build/ashmem.c:321:3: warning: passing argument 4 of ‘kernel_read’ makes integer from pointer without a cast [enabled by default] ret = kernel_read(asma->file, buf, len, pos); ^ In file included from /var/lib/dkms/anbox-ashmem/1/build/ashmem.c:25:0: include/linux/fs.h:2855:12: note: expected ‘long unsigned int’ but argument is of type ‘loff_t *’ extern int kernel_read(struct file *, loff_t, char *, unsigned long); ^ /var/lib/dkms/anbox-ashmem/1/build/ashmem.c: In function ‘ashmem_mmap’: /var/lib/dkms/anbox-ashmem/1/build/ashmem.c:387:2: error: too few arguments to function ‘calc_vm_prot_bits’ if (unlikely((vma->vm_flags & ~calc_vm_prot_bits(asma->prot_mask)) & ^ In file included from /var/lib/dkms/anbox-ashmem/1/build/ashmem.c:30:0: include/linux/mman.h:110:1: note: declared here calc_vm_prot_bits(unsigned long prot, unsigned long pkey) ^ /var/lib/dkms/anbox-ashmem/1/build/ashmem.c:387:2: error: too few arguments to function ‘calc_vm_prot_bits’ if (unlikely((vma->vm_flags & ~calc_vm_prot_bits(asma->prot_mask)) & ^ In file included from /var/lib/dkms/anbox-ashmem/1/build/ashmem.c:30:0: include/linux/mman.h:110:1: note: declared here calc_vm_prot_bits(unsigned long prot, unsigned long pkey) ^ /var/lib/dkms/anbox-ashmem/1/build/ashmem.c: In function ‘ashmem_shrink_scan’: /var/lib/dkms/anbox-ashmem/1/build/ashmem.c:461:10: error: ‘SHRINK_STOP’ undeclared (first use in this function) return SHRINK_STOP; ^ /var/lib/dkms/anbox-ashmem/1/build/ashmem.c:461:10: note: each undeclared identifier is reported only once for each function it appears in /var/lib/dkms/anbox-ashmem/1/build/ashmem.c: At top level: /var/lib/dkms/anbox-ashmem/1/build/ashmem.c:494:2: error: unknown field ‘count_objects’ specified in initializer .count_objects = ashmem_shrink_count, ^ /var/lib/dkms/anbox-ashmem/1/build/ashmem.c:494:2: warning: initialization from incompatible pointer type [enabled by default] /var/lib/dkms/anbox-ashmem/1/build/ashmem.c:494:2: warning: (near initialization for ‘ashmem_shrinker.shrink’) [enabled by default] /var/lib/dkms/anbox-ashmem/1/build/ashmem.c:495:2: error: unknown field ‘scan_objects’ specified in initializer .scan_objects = ashmem_shrink_scan, ^ /var/lib/dkms/anbox-ashmem/1/build/ashmem.c:495:2: warning: initialization makes integer from pointer without a cast [enabled by default] /var/lib/dkms/anbox-ashmem/1/build/ashmem.c:495:2: warning: (near initialization for ‘ashmem_shrinker.seeks’) [enabled by default] /var/lib/dkms/anbox-ashmem/1/build/ashmem.c:495:2: error: initializer element is not computable at load time /var/lib/dkms/anbox-ashmem/1/build/ashmem.c:495:2: error: (near initialization for ‘ashmem_shrinker.seeks’) cc1: warning: unrecognized command line option "-Wno-int-conversion" [enabled by default] make[2]: *** [/var/lib/dkms/anbox-ashmem/1/build/ashmem.o] Error 1 make[1]: *** [_module_/var/lib/dkms/anbox-ashmem/1/build] Error 2 make[1]: Leaving directory /usr/src/kernels/3.10.0-957.el7.x86_64'
make: *** [all] Error 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.