[Android Software/Hacking General [Developers Only]] cristihan:
Thanks [MENTION=6842057]nathanchance[/MENTION] for the excellent tutorial. I tried to compile the kernel using your recommendations but get the error:

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/pl...ost/linux-x86/+/master/GCC_4_9_DEPRECATION.md

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: Android: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: GCC: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: has: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: been: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: deprecated: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: in: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: favor: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: of: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: Clang,: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: and: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: will: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: be: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: removed: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: from: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: Android: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: in: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: 2020-01: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: as: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: per: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: the: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: deprecation: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: plan: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: in:: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: https://android.googlesource.com/pl...st/linux-x86/+/master/GCC_4_9_DEPRECATION.md: No such file or directory

../scripts/Makefile.build:257: recipe for target 'scripts/mod/empty.o' failed

make[3]: *** [scripts/mod/empty.o] Error 1

make[3]: *** Waiting for unfinished jobs....

HOSTLD scripts/dtc/dtc

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/pl...ost/linux-x86/+/master/GCC_4_9_DEPRECATION.md

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: Android: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: GCC: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: has: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: been: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: deprecated: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: in: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: favor: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: of: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: Clang,: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: and: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: will: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: be: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: removed: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: from: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: Android: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: in: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: 2020-01: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: as: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: per: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: the: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: deprecation: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: plan: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: in:: No such file or directory

4dd9dcb4-6231-11e9-8831-03cf79688cdb: error: https://android.googlesource.com/pl...st/linux-x86/+/master/GCC_4_9_DEPRECATION.md: No such file or directory

../scripts/Makefile.build:153: recipe for target 'scripts/mod/devicetable-offsets.s' failed

make[3]: *** [scripts/mod/devicetable-offsets.s] Error 1

../scripts/Makefile.build:402: recipe for target 'scripts/mod' failed

make[2]: *** [scripts/mod] Error 2

/home/cris/Kernel/android_kernel_xiaomi_msm8937/Makefile:557: recipe for target 'scripts' failed

make[1]: *** [scripts] Error 2

make[1]: Leaving directory '/home/cris/Kernel/android_kernel_xiaomi_msm8937/out'

Makefile:145: recipe for target 'sub-make' failed

make: *** [sub-make] Error 2

cris@cris-rv520:~/Kernel/android_kernel_xiaomi_msm8937$

Am I doing something wrong or is there an update for GCC 4.9 ? I use this: https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9