[OE-core] [PATCH] RfC: Incomplete morty toolchain config (gcc-6.2 in poky and oe-core)
Stephen Arnold
stephen.arnold42 at gmail.com
Sun Feb 12 03:36:49 UTC 2017
Above toolchain breaks in both possible sets of metadata on hardened host
(hardened amd64 profile with PAX kernel). This issue does not occur on
krogoth or older branches with 5.4 or previous gcc versions.
Rolling back to 5.4 toolchain in morty results in random build failures
from the kernel killing gcc processes:
[122053.140618] PAX: terminating task:
/home/sarnold/foss-boundary-morty/oe-core/build-nitrogen6x/tmp-glibc/sysroots/x86_64-linux/usr/libexec/arm-oe-linux-gnueabi/gcc/arm-oe-linux-gnueabi/5.4.0/cc1plus(cc1plus):7943,
uid/euid: 1002/1002, PC
The 6.2 toolchain build error (failure to link gcov/other due to relocs) is
caused by incomplete no-PIE flags not being included in ALL* flag
variables, which is fixed in the attached Gentoo patch.
I've tested it on two build machines with both oe-core and poky builds and
both the toolchain and PAX are happy now. I would highly recommend fixing
the no-PIE config; I probably have time to extract a patch and mail it
as-is, otherwise I'm fine if someone else fixes it.
Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20170211/eee042c2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 54_all_nopie-all-flags.patch
Type: text/x-patch
Size: 649 bytes
Desc: not available
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20170211/eee042c2/attachment.bin>
More information about the Openembedded-core
mailing list