[OnePlus X Q&A, Help & Troubleshooting] psychem:
[MENTION=7093179]YumeMichi[/MENTION] [MENTION=6369510]Marado[/MENTION]

getting an error during build. how do i fix this?

thinkmachine@mx:~/android/lineage164knew
$ brunch onyx
including vendor/lineage/vendorsetup.sh
Trying dependencies-only mode on a non-existing device tree?

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
LINEAGE_VERSION=16.0-20191215-UNOFFICIAL-Psychem-onyx
TARGET_PRODUCT=lineage_onyx
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.4.0-antix.1-amd64-smp-x86_64-Debian-GNU/Linux-10-(buster)
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PQ3A.190801.002
OUT_DIR=/home/thinkmachine/android/lineage164knew/out
PRODUCT_SOONG_NAMESPACES= hardware/qcom/audio-caf/msm8974 hardware/qcom/display-caf/msm8974 hardware/qcom/media-caf/msm8974
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
LINEAGE_VERSION=16.0-20191215-UNOFFICIAL-Psychem-onyx
TARGET_PRODUCT=lineage_onyx
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.4.0-antix.1-amd64-smp-x86_64-Debian-GNU/Linux-10-(buster)
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PQ3A.190801.002
OUT_DIR=/home/thinkmachine/android/lineage164knew/out
PRODUCT_SOONG_NAMESPACES= hardware/qcom/audio-caf/msm8974 hardware/qcom/display-caf/msm8974 hardware/qcom/media-caf/msm8974
============================================
[1/1] /home/thinkmachine/android/lineage164knew/out/soong/.minibo...lav/android/lineage164knew/out/soong/.bootstrap/build.ninja
[55/56] glob prebuilts/ndk/stl.bp
[80/80] /home/thinkmachine/android/lineage164knew/out/soong/.boot...d /home/thinkmachine/android/lineage164knew/out/soong/build.ninja
/home/thinkmachine/android/lineage164knew/out/build-lineage_onyx-cleanspec.ninja is missing, regenerating...
/home/thinkmachine/android/lineage164knew/out/build-lineage_onyx.ninja is missing, regenerating...
[623/1036] including system/sepolicy/Android.mk ...
system/sepolicy/Android.mk:88: warning: Be careful when using the SELINUX_IGNORE_NEVERALLOWS flag. It does not work in user builds and using it will not stop you from failing CTS.
[1036/1036] including vendor/qcom/opensource/dataservices/Android.mk ...
[ 99% 799/800] glob bionic/libc/arch-arm/syscalls/**/*.S
[ 0% 169/73638] host C: compile_ioshark <= system/extras/ioshark/compile_ioshark.c
FAILED: /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/compile_ioshark_intermediates/compile_ioshark.o
/bin/bash -c "PWD=/proc/self/cwd /usr/bin/ccache prebuilts/clang/host/linux-x86/clang-4691093/bin/clang	-I device/oneplus/onyx/include -I system/extras/ioshark -I /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/compile_ioshark_intermediates -I /home/thinkmachine/android/lineage164knew/out/host/linux-x86/gen/EXECUTABLES/compile_ioshark_intermediates -I libnativehelper/include_jni \$(cat /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/compile_ioshark_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 -c -Wa,--noexecstack -fPIC -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS --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 -fstack-protector-strong -m64 -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/= -target x86_64-linux-gnu -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin -std=gnu99 -g -O2 -Wall -Werror -D_GNU_SOURCE -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 /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/compile_ioshark_intermediates/compile_ioshark.d -o /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/compile_ioshark_intermediates/compile_ioshark.o system/extras/ioshark/compile_ioshark.c"
prebuilts/clang/host/linux-x86/clang-4691093/bin/clang.real: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
[ 0% 170/73638] host C: computestats <= system/extras/app-launcher/computestats.c
FAILED: /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/computestats_intermediates/computestats.o
/bin/bash -c "PWD=/proc/self/cwd /usr/bin/ccache prebuilts/clang/host/linux-x86/clang-4691093/bin/clang	-I device/oneplus/onyx/include -I system/extras/app-launcher -I /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/computestats_intermediates -I /home/thinkmachine/android/lineage164knew/out/host/linux-x86/gen/EXECUTABLES/computestats_intermediates -I libnativehelper/include_jni \$(cat /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/computestats_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 -c -Wa,--noexecstack -fPIC -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS --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 -fstack-protector-strong -m64 -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/= -target x86_64-linux-gnu -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin -std=gnu99 -Wall -Werror -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 /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/computestats_intermediates/computestats.d -o /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/computestats_intermediates/computestats.o system/extras/app-launcher/computestats.c"
prebuilts/clang/host/linux-x86/clang-4691093/bin/clang.real: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
[ 0% 171/73638] host C: compile_ioshark <= system/extras/ioshark/compile_ioshark_subr.c
FAILED: /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/compile_ioshark_intermediates/compile_ioshark_subr.o
/bin/bash -c "PWD=/proc/self/cwd /usr/bin/ccache prebuilts/clang/host/linux-x86/clang-4691093/bin/clang	-I device/oneplus/onyx/include -I system/extras/ioshark -I /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/compile_ioshark_intermediates -I /home/thinkmachine/android/lineage164knew/out/host/linux-x86/gen/EXECUTABLES/compile_ioshark_intermediates -I libnativehelper/include_jni \$(cat /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/compile_ioshark_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 -c -Wa,--noexecstack -fPIC -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS --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 -fstack-protector-strong -m64 -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/= -target x86_64-linux-gnu -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin -std=gnu99 -g -O2 -Wall -Werror -D_GNU_SOURCE -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 /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/compile_ioshark_intermediates/compile_ioshark_subr.d -o /home/thinkmachine/android/lineage164knew/out/host/linux-x86/obj/EXECUTABLES/compile_ioshark_intermediates/compile_ioshark_subr.o system/extras/ioshark/compile_ioshark_subr.c"
prebuilts/clang/host/linux-x86/clang-4691093/bin/clang.real: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory