Why this error happens?{Kernel building} - Sony Xperia ZL

Device Drivers->USB support->USB Gadget Support->USB Gadget Drivers->Serial Gadget (with CDC ACM and CDC OBEX support) gives error
Code:
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK kernel/config_data.h
CC drivers/usb/gadget/serial.o
CHK include/generated/compile.h
CC drivers/usb/usb-common.o
In file included from drivers/usb/gadget/serial.c:45:0:
drivers/usb/gadget/f_acm.c:90:14: error: 'GSERIAL_NO_PORTS' undeclared here (not in a function)
drivers/usb/gadget/f_acm.c:90:3: warning: 'gacm_ports' defined but not used [-Wunused-variable]
drivers/usb/gadget/f_acm.c:102:12: warning: 'acm_port_setup' defined but not used [-Wunused-function]
drivers/usb/gadget/f_acm.c:989:12: warning: 'acm_init_port' defined but not used [-Wunused-function]
In file included from drivers/usb/gadget/serial.c:47:0:
drivers/usb/gadget/f_serial.c:273:12: warning: 'gport_setup' defined but not used [-Wunused-function]
drivers/usb/gadget/f_serial.c:951:12: warning: 'gserial_init_port' defined but not used [-Wunused-function]
make[3]: *** [drivers/usb/gadget/serial.o] Error 1
make[2]: *** [drivers/usb/gadget] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [drivers/usb] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [drivers] Error 2
after adding
Code:
#define GSERIAL_NO_PORTS 3
to drivers/usb/gadget/f_acm.c gives this errors:
Code:
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CHK kernel/config_data.h
CC drivers/usb/gadget/serial.o
In file included from drivers/usb/gadget/serial.c:45:0:
drivers/usb/gadget/f_acm.c:104:12: warning: 'acm_port_setup' defined but not used [-Wunused-function]
drivers/usb/gadget/f_acm.c:991:12: warning: 'acm_init_port' defined but not used [-Wunused-function]
In file included from drivers/usb/gadget/serial.c:47:0:
drivers/usb/gadget/f_serial.c:273:12: warning: 'gport_setup' defined but not used [-Wunused-function]
drivers/usb/gadget/f_serial.c:951:12: warning: 'gserial_init_port' defined but not used [-Wunused-function]
LD drivers/usb/gadget/g_serial.o
LD drivers/usb/gadget/built-in.o
LD drivers/usb/built-in.o
LD drivers/built-in.o
LD vmlinux.o
MODPOST vmlinux.o
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
drivers/built-in.o: In function `gport_disconnect':
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:393: undefined reference to `gsdio_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:396: undefined reference to `gsmd_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:399: undefined reference to `ghsic_ctrl_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:400: undefined reference to `ghsic_data_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:403: undefined reference to `ghsuart_data_disconnect'
drivers/built-in.o: In function `gport_connect':
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:341: undefined reference to `gsdio_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:344: undefined reference to `gsmd_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:347: undefined reference to `ghsic_ctrl_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:353: undefined reference to `ghsic_data_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:357: undefined reference to `ghsic_ctrl_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:362: undefined reference to `ghsuart_data_connect'
drivers/built-in.o: In function `acm_port_disconnect':
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:204: undefined reference to `gsdio_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:207: undefined reference to `gsmd_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:210: undefined reference to `ghsic_ctrl_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:211: undefined reference to `ghsic_data_disconnect'
drivers/built-in.o: In function `acm_port_connect':
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:160: undefined reference to `gsdio_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:163: undefined reference to `gsmd_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:166: undefined reference to `ghsic_ctrl_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:172: undefined reference to `ghsic_data_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:176: undefined reference to `ghsic_ctrl_disconnect'
make: *** [.tmp_vmlinux1] Error 1
Please help)
and source https://github.com/CyanogenMod/android_kernel_sony_apq8064/tree/cm-11.0/drivers/usb/gadget

