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

Adrian Freihofer adrian.freihofer at gmail.com
Mon Sep 21 13:53:41 UTC 2015


Hi Jonathan

Your patch is fine on beaglebone black. At least it is possible to
login. Thank you.

Regards,
Adrian

On Mon, 2015-09-21 at 22:49 +1000, Jonathan Liu wrote:
> 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>:
> > > On 21/09/2015 10:23 PM, Burton, Ross wrote:
> > > > 
> > > > On 21 September 2015 at 12:23, Jonathan Liu <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



More information about the Openembedded-core mailing list