[Android] Akash durai:
Here is what I got before allowing missing dependencies

PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=aim_z2_plus
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=kryo
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=kryo
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.13.0-1002-gcp-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OPM1.171019.011
OUT_DIR=/home/akashdurai700/aim/out
============================================
ninja: no work to do.
[1/1] /home/akashdurai700/aim/out/soong/.bootstrap/bin/soong_build /home/akashdurai700/aim/out/soong/build.ninja
Environment variable ALLOW_MISSING_DEPENDENCIES was modified (true => ), regenerating...
[484/986] including ./hardware/qcom/wlan-caf/Android.mk ...
build/core/binary.mk:40: warning: libwifi-hal-qcom uses kernel headers, but does not depend on them!
build/core/binary.mk:40: warning: libwifi-hal-qcom uses kernel headers, but does not depend on them!
[663/986] including ./system/sepolicy/Android.mk ...
./system/sepolicy/Android.mk:99: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
[986/986] including ./vendor/zuk/z2_plus/Android.mk ...
device/zuk/msm8996-common/doze/Android.mk: error: ZukDoze (APPS android-arm64) missing org.lineageos.platform.internal (JAVA_LIBRARIES android-arm64)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
hardware/qcom/audio-caf/msm8996/mm-audio/aenc-aac/qdsp6/Android.mk: error: mm-aenc-omxaac-test (EXECUTABLES android-arm64) missing libaudioalsa (SHARED_LIBRARIES android-arm64)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
hardware/qcom/audio-caf/msm8996/mm-audio/aenc-amrnb/qdsp6/Android.mk: error: mm-aenc-omxamr-test (EXECUTABLES android-arm64) missing libaudioalsa (SHARED_LIBRARIES android-arm64)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
hardware/qcom/audio-caf/msm8996/mm-audio/aenc-evrc/qdsp6/Android.mk: error: mm-aenc-omxevrc-test (EXECUTABLES android-arm64) missing libaudioalsa (SHARED_LIBRARIES android-arm64)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
hardware/qcom/audio-caf/msm8996/mm-audio/aenc-qcelp13/qdsp6/Android.mk: error: mm-aenc-omxqcelp13-test (EXECUTABLES android-arm64) missing libaudioalsa (SHARED_LIBRARIES android-arm64)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
hardware/qcom/bootctrl/Android.mk: error: bootctrl.msm8996 (SHARED_LIBRARIES android-arm64) missing libgptutils (SHARED_LIBRARIES android-arm64)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
hardware/qcom/bootctrl/Android.mk: error: bootctrl.msm8996 (SHARED_LIBRARIES android-arm) missing libgptutils (SHARED_LIBRARIES android-arm)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
hardware/qcom/display-caf/msm8996/libcopybit/../common.mk: error: copybit.msm8996 (SHARED_LIBRARIES android-arm64) missing libmemalloc (SHARED_LIBRARIES android-arm64)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
hardware/qcom/display-caf/msm8996/libcopybit/../common.mk: error: copybit.msm8996 (SHARED_LIBRARIES android-arm) missing libmemalloc (SHARED_LIBRARIES android-arm)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
hardware/qcom/display-caf/msm8996/sdm/libs/hwc2/../../../common.mk: error: hwcomposer.msm8996 (SHARED_LIBRARIES android-arm64) missing libmemalloc (SHARED_LIBRARIES android-arm64)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
hardware/qcom/display-caf/msm8996/sdm/libs/hwc2/../../../common.mk: error: hwcomposer.msm8996 (SHARED_LIBRARIES android-arm) missing libmemalloc (SHARED_LIBRARIES android-arm)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
build/core/main.mk:730: error: exiting from previous errors.
09:32:45 ckati failed with: exit status 1

#### failed to build some targets (01:07 (mm:ss)) ####

No Jack server running. Try 'jack-admin start-server'

real 1m6.957s
user 1m29.497s
sys 0m10.750s

And this is what I got after allowing missing dependencies

PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=aim_z2_plus
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=kryo
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=kryo
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.13.0-1002-gcp-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OPM1.171019.011
OUT_DIR=/home/akashdurai700/aim/out
============================================
ninja: no work to do.
[1/1] /home/akashdurai700/aim/out/soong/.bootstrap/bin/soong_build /home/akashdurai700/aim/out/soong/build.ninja
Environment variable BUILD_NUMBER was modified (dcfce2998f => 27d7c58eb8), regenerating...
[484/986] including ./hardware/qcom/wlan-caf/Android.mk ...
build/core/binary.mk:40: warning: libwifi-hal-qcom uses kernel headers, but does not depend on them!
build/core/binary.mk:40: warning: libwifi-hal-qcom uses kernel headers, but does not depend on them!
[663/986] including ./system/sepolicy/Android.mk ...
./system/sepolicy/Android.mk:99: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
[986/986] including ./vendor/zuk/z2_plus/Android.mk ...
PRODUCT_COPY_FILES vendor/aim/prebuilt/etc/sysconfig/dialer_experience.xml:system/etc/sysconfig/dialer_experience.xml ignored.
build/core/Makefile:66: warning: Duplicate header copy: /home/akashdurai700/aim/out/target/product/z2_plus/obj/include/cld80211-lib/cld80211_lib.h
build/core/Makefile:66: warning: Defined in: hardware/qcom/wlan-caf/cld80211-lib/Android.mk hardware/qcom/wlan-caf/cld80211-lib/Android.mk
[ 50% 1/2] glob art
ninja: error: '/home/akashdurai700/aim/out/target/product/z2_plus/obj_arm/SHARED_LIBRARIES/libmemalloc_intermediates/export_includes', needed by '/home/akashdurai700/aim/out/target/product/z2_plus/obj_arm/SHARED_LIBRARIES/copybit.msm8996_intermediates/import_includes', missing and no known rule to make it
09:37:43 ninja failed with: exit status 1

#### failed to build some targets (01:36 (mm:ss)) ####

No Jack server running. Try 'jack-admin start-server'

real 1m36.351s
user 1m54.147s
sys 0m12.445s