[Galaxy A3, A5, A7, A8, A9 Q&A, Help & Troubleshoot] Ahmed_Khalifa:
Hello All.

I am building a new Cyanogenmod 13.0 for Galaxy A5H and I make a lot progress but, Im havng building error mostly on the kernel.

Here is the error log:

Building Kernel

make -C kernel/samsung/msm8916-caf O=/media/storage/android/cm-13.0/out/target/product/a53g/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/media/storage/android/cm-13.0/prebuilts/misc/linux-x86/ccache/ccache /home/ahmed/android/ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-/arm-eabi-" zImage

make[1]: Entering directory '/media/storage/android/cm-13.0/kernel/samsung/msm8916-caf'

/media/storage/android/cm-13.0/kernel/samsung/msm8916-caf/Makefile:603: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler

GEN /media/storage/android/cm-13.0/out/target/product/a53g/obj/KERNEL_OBJ/Makefile

scripts/kconfig/conf --silentoldconfig Kconfig

drivers/misc/Kconfig:421:warning: type of 'TIMA_LOG' redefined from 'boolean' to 'tristate'

drivers/misc/Kconfig:752:warning: choice value used outside its choice group

drivers/misc/Kconfig:754:warning: choice value used outside its choice group

drivers/misc/Kconfig:762:warning: choice value used outside its choice group

drivers/misc/Kconfig:765:warning: choice value used outside its choice group

drivers/misc/Kconfig:767:warning: choice value used outside its choice group

warning: (SND_SOC_QDSP6V2) selects SND_SOC_MSM_QDSP6V2_INTF which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && MSM_QDSP6_APRV2)

warning: (SND_SOC_APQ8084 && SND_SOC_MSM8X16 && SND_SOC_MSM8994) selects SND_SOC_CPE which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_WCD_CPE)

warning: (ARCH_MSM_KRAIT && ARCH_MSM8909 && ARCH_MSM8916 && ARCH_MSM8610 && ARCH_MSM8226) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))

warning: (SND_SOC_QDSP6V2) selects SND_SOC_MSM_QDSP6V2_INTF which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && MSM_QDSP6_APRV2)

warning: (SND_SOC_APQ8084 && SND_SOC_MSM8X16 && SND_SOC_MSM8994) selects SND_SOC_CPE which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_WCD_CPE)

warning: (ARCH_MSM_KRAIT && ARCH_MSM8909 && ARCH_MSM8916 && ARCH_MSM8610 && ARCH_MSM8226) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))

GEN /media/storage/android/cm-13.0/out/target/product/a53g/obj/KERNEL_OBJ/Makefile

CHK include/generated/uapi/linux/version.h

CHK include/generated/utsrelease.h

Using /media/storage/android/cm-13.0/kernel/samsung/msm8916-caf as source for kernel

/media/storage/android/cm-13.0/kernel/samsung/msm8916-caf is not clean, please run 'make mrproper'

in the '/media/storage/android/cm-13.0/kernel/samsung/msm8916-caf' directory.

/media/storage/android/cm-13.0/kernel/samsung/msm8916-caf/Makefile:843: recipe for target 'prepare3' failed

make[2]: *** [prepare3] Error 1

Makefile:130: recipe for target 'sub-make' failed

make[1]: *** [sub-make] Error 2

make[1]: Leaving directory '/media/storage/android/cm-13.0/kernel/samsung/msm8916-caf'

build/core/tasks/kernel.mk:286: recipe for target 'TARGET_KERNEL_BINARIES' failed

make: *** [TARGET_KERNEL_BINARIES] Error 2

make: *** Waiting for unfinished jobs....

#### make failed to build some targets (02:30:51 (hh:mm:ss)) ####

Please I need your help.