anbox / anbox-modules

Anbox kernel modules
327 stars 224 forks source link

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

Open rushmi0 opened 1 year ago

rushmi0 commented 1 year ago

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 commented 1 year ago
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-1ubuntu1~22.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 commented 12 months ago

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