suleymanovemil8 said:
Device Drivers->USB support->USB Gadget Support->USB Gadget Drivers->Serial Gadget (with CDC ACM and CDC OBEX support) gives error
Code:
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK kernel/config_data.h
CC drivers/usb/gadget/serial.o
CHK include/generated/compile.h
CC drivers/usb/usb-common.o
In file included from drivers/usb/gadget/serial.c:45:0:
drivers/usb/gadget/f_acm.c:90:14: error: 'GSERIAL_NO_PORTS' undeclared here (not in a function)
drivers/usb/gadget/f_acm.c:90:3: warning: 'gacm_ports' defined but not used [-Wunused-variable]
drivers/usb/gadget/f_acm.c:102:12: warning: 'acm_port_setup' defined but not used [-Wunused-function]
drivers/usb/gadget/f_acm.c:989:12: warning: 'acm_init_port' defined but not used [-Wunused-function]
In file included from drivers/usb/gadget/serial.c:47:0:
drivers/usb/gadget/f_serial.c:273:12: warning: 'gport_setup' defined but not used [-Wunused-function]
drivers/usb/gadget/f_serial.c:951:12: warning: 'gserial_init_port' defined but not used [-Wunused-function]
make[3]: *** [drivers/usb/gadget/serial.o] Error 1
make[2]: *** [drivers/usb/gadget] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [drivers/usb] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [drivers] Error 2
after adding
Code:
#define GSERIAL_NO_PORTS 3
to drivers/usb/gadget/f_acm.c gives this errors:
Code:
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CHK kernel/config_data.h
CC drivers/usb/gadget/serial.o
In file included from drivers/usb/gadget/serial.c:45:0:
drivers/usb/gadget/f_acm.c:104:12: warning: 'acm_port_setup' defined but not used [-Wunused-function]
drivers/usb/gadget/f_acm.c:991:12: warning: 'acm_init_port' defined but not used [-Wunused-function]
In file included from drivers/usb/gadget/serial.c:47:0:
drivers/usb/gadget/f_serial.c:273:12: warning: 'gport_setup' defined but not used [-Wunused-function]
drivers/usb/gadget/f_serial.c:951:12: warning: 'gserial_init_port' defined but not used [-Wunused-function]
LD drivers/usb/gadget/g_serial.o
LD drivers/usb/gadget/built-in.o
LD drivers/usb/built-in.o
LD drivers/built-in.o
LD vmlinux.o
MODPOST vmlinux.o
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
drivers/built-in.o: In function `gport_disconnect':
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:393: undefined reference to `gsdio_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:396: undefined reference to `gsmd_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:399: undefined reference to `ghsic_ctrl_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:400: undefined reference to `ghsic_data_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:403: undefined reference to `ghsuart_data_disconnect'
drivers/built-in.o: In function `gport_connect':
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:341: undefined reference to `gsdio_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:344: undefined reference to `gsmd_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:347: undefined reference to `ghsic_ctrl_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:353: undefined reference to `ghsic_data_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:357: undefined reference to `ghsic_ctrl_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:362: undefined reference to `ghsuart_data_connect'
drivers/built-in.o: In function `acm_port_disconnect':
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:204: undefined reference to `gsdio_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:207: undefined reference to `gsmd_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:210: undefined reference to `ghsic_ctrl_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:211: undefined reference to `ghsic_data_disconnect'
drivers/built-in.o: In function `acm_port_connect':
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:160: undefined reference to `gsdio_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:163: undefined reference to `gsmd_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:166: undefined reference to `ghsic_ctrl_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:172: undefined reference to `ghsic_data_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:176: undefined reference to `ghsic_ctrl_disconnect'
make: *** [.tmp_vmlinux1] Error 1
Please help)
and source https://github.com/CyanogenMod/android_kernel_sony_apq8064/tree/cm-11.0/drivers/usb/gadget
Click to expand...
Click to collapse
I am having this problem too where you able to solve it?

borillion_star said:
I am having this problem too where you able to solve it?
Click to expand...
Click to collapse
it is still unsolved

