[Android General] beast97:
hardware/qcom/display/msm8974/libqdutils/mdp_version.cpp:34:10: fatal error: 'linux/msm_mdp.h' file not found

#include <linux/msm_mdp.h>

^~~~~~~~~~~~~~~~~

1 error generated.

[ 0% 20/66588] target thumb C++: libm...isplay/msm8974/libgralloc/ionalloc.cpp

FAILED: /home/vj/lineage/out/target/product/hammerhead/obj/SHARED_LIBRARIES/libmemalloc_intermediates/ionalloc.o

/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-4691093/bin/clang++	-I hardware/qcom/display/msm8974/libgralloc -I hardware/qcom/display/msm8974/liboverlay -I hardware/qcom/display/msm8974/libcopybit -I hardware/qcom/display/msm8974/libqdutils -I hardware/qcom/display/msm8974/libhwcomposer -I hardware/qcom/display/msm8974/libexternal -I hardware/qcom/display/msm8974/libqservice -I hardware/qcom/display/msm8974/libgralloc -I /home/vj/lineage/out/target/product/hammerhead/obj/SHARED_LIBRARIES/libmemalloc_intermediates -I /home/vj/lineage/out/target/product/hammerhead/gen/SHARED_LIBRARIES/libmemalloc_intermediates -I libnativehelper/include_jni \$(cat /home/vj/lineage/out/target/product/hammerhead/obj/SHARED_LIBRARIES/libmemalloc_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 /home/vj/lineage/out/target/product/hammerhead/obj/include -isystem device/lge/hammerhead/kernel-headers -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 -DDEBUG_CALC_FPS -Wno-missing-field-initializers -Werror -Wno-unused-parameter -D__ARM_HAVE_NEON -DVENUS_COLOR_FORMAT -DMDSS_TARGET -DFORCE_HWC_FOR_VIRTUAL_DISPLAYS -DLOG_TAG=\"qdmemalloc\" -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 /home/vj/lineage/out/target/product/hammerhead/obj/SHARED_LIBRARIES/libmemalloc_intermediates/ionalloc.d -o /home/vj/lineage/out/target/product/hammerhead/obj/SHARED_LIBRARIES/libmemalloc_intermediates/ionalloc.o hardware/qcom/display/msm8974/libgralloc/ionalloc.cpp"

In file included from hardware/qcom/display/msm8974/libgralloc/ionalloc.cpp:39:

hardware/qcom/display/msm8974/libgralloc/ionalloc.h:33:10: fatal error: 'linux/msm_ion.h' file not found

#include <linux/msm_ion.h>

^~~~~~~~~~~~~~~~~

1 error generated.

[ 0% 24/66588] target thumb C++: libm...sm8974/libgralloc/alloc_controller.cpp

FAILED: /home/vj/lineage/out/target/product/hammerhead/obj/SHARED_LIBRARIES/libmemalloc_intermediates/alloc_controller.o

/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-4691093/bin/clang++	-I hardware/qcom/display/msm8974/libgralloc -I hardware/qcom/display/msm8974/liboverlay -I hardware/qcom/display/msm8974/libcopybit -I hardware/qcom/display/msm8974/libqdutils -I hardware/qcom/display/msm8974/libhwcomposer -I hardware/qcom/display/msm8974/libexternal -I hardware/qcom/display/msm8974/libqservice -I hardware/qcom/display/msm8974/libgralloc -I /home/vj/lineage/out/target/product/hammerhead/obj/SHARED_LIBRARIES/libmemalloc_intermediates -I /home/vj/lineage/out/target/product/hammerhead/gen/SHARED_LIBRARIES/libmemalloc_intermediates -I libnativehelper/include_jni \$(cat /home/vj/lineage/out/target/product/hammerhead/obj/SHARED_LIBRARIES/libmemalloc_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 /home/vj/lineage/out/target/product/hammerhead/obj/include -isystem device/lge/hammerhead/kernel-headers -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 -DDEBUG_CALC_FPS -Wno-missing-field-initializers -Werror -Wno-unused-parameter -D__ARM_HAVE_NEON -DVENUS_COLOR_FORMAT -DMDSS_TARGET -DFORCE_HWC_FOR_VIRTUAL_DISPLAYS -DLOG_TAG=\"qdmemalloc\" -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 /home/vj/lineage/out/target/product/hammerhead/obj/SHARED_LIBRARIES/libmemalloc_intermediates/alloc_controller.d -o /home/vj/lineage/out/target/product/hammerhead/obj/SHARED_LIBRARIES/libmemalloc_intermediates/alloc_controller.o hardware/qcom/display/msm8974/libgralloc/alloc_controller.cpp"

In file included from hardware/qcom/display/msm8974/libgralloc/alloc_controller.cpp:36:

hardware/qcom/display/msm8974/libgralloc/ionalloc.h:33:10: fatal error: 'linux/msm_ion.h' file not found

#include <linux/msm_ion.h>

^~~~~~~~~~~~~~~~~

1 error generated.

[ 0% 26/66588] Building Kernel Config

make: Entering directory '/home/vj/lineage/kernel/lge/hammerhead'

HOSTCC scripts/basic/fixdep

GEN /home/vj/lineage/out/target/product/hammerhead/obj/KERNEL_OBJ/Makefile

#

# configuration written to .config

#

make: Leaving directory '/home/vj/lineage/kernel/lge/hammerhead'

make: Entering directory '/home/vj/lineage/kernel/lge/hammerhead'

GEN /home/vj/lineage/out/target/product/hammerhead/obj/KERNEL_OBJ/Makefile

scripts/kconfig/conf --savedefconfig=defconfig Kconfig

make: Leaving directory '/home/vj/lineage/kernel/lge/hammerhead'

ninja: build stopped: subcommand failed.

10:37:02 ninja failed with: exit status 1

#### failed to build some targets (02:50 (mm:ss)) ####

i search through the internet but i didn't find solution help me to figure it out @OP