[Android Software Development] aaronwi:
EDIT: I tried to compile another twrp for a different device, and got the exact same output, with, of course, the new device name swapped for wherever mine was.

removed the kernel folder..tried running it on ubuntu, still get this output

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
TARGET_PRODUCT=aosp_arm
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.10.0-24-generic-x86_64-with-Ubuntu-17.04-zesty
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NHG47N
OUT_DIR=/root/twrp/out
============================================
Using 'prebuilts/ninja/linux-x86/ninja' binary on 'linux-x86'
Running kati to generate build-aosp_arm-clean.ninja...
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
TARGET_PRODUCT=aosp_arm
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.10.0-24-generic-x86_64-with-Ubuntu-17.04-zesty
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NHG47N
OUT_DIR=/root/twrp/out
============================================
Starting build with ninja
ninja: Entering directory `.'
[100% 1/1] Entire build directory removed.
including device/asus/Z01B_1/vendorsetup.sh

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
TARGET_PRODUCT=omni_Z01B_1
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a7
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.10.0-24-generic-x86_64-with-Ubuntu-17.04-zesty
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NHG47N
OUT_DIR=/root/twrp/out
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
TARGET_PRODUCT=omni_Z01B_1
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a7
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.10.0-24-generic-x86_64-with-Ubuntu-17.04-zesty
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NHG47N
OUT_DIR=/root/twrp/out
============================================
Using 'prebuilts/ninja/linux-x86/ninja' binary on 'linux-x86'
prebuilts/clang/host/linux-x86/clang-2690385/bin/clang++ -fno-exceptions -Wno-multichar -m64 -Wa,--noexecstack -fPIC -no-canonical-prefixes -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -O2 -g -fno-strict-aliasing -DNDEBUG -UDEBUG -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument --gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8 -fstack-protector-strong --gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8 --sysroot prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin -target x86_64-linux-gnu -Wsign-promo -Wno-inconsistent-missing-override --gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8 --sysroot prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot -isystem prebuilts/gcc
...blah blah mostly the same...
prebuilts/clang/host/linux-x86/clang-2690385/bin/clang++ -m64 -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--no-undefined-version --gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8 --sysroot prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/lib/gcc/x86_64-linux/4.8 -Lprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/lib/gcc/x86_64-linux/4.8 -Lprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/lib64/ -target x86_64-linux-gnu -static -Wl,--whole-archive -lpthread -Wl,--no-whole-archive -ldl -std=c++11 -g -W -Wall -MMD -MP -O -DNOLOG -march=native -o /root/twrp/out/host/linux-x86/bin/ckati /root/twrp/out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/affinity.o /root/twrp/out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/command.o /root/twrp/out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/dep.o /root/twrp/out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/eval.o /root/twrp/out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/exec.o /root/twrp/out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/expr.o /root/twrp/out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/file.o /root/twrp/out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/file_cache.o /root/twrp/out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/fileutil.o /root/twrp/out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/find.o /root/twrp/out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/flags.o /root/twrp/out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/func.o /root/twrp/out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/io.o /root/twrp/out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/log.o /root/twrp/out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/main.o /root/twrp/out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/ninja.o /root/twrp/out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/parser.o /root/twrp/out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/regen.o /root/twrp/out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/rule.o /root/twrp/out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/stats.o /root/twrp/out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/stmt.o /root/twrp/out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/string_piece.o /root/twrp/out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/stringprintf.o /root/twrp/out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/strutil.o /root/twrp/out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/symtab.o /root/twrp/out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/thread_pool.o /root/twrp/out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/timeutil.o /root/twrp/out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/var.o /root/twrp/out/host/linux-x86/obj/EXECUTABLES/ckati_intermediates/version.o -lrt -lpthread
Running kati to generate build-omni_Z01B_1.ninja...
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
TARGET_PRODUCT=omni_Z01B_1
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a7
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.10.0-24-generic-x86_64-with-Ubuntu-17.04-zesty
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NHG47N
OUT_DIR=/root/twrp/out
============================================
Checking build tools versions...
including ./bionic/Android.mk ...
...lots of includes..
including ./vendor/omni/Android.mk ...
No private recovery resources for TARGET_DEVICE Z01B_1
build/core/tasks/kernel.mk:109: ***************************************************************
build/core/tasks/kernel.mk:110: * Using prebuilt kernel binary instead of source *
build/core/tasks/kernel.mk:111: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED *
build/core/tasks/kernel.mk:112: * Please configure your device to download the kernel *
build/core/tasks/kernel.mk:113: * source repository to kernel/asus/Z01B_1
build/core/tasks/kernel.mk:114: * See http://xdaforums.com/wiki/ROM/Integrated_Kernel_Build
build/core/tasks/kernel.mk:115: * for more information *
build/core/tasks/kernel.mk:116: ***************************************************************
build/core/ninja.mk:172: recipe for target '/root/twrp/out/build-omni_Z01B_1.ninja' failed