[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] poppy22:
I have been using device tree to compile twrp under omnirom source code for always prompting errors：

[ 5% 453/8795] target C++: libinit_ocm <= device/htc/ocm/init/init_ocm.cpp
FAILED: /home/ubuntu/omni/out/target/product/ocm/obj/STATIC_LIBRARIES/libinit_ocm_intermediates/init_ocm.o
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3859424/bin/clang++	-I system/core/init -I device/qcom/htc-common/init -I device/htc/ocm/init -I /home/ubuntu/omni/out/target/product/ocm/obj/STATIC_LIBRARIES/libinit_ocm_intermediates -I /home/ubuntu/omni/out/target/product/ocm/gen/STATIC_LIBRARIES/libinit_ocm_intermediates -I libnativehelper/include/nativehelper \$(cat /home/ubuntu/omni/out/target/product/ocm/obj/STATIC_LIBRARIES/libinit_ocm_intermediates/import_includes) -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I libnativehelper/include -I frameworks/native/include -I frameworks/native/opengl/include -isystem frameworks/av/include -isystem /home/ubuntu/omni/out/target/product/ocm/obj/include -isystem bionic/libc/arch-arm64/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm64 -isystem bionic/libc/kernel/android/uapi -c -fno-exceptions -Wno-multichar -fno-strict-aliasing -fstack-protector-strong -ffunction-sections -fdata-sections -funwind-tables -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -Werror=pointer-to-int-cast -Werror=int-to-pointer-cast -Werror=implicit-function-declaration -DNDEBUG -O2 -g -Wstrict-aliasing=2 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -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 -fdebug-prefix-map=\$PWD/= -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -nostdlibinc -mcpu=kryo -target aarch64-linux-android -Bprebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -fvisibility-inlines-hidden -std=gnu++14 -fno-rtti -Wall -DANDROID_TARGET=\\\"msm8998\\\" -fPIC -D_USING_LIBCXX -DANDROID_STRICT -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -MD -MF /home/ubuntu/omni/out/target/product/ocm/obj/STATIC_LIBRARIES/libinit_ocm_intermediates/init_ocm.d -o /home/ubuntu/omni/out/target/product/ocm/obj/STATIC_LIBRARIES/libinit_ocm_intermediates/init_ocm.o device/htc/ocm/init/init_ocm.cpp"
device/htc/ocm/init/init_ocm.cpp:70:5: error: use of undeclared identifier 'ERROR'
ERROR("Found bootmid %s setting build properties for %s device\n", bootmid, device);
^
1 error generated.
ninja: build stopped: subcommand failed.
18:08:06 ninja failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1