anbox-modules icon indicating copy to clipboard operation
anbox-modules copied to clipboard

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

Open Frambooisier opened this issue 4 years ago • 6 comments

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

Frambooisier avatar Sep 19 '20 23:09 Frambooisier

There is the same problem with manjaro (linux kernel 5.8)

unicornlox avatar Sep 27 '20 00:09 unicornlox

I have the same issue on archlinux kernel version 5.8.13).

It seems that mmap_sem is renamed to mmap_lock on kernel 5.8

kdehairy avatar Oct 07 '20 16:10 kdehairy

same issue here on arch linux with 5.8 kernel logs: make.log make(1).log

Weirdo1312 avatar Oct 12 '20 15:10 Weirdo1312

I ended up compiling the kernel with the modules built in to overcome this. Now it works!

kdehairy avatar Oct 12 '20 17:10 kdehairy

Had the same problem in kubuntu

jack9603301 avatar Dec 14 '20 07:12 jack9603301

I managed to compile the Tumbleweed package using @choff fork however it is for Tumbleweed only. I will submit my changes once I figure at least 15.3 compatibility and sign the modules for secure boot https://build.opensuse.org/project/show/home:ilgazcl:branches:home:Sam0523:anbox

IlgazC avatar Dec 13 '21 06:12 IlgazC