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

Jonathan Liu net147 at gmail.com
Mon Sep 21 12:49:02 UTC 2015


Hi Adrian,

On 21/09/2015 10:45 PM, Adrian Freihofer wrote:
> On Beaglebone-black Systemd 215 does not boot if compiled with -O2. 
> Compiling with -O1 works.
> 2015-09-21 14:31 GMT+02:00 Jonathan Liu <net147 at gmail.com 
> <mailto:net147 at gmail.com>>:
>
>     On 21/09/2015 10:23 PM, Burton, Ross wrote:
>>
>>     On 21 September 2015 at 12:23, Jonathan Liu <net147 at gmail.com
>>     <mailto:net147 at gmail.com>> wrote:
>>
>>         +FULL_OPTIMIZATION += "-fno-schedule-insns -fno-schedule-insns2"
>>
>>
>>     Are these bugs with the gcc optimisations or the systemd source
>>     code, and if its gcc's fault are the problematic optimisations
>>     specific to a particular architecture (such as ARM)?  Just
>>     wondering if we can use overrides to only change the
>>     optimisations where they're a problem.
>>
>>     Ross
>     I am not sure how to isolate if it's an issue in the systemd
>     source code but the issue is not present when using GCC 4.9.
>     Haven't checked if this is occuring on other architectures. Any
>     feedback whether this occurs on other platforms (Raspberry Pi 2 is
>     ARMv7) is welcome.
>
>     Regards,
>     Jonathan
>

Can you try the patch instead of changing -O2 to -O1 to see if it fixes 
booting with systemd?

Regards,
Jonathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20150921/77649e5c/attachment-0002.html>


More information about the Openembedded-core mailing list