[OE-core] [PATCH] systemd: disable problematic GCC 5.2 optimizations

Khem Raj raj.khem at gmail.com
Mon Sep 21 17:05:30 UTC 2015


Please make it arm specific
On Sep 21, 2015 4:22 AM, "Jonathan Liu" <net147 at gmail.com> wrote:

> This fixes systemd failing to start on Raspberry Pi 2 if it is compiled
> with GCC 5.2.
>
> It would try to start "Journal Service" and "udev Kernel Device Manager"
> but fail repeatedly.
>
> [YOCTO #8291]
>
> Signed-off-by: Jonathan Liu <net147 at gmail.com>
> ---
>  meta/recipes-core/systemd/systemd_225.bb | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/meta/recipes-core/systemd/systemd_225.bb
> b/meta/recipes-core/systemd/systemd_225.bb
> index f7d4c7d..4a19ff4 100644
> --- a/meta/recipes-core/systemd/systemd_225.bb
> +++ b/meta/recipes-core/systemd/systemd_225.bb
> @@ -123,6 +123,9 @@ EXTRA_OECONF = " --with-rootprefix=${rootprefix} \
>  # uclibc does not have NSS
>  EXTRA_OECONF_append_libc-uclibc = " --disable-myhostname "
>
> +# disable problematic GCC 5.2 optimizations [YOCTO #8291]
> +FULL_OPTIMIZATION += "-fno-schedule-insns -fno-schedule-insns2"
> +
>  do_configure_prepend() {
>         export NM="${HOST_PREFIX}gcc-nm"
>         export AR="${HOST_PREFIX}gcc-ar"
> --
> 2.5.0
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20150921/ade72d94/attachment-0002.html>


More information about the Openembedded-core mailing list