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
Best Answer
From http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.8-rc2/0002-UBUNTU-SAUCE-no-up-disable-pie-when-gcc-has-it-enabl.patch
You might try the following patch:
A couple of related Debian tickets:
And a related GCC report: