<div dir="ltr">Can we trust the mips64 compiler at all?  Is there a specific optimisation that systemd is turning on that is causing this breakage?  Have you reported this to the gcc bugzilla?<div><br></div><div>Ross</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 23 October 2017 at 11:44, Chen Qi <span dir="ltr">&lt;<a href="mailto:Qi.Chen@windriver.com" target="_blank">Qi.Chen@windriver.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On qemumips64, `systemctl status &lt;unit&gt;&#39; would have the output of<br>
`systemctl show &lt;unit&gt;&#39;. This is incorrect.<br>
<br>
However, it&#39;s not the code logic that cause such problem. It&#39;s the<br>
compilation flags.<br>
<br>
Looking back the history, we had problem with systemd on qemumips64<br>
which is also related to compilation flags. We solved that by using<br>
tweaking FULL_OPTIMIZATION for mips64 to have &quot;-fno-tree-switch-conversion<br>
-fno-tree-tail-merge&quot;.<br>
<br>
Now systemd has been upgraded to 234, and we don&#39;t have the above problem<br>
any more. However, a new problem appears, and that is the output of `systemctl<br>
status &lt;unit&gt;&#39;.<br>
<br>
Hence, we set &#39;-O0&#39; flag for mips64 when building systemd to avoid potential<br>
strange problems.<br>
<br>
[YOCTO #12266]<br>
<br>
Signed-off-by: Chen Qi &lt;<a href="mailto:Qi.Chen@windriver.com">Qi.Chen@windriver.com</a>&gt;<br>
---<br>
<span class=""> meta/recipes-core/systemd/<a href="http://systemd_234.bb" rel="noreferrer" target="_blank">syst<wbr>emd_234.bb</a> | 4 ++--<br>
 1 file changed, 2 insertions(+), 2 deletions(-)<br>
<br>
</span>diff --git a/meta/recipes-core/systemd/<a href="http://systemd_234.bb" rel="noreferrer" target="_blank">sy<wbr>stemd_234.bb</a> b/meta/recipes-core/systemd/<a href="http://systemd_234.bb" rel="noreferrer" target="_blank">sy<wbr>stemd_234.bb</a><br>
index 36fd3f8..b294604 100644<br>
--- a/meta/recipes-core/systemd/<a href="http://systemd_234.bb" rel="noreferrer" target="_blank">sy<wbr>stemd_234.bb</a><br>
+++ b/meta/recipes-core/systemd/<a href="http://systemd_234.bb" rel="noreferrer" target="_blank">sy<wbr>stemd_234.bb</a><br>
@@ -158,8 +158,8 @@ CFLAGS .= &quot;${@bb.utils.contains(&#39;<wbr>PACKAGECONFIG&#39;, &#39;valgrind&#39;, &#39; -DVALGRIND=1&#39;, &#39;&#39;<br>
 # disable problematic GCC 5.2 optimizations [YOCTO #8291]<br>
 FULL_OPTIMIZATION_append_arm = &quot; -fno-schedule-insns -fno-schedule-insns2&quot;<br>
<br>
-# Avoid login failure on qemumips64 when pam is enabled<br>
-FULL_OPTIMIZATION_append_<wbr>mips64 = &quot; -fno-tree-switch-conversion -fno-tree-tail-merge&quot;<br>
+# Disable optimization on qemumips64 to avoid strange behaviour<br>
+FULL_OPTIMIZATION_append_<wbr>mips64 = &quot; -O0&quot;<br>
<br>
 COMPILER_NM ?= &quot;${HOST_PREFIX}gcc-nm&quot;<br>
 COMPILER_AR ?= &quot;${HOST_PREFIX}gcc-ar&quot;<br>
<div class="HOEnZb"><div class="h5">--<br>
1.9.1<br>
<br>
--<br>
______________________________<wbr>_________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.<wbr>openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/<wbr>mailman/listinfo/openembedded-<wbr>core</a><br>
</div></div></blockquote></div><br></div>