[Android Software Development] M.A.P:
When I'm trying to compile I'm getting these errors.

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:_i...ernel_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)) ####