Failed to install module anbox-binder because of a compilation error. The log message is provided below:
DKMS make.log for anbox-binder-1 for kernel 4.18.0-240.8.1.el8_3.x86_64 (x86_64)
2020年 12月 19日 星期六 00:47:15 CST
make -C /lib/modules/4.18.0-240.8.1.el8_3.x86_64/build V=0 M=$PWD
make[1]: 进入目录“/usr/src/kernels/4.18.0-240.8.1.el8_3.x86_64”
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:3408:11: 错误:initialization of ‘vm_fault_t (*)(struct vm_fault *)’ {或称 ‘unsigned int (*)(struct vm_fault *)’} from incompatible pointer type ‘int (*)(struct vm_fault *)’ [-Werror=incompatible-pointer-types]
.fault = binder_vm_fault,
^~~~~~~~~~~~~~~
/var/lib/dkms/anbox-binder/1/build/binder.c:3408:11: 附注:(在‘binder_vm_ops.fault’的初始化附近)
cc1:有些警告被当作是错误
make[2]: *** [scripts/Makefile.build:315:/var/lib/dkms/anbox-binder/1/build/binder.o] 错误 1
make[1]: *** [Makefile:1544:_module_/var/lib/dkms/anbox-binder/1/build] 错误 2
make[1]: 离开目录“/usr/src/kernels/4.18.0-240.8.1.el8_3.x86_64”
make: *** [Makefile:8:all] 错误 2
It seems that the compiler flag -Werror was enabled, but I didn't find it in the makefile. uname -a:Linux ThinkPad-P15v-Gen1 4.18.0-240.8.1.el8_3.x86_64 #1 SMP Fri Dec 4 12:24:03 EST 2020 x86_64 x86_64 x86_64 GNU/Linux
Failed to install module anbox-binder because of a compilation error. The log message is provided below:
It seems that the compiler flag
-Werror
was enabled, but I didn't find it in the makefile.uname -a:
Linux ThinkPad-P15v-Gen1 4.18.0-240.8.1.el8_3.x86_64 #1 SMP Fri Dec 4 12:24:03 EST 2020 x86_64 x86_64 x86_64 GNU/Linux