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

Error! Bad return status for module build on kernel: 5.19.0-50-generic (x86_64) #108

Open
rushmi0 opened this issue Aug 5, 2023 · 2 comments

Comments

@rushmi0
Copy link

rushmi0 commented Aug 5, 2023

encounter a problem
how to fix it

sudo dkms install anbox-binder/1

Kernel preparation unnecessary for this kernel. Skipping...

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

@rushmi0
Copy link
Author

rushmi0 commented Aug 5, 2023

DKMS make.log for anbox-binder-1 for kernel 5.19.0-50-generic (x86_64)
ส. 5 ส.ค. 2566 17:48:32 +07
make -C /lib/modules/5.19.0-50-generic/build V=0 M=$PWD
make[1]: Entering directory '/usr/src/linux-headers-5.19.0-50-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.1) 11.3.0
You are using: gcc (Ubuntu 11.4.0-1ubuntu1
22.04) 11.4.0
CC [M] /var/lib/dkms/anbox-binder/1/build/deps.o
CC [M] /var/lib/dkms/anbox-binder/1/build/binder.o
CC [M] /var/lib/dkms/anbox-binder/1/build/binder_alloc.o
CC [M] /var/lib/dkms/anbox-binder/1/build/binderfs.o
In file included from ././include/linux/kconfig.h:5,
from :
./include/generated/autoconf.h:4604: warning: "CONFIG_ANDROID_BINDER_DEVICES" redefined
4604 | #define CONFIG_ANDROID_BINDER_DEVICES ""
|
: note: this is the location of the previous definition
In file included from ././include/linux/kconfig.h:5,
from :
./include/generated/autoconf.h:4604: warning: "CONFIG_ANDROID_BINDER_DEVICES" redefined
4604 | #define CONFIG_ANDROID_BINDER_DEVICES ""
|
: note: this is the location of the previous definition
In file included from ././include/linux/kconfig.h:5,
from :
./include/generated/autoconf.h:4604: warning: "CONFIG_ANDROID_BINDER_DEVICES" redefined
4604 | #define CONFIG_ANDROID_BINDER_DEVICES ""
|
: note: this is the location of the previous definition
In file included from ././include/linux/kconfig.h:5,
from :
./include/generated/autoconf.h:4604: warning: "CONFIG_ANDROID_BINDER_DEVICES" redefined
4604 | #define CONFIG_ANDROID_BINDER_DEVICES ""
|
: note: this is the location of the previous definition
/var/lib/dkms/anbox-binder/1/build/binder.c: In function ‘binder_transaction’:
/var/lib/dkms/anbox-binder/1/build/binder.c:3130:55: error: passing argument 2 of ‘security_task_getsecid_obj’ from incompatible pointer type [-Werror=incompatible-pointer-types]
3130 | security_task_getsecid_obj(proc->tsk, &secid);
| ^~~~~~
| |
| u32 * {aka unsigned int *}
In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:63:
./include/linux/security.h:577:72: note: expected ‘struct lsmblob *’ but argument is of type ‘u32 *’ {aka ‘unsigned int *’}
577 | void security_task_getsecid_obj(struct task_struct *p, struct lsmblob *blob);
| ~~~~~~~~~~~~~~~~^~~~
/var/lib/dkms/anbox-binder/1/build/binder.c:3134:55: error: passing argument 2 of ‘security_secid_to_secctx’ from incompatible pointer type [-Werror=incompatible-pointer-types]
3134 | ret = security_secid_to_secctx(secid, &secctx, &secctx_sz);
| ^~~~~~~
| |
| char **
In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:63:
./include/linux/security.h:624:71: note: expected ‘struct lsmcontext *’ but argument is of type ‘char **’
624 | int security_secid_to_secctx(struct lsmblob *blob, struct lsmcontext *cp,
| ~~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/anbox-binder/1/build/binder.c:3183:41: error: passing argument 1 of ‘security_release_secctx’ from incompatible pointer type [-Werror=incompatible-pointer-types]
3183 | security_release_secctx(secctx, secctx_sz);
| ^~~~~~
| |
| char *
In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:63:
./include/linux/security.h:628:49: note: expected ‘struct lsmcontext *’ but argument is of type ‘char *’
628 | void security_release_secctx(struct lsmcontext *cp);
| ~~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/anbox-binder/1/build/binder.c:3183:17: error: too many arguments to function ‘security_release_secctx’
3183 | security_release_secctx(secctx, secctx_sz);
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:63:
./include/linux/security.h:628:6: note: declared here
628 | void security_release_secctx(struct lsmcontext *cp);
| ^~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/anbox-binder/1/build/binder.c:3518:41: error: passing argument 1 of ‘security_release_secctx’ from incompatible pointer type [-Werror=incompatible-pointer-types]
3518 | security_release_secctx(secctx, secctx_sz);
| ^~~~~~
| |
| char *
In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:63:
./include/linux/security.h:628:49: note: expected ‘struct lsmcontext *’ but argument is of type ‘char *’
628 | void security_release_secctx(struct lsmcontext *cp);
| ~~~~~~~~~~~~~~~~~~~^~
/var/lib/dkms/anbox-binder/1/build/binder.c:3518:17: error: too many arguments to function ‘security_release_secctx’
3518 | security_release_secctx(secctx, secctx_sz);
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/anbox-binder/1/build/binder.c:63:
./include/linux/security.h:628:6: note: declared here
628 | void security_release_secctx(struct lsmcontext *cp);
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:257: /var/lib/dkms/anbox-binder/1/build/binder.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:1857: /var/lib/dkms/anbox-binder/1/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.19.0-50-generic'
make: *** [Makefile:8: all] Error 2

@AgaiMorara
Copy link

I have the same problem... Did you find the solution

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

2 participants