[Huawei Nova/Nova Plus ROMs, Kernels, Recoveries, &] wangdaning:
Done some cleaning, this is what I get:

grimm@grimm ~/android/lineage $ source build/envsetup.sh
including device/generic/car/vendorsetup.sh
including device/generic/mini-emulator-arm64/vendorsetup.sh
including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh
including device/generic/mini-emulator-x86_64/vendorsetup.sh
including device/generic/mini-emulator-x86/vendorsetup.sh
including device/generic/uml/vendorsetup.sh
including device/huawei/hwcan/vendorsetup.sh
sh: 0: Can't open device/huawei/hwcan/patches/apply.sh
including vendor/lineage/vendorsetup.sh
including sdk/bash_completion/adb.bash
grimm@grimm ~/android/lineage $ croot
grimm@grimm ~/android/lineage $ brunch hwcan
including vendor/lineage/vendorsetup.sh
Trying dependencies-only mode on a non-existing device tree?

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
LINEAGE_VERSION=15.1-20180907-UNOFFICIAL-hwcan
TARGET_PRODUCT=lineage_hwcan
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_PLATFORM_VERSION=OPM1
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.13.0-32-generic-x86_64-with-LinuxMint-18.3-sylvia
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OPM6.171019.030.H1
OUT_DIR=/home/grimm/android/lineage/out
AUX_OS_VARIANT_LIST=
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=lineage_hwcan
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.13.0-32-generic-x86_64-with-LinuxMint-18.3-sylvia
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OPM6.171019.030.H1
OUT_DIR=/home/grimm/android/lineage/out
============================================
ninja: no work to do.
ninja: no work to do.
Environment variable BUILD_NUMBER was modified (f3c084e206 => aca0bf3153), regenerating...
[130/1070] including ./device/huawei/hwcan/Android.mk ...
build/core/binary.mk:47: warning: hal3-test-app uses kernel headers, but does not depend on them!
[1070/1070] including ./vendor/qcom/opensource/rcs-service/Android.mk ...
build/core/Makefile:34: warning: overriding commands for target `/home/grimm/android/lineage/out/target/product/hwcan/system/framework/qti-telephony-common.jar'
build/core/base_rules.mk:391: warning: ignoring old commands for target `/home/grimm/android/lineage/out/target/product/hwcan/system/framework/qti-telephony-common.jar'
build/core/Makefile:34: warning: overriding commands for target `/home/grimm/android/lineage/out/target/product/hwcan/vendor/lib/libsdm-disp-apis.so'
build/core/base_rules.mk:391: warning: ignoring old commands for target `/home/grimm/android/lineage/out/target/product/hwcan/vendor/lib/libsdm-disp-apis.so'
[ 0% 61/97000] Building Kernel Headers
FAILED: /home/grimm/android/lineage/out/target/product/hwcan/obj/KERNEL_OBJ/.headers_install_deps
/bin/bash -c "(rm -f /home/grimm/android/lineage/out/target/product/hwcan/obj/KERNEL_OBJ/.headers_install_deps ) && (make -j12 CFLAGS_MODULE=\"-fno-pic\" -C kernel/huawei/msm8953 O=/home/grimm/android/lineage/out/target/product/hwcan/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\" aarch64-linux-android-\" headers_install ) && (echo \"/home/grimm/android/lineage/out/target/product/hwcan/obj/KERNEL_OBJ/.headers_install_deps: \\\\\" > /home/grimm/android/lineage/out/target/product/hwcan/obj/KERNEL_OBJ/.headers_install_deps ) && (( cd kernel/huawei/msm8953;	if grep -q '^version_h' 'Makefile'; then	depdirs=\"arch/arm64/include/uapi include/uapi\";	else	depdirs=\"arch/arm64/include/asm include\";	fi;	deps=\"Makefile \$(find \$depdirs -type f -name '*.h')\";	for f in \$deps; do	echo \" kernel/huawei/msm8953/\$f \\\\\" >> /home/grimm/android/lineage/out/target/product/hwcan/obj/KERNEL_OBJ/.headers_install_deps;	done ;	echo \"\" >> /home/grimm/android/lineage/out/target/product/hwcan/obj/KERNEL_OBJ/.headers_install_deps ;	for f in \$deps; do	echo \"kernel/huawei/msm8953/\$f:\" >> /home/grimm/android/lineage/out/target/product/hwcan/obj/KERNEL_OBJ/.headers_install_deps;	echo \"\" >> /home/grimm/android/lineage/out/target/product/hwcan/obj/KERNEL_OBJ/.headers_install_deps;	done	) )"
make: Entering directory '/home/grimm/android/lineage/kernel/huawei/msm8953'
make[1]: Entering directory '/home/grimm/android/lineage/out/target/product/hwcan/obj/KERNEL_OBJ'
/bin/sh: 1: ./scripts/fetch-latest-wireguard.sh: not found
/usr/bin/env: ‘python2\r’: No such file or directory
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/gcc-goto.sh: line 4: $'\r': command not found
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/gcc-goto.sh: line 21: warning: here-document at line 5 delimited by end-of-file (wanted `END')
CHK include/generated/uapi/linux/version.h
/bin/sh: 1: ./scripts/fetch-latest-wireguard.sh: not found
/bin/sh: 1: ./scripts/fetch-latest-wireguard.sh: not found
/bin/sh: 1: ./scripts/fetch-latest-wireguard.sh: not found
/bin/sh: 1: ./scripts/fetch-latest-wireguard.sh: not found
/bin/sh: 1: ./scripts/fetch-latest-wireguard.sh: not found
INSTALL usr/include/uapi/ (0 file)
/bin/sh: 1: ./scripts/fetch-latest-wireguard.sh: not found
/bin/sh: 1: ./scripts/fetch-latest-wireguard.sh: not found
/bin/sh: 1: ./scripts/fetch-latest-wireguard.sh: not found
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 2: $'\r': command not found
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: syntax error near unexpected token `$'do\r''
'home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: `do
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:110: recipe for target 'usr/include/uapi/.install' failed
make[2]: *** [usr/include/uapi/.install] Error 2
make[2]: *** Waiting for unfinished jobs....
/bin/sh: 1: ./scripts/fetch-latest-wireguard.sh: not found
/bin/sh: 1: ./scripts/fetch-latest-wireguard.sh: not found
INSTALL usr/include/rdma/ (6 files)
INSTALL usr/include/media/ (21 files)
INSTALL usr/include/sound/ (19 files)
INSTALL usr/include/video/ (5 files)
INSTALL usr/include/drm/ (18 files)
/bin/sh: 1: /bin/sh: 1: ./scripts/fetch-latest-wireguard.sh: not found
./scripts/fetch-latest-wireguard.sh: not found
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 2: $'\r': command not found
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: syntax error near unexpected token `$'do\r''
'home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: `do
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:110: recipe for target 'usr/include/rdma/.install' failed
make[3]: *** [usr/include/rdma/.install] Error 2
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:128: recipe for target 'rdma' failed
make[2]: *** [rdma] Error 2
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 2: $'\r': command not found
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: syntax error near unexpected token `$'do\r''
'home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: `do
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 2: $'\r': command not found
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:110: recipe for target 'usr/include/sound/.install' failed
make[3]: *** [usr/include/sound/.install] Error 2
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: syntax error near unexpected token `$'do\r''
'home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: `do
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:128: recipe for target 'sound' failed
make[2]: *** [sound] Error 2
/bin/sh: 1: /home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:110: recipe for target 'usr/include/video/.install' failed
make[3]: *** [usr/include/video/.install] Error 2
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:128: recipe for target 'video' failed
make[2]: *** [video] Error 2
INSTALL usr/include/mtd/ (5 files)
./scripts/fetch-latest-wireguard.sh: not found
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 2: $'\r': command not found
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: syntax error near unexpected token `$'do\r''
'home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: `do
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:110: recipe for target 'usr/include/drm/.install' failed
make[3]: *** [usr/include/drm/.install] Error 2
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:128: recipe for target 'drm' failed
make[2]: *** [drm] Error 2
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 2: $'\r': command not found
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: syntax error near unexpected token `$'do\r''
'home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: `do
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:110: recipe for target 'usr/include/mtd/.install' failed
make[3]: *** [usr/include/mtd/.install] Error 2
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:128: recipe for target 'mtd' failed
make[2]: *** [mtd] Error 2
INSTALL usr/include/xen/ (4 files)
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 2: $'\r': command not found
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: syntax error near unexpected token `$'do\r''
'home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: `do
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:110: recipe for target 'usr/include/media/.install' failed
make[3]: *** [usr/include/media/.install] Error 2
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:128: recipe for target 'media' failed
make[2]: *** [media] Error 2
/bin/sh: 1: ./scripts/fetch-latest-wireguard.sh: not found
/bin/sh: 1: ./scripts/fetch-latest-wireguard.sh: not found
INSTALL usr/include/scsi/ (5 files)
/bin/sh: 1: ./scripts/fetch-latest-wireguard.sh: not found
INSTALL usr/include/misc/ (1 file)
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 2: $'\r': command not found
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 2: $'\r': command not found
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: syntax error near unexpected token `$'do\r''
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: syntax error near unexpected token `$'do\r''
'home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: `do
'home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: `do
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:110: recipe for target 'usr/include/misc/.install' failed
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:110: recipe for target 'usr/include/scsi/.install' failed
make[3]: *** [usr/include/misc/.install] Error 2
make[3]: *** [usr/include/scsi/.install] Error 2
make[3]: *** Waiting for unfinished jobs....
/bin/sh: 1: ./scripts/fetch-latest-wireguard.sh: not found
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:128: recipe for target 'misc' failed
make[2]: *** [misc] Error 2
/bin/sh: 1: ./scripts/fetch-latest-wireguard.sh: not found
/bin/sh: 1: ./scripts/fetch-latest-wireguard.sh: not found
INSTALL usr/include/scsi/fc/ (4 files)
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 2: $'\r': command not found
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: syntax error near unexpected token `$'do\r''
'home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: `do
/bin/sh: 1: ./scripts/fetch-latest-wireguard.sh: not found
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:110: recipe for target 'usr/include/scsi/fc/.install' failed
make[4]: *** [usr/include/scsi/fc/.install] Error 2
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:128: recipe for target 'fc' failed
make[3]: *** [fc] Error 2
INSTALL usr/include/linux/byteorder/ (2 files)
INSTALL usr/include/linux/hsi/ (1 file)
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 2: $'\r': command not found
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 2: $'\r': command not found
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: syntax error near unexpected token `$'do\r''
'home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: `do
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: syntax error near unexpected token `$'do\r''
'home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: `do
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:110: recipe for target 'usr/include/linux/byteorder/.install' failed
make[4]: *** [usr/include/linux/byteorder/.install] Error 2
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:110: recipe for target 'usr/include/linux/hsi/.install' failed
make[4]: *** [usr/include/linux/hsi/.install] Error 2
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:128: recipe for target 'byteorder' failed
make[3]: *** [byteorder] Error 2
/bin/sh: 1: make[3]: *** Waiting for unfinished jobs....
./scripts/fetch-latest-wireguard.sh: not found
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:128: recipe for target 'hsi' failed
make[3]: *** [hsi] Error 2
INSTALL usr/include/linux/can/ (5 files)
INSTALL usr/include/scsi/ufs/ (2 files)
/bin/sh: 1: ./scripts/fetch-latest-wireguard.sh: not found
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 2: $'\r': command not found
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: syntax error near unexpected token `$'do\r''
'home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: `do
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 2: $'\r': command not found
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:110: recipe for target 'usr/include/scsi/ufs/.install' failed
make[4]: *** [usr/include/scsi/ufs/.install] Error 2
INSTALL usr/include/linux/caif/ (2 files)
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:128: recipe for target 'ufs' failed
make[3]: *** [ufs] Error 2
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: syntax error near unexpected token `$'do\r''
'home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: `do
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:128: recipe for target 'scsi' failed
make[2]: *** [scsi] Error 2
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:110: recipe for target 'usr/include/linux/can/.install' failed
make[4]: *** [usr/include/linux/can/.install] Error 2
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:128: recipe for target 'can' failed
make[3]: *** [can] Error 2
INSTALL usr/include/linux/hdlc/ (1 file)
/bin/sh: 1: ./scripts/fetch-latest-wireguard.sh: not found
/bin/sh: 1: ./scripts/fetch-latest-wireguard.sh: not found
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 2: $'\r': command not found
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: syntax error near unexpected token `$'do\r''
'home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: `do
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:110: recipe for target 'usr/include/linux/caif/.install' failed
make[4]: *** [usr/include/linux/caif/.install] Error 2
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:128: recipe for target 'caif' failed
make[3]: *** [caif] Error 2
/bin/sh: 1: ./scripts/fetch-latest-wireguard.sh: not found
/bin/sh: 1: ./scripts/fetch-latest-wireguard.sh: not found
/bin/sh: 1: ./scripts/fetch-latest-wireguard.sh: not found
/bin/sh: 1: ./scripts/fetch-latest-wireguard.sh: not found
INSTALL usr/include/asm-generic/ (35 files)
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 2: $'\r': command not found
INSTALL usr/include/linux/isdn/ (1 file)
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: syntax error near unexpected token `$'do\r''
'home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: `do
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:110: recipe for target 'usr/include/xen/.install' failed
make[3]: *** [usr/include/xen/.install] Error 2
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:128: recipe for target 'xen' failed
make[2]: *** [xen] Error 2
INSTALL usr/include/linux/mfd/ (1 file)
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 2: $'\r': command not found
INSTALL usr/include/linux/mfd/wcd9xxx/ (2 files)
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: syntax error near unexpected token `$'do\r''
'home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: `do
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:110: recipe for target 'usr/include/asm-generic/.install' failed
make[3]: *** [usr/include/asm-generic/.install] Error 2
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:128: recipe for target 'asm-generic' failed
make[2]: *** [asm-generic] Error 2
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 2: $'\r': command not found
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: syntax error near unexpected token `$'do\r''
'home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: `do
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:110: recipe for target 'usr/include/linux/hdlc/.install' failed
make[4]: *** [usr/include/linux/hdlc/.install] Error 2
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:128: recipe for target 'hdlc' failed
make[3]: *** [hdlc] Error 2
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 2: $'\r': command not found
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 2: $'\r': command not found
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: syntax error near unexpected token `$'do\r''
'home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: `do
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:110: recipe for target 'usr/include/linux/mfd/.install' failed
make[4]: *** [usr/include/linux/mfd/.install] Error 2
make[4]: *** Waiting for unfinished jobs....
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: syntax error near unexpected token `$'do\r''
'home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: `do
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:110: recipe for target 'usr/include/linux/isdn/.install' failed
make[4]: *** [usr/include/linux/isdn/.install] Error 2
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:128: recipe for target 'isdn' failed
make[3]: *** [isdn] Error 2
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 2: $'\r': command not found
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: syntax error near unexpected token `$'do\r''
'home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: `do
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:110: recipe for target 'usr/include/linux/mfd/wcd9xxx/.install' failed
make[5]: *** [usr/include/linux/mfd/wcd9xxx/.install] Error 2
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:128: recipe for target 'wcd9xxx' failed
make[4]: *** [wcd9xxx] Error 2
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:128: recipe for target 'mfd' failed
make[3]: *** [mfd] Error 2
INSTALL usr/include/linux/../../../usr/include/linux/staging/android/uapi/ (2 files)
INSTALL usr/include/linux/dvb/ (8 files)
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 2: $'\r': command not found
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: syntax error near unexpected token `$'do\r''
'home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: `do
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:110: recipe for target 'usr/include/linux/../../../usr/include/linux/staging/android/uapi/.install' failed
make[4]: *** [usr/include/linux/../../../usr/include/linux/staging/android/uapi/.install] Error 2
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:128: recipe for target '../../../drivers/staging/android/uapi' failed
make[3]: *** [../../../drivers/staging/android/uapi] Error 2
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 2: $'\r': command not found
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: syntax error near unexpected token `$'do\r''
'home/grimm/android/lineage/kernel/huawei/msm8953/scripts/headers_install.sh: line 31: `do
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:110: recipe for target 'usr/include/linux/dvb/.install' failed
make[4]: *** [usr/include/linux/dvb/.install] Error 2
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:128: recipe for target 'dvb' failed
make[3]: *** [dvb] Error 2
/home/grimm/android/lineage/kernel/huawei/msm8953/scripts/Makefile.headersinst:128: recipe for target 'linux' failed
make[2]: *** [linux] Error 2
/home/grimm/android/lineage/kernel/huawei/msm8953/Makefile:1078: recipe for target 'headers_install' failed
make[1]: *** [headers_install] Error 2
make[1]: Leaving directory '/home/grimm/android/lineage/out/target/product/hwcan/obj/KERNEL_OBJ'
Makefile:145: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
make: Leaving directory '/home/grimm/android/lineage/kernel/huawei/msm8953'
[ 0% 69/97000] target C: libexfat_static <= external/exfat/libexfat/node.c
external/exfat/libexfat/node.c:647:33: warning: taking address of packed member 'mdate' of class or structure 'exfat_entry_meta1' may result in an unaligned pointer value [-Waddress-of-packed-member]
exfat_unix2exfat(node->mtime, &meta1->mdate, &meta1->mtime,
^~~~~~~~~~~~
external/exfat/libexfat/node.c:647:48: warning: taking address of packed member 'mtime' of class or structure 'exfat_entry_meta1' may result in an unaligned pointer value [-Waddress-of-packed-member]
exfat_unix2exfat(node->mtime, &meta1->mdate, &meta1->mtime,
^~~~~~~~~~~~
external/exfat/libexfat/node.c:649:33: warning: taking address of packed member 'adate' of class or structure 'exfat_entry_meta1' may result in an unaligned pointer value [-Waddress-of-packed-member]
exfat_unix2exfat(node->atime, &meta1->adate, &meta1->atime, NULL);
^~~~~~~~~~~~
external/exfat/libexfat/node.c:649:48: warning: taking address of packed member 'atime' of class or structure 'exfat_entry_meta1' may result in an unaligned pointer value [-Waddress-of-packed-member]
exfat_unix2exfat(node->atime, &meta1->adate, &meta1->atime, NULL);
^~~~~~~~~~~~
external/exfat/libexfat/node.c:895:32: warning: taking address of packed member 'crdate' of class or structure 'exfat_entry_meta1' may result in an unaligned pointer value [-Waddress-of-packed-member]
exfat_unix2exfat(time(NULL), &meta1->crdate, &meta1->crtime,
^~~~~~~~~~~~~
external/exfat/libexfat/node.c:895:48: warning: taking address of packed member 'crtime' of class or structure 'exfat_entry_meta1' may result in an unaligned pointer value [-Waddress-of-packed-member]
exfat_unix2exfat(time(NULL), &meta1->crdate, &meta1->crtime,
^~~~~~~~~~~~~
6 warnings generated.
[ 0% 74/97000] target C: libntfs-3g_static <= external/ntfs-3g/libntfs-3g/attrib.c
ninja: build stopped: subcommand failed.
03:22:10 ninja failed with: exit status 1

#### failed to build some targets (34 seconds) ####

---------- Post added at 03:37 AM ---------- Previous post was at 03:19 AM ----------

Will try to pull kernel again, maybe something went wrong the first time.