Bug#841420: --enable-default-pie breaks kernel builds

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#841420: --enable-default-pie breaks kernel builds

David Weinehall
Package: gcc-6
Severity: important
Version: 6.2.0-7

--enable-default-pie (first enabled in gcc-6 6.2.0-7) causes kernel
builds to fail.  If the kernel is configured with the stack protector
enabled it'll fail with a rather unhelpful error message claiming
that the compiler doesn't support -fstack-protector,
but the problem is in fact caused by:

kernel/bounds.c:1:0: error: code model kernel does not support PIC mode

(The kernel is built with -mcmodel=kernel)

I think it's fair to say that the kernel is kind of an important piece
of software and that it's imperative that we don't break kernel builds...


Kind regards, David Weinehall
--
 /) David Weinehall <[hidden email]> /) Rime on my window           (\
//  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   //  Diamond-white roses of fire //
\)                                 (/   Beautiful hoar-frost       (/

Reply | Threaded
Open this post in threaded view
|

Processed: Re: Bug#841420: --enable-default-pie breaks kernel builds

Debian Bug Tracking System
Processing control commands:

> reassign -1 linux 4.7.8-1
Bug #841420 [gcc-6] --enable-default-pie breaks kernel builds
Bug reassigned from package 'gcc-6' to 'linux'.
No longer marked as found in versions gcc-6/6.2.0-7.
Ignoring request to alter fixed versions of bug #841420 to the same values previously set
Bug #841420 [linux] --enable-default-pie breaks kernel builds
There is no source info for the package 'linux' at version '4.7.8-1' with architecture ''
Unable to make a source version for version '4.7.8-1'
Marked as found in versions 4.7.8-1.
> severity -1 serious
Bug #841420 [linux] --enable-default-pie breaks kernel builds
Severity set to 'serious' from 'important'
> tags -1 patch
Bug #841420 [linux] --enable-default-pie breaks kernel builds
Added tag(s) patch.

--
841420: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=841420
Debian Bug Tracking System
Contact [hidden email] with problems