Mail archive
alpine-devel

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

From: Cág <caoc_at_riseup.net>
Date: Tue, 25 Oct 2016 14:28:35 +0100

Natanael Copa wrote:

> 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 ....

Thanks.

Slightly inconvenient but okay. It skips through that error, chokes on
some warnings and notes and ends with (with no other flags applied):

--------------------------
init/built-in.o: In function `do_one_initcall':
(.text+0x21b): undefined reference to `__stack_chk_fail'
init/built-in.o: In function `name_to_dev_t':
(.text+0x6a9): undefined reference to `__stack_chk_fail'
init/built-in.o: In function `calibrate_delay':
(.text+0xc82): undefined reference to `__stack_chk_fail'
init/built-in.o: In function `loglevel':
main.c:(.init.text+0x149): undefined reference to `__stack_chk_fail'
init/built-in.o: In function `start_kernel':
(.init.text+0x7d5): undefined reference to `__stack_chk_fail'
init/built-in.o:(.init.text+0xc2a): more undefined references to
`__stack_chk_fail'
follow
make: *** [Makefile:945: vmlinux] Error 1
--------------------------


Cág


---
Unsubscribe:  alpine-devel+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-devel+help_at_lists.alpinelinux.org
---
Received on Tue Oct 25 2016 - 14:28:35 GMT