suleymanovemil8 said:
Device Drivers->USB support->USB Gadget Support->USB Gadget Drivers->Serial Gadget (with CDC ACM and CDC OBEX support) gives error
Code:
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK kernel/config_data.h
CC drivers/usb/gadget/serial.o
CHK include/generated/compile.h
CC drivers/usb/usb-common.o
In file included from drivers/usb/gadget/serial.c:45:0:
drivers/usb/gadget/f_acm.c:90:14: error: 'GSERIAL_NO_PORTS' undeclared here (not in a function)
drivers/usb/gadget/f_acm.c:90:3: warning: 'gacm_ports' defined but not used [-Wunused-variable]
drivers/usb/gadget/f_acm.c:102:12: warning: 'acm_port_setup' defined but not used [-Wunused-function]
drivers/usb/gadget/f_acm.c:989:12: warning: 'acm_init_port' defined but not used [-Wunused-function]
In file included from drivers/usb/gadget/serial.c:47:0:
drivers/usb/gadget/f_serial.c:273:12: warning: 'gport_setup' defined but not used [-Wunused-function]
drivers/usb/gadget/f_serial.c:951:12: warning: 'gserial_init_port' defined but not used [-Wunused-function]
make[3]: *** [drivers/usb/gadget/serial.o] Error 1
make[2]: *** [drivers/usb/gadget] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [drivers/usb] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [drivers] Error 2
after adding
Code:
#define GSERIAL_NO_PORTS 3
to drivers/usb/gadget/f_acm.c gives this errors:
Code:
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CHK kernel/config_data.h
CC drivers/usb/gadget/serial.o
In file included from drivers/usb/gadget/serial.c:45:0:
drivers/usb/gadget/f_acm.c:104:12: warning: 'acm_port_setup' defined but not used [-Wunused-function]
drivers/usb/gadget/f_acm.c:991:12: warning: 'acm_init_port' defined but not used [-Wunused-function]
In file included from drivers/usb/gadget/serial.c:47:0:
drivers/usb/gadget/f_serial.c:273:12: warning: 'gport_setup' defined but not used [-Wunused-function]
drivers/usb/gadget/f_serial.c:951:12: warning: 'gserial_init_port' defined but not used [-Wunused-function]
LD drivers/usb/gadget/g_serial.o
LD drivers/usb/gadget/built-in.o
LD drivers/usb/built-in.o
LD drivers/built-in.o
LD vmlinux.o
MODPOST vmlinux.o
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
drivers/built-in.o: In function `gport_disconnect':
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:393: undefined reference to `gsdio_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:396: undefined reference to `gsmd_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:399: undefined reference to `ghsic_ctrl_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:400: undefined reference to `ghsic_data_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:403: undefined reference to `ghsuart_data_disconnect'
drivers/built-in.o: In function `gport_connect':
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:341: undefined reference to `gsdio_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:344: undefined reference to `gsmd_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:347: undefined reference to `ghsic_ctrl_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:353: undefined reference to `ghsic_data_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:357: undefined reference to `ghsic_ctrl_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_serial.c:362: undefined reference to `ghsuart_data_connect'
drivers/built-in.o: In function `acm_port_disconnect':
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:204: undefined reference to `gsdio_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:207: undefined reference to `gsmd_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:210: undefined reference to `ghsic_ctrl_disconnect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:211: undefined reference to `ghsic_data_disconnect'
drivers/built-in.o: In function `acm_port_connect':
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:160: undefined reference to `gsdio_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:163: undefined reference to `gsmd_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:166: undefined reference to `ghsic_ctrl_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:172: undefined reference to `ghsic_data_connect'
/home/emil/odin/kernel/sony/apq8064/drivers/usb/gadget/f_acm.c:176: undefined reference to `ghsic_ctrl_disconnect'
make: *** [.tmp_vmlinux1] Error 1
Please help)
and source https://github.com/CyanogenMod/android_kernel_sony_apq8064/tree/cm-11.0/drivers/usb/gadget
Click to expand...
Click to collapse
You solve it ?

Related

[Q] android kernel compiling error

hello
i try to compiler android kernel source code for samsung note 2
my host is ubuntu 13.04 and i use toolchains 4.8
i choice a defconfig from arch/arm/configs
when i compile the kernel using
make -j4 ARCH=arm CROSS_COMPILE=/home/naimk/lab/ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-
i get this error:
linux-androideabi-
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CC arch/arm/kernel/asm-offsets.s
In file included from arch/arm/kernel/asm-offsets.c:16:0:
/home/naimk/lab/note2/kernel/arch/arm/include/asm/cacheflush.h:19:22: fatal error: mach/smc.h: No such file or directory
#include <mach/smc.h>
^
compilation terminated.
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
and for other kernel source like samsung ace GT-S5830i
i get this error :
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf -s arch/arm/Kconfig
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
HOSTCC scripts/genksyms/genksyms.o
SHIPPED scripts/genksyms/lex.c
CC scripts/mod/empty.o
HOSTCC scripts/selinux/genheaders/genheaders
HOSTCC scripts/kallsyms
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/selinux/mdp/mdp
HOSTCC scripts/mod/modpost.o
SHIPPED scripts/genksyms/parse.h
SHIPPED scripts/genksyms/keywords.c
SHIPPED scripts/genksyms/parse.c
HOSTCC scripts/genksyms/lex.o
HOSTCC scripts/conmakehash
Generating include/generated/mach-types.h
CC kernel/bounds.s
GEN include/generated/bounds.h
CC arch/arm/kernel/asm-offsets.s
HOSTCC scripts/mod/sumversion.o
HOSTCC scripts/genksyms/parse.o
GEN include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
HOSTLD scripts/genksyms/genksyms
HOSTLD scripts/mod/modpost
CHK include/generated/compile.h
CC init/do_mounts.o
CC init/main.o
UPD include/generated/compile.h
CC init/do_mounts_rd.o
HOSTCC usr/gen_init_cpio
In file included from include/linux/nfs_fs.h:41:0,
from init/do_mounts.c:20:
include/linux/pagemap.h: In function 'fault_in_pages_readable':
include/linux/pagemap.h:415:16: warning: variable 'c' set but not used [-Wunused-but-set-variable]
volatile char c;
^
In file included from include/linux/blkdev.h:12:0,
from init/do_mounts.h:2,
from init/do_mounts_rd.c:12:
include/linux/pagemap.h: In function 'fault_in_pages_readable':
include/linux/pagemap.h:415:16: warning: variable 'c' set but not used [-Wunused-but-set-variable]
volatile char c;
^
In file included from include/linux/mempolicy.h:70:0,
from init/main.c:51:
include/linux/pagemap.h: In function 'fault_in_pages_readable':
include/linux/pagemap.h:415:16: warning: variable 'c' set but not used [-Wunused-but-set-variable]
volatile char c;
^
GEN usr/initramfs_data.cpio
AS usr/initramfs_data.o
LD usr/built-in.o
CC init/do_mounts_initrd.o
CC arch/arm/kernel/compat.o
CC init/do_mounts_md.o
In file included from include/linux/blkdev.h:12:0,
from init/do_mounts.h:2,
from init/do_mounts_initrd.c:11:
include/linux/pagemap.h: In function 'fault_in_pages_readable':
include/linux/pagemap.h:415:16: warning: variable 'c' set but not used [-Wunused-but-set-variable]
volatile char c;
^
CC init/initramfs.o
In file included from include/linux/blkdev.h:12:0,
from init/do_mounts.h:2,
from init/do_mounts_md.c:5:
include/linux/pagemap.h: In function 'fault_in_pages_readable':
include/linux/pagemap.h:415:16: warning: variable 'c' set but not used [-Wunused-but-set-variable]
volatile char c;
^
CC init/calibrate.o
CC arch/arm/kernel/elf.o
AS arch/arm/kernel/entry-armv.o
AS arch/arm/kernel/entry-common.o
CC arch/arm/kernel/irq.o
CC arch/arm/mm/dma-mapping.o
CC arch/arm/mm/extable.o
CC arch/arm/kernel/process.o
CC arch/arm/kernel/ptrace.o
arch/arm/mm/dma-mapping.c: In function '__dma_alloc':
arch/arm/mm/dma-mapping.c:215:25: warning: array subscript is above array bounds [-Warray-bounds]
pte = consistent_pte[++idx];
^
CC init/version.o
arch/arm/mm/dma-mapping.c: In function 'dma_free_coherent':
arch/arm/mm/dma-mapping.c:259:25: warning: array subscript is above array bounds [-Warray-bounds]
ptep = consistent_pte[++idx];
^
LD init/mounts.o
LD init/built-in.o
CC arch/arm/mm/fault.o
CC arch/arm/kernel/return_address.o
CC arch/arm/mm/init.o
CC arch/arm/kernel/setup.o
CC arch/arm/kernel/signal.o
CC arch/arm/common/vic.o
arch/arm/kernel/signal.c: In function 'restore_sigframe':
arch/arm/kernel/signal.c:278:30: warning: variable 'aux' set but not used [-Wunused-but-set-variable]
struct aux_sigframe __user *aux;
^
CC arch/arm/common/icst.o
CC arch/arm/common/clkdev.o
CC arch/arm/mm/iomap.o
CC arch/arm/mm/fault-armv.o
LD arch/arm/common/built-in.o
CC arch/arm/kernel/sys_arm.o
CC arch/arm/mach-versatile/core.o
In file included from arch/arm/mm/fault-armv.c:18:0:
include/linux/pagemap.h: In function 'fault_in_pages_readable':
include/linux/pagemap.h:415:16: warning: variable 'c' set but not used [-Wunused-but-set-variable]
volatile char c;
^
CC arch/arm/kernel/stacktrace.o
CC arch/arm/mm/flush.o
In file included from arch/arm/mm/flush.c:12:0:
include/linux/pagemap.h: In function 'fault_in_pages_readable':
include/linux/pagemap.h:415:16: warning: variable 'c' set but not used [-Wunused-but-set-variable]
volatile char c;
^
CC arch/arm/mm/ioremap.o
CC arch/arm/kernel/time.o
CC arch/arm/mm/mmap.o
CC arch/arm/kernel/traps.o
CC arch/arm/mach-versatile/versatile_pb.o
CC arch/arm/mm/pgd.o
CC arch/arm/mm/mmu.o
CC arch/arm/plat-versatile/clock.o
CC arch/arm/mach-versatile/pci.o
CC arch/arm/plat-versatile/timer-sp.o
/home/naimk/lab/ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-ld: internal error in relocate_special_relocatable, at /s/ndk-toolchain/src/build/../binutils/binutils-2.23/gold/arm.cc:9901
make[1]: *** [arch/arm/kernel/traps.o] Error 1
make: *** [arch/arm/kernel] Error 2
make: *** Waiting for unfinished jobs....
CC arch/arm/plat-versatile/sched-clock.o
CC arch/arm/mm/vmregion.o
LD arch/arm/plat-versatile/built-in.o
CC arch/arm/mm/proc-syms.o
LD arch/arm/mach-versatile/built-in.o
CC arch/arm/mm/alignment.o
AS arch/arm/mm/abort-ev5tj.o
AS arch/arm/mm/pabort-legacy.o
CC arch/arm/mm/copypage-v4wb.o
AS arch/arm/mm/tlb-v4wbi.o
AS arch/arm/mm/proc-arm926.o
arch/arm/mm/alignment.c: In function 'do_alignment':
arch/arm/mm/alignment.c:298:15: warning: 'offset.un' may be used uninitialized in this function [-Wmaybe-uninitialized]
offset.un = -offset.un;
^
arch/arm/mm/alignment.c:720:21: note: 'offset.un' was declared here
union offset_union offset;
^
LD arch/arm/mm/built-in.o
/home/naimk/lab/ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-ld: internal error in relocate_special_relocatable, at /s/ndk-toolchain/src/build/../binutils/binutils-2.23/gold/arm.cc:9901
make[1]: *** [arch/arm/mm/built-in.o] Error 1
make: *** [arch/arm/mm] Error 2
please if you can help me

