[OnePlus X Q&A, Help & Troubleshooting] psychem:
[MENTION=6369510]Marado[/MENTION] ran a new build and got some issues after using patcher

make: Leaving directory '/root/android/lineage/kernel/oneplus/onyx'
[ 72% 52425/72506] target thumb C++: keystore.ms...74 <= hardware/qcom/keymaster/keymaster_qcom.cpp
FAILED: /root/android/lineage/out/target/product/onyx/obj/SHARED_LIBRARIES/keystore.msm8974_intermediates/keymaster_qcom.o
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-4691093/bin/clang++	-I device/oneplus/onyx/include -I /root/android/lineage/out/target/product/onyx/obj/include/common/inc -I hardware/qcom/keymaster -I /root/android/lineage/out/target/product/onyx/obj/SHARED_LIBRARIES/keystore.msm8974_intermediates -I /root/android/lineage/out/target/product/onyx/gen/SHARED_LIBRARIES/keystore.msm8974_intermediates -I libnativehelper/include_jni \$(cat /root/android/lineage/out/target/product/onyx/obj/SHARED_LIBRARIES/keystore.msm8974_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 -I frameworks/av/include -isystem /root/android/lineage/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 -fvisibility=hidden -Wall -Wno-error -fPIC -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/android/lineage/out/target/product/onyx/obj/SHARED_LIBRARIES/keystore.msm8974_intermediates/keymaster_qcom.d -o /root/android/lineage/out/target/product/onyx/obj/SHARED_LIBRARIES/keystore.msm8974_intermediates/keymaster_qcom.o hardware/qcom/keymaster/keymaster_qcom.cpp"
hardware/qcom/keymaster/keymaster_qcom.cpp:102:66: warning: unused parameter 'dev' [-Wunused-parameter]
static int qcom_km_get_keypair_public(const keymaster0_device_t* dev,
^
hardware/qcom/keymaster/keymaster_qcom.cpp:227:19: error: no member named 'heap_id_mask' in 'ion_allocation_data'; did you mean 'heap_mask'?
ion_alloc_data.ION_HEAP_MASK = ION_HEAP(ION_QSECOM_HEAP_ID);
^~~~~~~~~~~~~
heap_mask
hardware/qcom/keymaster/keymaster_qcom.h:29:23: note: expanded from macro 'ION_HEAP_MASK'
#define ION_HEAP_MASK heap_id_mask
^
/root/android/lineage/out/soong/.intermediates/vendor/lineage/build/soong/generated_kernel_includes/gen/usr/include/linux/ion.h:95:15: note: 'heap_mask' declared here
unsigned int heap_mask;
^
hardware/qcom/keymaster/keymaster_qcom.cpp:760:26: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
"/vendor/firmware/keymaster", "keymaster", 4096*2);
^
hardware/qcom/keymaster/keymaster_qcom.cpp:760:56: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
"/vendor/firmware/keymaster", "keymaster", 4096*2);
^
3 warnings and 1 error generated.
[ 72% 52430/72506] //system/security/keystore:keystore clang++ key_store_service.cpp
ninja: build stopped: subcommand failed.
12:47:55 ninja failed with: exit status 1