[Xiaomi Mi 6 ROMs, Kernels, Recoveries, & Other Dev] insestito:
christian@christian-PC:~/Downloads/sagit_kernel-sagit-o-oss$ bash build-kernel.sh

What to cook for you?!

1) CN

2) EU

3) ALL

#? 3

Initialising.................

Building for boot

Python2 is used! all good, building!

Building kernel with 4 CPU threads

./scripts/gcc-version.sh: line 31: printf: Is: invalid number

./scripts/gcc-version.sh: line 31: printf: your: invalid number

./scripts/gcc-version.sh: line 31: printf: PATH: invalid number

./scripts/gcc-version.sh: line 31: printf: set: invalid number

./scripts/gcc-version.sh: line 31: printf: correctly?: invalid number

./scripts/gcc-version.sh: line 31: printf: Is: invalid number

./scripts/gcc-version.sh: line 31: printf: your: invalid number

./scripts/gcc-version.sh: line 31: printf: PATH: invalid number

./scripts/gcc-version.sh: line 31: printf: set: invalid number

./scripts/gcc-version.sh: line 31: printf: correctly?: invalid number

/bin/sh: 1: [: 0000: unexpected operator

HOSTCC scripts/basic/fixdep

/bin/sh: 1: ccache: not found

scripts/Makefile.host:91: recipe for target 'scripts/basic/fixdep' failed

make[1]: *** [scripts/basic/fixdep] Error 127

Makefile:455: recipe for target 'scripts_basic' failed

make: *** [scripts_basic] Error 2

real	0m0.302s

user	0m0.151s

sys	0m0.085s

./scripts/gcc-version.sh: line 31: printf: Is: invalid number

./scripts/gcc-version.sh: line 31: printf: your: invalid number

./scripts/gcc-version.sh: line 31: printf: PATH: invalid number

./scripts/gcc-version.sh: line 31: printf: set: invalid number

./scripts/gcc-version.sh: line 31: printf: correctly?: invalid number

./scripts/gcc-version.sh: line 31: printf: Is: invalid number

./scripts/gcc-version.sh: line 31: printf: your: invalid number

./scripts/gcc-version.sh: line 31: printf: PATH: invalid number

./scripts/gcc-version.sh: line 31: printf: set: invalid number

./scripts/gcc-version.sh: line 31: printf: correctly?: invalid number

/bin/sh: 1: [: 0000: unexpected operator

./scripts/gcc-version.sh: line 31: printf: Is: invalid number

./scripts/gcc-version.sh: line 31: printf: your: invalid number

./scripts/gcc-version.sh: line 31: printf: PATH: invalid number

./scripts/gcc-version.sh: line 31: printf: set: invalid number

./scripts/gcc-version.sh: line 31: printf: correctly?: invalid number

./scripts/gcc-version.sh: line 31: printf: Is: invalid number

./scripts/gcc-version.sh: line 31: printf: your: invalid number

./scripts/gcc-version.sh: line 31: printf: PATH: invalid number

./scripts/gcc-version.sh: line 31: printf: set: invalid number

./scripts/gcc-version.sh: line 31: printf: correctly?: invalid number

/bin/sh: 1: [: 0000: unexpected operator

HOSTCC scripts/basic/fixdep

/bin/sh: 1: ccache: not found

scripts/Makefile.host:91: recipe for target 'scripts/basic/fixdep' failed

make[2]: *** [scripts/basic/fixdep] Error 127

Makefile:455: recipe for target 'scripts_basic' failed

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

make: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/kernel.release'. Stop.

real	0m1.378s

user	0m0.959s

sys	0m0.445s

cp: cannot stat '/home/christian/Downloads/sagit_kernel-sagit-o-oss/.config': No such file or directory

Kernel STUCK in BUILD! no Image.gz-dtb exist

EDIT: installed sudo apt-get install ccache and now its compilinggggggggggggggggggggggggggggggggggg

THX