<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Adrian,<br>
<br>
On 21/09/2015 10:45 PM, Adrian Freihofer wrote:<br>
</div>
<blockquote
cite="mid:CAB3asfgbPBqEJ9YWmGahb7U28ZNrAJf+8MA7WxQictFxVdqgfw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>On Beaglebone-black Systemd 215 does not boot if compiled
with -O2. Compiling with -O1 works.<br>
</div>
</div>
</div>
</blockquote>
<blockquote
cite="mid:CAB3asfgbPBqEJ9YWmGahb7U28ZNrAJf+8MA7WxQictFxVdqgfw@mail.gmail.com"
type="cite">
<div class="gmail_extra">
<div class="gmail_quote">2015-09-21 14:31 GMT+02:00 Jonathan Liu
<span dir="ltr"><<a moz-do-not-send="true"
href="mailto:net147@gmail.com" target="_blank">net147@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>On 21/09/2015 10:23 PM, Burton, Ross wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_extra"><br>
<div class="gmail_quote">On 21 September 2015 at
12:23, Jonathan Liu <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:net147@gmail.com" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:net147@gmail.com">net147@gmail.com</a></a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0
0 .8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div style="overflow:hidden">+FULL_OPTIMIZATION
+= "-fno-schedule-insns -fno-schedule-insns2"<br>
</div>
</blockquote>
</div>
<br>
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.</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">Ross</div>
</div>
</blockquote>
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.<br>
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.<br>
<br>
Regards,<br>
Jonathan<br>
</div>
</blockquote>
</div>
</div>
</blockquote>
<br>
Can you try the patch instead of changing -O2 to -O1 to see if it
fixes booting with systemd?<br>
<br>
Regards,<br>
Jonathan<br>
</body>
</html>