[Moto E4 Plus Questions & Answers] FlagersXDA:
Soooo, this is what happens when I try to build Lineage 15.0. It fails to build the kernel, can someone please help. :D

flagers@earth:~/android/lineage15$ mka

make: Entering directory '/home/flagers/android/lineage15'

============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=8.0.0

TARGET_PRODUCT=lineage_owens

TARGET_BUILD_VARIANT=userdebug

TARGET_BUILD_TYPE=release

TARGET_ARCH=arm

TARGET_ARCH_VARIANT=armv7-a-neon

TARGET_CPU_VARIANT=cortex-a53

HOST_ARCH=x86_64

HOST_2ND_ARCH=x86

HOST_OS=linux

HOST_OS_EXTRA=Linux-4.13.0-36-generic-x86_64-with-Ubuntu-17.10-artful

HOST_CROSS_OS=windows

HOST_CROSS_ARCH=x86

HOST_CROSS_2ND_ARCH=x86_64

HOST_BUILD_TYPE=release

BUILD_ID=OPR3.170623.013

OUT_DIR=/home/flagers/android/lineage15/out

============================================

ninja: no work to do.

ninja: no work to do.

Environment variable BUILD_NUMBER was modified (b391b210c6 => eb6491827b), regenerating...

[9/1046] including ./cts/Android.mk ...

cts/apps/CtsVerifier/Android.mk:72: warning: FindEmulator: find: `cts/apps/CtsVerifier/src/com/android/cts/verifier/backup': No such file or directory

build/core/java_common.mk:88: warning: FindEmulator: cd: cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/res: No such file or directory

build/core/java_common.mk:88: warning: FindEmulator: cd: cts/hostsidetests/backup/assets: No such file or directory

cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider/Android.mk:23: warning: FindEmulator: find: `cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider/src': No such file or directory

cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider1/Android.mk:23: warning: FindEmulator: find: `cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider1/src': No such file or directory

cts/tests/tests/contactsproviderwipe/Android.mk:33: warning: FindEmulator: find: `cts/tests/tests/contactsproviderwipe/common/src': No such file or directory

cts/tests/tests/telecom3/Android.mk:37: warning: FindEmulator: find: `cts/tests/tests/telecom/src/android/telecom/cts/MockDialerActivity.java': No such file or directory

[338/1046] including ./external/toybox/Android.mk ...

awk: line 1: syntax error at or near ,

[370/1046] including ./frameworks/av/media/libaaudio/Android.mk ...

frameworks/av/media/libaaudio/examples/input_monitor/static/Android.mk: warning: input_monitor: unusual tags examples

frameworks/av/media/libaaudio/examples/write_sine/static/Android.mk: warning: write_sine: unusual tags examples

[404/1046] including ./frameworks/base/Android.mk ...

./frameworks/base/Android.mk:866: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory

./frameworks/base/Android.mk:875: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory

./frameworks/base/Android.mk:880: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory

./frameworks/base/Android.mk:885: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory

[442/1046] including ./frameworks/opt/hardware/Android.mk ...

./frameworks/opt/hardware/Android.mk:21: warning: FindEmulator: find: `hardware/cyanogen/cmhw': No such file or directory

[576/1046] including ./hardware/qcom/wlan-caf/Android.mk ...

build/core/binary.mk:39: warning: libwifi-hal-qcom uses kernel headers, but does not depend on them!

build/core/binary.mk:39: warning: libwifi-hal-qcom uses kernel headers, but does not depend on them!

[581/1046] including ./lineage-sdk/Android.mk ...

./lineage-sdk/Android.mk:152: warning: FindEmulator: find: `lineage-sdk/dummy': No such file or directory

build/core/droiddoc.mk:132: warning: FindEmulator: find: `build/tools/droiddoc/templates-sdk': No such file or directory

[752/1046] including ./system/sepolicy/Android.mk ...

./system/sepolicy/Android.mk:95: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version

[1046/1046] including ./vendor/qcom/opensource/dataservices/Android.mk ...

build/core/Makefile:54: warning: Duplicate header copy: /home/flagers/android/lineage15/out/target/product/owens/obj/include/cld80211-lib/cld80211_lib.h

build/core/Makefile:54: warning: Defined in: hardware/qcom/wlan-caf/cld80211-lib/Android.mk hardware/qcom/wlan-caf/cld80211-lib/Android.mk

No private recovery resources for TARGET_DEVICE owens