.tmp_vmlinux1 error on Ubuntu (Kernel Compilation)

Im compiling the google play edition stock kernel for the htc one m8 varient. The kernel is 3.4.0-gb1b6fb1 for android 4.4.4. Im using Ubuntu 14.04.1 LTS. I used the following command:
make -j2 ARCH=arm CROSS_COMPILE=/home/richard/Workspace/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-.
So here is the error:
LD drivers/video/built-in.o
LD drivers/built-in.o
LD vmlinux.o
MODPOST vmlinux.o
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
drivers/built-in.o: In function `dwc3_msm_probe':
/home/richard/Workspace/kernel1/drivers/usb/dwc3/dwc3-msm.c:2561: undefined reference to `rom_stockui'
make: *** [.tmp_vmlinux1] Error 1
Click to expand...
Click to collapse
How can I fix this? Im working on a project that is due in two days. Any help is appreciated!

[Q] Adding sqlcipher to android kernel

Hi everyone.
I repleaced sqlite to sqlcipher, I spend some time to this and now code is compilable, but I have other issue:
host SharedLib: libsqlite_jni (out/host/linux-x86/obj/lib/libsqlite_jni.so)
external/sqlite/dist/sqlite3.c: In function 'backupOnePage':
external/sqlite/dist/sqlite3.c:63260:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/sqlite/dist/sqlite3.c: In function 'sqlite3Pragma':
external/sqlite/dist/sqlite3.c:103492:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
target SharedLib: libsqlite (out/target/product/generic/obj/SHARED_LIBRARIES/libsqlite_intermediates/LINKED/libsqlite.so)
Install: out/host/linux-x86/lib/libsqlite_jni.so
external/sqlite/dist/sqlite3.c:16539: error: undefined reference to 'EVP_sha1'
external/sqlite/dist/sqlite3.c:16539: error: undefined reference to 'EVP_MD_size'
external/sqlite/dist/sqlite3.c:16535: error: undefined reference to 'EVP_CIPHER_block_size'
external/sqlite/dist/sqlite3.c:16531: error: undefined reference to 'EVP_CIPHER_iv_length'
external/sqlite/dist/sqlite3.c:16527: error: undefined reference to 'EVP_CIPHER_key_length'
external/sqlite/dist/sqlite3.c:16523: error: undefined reference to 'EVP_CIPHER_nid'
external/sqlite/dist/sqlite3.c:16523: error: undefined reference to 'OBJ_nid2sn'
external/sqlite/dist/sqlite3.c:16518: error: undefined reference to 'EVP_get_cipherbyname'
external/sqlite/dist/sqlite3.c:16503: error: undefined reference to 'EVP_CipherInit'
external/sqlite/dist/sqlite3.c:16504: error: undefined reference to 'EVP_CIPHER_CTX_set_padding'
external/sqlite/dist/sqlite3.c:16505: error: undefined reference to 'EVP_CipherInit'
external/sqlite/dist/sqlite3.c:16506: error: undefined reference to 'EVP_CipherUpdate'
external/sqlite/dist/sqlite3.c:16509: error: undefined reference to 'EVP_CipherFinal'
external/sqlite/dist/sqlite3.c:16511: error: undefined reference to 'EVP_CIPHER_CTX_cleanup'
external/sqlite/dist/sqlite3.c:16495: error: undefined reference to 'PKCS5_PBKDF2_HMAC_SHA1'
external/sqlite/dist/sqlite3.c:16485: error: undefined reference to 'HMAC_CTX_init'
external/sqlite/dist/sqlite3.c:16486: error: undefined reference to 'EVP_sha1'
external/sqlite/dist/sqlite3.c:16486: error: undefined reference to 'HMAC_Init_ex'
external/sqlite/dist/sqlite3.c:16487: error: undefined reference to 'HMAC_Update'
external/sqlite/dist/sqlite3.c:16488: error: undefined reference to 'HMAC_Update'
external/sqlite/dist/sqlite3.c:16489: error: undefined reference to 'HMAC_Final'
external/sqlite/dist/sqlite3.c:16490: error: undefined reference to 'HMAC_CTX_cleanup'
external/sqlite/dist/sqlite3.c:16391: error: undefined reference to 'RAND_add'
external/sqlite/dist/sqlite3.c:16475: error: undefined reference to 'RAND_bytes'
external/sqlite/dist/sqlite3.c:16448: error: undefined reference to 'EVP_cleanup'
external/sqlite/dist/sqlite3.c:16410: error: undefined reference to 'EVP_get_cipherbyname'
external/sqlite/dist/sqlite3.c:16419: error: undefined reference to 'OPENSSL_add_all_algorithms_noconf'
Can anyone help me?

