Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

sudo dkms install anbox-ashmem/1 giving error #106

Open
duke-brahma opened this issue Apr 7, 2023 · 3 comments
Open

sudo dkms install anbox-ashmem/1 giving error #106

duke-brahma opened this issue Apr 7, 2023 · 3 comments

Comments

@duke-brahma
Copy link

OS- Distributor ID: Ubuntu
Description: Ubuntu 22.04.2 LTS
Release: 22.04
Codename: jammy

Log:
cat /var/lib/dkms/anbox-ashmem/1/build/make.log
DKMS make.log for anbox-ashmem-1 for kernel 5.19.0-38-generic (x86_64)
Friday 07 April 2023 01:49:18 PM IST
make -C /lib/modules/5.19.0-38-generic/build V=0 M=$PWD
make[1]: Entering directory '/usr/src/linux-headers-5.19.0-38-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc (Ubuntu 11.3.0-1ubuntu122.04) 11.3.0
You are using: gcc (Ubuntu 11.3.0-1ubuntu1
22.04) 11.3.0
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:128: /var/lib/dkms/anbox-ashmem/1/build/Module.symvers] Error 1
make[1]: *** [Makefile:1764: modules] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.19.0-38-generic'
make: *** [Makefile:12: all] Error 2

@amitanshusahu
Copy link

i am having the the same problem :

make -j12 KERNELRELEASE=5.19.0-38-generic all KERNEL_SRC=/lib/modules/5.19.0-38-generic/build...(bad exit status: 2)
ERROR (dkms apport): binary package for anbox-ashmem: 1 not found
Error! Bad return status for module build on kernel: 5.19.0-38-generic (x86_64)
Consult /var/lib/dkms/anbox-ashmem/1/build/make.log for more information.

@klausagnoletti
Copy link

Not sure this is the same problem as the original issue but it's definitely the same at @amitanshusahu

DKMS make.log for anbox-binder-1 for kernel 6.3.8-x64v3-xanmod1 (x86_64)
2023-06-22T10:16:21 CEST
make -C /lib/modules/6.3.8-x64v3-xanmod1/build V=0 M=$PWD
make[1]: Entering directory '/usr/src/linux-headers-6.3.8-x64v3-xanmod1'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: gcc-12 (Debian 12.2.0-14) 12.2.0
  You are using:           gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
  CC [M]  /var/lib/dkms/anbox-binder/1/build/deps.o
  CC [M]  /var/lib/dkms/anbox-binder/1/build/binder.o
In file included from ././include/linux/kconfig.h:5,
                 from <command-line>:
./include/generated/autoconf.h:4659: warning: "CONFIG_ANDROID_BINDER_DEVICES" redefined
 4659 | #define CONFIG_ANDROID_BINDER_DEVICES "binder,hwbinder,vndbinder"
      | 
<command-line>: note: this is the location of the previous definition
In file included from ././include/linux/kconfig.h:5,
                 from <command-line>:
./include/generated/autoconf.h:4659: warning: "CONFIG_ANDROID_BINDER_DEVICES" redefined
 4659 | #define CONFIG_ANDROID_BINDER_DEVICES "binder,hwbinder,vndbinder"
      | 
<command-line>: note: this is the location of the previous definition
/var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘task_get_unused_fd_flags’:
/var/lib/dkms/anbox-binder/1/build/binder.c:444:16: error: implicit declaration of function ‘__alloc_fd’ [-Werror=implicit-function-declaration]
  444 |         return __alloc_fd(files, 0, rlim_cur, flags);
      |                ^~~~~~~~~~
... a ton of compiler error messages...
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:252: /var/lib/dkms/anbox-binder/1/build/binder.o] Error 1
make[1]: *** [Makefile:2180: /var/lib/dkms/anbox-binder/1/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.3.8-x64v3-xanmod1'
make: *** [Makefile:8: all] Error 2

It looks like I should use gcc 12 for compiling rather than gcc 11 which is default but I can't find a way to make DKMS do that. I think update-alternatives is a bit too dramatic so that's my last resort.

Any pointers? I am using PopOS with https://xanmod.org/ (My laptop's CPU is Ryzen 5 and default kernel had issues).

Thanks!

@justhx0r
Copy link

Opened a pull request that fixes his issue for linux 6.x.x...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants