[Android Software Development] M.A.P:
So, you mean I can ignore that and can compile build without any issues? Well then I'm having many error regarding base_rules.mk:559 and also related to audio stuff and also few errors in kernel.mk. I'll give you detailed information let me reboot into ubuntu.

EDIT: Here is the complete text I'm getting when executing "make recoveryimage"

maanush@maanush-desktop:~/cm$ make recoveryimage

============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=6.0.1

CM_VERSION=13.0-20170511-UNOFFICIAL-620G

TARGET_PRODUCT=cm_620G

TARGET_BUILD_VARIANT=userdebug

TARGET_BUILD_TYPE=release

TARGET_BUILD_APPS=

TARGET_ARCH=arm

TARGET_ARCH_VARIANT=armv7-a-neon

TARGET_CPU_VARIANT=cortex-a7

TARGET_2ND_ARCH=

TARGET_2ND_ARCH_VARIANT=

TARGET_2ND_CPU_VARIANT=

HOST_ARCH=x86_64

HOST_OS=linux

HOST_OS_EXTRA=Linux-4.8.0-49-generic-x86_64-with-Ubuntu-16.04-xenial

HOST_BUILD_TYPE=release

BUILD_ID=MOB31K

OUT_DIR=/home/maanush/cm/out

============================================

Not a git repository

To compare two paths outside a working tree:

usage: git diff [--no-index] <path> <path>

cat: external/busybox/busybox-full.links: No such file or directory

build/core/binary.mk:823: target '/home/maanush/cm/out/target/product/620G/obj/EXECUTABLES/toolbox_recovery_intermediates/ls.o' given more than once in the same rule

"ebtables is disabled on this build"

build/core/base_rules.mk:559: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/hw/audio.primary.default.so'

device/HTC/620G/audio/Android.mk:18: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/hw/audio.primary.default.so'

build/core/base_rules.mk:559: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/root/res/images/charger/battery_fail.png'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/root/res/images/charger/battery_fail.png'

find: ‘dummy’: No such file or directory

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libGLESv2.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libGLESv2.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libcameraservice.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libcameraservice.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libvixl.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libvixl.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libjpeg.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libjpeg.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/egl/libGLES_android.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/egl/libGLES_android.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/egl/egl.cfg'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/egl/egl.cfg'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libOpenMAXAL.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libOpenMAXAL.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libstagefright_amrnb_common.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libstagefright_amrnb_common.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libbinder.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libbinder.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libfmjni.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libfmjni.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/hw/audio.primary.mt6592.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/hw/audio.primary.mt6592.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/hw/camera.default.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/hw/camera.default.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/hw/local_time.default.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/hw/local_time.default.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/hw/bluetooth.default.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/hw/bluetooth.default.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/hw/vibrator.default.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/hw/vibrator.default.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/hw/audio.a2dp.default.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/hw/audio.a2dp.default.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/hw/power.default.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/hw/power.default.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/hw/sensors.default.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/hw/sensors.default.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/hw/gralloc.default.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/hw/gralloc.default.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/hw/audio.r_submix.default.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/hw/audio.r_submix.default.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/hw/audio_policy.default.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/hw/audio_policy.default.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/hw/audio.usb.default.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/hw/audio.usb.default.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/hw/audio.primary.default.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/hw/audio.primary.default.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/hw/keystore.default.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/hw/keystore.default.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libGLESv1_CM.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libGLESv1_CM.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libsoundpool.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libsoundpool.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libcamera_client.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libcamera_client.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libbluetooth_jni.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libbluetooth_jni.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/soundfx/libaudiopreprocessing.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/soundfx/libaudiopreprocessing.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libsoundtrigger.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libsoundtrigger.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libstagefright_avc_common.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libstagefright_avc_common.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libvorbisidec.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libvorbisidec.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libGLES_trace.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libGLES_trace.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libsoundtriggerservice.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libsoundtriggerservice.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libspeexresampler.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libspeexresampler.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libwebrtc_audio_preprocessing.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libwebrtc_audio_preprocessing.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libEGL.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libEGL.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libion.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libion.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libaudioutils.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libaudioutils.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libcurl.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libcurl.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libnfc_ndef.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libnfc_ndef.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libstagefright_enc_common.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/lib/libstagefright_enc_common.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/bin/sdcard'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/bin/sdcard'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/bin/vold'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/bin/vold'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/bin/rild'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/bin/rild'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/bin/pppd'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/bin/pppd'

PRODUCT_COPY_FILES vendor/HTC/620G/etc/permissions/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml ignored.

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/etc/permissions/com.android.location.provider.xml'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/etc/permissions/com.android.location.provider.xml'

build/core/Makefile:46: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/system/xbin/tcpdump'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/system/xbin/tcpdump'

PRODUCT_COPY_FILES frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml ignored.

PRODUCT_COPY_FILES frameworks/native/data/etc/android.hardware.camera.xml:system/etc/permissions/android.hardware.camera.xml ignored.

PRODUCT_COPY_FILES device/HTC/620G/audio/audio_policy.conf:system/etc/audio_policy.conf ignored.

PRODUCT_COPY_FILES frameworks/av/media/libeffects/data/audio_effects.conf:system/etc/audio_effects.conf ignored.

PRODUCT_COPY_FILES device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.

PRODUCT_COPY_FILES device/generic/goldfish/camera/media_profiles.xml:system/etc/media_profiles.xml ignored.

PRODUCT_COPY_FILES device/generic/goldfish/camera/media_codecs.xml:system/etc/media_codecs.xml ignored.

PRODUCT_COPY_FILES hardware/libhardware_legacy/audio/audio_policy.conf:system/etc/audio_policy.conf ignored.

No private recovery resources for TARGET_DEVICE 620G

device/HTC/620G/bootimg.mk:32: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/ramdisk.img'

build/core/Makefile:497: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/ramdisk.img'

build/core/tasks/kernel.mk:160: ***************************************************************

build/core/tasks/kernel.mk:161: * Using prebuilt kernel binary instead of source *

build/core/tasks/kernel.mk:162: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED *

build/core/tasks/kernel.mk:163: * Please configure your device to download the kernel *

build/core/tasks/kernel.mk:164: * source repository to kernel/HTC/620G

build/core/tasks/kernel.mk:165: * See http://wiki.cyanogenmod.org/w/Doc:_integrated_kernel_building

build/core/tasks/kernel.mk:166: * for more information *

build/core/tasks/kernel.mk:167: ***************************************************************

build/core/tasks/kernel.mk:367: warning: overriding recipe for target '/home/maanush/cm/out/target/product/620G/kernel'

build/core/Makefile:46: warning: ignoring old recipe for target '/home/maanush/cm/out/target/product/620G/kernel'

/home/maanush/cm/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/maanush/cm/out/target/product/620G/obj/ETC/sepolicy_intermediates/policy.conf

libsepol.report_failure: neverallow on line 41 of external/sepolicy/isolated_app.te (or line 6043 of policy.conf) violated by allow isolated_app gpu_device:chr_file { ioctl read write getattr lock append open };

libsepol.check_assertions: 1 neverallow failures occurred

Error while expanding policy

external/sepolicy/Android.mk:85: recipe for target '/home/maanush/cm/out/target/product/620G/obj/ETC/sepolicy_intermediates/sepolicy' failed

make: *** [/home/maanush/cm/out/target/product/620G/obj/ETC/sepolicy_intermediates/sepolicy] Error 1

#### make failed to build some targets (02:23 (mm:ss)) ####