platform_testing/build/tasks/tests/instrumentation_metric_test_list.mk: warning: continuous_instrumentation_metric_tests: Unknown installed file for module perf-setup.sh

platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module RecyclerViewTests

platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module SettingsFunctionalTests

platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module LauncherFunctionalTests

platform_testing/build/tasks/tests/native_metric_test_list.mk: warning: continuous_native_metric_tests: Unknown installed file for module perf-setup.sh

test/vts/tools/build/tasks/vts_package.mk:216: warning: FindEmulator: cd: vendor/google_vts/testcases: No such file or directory

test/vts/tools/build/tasks/vts_package.mk:216: warning: FindEmulator: cd: vendor/google_vts/testcases: No such file or directory

test/vts/tools/build/tasks/vts_package.mk:216: warning: FindEmulator: cd: vendor/google_vts/testcases: No such file or directory

./test/vts/utils/python/archive/Android.mk:28: warning: overriding commands for target `default'

./test/vts/runners/host/tcp_server/Android.mk:19: warning: ignoring old commands for target `default'

./test/vts/utils/python/coverage/Android.mk:28: warning: overriding commands for target `default'

./test/vts/utils/python/archive/Android.mk:28: warning: ignoring old commands for target `default'

[ 0% 16/64099] target thumb C: libtar <= external/libtar/lib/handle.c

external/libtar/lib/handle.c:35:19: warning: unused parameter 'mode' [-Wunused-parameter]

int oflags, int mode, int options)

^

1 warning generated.

[ 0% 29/64099] target thumb C++: libi...motorola/qcom318-32/init/init_moto.cpp

FAILED: /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates/init_moto.o

/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-3859424/bin/clang++	-I device/motorola/qcom318-32/include -I system/core/init -I device/motorola/qcom318-32/init -I /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates -I /home/flagers/android/lineage15/out/target/product/owens/gen/STATIC_LIBRARIES/libinit_moto_intermediates -I libnativehelper/include/nativehelper \$(cat /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_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/flagers/android/lineage15/out/target/product/owens/obj/include -isystem bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm -isystem bionic/libc/kernel/android/uapi -c -fno-exceptions -Wno-multichar -ffunction-sections -fdata-sections -funwind-tables -fstack-protector-strong -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -DNDEBUG -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 -msoft-float -mfloat-abi=softfp -mfpu=neon -mcpu=cortex-a7 -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 -fvisibility-inlines-hidden -std=gnu++14 -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -fno-rtti -fPIC -D_USING_LIBCXX -DANDROID_STRICT -Wall -DANDROID_TARGET="msm8937" -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -MD -MF /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates/init_moto.d -o /home/flagers/android/lineage15/out/target/product/owens/obj/STATIC_LIBRARIES/libinit_moto_intermediates/init_moto.o device/motorola/qcom318-32/init/init_moto.cpp"

In file included from device/motorola/qcom318-32/init/init_moto.cpp:34:

system/core/init/log.h:20:10: fatal error: 'android-base/logging.h' file not found

#include <android-base/logging.h>

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

1 error generated.

[ 0% 34/64099] Building Kernel Config

make: Entering directory '/home/flagers/android/lineage15/kernel/motorola/msm8937'

make[1]: Entering directory '/home/flagers/android/lineage15/out/target/product/owens/obj/KERNEL_OBJ'

GEN ./Makefile

#

# configuration written to .config

#

make[1]: Leaving directory '/home/flagers/android/lineage15/out/target/product/owens/obj/KERNEL_OBJ'

make: Leaving directory '/home/flagers/android/lineage15/kernel/motorola/msm8937'

make: Entering directory '/home/flagers/android/lineage15/kernel/motorola/msm8937'

make[1]: Entering directory '/home/flagers/android/lineage15/out/target/product/owens/obj/KERNEL_OBJ'

GEN ./Makefile

scripts/kconfig/conf --savedefconfig=defconfig Kconfig

make[1]: Leaving directory '/home/flagers/android/lineage15/out/target/product/owens/obj/KERNEL_OBJ'

make: Leaving directory '/home/flagers/android/lineage15/kernel/motorola/msm8937'

ninja: build stopped: subcommand failed.

20:26:02 ninja failed with: exit status 1

build/core/main.mk:21: recipe for target 'run_soong_ui' failed

make: *** [run_soong_ui] Error 1

make: Leaving directory '/home/flagers/android/lineage15'

#### make failed to build some targets (08:34 (mm:ss)) ####