anbox-modules
anbox-modules copied to clipboard
"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?
Latest tumbleweed with kernel 5 works well, maybe I would check later on 4.20.13
Does you compiled with the right CC? Exec format error means that you are trying to use an elf compiled for a different and incompatible instruction set than your machine's architecture supports