[Android Software/Hacking General [Developers Only]] SXUsr:
Switching to Clang

Tried to pick up where I left off and getting the following error...

...so I've tried switching to Clang as described here - https://github.com/nathanchance/android-kernel-clang. I've added the top 5 commits for 4.4 but that results in the following...

make[1]: Entering directory '/home/sxusr/Android/kernel-copyleft/out'
GEN ./Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/input/misc/Kconfig:871:warning: leading whitespace ignored
CHK include/config/kernel.release
Using .. as source for kernel
GEN ./Makefile
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CC kernel/bounds.s
[B][I]Android GCC has been deprecated in favor of Clang, and will be removed from
Android in 2020-01 as per the deprecation plan in:
https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+/master/GCC_4_9_DEPRECATION.md[/I][/B]

921d9846-a815-11e9-84ea-ff8bce1b90b6: error: Android: No such file or directory
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: GCC: No such file or directory
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: has: No such file or directory
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: been: No such file or directory
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: deprecated: No such file or directory
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: in: No such file or directory
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: favor: No such file or directory
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: of: No such file or directory
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: Clang,: No such file or directory
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: and: No such file or directory
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: will: No such file or directory
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: be: No such file or directory
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: removed: No such file or directory
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: from: No such file or directory
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: Android: No such file or directory
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: in: No such file or directory
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: 2020-01: No such file or directory
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: as: No such file or directory
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: per: No such file or directory
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: the: No such file or directory
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: deprecation: No such file or directory
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: plan: No such file or directory
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: in:: No such file or directory
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+/master/GCC_4_9_DEPRECATION.md: No such file or directory
[B][I].././Kbuild:44: recipe for target 'kernel/bounds.s' failed
make[2]: *** [kernel/bounds.s] Error 1
/home/sxusr/Android/kernel-copyleft/Makefile:1042: recipe for target 'prepare0' failed
make[1]: *** [prepare0] Error 2[/I][/B]
make[1]: Leaving directory '/home/sxusr/Android/kernel-copyleft/out'
Makefile:150: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2

Am I missing a commit?

This is the code I'm using to initiate compiling...

export ARCH=arm64

export PATH="/home/sxusr/clang/bin:${PATH}"

export CC=clang

export KBUILD_DIFFCONFIG=lilac_diffconfig

export KBUILD_BUILD_USER=Build

export KBUILD_BUILD_HOST=Host

make msmcortex-perf_defconfig O=./out

make O=./out

EDIT: Fixed by using an older version of GCC.