I have troubles recompiling my Kernel. Downloading the source package, decompress it and running
fakeroot make-kpkg kernel_image
leads me to the error
[...]
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
CHK include/generated/package.h
UPD include/generated/package.h
CC kernel/bounds.s
kernel/bounds.c:1:0: error: code model kernel does not support PIC mode
The issue may be solved by changing the Kernel configuration obtained with make menuconfig.
How to get rid of this error and have successful compilation
uname -agives meLinux hostname 4.6.0-kali1-amd64 #1 SMP Debian 4.6.4-1kali1 (2016-07-21) x86_64 GNU/Linuxand gcc version isgcc (Debian 6.2.0-9) 6.2.0 20161019. I have followed those precise indications . – user123456 Oct 29 '16 at 23:22