Mail archive
alpine-devel

Re: [alpine-devel] Probably a bug, maybe a feature in gcc-6.2.1-r0 in edge

From: Natanael Copa <ncopa_at_alpinelinux.org>
Date: Tue, 25 Oct 2016 14:03:51 +0200

On Tue, 25 Oct 2016 12:23:03 +0100
Cág <caoc_at_riseup.net> wrote:

> Hi,
>
> After trying to compile a new kernel (4.4.27), I received an error from
> gcc-6.2.1:
>
> -----------------
> kernel/bounds.c:1:0: error: code model kernel does not support PIC mode
> -----------------

We compile gcc with --enable-default-pie since gcc 6. This means that
kernel need to be built with -fno-pie:

  make KCFLAGS=-fno-pie ....

-nc



---
Unsubscribe:  alpine-devel+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-devel+help_at_lists.alpinelinux.org
---
Received on Tue Oct 25 2016 - 14:03:51 UTC