[Android] viscorp:
Here is the error while building Dirty Unicorns(n7x) for libra(Mi-4c):

There is the hastebin link of the log: "https://hastebin.com/oxukuzohaw.makefile"

root@hackbrain:~/sources/android/android_system/dirty/n# brunch
including vendor/du/vendorsetup.sh

·▄▄▄▄ ▄▄▄ ▄▄▄▄▄ ▄· ▄▌ ▄• ▄▌ ▐ ▄ ▄▄· ▄▄▄ ▐ ▄ .▄▄ ·
██ ██ ██ ▀▄ █·•██ ▐███▌ ███▌•█▌▐███ ▐█ ▌ ▀▄ █·•█▌▐█▐█ ▀.
▐█· ▐█▌▐█·▐▀▀▄ ▐█.▐█▌▐█ █▌▐█▌▐█▐▐▌▐█·██ ▄▄ ▄█▀▄ ▐▀▀▄ ▐█▐▐▌▄▀▀▀█▄
██. ██ ▐█▌▐█•█▌ ▐█▌· ▐█▀·. ▐█▄█▌██▐█▌▐█▌▐███▌▐█▌.▐▌▐█•█▌██▐█▌▐█▄▐█
▀▀▀▀▀• ▀▀▀.▀ ▀ ▀▀▀ ▀ • ▀▀▀ ▀▀ █▀▀▀·▀▀▀ ▀█▄▀.▀ ▀▀▀ █ ▀▀▀▀

Welcome to the device menu

Below are all the devices currently available to be compiled

1. full-eng
2. du_angler-userdebug
3. du_bullhead-userdebug
4. du_dragon-userdebug
5. du_flounder-userdebug
6. du_hammerhead-userdebug
7. du_shamu-userdebug
8. du_shieldtablet-userdebug
9. du_libra-userdebug

Go ahead and pick a number... 9
Trying dependencies-only mode on a non-existing device tree?

============================================
PLATFORM_VERSION_CODENAME=UNOFFICIAL
PLATFORM_VERSION=7.1.1
TARGET_PRODUCT=du_libra
TARGET_BUILD_VARIANT=userdebug
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.6.0-kali1-amd64-x86_64-with-Kali-kali-rolling-kali-rolling
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=N6F26U
OUT_DIR=/root/sources/android/android_system/dirty/n/out
============================================
============================================
DU_VERSION=DU_libra_7.1.1_20170324-0545.v11.2-UNOFFICIAL
TARGET_PRODUCT=du_libra
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_GCC_VERSION=4.9
TARGET_NDK_GCC_VERSION=4.9
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.6.0-kali1-amd64-x86_64-with-Kali-kali-rolling-kali-rolling
HOST_BUILD_TYPE=release
BUILD_ID=N6F26U
OUT_DIR=/root/sources/android/android_system/dirty/n/out
============================================
Using 'prebuilts/build-tools/linux-x86/bin/ninja' binary on 'linux-x86'
Running kati to generate build-du_libra.ninja...
$(shell date -u +%Y%m%d-%H%M) was changed, regenerating...
============================================
DU_VERSION=DU_libra_7.1.1_20170324-0546.v11.2-UNOFFICIAL
TARGET_PRODUCT=du_libra
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_GCC_VERSION=4.9
TARGET_NDK_GCC_VERSION=4.9
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.6.0-kali1-amd64-x86_64-with-Kali-kali-rolling-kali-rolling
HOST_BUILD_TYPE=release
BUILD_ID=N6F26U
OUT_DIR=/root/sources/android/android_system/dirty/n/out
============================================
build/core/binary.mk:1171: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1171: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1171: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
build/core/binary.mk:1171: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
./external/speex/Android.mk:56: TODOArm64: enable neon in libspeex
awk: line 1: syntax error at or near ,
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
find: ‘/root/sources/android/android_system/dirty/n/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: 没有那个文件或目录
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
ln: 无法创建符号链接'libEGL_adreno.so': 文件已存在
ln: 无法创建符号链接'libEGL_adreno.so': 文件已存在
No private recovery resources for TARGET_DEVICE libra
The usage of ccache is set to ''
build/core/Makefile:51: warning: overriding commands for target `/root/sources/android/android_system/dirty/n/out/target/product/libra/system/lib/libjni_latinime.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/root/sources/android/android_system/dirty/n/out/target/product/libra/system/lib/libjni_latinime.so'
build/core/Makefile:51: warning: overriding commands for target `/root/sources/android/android_system/dirty/n/out/target/product/libra/system/lib64/libjni_latinime.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/root/sources/android/android_system/dirty/n/out/target/product/libra/system/lib64/libjni_latinime.so'
build/core/Makefile:51: warning: overriding commands for target `/root/sources/android/android_system/dirty/n/out/target/product/libra/system/etc/mkshrc'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/root/sources/android/android_system/dirty/n/out/target/product/libra/system/etc/mkshrc'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/root/sources/android/android_system/dirty/n/out/target/product/libra/obj_arm/SHARED_LIBRARIES/libaudiopolicymanager_intermediates/export_includes', needed by '/root/sources/android/android_system/dirty/n/out/target/product/libra/obj_arm/SHARED_LIBRARIES/libaudiopolicyservice_intermediates/import_includes', missing and no known rule to make it
build/core/ninja.mk:166: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1

real	3m5.800s
user	0m46.364s
sys	0m11.780s