Correct toolchain for compiling kernel

Hi guys,
I would like to ask if somebody would advise me a working toolchain for compiling kernel for HOX (it's 4.18.401.4 crc). I tried the one that's in README in source code zip (git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6) and all toolchains from Christopher83. I am still getting erros like this:
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
drivers/net/wireless/bcmdhd_4334/Kconfig:28:warning: choice value used outside its choice group
arch/arm/configs/ap33_android_defconfig:590:warning: override: reassigning to symbol DYNAMIC_DEBUG
warning: (HTC_PROJECT) selects BOOTPARAM_SOFTLOCKUP_PANIC which has unmet direct dependencies (LOCKUP_DETECTOR)
warning: (HTC_PROJECT) selects BOOTPARAM_SOFTLOCKUP_PANIC which has unmet direct dependencies (LOCKUP_DETECTOR)
#
# configuration written to .config
#
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/net/wireless/bcmdhd_4334/Kconfig:28:warning: choice value used outside its choice group
warning: (HTC_PROJECT) selects BOOTPARAM_SOFTLOCKUP_PANIC which has unmet direct dependencies (LOCKUP_DETECTOR)
warning: (HTC_PROJECT) selects BOOTPARAM_SOFTLOCKUP_PANIC which has unmet direct dependencies (LOCKUP_DETECTOR)
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
CC scripts/mod/empty.o
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[2]: *** [scripts/mod/empty.o] Error 2
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
make: Entering directory `/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03'
./scripts/gen-compat-autoconf.sh config.mk > include/linux/compat_autoconf.h
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
make -C /home/lesmil/android/kernel M=/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03 modules
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[1]: Entering directory `/home/lesmil/android/kernel'
WARNING: Symbol version dump /home/lesmil/android/kernel/Module.symvers
is missing; modules will have no dependencies and modversions.
CC [M] /home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/compat/main.o
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[3]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/compat/main.o] Error 2
make[2]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/compat] Error 2
make[2]: *** Waiting for unfinished jobs....
CC [M] /home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless/wl12xx/main.o
CC [M] /home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless/wl12xx/cmd.o
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[4]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless/wl12xx/main.o] Error 2
make[4]: *** Waiting for unfinished jobs....
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[4]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless/wl12xx/cmd.o] Error 2
make[3]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless/wl12xx] Error 2
make[2]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless] Error 2
make[1]: *** [_module_/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03] Error 2
make[1]: Leaving directory `/home/lesmil/android/kernel'
make: *** [modules] Error 2
make: Leaving directory `/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03'
total 0
-rwxr-xr-x 1 lesmil lesmil 4766760 May 15 11:18 /home/lesmil/android/kernel/BUILD/modules/../zImage
[email protected]:~/android/kernel$
Thx for any help
lesmil said:
Hi guys,
I would like to ask if somebody would advise me a working toolchain for compiling kernel for HOX (it's 4.18.401.4 crc). I tried the one that's in README in source code zip (git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6) and all toolchains from Christopher83. I am still getting erros like this:
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
drivers/net/wireless/bcmdhd_4334/Kconfig:28:warning: choice value used outside its choice group
arch/arm/configs/ap33_android_defconfig:590:warning: override: reassigning to symbol DYNAMIC_DEBUG
warning: (HTC_PROJECT) selects BOOTPARAM_SOFTLOCKUP_PANIC which has unmet direct dependencies (LOCKUP_DETECTOR)
warning: (HTC_PROJECT) selects BOOTPARAM_SOFTLOCKUP_PANIC which has unmet direct dependencies (LOCKUP_DETECTOR)
#
# configuration written to .config
#
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/net/wireless/bcmdhd_4334/Kconfig:28:warning: choice value used outside its choice group
warning: (HTC_PROJECT) selects BOOTPARAM_SOFTLOCKUP_PANIC which has unmet direct dependencies (LOCKUP_DETECTOR)
warning: (HTC_PROJECT) selects BOOTPARAM_SOFTLOCKUP_PANIC which has unmet direct dependencies (LOCKUP_DETECTOR)
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
CC scripts/mod/empty.o
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[2]: *** [scripts/mod/empty.o] Error 2
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
make: Entering directory `/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03'
./scripts/gen-compat-autoconf.sh config.mk > include/linux/compat_autoconf.h
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
make -C /home/lesmil/android/kernel M=/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03 modules
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[1]: Entering directory `/home/lesmil/android/kernel'
WARNING: Symbol version dump /home/lesmil/android/kernel/Module.symvers
is missing; modules will have no dependencies and modversions.
CC [M] /home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/compat/main.o
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[3]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/compat/main.o] Error 2
make[2]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/compat] Error 2
make[2]: *** Waiting for unfinished jobs....
CC [M] /home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless/wl12xx/main.o
CC [M] /home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless/wl12xx/cmd.o
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[4]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless/wl12xx/main.o] Error 2
make[4]: *** Waiting for unfinished jobs....
/home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/lesmil/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make[4]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless/wl12xx/cmd.o] Error 2
make[3]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless/wl12xx] Error 2
make[2]: *** [/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03/drivers/net/wireless] Error 2
make[1]: *** [_module_/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03] Error 2
make[1]: Leaving directory `/home/lesmil/android/kernel'
make: *** [modules] Error 2
make: Leaving directory `/home/lesmil/android/kernel/drivers/net/wireless/compat-wireless_R5.SP2.03'
total 0
-rwxr-xr-x 1 lesmil lesmil 4766760 May 15 11:18 /home/lesmil/android/kernel/BUILD/modules/../zImage
[email protected]:~/android/kernel$
Thx for any help
Click to expand...
Click to collapse
edit: should modify MAKEFILE i guess, gonna try this ^^
edit2: damn, didn't want to reply to myself....

