[XDA Assist] Enrique Ruiz:
Hi, I'm looking for a way to compile the source code of my Lenovo Vibe B a2016b30 phone. My phone currently has a build number: A2016B30_S151_160809_8G_LATAM

Could someone help me with this?

My terminal displays the following error:

[SIZE="2"][rivera-huerta@Toshiba kernel-3.18]$ make O=out ARCH=arm64 hq6735m_65u_b1a_m_debug_defconfig
make[1]: se entra en el directorio '/home/rivera-huerta/Desktop/code/kernel-3.18/out'
HOSTCC scripts/basic/fixdep
GEN ./Makefile
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
#
make[1]: se sale del directorio '/home/rivera-huerta/Desktop/code/kernel-3.18/out'
[rivera-huerta@Toshiba kernel-3.18]$ make O=out ARCH=arm64 CROSS_COMPILE=$(dir)/prebuilts/gcc/linux-x86/aarch64/cit-aarch64-linux-android-4.9/bin/aarch64-linux-android-
Makefile:142: atención: se anulan las instrucciones para el objetivo 'Makefile'
Makefile:128: atención: se ignoran las instrucciones viejas para el objetivo 'Makefile'
make[1]: se entra en el directorio '/home/rivera-huerta/Desktop/code/kernel-3.18/out'
make[2]: androidgcc: No se encontró el programa
make[2]: androidgcc: No se encontró el programa
make[2]: androidgcc: No se encontró el programa
make[3]: androidgcc: No se encontró el programa
GEN ./Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
make[2]: androidgcc: No se encontró el programa
../Makefile:658: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler
make[2]: androidgcc: No se encontró el programa
make[2]: No se hace nada para '../CREDITS'.
make[2]: androidgcc: No se encontró el programa
../Makefile:658: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler
make[2]: androidgcc: No se encontró el programa
make[2]: No se hace nada para 'include'.
make[2]: androidgcc: No se encontró el programa
../Makefile:658: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler
make[2]: androidgcc: No se encontró el programa
make[2]: androidgcc: No se encontró el programa
CHK include/config/kernel.release
UPD include/config/kernel.release
make[2]: androidgcc: No se encontró el programa
Using .. as source for kernel
make[2]: androidgcc: No se encontró el programa
GEN ./Makefile
make[2]: androidgcc: No se encontró el programa
WRAP arch/arm64/include/generated/asm/bug.h
WRAP arch/arm64/include/generated/asm/bugs.h
WRAP arch/arm64/include/generated/asm/checksum.h
WRAP arch/arm64/include/generated/asm/clkdev.h
WRAP arch/arm64/include/generated/asm/cputime.h
WRAP arch/arm64/include/generated/asm/current.h
WRAP arch/arm64/include/generated/asm/delay.h
WRAP arch/arm64/include/generated/asm/div64.h
WRAP arch/arm64/include/generated/asm/dma.h
WRAP arch/arm64/include/generated/asm/dma-contiguous.h
WRAP arch/arm64/include/generated/asm/early_ioremap.h
WRAP arch/arm64/include/generated/asm/emergency-restart.h
WRAP arch/arm64/include/generated/asm/errno.h
WRAP arch/arm64/include/generated/asm/ftrace.h
WRAP arch/arm64/include/generated/asm/hash.h
WRAP arch/arm64/include/generated/asm/hw_irq.h
WRAP arch/arm64/include/generated/asm/ioctl.h
WRAP arch/arm64/include/generated/asm/ioctls.h
WRAP arch/arm64/include/generated/asm/ipcbuf.h
WRAP arch/arm64/include/generated/asm/irq_regs.h
WRAP arch/arm64/include/generated/asm/kdebug.h
WRAP arch/arm64/include/generated/asm/kmap_types.h
WRAP arch/arm64/include/generated/asm/kvm_para.h
WRAP arch/arm64/include/generated/asm/local.h
WRAP arch/arm64/include/generated/asm/local64.h
WRAP arch/arm64/include/generated/asm/mcs_spinlock.h
WRAP arch/arm64/include/generated/asm/mman.h
WRAP arch/arm64/include/generated/asm/msgbuf.h
WRAP arch/arm64/include/generated/asm/mutex.h
WRAP arch/arm64/include/generated/asm/pci.h
WRAP arch/arm64/include/generated/asm/pci-bridge.h
WRAP arch/arm64/include/generated/asm/poll.h
WRAP arch/arm64/include/generated/asm/preempt.h
WRAP arch/arm64/include/generated/asm/resource.h
WRAP arch/arm64/include/generated/asm/rwsem.h
WRAP arch/arm64/include/generated/asm/scatterlist.h
WRAP arch/arm64/include/generated/asm/sections.h
WRAP arch/arm64/include/generated/asm/segment.h
WRAP arch/arm64/include/generated/asm/sembuf.h
WRAP arch/arm64/include/generated/asm/serial.h
WRAP arch/arm64/include/generated/asm/shmbuf.h
WRAP arch/arm64/include/generated/asm/simd.h
WRAP arch/arm64/include/generated/asm/sizes.h
WRAP arch/arm64/include/generated/asm/socket.h
WRAP arch/arm64/include/generated/asm/sockios.h
WRAP arch/arm64/include/generated/asm/swab.h
WRAP arch/arm64/include/generated/asm/switch_to.h
WRAP arch/arm64/include/generated/asm/termbits.h
WRAP arch/arm64/include/generated/asm/termios.h
WRAP arch/arm64/include/generated/asm/topology.h
WRAP arch/arm64/include/generated/asm/trace_clock.h
WRAP arch/arm64/include/generated/asm/types.h
WRAP arch/arm64/include/generated/asm/unaligned.h
WRAP arch/arm64/include/generated/asm/user.h
WRAP arch/arm64/include/generated/asm/vga.h
WRAP arch/arm64/include/generated/asm/xor.h
WRAP arch/arm64/include/generated/uapi/asm/kvm_para.h
make[2]: androidgcc: No se encontró el programa
CHK include/generated/uapi/linux/version.h
UPD include/generated/uapi/linux/version.h
make[2]: androidgcc: No se encontró el programa
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
make[2]: androidgcc: No se encontró el programa
make[2]: androidgcc: No se encontró el programa
HOSTCC scripts/basic/bin2c
make[2]: androidgcc: No se encontró el programa
CC kernel/bounds.s
/bin/sh: androidgcc: no se encontró la orden
make[3]: *** [.././Kbuild:36: kernel/bounds.s] Error 127
make[2]: *** [../Makefile:986: prepare0] Error 2
make[1]: *** [/home/rivera-huerta/Desktop/code/kernel-3.18/Makefile:520: __build_one_by_one] Error 2
make[1]: se sale del directorio '/home/rivera-huerta/Desktop/code/kernel-3.18/out'
make: *** [Makefile:145: sub-make] Error 2
[rivera-huerta@Toshiba kernel-3.18]$ [/SIZE]

Waiting for your help, thank you very much. :D