[Android Software Development] DiamondJohn:
I made the change to my board config

$( mkdir -p /home/ubuntu/android/twrp_lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libexpat_intermediates )
#$( mkdir -p /home/ubuntu/android/twrp_lineage/out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/import_includes )
$( ln -s /home/ubuntu/android/twrp_lineage/out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/import_includes /home/ubuntu/android/twrp_lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libexpat_intermediates/export_includes )

and it still fails :crying:

Checking build tools versions...
PRODUCT_COPY_FILES device/motorola/msm8960_jbbl-common/config/media_codecs_aosp.xml:system/etc/media_codecs.xml ignored.
No private recovery resources for TARGET_DEVICE xt897
build/core/base_rules.mk:320: warning: overriding commands for target `/home/ubuntu/android/twrp_lineage/out/target/product/xt897/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/home/ubuntu/android/twrp_lineage/out/target/product/xt897/root/res/images/charger/battery_fail.png'
build/core/Makefile:34: warning: overriding commands for target `/home/ubuntu/android/twrp_lineage/out/target/product/xt897/system/bin/aplogd'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/home/ubuntu/android/twrp_lineage/out/target/product/xt897/system/bin/aplogd'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/home/ubuntu/android/twrp_lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libexpat_intermediates/export_includes', needed by '/home/ubuntu/android/twrp_lineage/out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/import_includes', missing and no known rule to make it
make: *** [ninja_wrapper] Error 1
make: Leaving directory `/home/ubuntu/android/twrp_lineage'

[0;31m#### make failed to build some targets (17 seconds) ####[00m

I looked after it fails, and the destination directory is not there.So it would seem to me it fails before it reaches this make file (ie the directory is not created). Also the source is also not there, so it would seem to me it fails in/before building the source.[hidden]

Checking build tools versions...
PRODUCT_COPY_FILES device/motorola/msm8960_jbbl-common/config/media_codecs_aosp.xml:system/etc/media_codecs.xml ignored.
No private recovery resources for TARGET_DEVICE xt897
build/core/base_rules.mk:320: warning: overriding commands for target `/home/ubuntu/android/twrp_lineage/out/target/product/xt897/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/home/ubuntu/android/twrp_lineage/out/target/product/xt897/root/res/images/charger/battery_fail.png'
build/core/Makefile:34: warning: overriding commands for target `/home/ubuntu/android/twrp_lineage/out/target/product/xt897/system/bin/aplogd'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/home/ubuntu/android/twrp_lineage/out/target/product/xt897/system/bin/aplogd'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/home/ubuntu/android/twrp_lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libexpat_intermediates/export_includes', needed by '/home/ubuntu/android/twrp_lineage/out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/import_includes', missing and no known rule to make it
make: *** [ninja_wrapper] Error 1
make: Leaving directory `/home/ubuntu/android/twrp_lineage'