<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>12266</bug_id>
          
          <creation_ts>2017-10-23 08:32:38 +0000</creation_ts>
          <short_desc>`systemctl status&apos; command doesn&apos;t behave correctly on qemumips64</short_desc>
          <delta_ts>2017-11-13 01:36:07 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>11</classification_id>
          <classification>Runtime</classification>
          <product>General Runtime</product>
          <component>General Runtime</component>
          <version>2.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>Backport 2.3.3 and 2.4.1?</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.4.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chen Qi">Qi.Chen</reporter>
          <assigned_to name="Chen Qi">Qi.Chen</assigned_to>
          <cc>stephano</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>77763</commentid>
    <comment_count>0</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2017-10-23 08:32:38 +0000</bug_when>
    <thetext>Building systemd based system for qemumips64, on target, execute `systemctl status &lt;unit&gt;&apos; command, and we can observe incorrect behaviour.

e.g.
root@qemumips64:~# systemctl status dbus.socket
BindIPv6Only=default
Backlog=128
TimeoutUSec=1min 30s
SocketMode=0666
DirectoryMode=0755
Accept=no
Writable=no
KeepAlive=no
KeepAliveTimeUSec=0
KeepAliveIntervalUSec=0
KeepAliveProbes=0
DeferAcceptUSec=0
[snip]

The above output is actually the output of `systemctl show dbus.socket&apos;.
The correct output for `systemctl status dbus.socket&apos; should be as below.

root@qemumips64:~# systemctl status dbus.socket
● dbus.socket - D-Bus System Message Bus Socket
   Loaded: loaded (/lib/systemd/system/dbus.socket; static; vendor preset: enabled)
   Active: active (running) since Mon 2017-10-23 08:19:33 UTC; 4min 30s ago
   Listen: /var/run/dbus/system_bus_socket (Stream)

Oct 23 08:19:33 qemumips64 systemd[1]: Listening on D-Bus System Message Bus Socket.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77844</commentid>
    <comment_count>1</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2017-10-27 01:53:27 +0000</bug_when>
    <thetext>Searched gcc bugzilla, there&apos;s a bug that seems to be related to this one.

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81803</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77886</commentid>
    <comment_count>2</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2017-10-31 08:02:09 +0000</bug_when>
    <thetext>  git://git.pokylinux.org/poky-contrib ChenQi/bug12266
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/bug12266</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78169</commentid>
    <comment_count>3</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2017-11-13 01:36:07 +0000</bug_when>
    <thetext>commit b656fd9267b1f36d46ca20a1c0bcfaedbf7df438
Author: Chen Qi &lt;Qi.Chen@windriver.com&gt;
Date:   Fri Oct 27 17:43:51 2017 +0800

    gcc: fix miscompilation on mips64
    
    We&apos;ve observed strange behaviour of `systemctl status &lt;xxx&gt; on qemumips64.
    The output of the command is like `systemctl show &lt;xxx&gt;&apos;, which is incorrect.
    
    This patch is from gcc bugzilla&apos;s attachment.
    https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81803
    
    The patch hasn&apos;t been merged into gcc. But it does solve the above problem.
    
    (From OE-Core rev: 3717c76eb24217c14a22f72fdd8732923729dee8)
    
    Signed-off-by: Chen Qi &lt;Qi.Chen@windriver.com&gt;
    Signed-off-by: Ross Burton &lt;ross.burton@intel.com&gt;
    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;

commit cd803651751fec224c78509743e10aea79a941de
Author: Chen Qi &lt;Qi.Chen@windriver.com&gt;
Date:   Fri Oct 27 17:43:50 2017 +0800

    systemd: remove useless options for mips4
    
    Looking back the history, we had problem with systemd on qemumips64
    which is also related to compilation flags. We solved that by using
    tweaking FULL_OPTIMIZATION for mips64 to have &quot;-fno-tree-switch-conversion
    -fno-tree-tail-merge&quot;.
    
    Now systemd has been upgraded to 234, and we don&apos;t have the above problem
    any more, thus removing these flags.
    
    (From OE-Core rev: 713761d23df24ad1b52e08bd2d2dc688393bef5b)
    
    Signed-off-by: Chen Qi &lt;Qi.Chen@windriver.com&gt;
    Signed-off-by: Ross Burton &lt;ross.burton@intel.com&gt;
    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>