[Android General] psychem:
This worked but there is another error

ninja: no work to do.
ninja: no work to do.
/root/losTWRP/out/target/product/onyx/clean_steps.mk was modified, regenerating...
$(file </root/losTWRP/out/.module_paths/Android.mk.list) was changed, regenerating...
[4/153] including bootable/recovery/Android.mk ...
/bin/bash: line 0: test: -ge: unary operator expected
/bin/bash: line 0: test: -ge: unary operator expected
[133/153] including system/core/Android.mk ...
sed: can't read development/sdk/plat_tools_source.prop_template: No such file or directory
sed: can't read development/sdk/plat_tools_source.prop_template: No such file or directory
[143/153] including system/sepolicy/Android.mk ...
system/sepolicy/Android.mk:79: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
[153/153] including vendor/oneplus/onyx/Android.mk ...
build/make/core/base_rules.mk:412: warning: overriding commands for target `/root/losTWRP/out/target/product/onyx/recovery/root/etc/mke2fs.conf'
build/make/core/base_rules.mk:412: warning: ignoring old commands for target `/root/losTWRP/out/target/product/onyx/recovery/root/etc/mke2fs.conf'
build/make/core/base_rules.mk:412: warning: overriding commands for target `/root/losTWRP/out/target/product/onyx/root/res/images/charger/battery_fail.png'
build/make/core/base_rules.mk:412: warning: ignoring old commands for target `/root/losTWRP/out/target/product/onyx/root/res/images/charger/battery_fail.png'
build/make/core/base_rules.mk:412: warning: overriding commands for target `/root/losTWRP/out/target/product/onyx/root/res/images/charger/battery_scale.png'
build/make/core/base_rules.mk:412: warning: ignoring old commands for target `/root/losTWRP/out/target/product/onyx/root/res/images/charger/battery_scale.png'
build/make/core/Makefile:28: warning: overriding commands for target `/root/losTWRP/out/target/product/onyx/system/etc/mkshrc'
build/make/core/base_rules.mk:412: warning: ignoring old commands for target `/root/losTWRP/out/target/product/onyx/system/etc/mkshrc'
[ 93% 14/15] glob external/libavc/decoder
[ 0% 7/8730] target thumb C++: recovery <= bootable/recovery/twinstall.cpp
FAILED: /root/losTWRP/out/target/product/onyx/obj/EXECUTABLES/recovery_intermediates/twinstall.o
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-4691093/bin/clang++	-I system/vold -I system/extras -I system/core/adb -I system/core/libsparse -I external/zlib -I bootable/recovery/bootloader_message_twrp/include -I bionic -I external/boringssl/include -I external/libcxx/include -I bootable/recovery/otautil/include -I external/libselinux/include -I system/extras/ext4_utils -I external/boringssl/src/include -I bootable/recovery -I /root/losTWRP/out/target/product/onyx/obj/EXECUTABLES/recovery_intermediates -I /root/losTWRP/out/target/product/onyx/gen/EXECUTABLES/recovery_intermediates -I libnativehelper/include_jni \$(cat /root/losTWRP/out/target/product/onyx/obj/EXECUTABLES/recovery_intermediates/import_includes) -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I libnativehelper/include -I frameworks/native/include -I frameworks/native/opengl/include -I frameworks/av/include -isystem /root/losTWRP/out/target/product/onyx/obj/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -c -fomit-frame-pointer -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -g -fno-strict-aliasing -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -Wno-zero-as-null-pointer-constant -fdebug-prefix-map=\$PWD/= -ffunction-sections -fdata-sections -fno-short-enums -funwind-tables -fstack-protector-strong -Wa,--noexecstack -D_FORTIFY_SOURCE=2 -Wstrict-aliasing=2 -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -Werror=format-security -nostdlibinc -msoft-float -march=armv7-a -mfloat-abi=softfp -mfpu=neon -mcpu=krait -mfpu=neon-vfpv4 -D__ARM_FEATURE_LPAE=1 -target arm-linux-androideabi -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative -Wno-gnu-include-next -fvisibility-inlines-hidden -std=gnu++14 -mthumb -Os -fno-rtti -Wall -Werror -DTW_DEVICE_VERSION='\"-YumeMichi\"' -DRECOVERY_API_VERSION=3 -Wno-unused-parameter -DTW_GIT_REVISION='\"c757a664\"' -DTW_HAS_MTP -DRECOVERY_SDCARD_ON_DATA -DTW_NO_USB_STORAGE -DTW_INCLUDE_CRYPTO -DTW_INCLUDE_FBE -DTW_INCLUDE_FBE_METADATA_DECRYPT -DQCOM_RTC_FIX -DHAVE_CAPABILITIES -DTW_USE_NEW_MINADBD -DTW_DEFAULT_LANGUAGE=en -DTWRES=\\\"/twres/\\\" -DTWHTCD_PATH=\\\"/twres/htcd/\\\" -fPIE -D_USING_LIBCXX -DANDROID_STRICT -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -Wno-tautological-constant-compare -Wno-null-pointer-arithmetic -Wno-enum-compare -Wno-enum-compare-switch -MD -MF /root/losTWRP/out/target/product/onyx/obj/EXECUTABLES/recovery_intermediates/twinstall.d -o /root/losTWRP/out/target/product/onyx/obj/EXECUTABLES/recovery_intermediates/twinstall.o bootable/recovery/twinstall.cpp"
bootable/recovery/twinstall.cpp:196:67: error: format specifies type 'size_t' (aka 'unsigned int') but the argument has type 'long long' [-Werror,-Wformat]
LOGINFO("has_legacy_properties: mmap (size=%zu) failed: %s!\n", finfo.st_size, strerror(errno));
~~~ ^~~~~~~~~~~~~
%lld
bootable/recovery/twcommon.h:29:43: note: expanded from macro 'LOGINFO'
#define LOGINFO(...) fprintf(stdout, "I:" __VA_ARGS__)
^~~~~~~~~~~
1 error generated.
[ 0% 12/8730] target thumb C++: recovery <= bootable/recovery/openrecoveryscript.cpp
ninja: build stopped: subcommand failed.
14:07:55 ninja failed with: exit status 1

#### failed to build some targets (23 seconds) ####