[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#841500: gcc-6: Unable to compile upstream kernel with previous .config

On Thu, 27 Oct 2016 06:25:00 +0000 Niels Thykier <niels@thykier.net> wrote:
Control: forcemerge 841438 841500

Hi Eric,

Sorry to hear you ran into issues with gcc-6.

On Fri, 21 Oct 2016 10:40:47 +0200 Eric Valette
<eric2.valette@orange.com> wrote:
> [...]
> Entering directory '/usr/src/linux-dell'
>   GEN     ./Makefile
> scripts/kconfig/conf  --oldconfig Kconfig
> #
> # configuration written to .config
> #
> [...]
> /usr/src/linux-4.4/scripts/mod/empty.c:1:0: error: code model kernel does not support PIC mode

This error suggests that your issue is a duplicate of #841419, which is
that the compiler enables PIE by default (which is basically a variant
of PIC).  I have merged your bug into  #841419 accordingly.

I believe it is possible to compile the kernel with gcc-5.  I hope you
will consider that an acceptable workaround for you in the interim while
we solve #841419.

I have reverted to 6.2.0-6 anyway using testing as a source for the gcc package. But that will work as long as the "broken for kernel" gcc does not enter testing. So please find a way to prevent this compiler entering testing until this is resolved. Downloading from shapshots is way more painfull. And I wuld also like to know if various stacprotector options are broken for other user space or not because many people use this for hardening critical apps. If it is a problem, grave for security reason should stay.

Ther are indeed two bugs (stackprotector and pie) to solve. But as fixing thsi properly requires upstream fixes, that could have been done for long if other distro have already switched, I'm dubious this will be fixed anytime soon, especially because the same flaw of bugs have already happened for Ubuntu and nothing changed.

-- eric

Reply to: