This weekend I installed Kali linux on my laptop. I have issue with compiling the kernel using the following instructions: Recompiling the Kali Linux Kernel (http://docs.kali.org/development/recompiling-the-kali-linux-kernel)
Beside that instructions are a bit outdated (there is no more unxz and ncurses-dev packages, instead there are xz-utils and libncurses5-dev packages), I have the following problem:
When I run
fakeroot make-kpkg kernel_image
i got error:
Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
Makefile:1052: recipe for target 'prepare-compiler-check' failed
So I tried with
time KCPPFLAGS="-fno-PIE" fakeroot make-kpkg kernel_image
and after that I got next error:
make[2]: *** No rule to make target 'debian/certs/
[email protected]', needed by 'certs/x509_certificate_list'. Stop.
Makefile:972: recipe for target 'certs' failed
So I removed CONFIG_MODULE_SIG_ALL, CONFIG_MODULE_SIG_KEY and
CONFIG_SYSTEM_TRUSTED_KEYS from .config file.
After
time KCPPFLAGS="-fno-PIE" fakeroot make-kpkg kernel_image
I got the third error, without specific message (see attachment err3.txt).
What I am doing wrong? Any help would be appreciated. I am using 4.6.0-kali1-amd64, and new kernel is from linux-source package (version 4.8.5). I am using gcc version 6.2.0 20161109 (Debian 6.2.0-13).
Thank you for the help.