anbox-modules
anbox-modules copied to clipboard
CentOS 7.7 Build Failed
Hello there,
My machine has CentOS Linux release 7.7.1908 (Core)
.
Steps sudo dkms install anbox-ashmen/1
is failed with following error.
`
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
make -j8 KERNELRELEASE=3.10.0-1062.12.1.el7.x86_64 all KERNEL_SRC=/lib/modules/3.10.0-1062.12.1.el7.x86_64/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 3.10.0-1062.12.1.el7.x86_64 (x86_64)
Here is the log -
DKMS make.log for anbox-ashmen-1 for kernel 3.10.0-1062.12.1.el7.x86_64 (x86_64)
Sat Feb 29 13:58:37 IST 2020
make -C /lib/modules/3.10.0-1062.12.1.el7.x86_64/build V=0 M=$PWD
make[1]: Entering directory /usr/src/kernels/3.10.0-1062.12.1.el7.x86_64' LD /var/lib/dkms/anbox-ashmen/1/build/built-in.o CC [M] /var/lib/dkms/anbox-ashmen/1/build/deps.o CC [M] /var/lib/dkms/anbox-ashmen/1/build/ashmem.o /var/lib/dkms/anbox-ashmen/1/build/deps.c: In function ‘shmem_zero_setup’: /var/lib/dkms/anbox-ashmen/1/build/deps.c:9:24: warning: assignment makes pointer from integer without a cast [enabled by default] shmem_zero_setup_ptr = kallsyms_lookup_name("shmem_zero_setup"); ^ /var/lib/dkms/anbox-ashmen/1/build/deps.c: At top level: cc1: warning: unrecognized command line option "-Wno-int-conversion" [enabled by default] /var/lib/dkms/anbox-ashmen/1/build/ashmem.c: In function ‘ashmem_read’: /var/lib/dkms/anbox-ashmen/1/build/ashmem.c:324:3: warning: passing argument 2 of ‘kernel_read’ makes integer from pointer without a cast [enabled by default] ret = kernel_read(asma->file, buf, len, pos); ^ In file included from /var/lib/dkms/anbox-ashmen/1/build/ashmem.c:25:0: include/linux/fs.h:2877:12: note: expected ‘loff_t’ but argument is of type ‘char *’ extern int kernel_read(struct file *, loff_t, char *, unsigned long); ^ /var/lib/dkms/anbox-ashmen/1/build/ashmem.c:324:3: warning: passing argument 3 of ‘kernel_read’ makes pointer from integer without a cast [enabled by default] ret = kernel_read(asma->file, buf, len, pos); ^ In file included from /var/lib/dkms/anbox-ashmen/1/build/ashmem.c:25:0: include/linux/fs.h:2877:12: note: expected ‘char *’ but argument is of type ‘size_t’ extern int kernel_read(struct file *, loff_t, char *, unsigned long); ^ /var/lib/dkms/anbox-ashmen/1/build/ashmem.c:324:3: warning: passing argument 4 of ‘kernel_read’ makes integer from pointer without a cast [enabled by default] ret = kernel_read(asma->file, buf, len, pos); ^ In file included from /var/lib/dkms/anbox-ashmen/1/build/ashmem.c:25:0: include/linux/fs.h:2877:12: note: expected ‘long unsigned int’ but argument is of type ‘loff_t *’ extern int kernel_read(struct file *, loff_t, char *, unsigned long); ^ In file included from include/linux/kernel.h:13:0, from include/linux/cache.h:4, from include/linux/time.h:4, from include/linux/stat.h:18, from include/linux/module.h:10, from /var/lib/dkms/anbox-ashmen/1/build/ashmem.c:21: /var/lib/dkms/anbox-ashmen/1/build/ashmem.c: In function ‘ashmem_init’: include/linux/printk.h:222:18: error: expected ‘)’ before ‘pr_fmt’ printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__) ^ /var/lib/dkms/anbox-ashmen/1/build/ashmem.c:862:3: note: in expansion of macro ‘pr_err’ pr_err("failed to create slab cache\n"); ^ include/linux/printk.h:222:18: error: expected ‘)’ before ‘pr_fmt’ printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__) ^ /var/lib/dkms/anbox-ashmen/1/build/ashmem.c:870:3: note: in expansion of macro ‘pr_err’ pr_err("failed to create slab cache\n"); ^ include/linux/printk.h:222:18: error: expected ‘)’ before ‘pr_fmt’ printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__) ^ /var/lib/dkms/anbox-ashmen/1/build/ashmem.c:876:3: note: in expansion of macro ‘pr_err’ pr_err("failed to register misc device!\n"); ^ /var/lib/dkms/anbox-ashmen/1/build/ashmem.c: At top level: cc1: warning: unrecognized command line option "-Wno-int-conversion" [enabled by default] make[2]: *** [/var/lib/dkms/anbox-ashmen/1/build/ashmem.o] Error 1 make[1]: *** [_module_/var/lib/dkms/anbox-ashmen/1/build] Error 2 make[1]: Leaving directory
/usr/src/kernels/3.10.0-1062.12.1.el7.x86_64'
make: *** [all] Error 2
`
Any one has the idea what is wrong ?
Thanks, Prakash
It worked using kernel 4.4.228-2.el7.elrepo.x86_64