[Moto E Q&A, Help & Troubleshooting] rajit:
Hi,

I am trying To build a Custom Kernel But seems there many errors found, specially cant able to find Lianaro toolchain for cortex a7.

cortex a15 giving some error ,like this " you choose the correct path/some time different after figured the path". so if possible link me to the cortex a7 toolchain and help needed as necessary .

[MENTION=4984300]Shivam Kuchhal[/MENTION] , [MENTION=4584140]cybojenix[/MENTION] , [MENTION=5934764]newhor1z0n[/MENTION] , [MENTION=4188661]xperiafan13[/MENTION] , [MENTION=5857550]Falcon G[/MENTION] [MENTION=4309448]varun.chitre15[/MENTION]

lino@lino-GA-78LMT-USB3:~$ cd android
lino@lino-GA-78LMT-USB3:~/android$ cd kernel
lino@lino-GA-78LMT-USB3:~/android/kernel$ export ARCH=arm
lino@lino-GA-78LMT-USB3:~/android/kernel$ export CROSS_COMPILE=~/android/toolchains/cortex15/bin/arm-eabi-
lino@lino-GA-78LMT-USB3:~/android/kernel$ make msm8610_defconfig
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
#
# configuration written to .config
#
lino@lino-GA-78LMT-USB3:~/android/kernel$ make -j1
scripts/kconfig/conf --silentoldconfig Kconfig
WRAP arch/arm/include/generated/asm/auxvec.h
WRAP arch/arm/include/generated/asm/bitsperlong.h
WRAP arch/arm/include/generated/asm/cputime.h
WRAP arch/arm/include/generated/asm/emergency-restart.h
WRAP arch/arm/include/generated/asm/errno.h
WRAP arch/arm/include/generated/asm/ioctl.h
WRAP arch/arm/include/generated/asm/irq_regs.h
WRAP arch/arm/include/generated/asm/kdebug.h
WRAP arch/arm/include/generated/asm/local.h
WRAP arch/arm/include/generated/asm/local64.h
WRAP arch/arm/include/generated/asm/percpu.h
WRAP arch/arm/include/generated/asm/poll.h
WRAP arch/arm/include/generated/asm/resource.h
WRAP arch/arm/include/generated/asm/sections.h
WRAP arch/arm/include/generated/asm/siginfo.h
WRAP arch/arm/include/generated/asm/sizes.h
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
Generating include/generated/mach-types.h
CC kernel/bounds.s
/home/lino/android/toolchains/cortex15/bin/arm-eabi-gcc -Wp,-MD,kernel/.bounds.s.d -nostdinc -isystem /home/lino/android/toolchains/cortex15/bin/arm-eabi-gcc -print-file-name=include [Errno 8] Exec format error -I/home/lino/android/kernel/arch/arm/include -Iarch/arm/include/generated -Iinclude -include /home/lino/android/kernel/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-msm/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -D__LINUX_ARM_ARCH__=7 -march=armv7-a -msoft-float -Uarm -fomit-frame-pointer -DKBUILD_STR(s)=#s -DKBUILD_BASENAME=KBUILD_STR(bounds) -DKBUILD_MODNAME=KBUILD_STR(bounds) -fverbose-asm -S -o kernel/bounds.s kernel/bounds.c [Errno 8] Exec format error
make[1]: *** [kernel/bounds.s] Error 8
make: *** [prepare0] Error 2

EDIT:-

tried with other toolchains, seems same error, so i think i am missing something. please figure it out :(

Regards,

Rajit Saha