[Android Software Development] ianmacd:
Error compiling TWRP for the first time.

My desire is to compile TWRP for the new Samsung Tab S4 (gts4lwifi), but before embarking on a build for a new device, I thought it would be prudent and educational to first cut my teeth on compiling for an already supported device. I also own a Samsung S9+ (star2lte), so after downloading 21 Gb of data via the large manifest to set up my build environment, I also downloaded the S9+'s board config and then had a shot at compilation.

The build progressed for a while before the following error occurred:

including ./system/sepolicy/Android.mk ...
including ./vendor/omni/Android.mk ...
No private recovery resources for TARGET_DEVICE star2lte
build/core/base_rules.mk:407: warning: overriding commands for target `/recovery_unit_test'
build/core/base_rules.mk:407: warning: ignoring old commands for target `/recovery_unit_test'
build/core/base_rules.mk:407: warning: overriding commands for target `/recovery_component_test'
build/core/base_rules.mk:407: warning: ignoring old commands for target `/recovery_component_test'
build/core/base_rules.mk:407: warning: overriding commands for target `/minadbd_test'
build/core/base_rules.mk:407: warning: ignoring old commands for target `/minadbd_test'
build/core/base_rules.mk:319: warning: overriding commands for target `/home/ianmacd/src/twrp/out/target/product/star2lte/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:319: warning: ignoring old commands for target `/home/ianmacd/src/twrp/out/target/product/star2lte/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:319: warning: overriding commands for target `/home/ianmacd/src/twrp/out/target/product/star2lte/root/res/images/charger/battery_scale.png'
build/core/base_rules.mk:319: warning: ignoring old commands for target `/home/ianmacd/src/twrp/out/target/product/star2lte/root/res/images/charger/battery_scale.png'
build/core/Makefile:1112: warning: overriding commands for target `/home/ianmacd/src/twrp/out/target/product/star2lte/ramdisk-recovery.cpio'
build/core/Makefile:1068: warning: ignoring old commands for target `/home/ianmacd/src/twrp/out/target/product/star2lte/ramdisk-recovery.cpio'
build/core/Makefile:1118: warning: overriding commands for target `/home/ianmacd/src/twrp/out/target/product/star2lte/ramdisk-recovery.img'
build/core/Makefile:1074: warning: ignoring old commands for target `/home/ianmacd/src/twrp/out/target/product/star2lte/ramdisk-recovery.img'
device/samsung/star2lte/mkbootimg.mk:64: warning: overriding commands for target `/home/ianmacd/src/twrp/out/target/product/star2lte/boot.img'
build/core/Makefile:594: warning: ignoring old commands for target `/home/ianmacd/src/twrp/out/target/product/star2lte/boot.img'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/home/ianmacd/src/twrp/out/host/linux-x86/obj/STATIC_LIBRARIES/libfdt_intermediates/export_includes', needed by '/home/ianmacd/src/twrp/out/host/linux-x86/obj/EXECUTABLES/dtbhtoolExynos_intermediates/import_includes', missing and no known rule to make it
make: *** [build/core/ninja.mk:158: ninja_wrapper] Error 1

#### make failed to build some targets (14 seconds) ####

I googled the error and found a few pastebin snippets from people with the same error, but unfortunately no postings linking to these snippets, so no explanation of why the error occurs or how to fix it.

The error says /home/ianmacd/src/twrp/out/host/linux-x86/obj/STATIC_LIBRARIES/libfdt_intermediates/export_includes' is needed by /home/ianmacd/src/twrp/out/host/linux-x86/obj/EXECUTABLES/dtbhtoolExynos_intermediates/import_includes, but I don't even have the latter, never mind the former.

Can anyone point me in the right direction?

Thanks.