Compile stock Lolipop kernel

I've downloaded stock kernel source from this website, the problem is that I get this error when compiling:
Code:
[email protected]:~/kernel$ make
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: 'include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CHK kernel/config_data.h
CC drivers/leds/leds-qpnp.o
drivers/leds/leds-qpnp.c: In function ‘qpnp_led_set’:
drivers/leds/leds-qpnp.c:2213:14: error: ‘led_sequence_lock’ undeclared (first use in this function)
mutex_lock(&led_sequence_lock); /* RGB LED synchronize in kddi */
^
drivers/leds/leds-qpnp.c:2213:14: note: each undeclared identifier is reported only once for each function it appears in
scripts/Makefile.build:307: recipe for target 'drivers/leds/leds-qpnp.o' failed
make[2]: *** [drivers/leds/leds-qpnp.o] Error 1
scripts/Makefile.build:443: recipe for target 'drivers/leds' failed
make[1]: *** [drivers/leds] Error 2
Makefile:951: recipe for target 'drivers' failed
make: *** [drivers] Error 2
[email protected]:~/kernel$
I didn't modify anything, I am using arm-linux-gnueabi-linaro_4.8.4-2014.11 toolchain, thanks
I managed to get it to compile, there are some files that need to be fixed first in order to get it working :good:

Categories

Resources