<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:55:57 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Whamcloud Community JIRA</title>
    <link>https://jira.whamcloud.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.4.14</version>
        <build-number>940014</build-number>
        <build-date>05-12-2023</build-date>
    </build-info>


<item>
            <title>[LU-12822] gcc9 support</title>
                <link>https://jira.whamcloud.com/browse/LU-12822</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;gcc9 introduced new checks:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;address-of-packed-member&lt;/li&gt;
	&lt;li&gt;missing-attributes&lt;br/&gt;
 it&apos;s easier to disable those for a while..&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="57032">LU-12822</key>
            <summary>gcc9 support</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="5" iconUrl="https://jira.whamcloud.com/images/icons/priorities/trivial.svg">Trivial</priority>
                        <status id="4" iconUrl="https://jira.whamcloud.com/images/icons/statuses/reopened.png" description="This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.">Reopened</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="bzzz">Alex Zhuravlev</assignee>
                                    <reporter username="bzzz">Alex Zhuravlev</reporter>
                        <labels>
                    </labels>
                <created>Mon, 30 Sep 2019 09:33:02 +0000</created>
                <updated>Wed, 19 Apr 2023 07:20:18 +0000</updated>
                                                            <fixVersion>Lustre 2.14.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="255578" author="gerrit" created="Mon, 30 Sep 2019 09:35:46 +0000"  >&lt;p&gt;&lt;del&gt;Alex Zhuravlev (bzzz@whamcloud.com) uploaded a new patch:&lt;/del&gt; &lt;a href=&quot;https://review.whamcloud.com/36321-&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/36321&lt;/a&gt;&lt;br/&gt;
 &lt;del&gt;Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12822&quot; title=&quot;gcc9 support&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12822&quot;&gt;LU-12822&lt;/a&gt; build: disable couple checks with gcc9&lt;/del&gt;&lt;br/&gt;
 &lt;del&gt;Project: fs/lustre-release&lt;/del&gt;&lt;br/&gt;
 &lt;del&gt;Branch: master&lt;/del&gt;&lt;br/&gt;
 &lt;del&gt;Current Patch Set: 1&lt;/del&gt;&lt;br/&gt;
 &lt;del&gt;Commit: 3818d9446e691fb634ee7fa03b5592a21f3088bb&lt;/del&gt;&lt;/p&gt;</comment>
                            <comment id="258431" author="simmonsja" created="Sat, 16 Nov 2019 18:51:17 +0000"  >&lt;p&gt;I also ran into this problem and have fixes for it. The problem is in the UAPI headers which means even if lustre works around this issue with gcc flags external applications like robin hood could end up being unbuildable. I have worked out fixes for most things. Since I see this on Ubuntu 19.10 I also see issues with statx which breaks the tree but you might not see that.&lt;/p&gt;</comment>
                            <comment id="258500" author="gerrit" created="Tue, 19 Nov 2019 15:22:21 +0000"  >&lt;p&gt;James Simmons (jsimmons@infradead.org) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/36798&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/36798&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12822&quot; title=&quot;gcc9 support&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12822&quot;&gt;LU-12822&lt;/a&gt; uapi: properly pack data structures&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: d56fd0c98b338dfe51220f0ad6b8cb0fd1bbcc6a&lt;/p&gt;</comment>
                            <comment id="261959" author="gerrit" created="Tue, 28 Jan 2020 06:02:07 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/36798/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/36798/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12822&quot; title=&quot;gcc9 support&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12822&quot;&gt;LU-12822&lt;/a&gt; uapi: properly pack data structures&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 4751e4a951975e7fa5fa8de893224f9cc03f4165&lt;/p&gt;</comment>
                            <comment id="262059" author="simmonsja" created="Tue, 28 Jan 2020 19:32:54 +0000"  >&lt;p&gt;The patch landed but we should keep a eye out for any additonal breakage since working with gcc 9 is uncommon.&lt;/p&gt;</comment>
                            <comment id="262091" author="bzzz" created="Wed, 29 Jan 2020 05:46:21 +0000"  >&lt;p&gt;I do all my local testing on Fedora 30 which is gcc9-based, so will report any issue.&lt;/p&gt;</comment>
                            <comment id="262093" author="bzzz" created="Wed, 29 Jan 2020 06:06:36 +0000"  >&lt;p&gt;OK, I&apos;ve just tried w/o the original (silly) patch dropped, here is a small snippet:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
In file included from /home/alexey/head2/ldiskfs/&lt;span class=&quot;code-keyword&quot;&gt;super&lt;/span&gt;.c:20:
include/linux/module.h:132:6: error: &#8216;init_module&#8217; specifies less restrictive attribute than its target &#8216;ldiskfs_init_fs&#8217;: &#8216;cold&#8217; [-Werror=missing-attributes]
  132 |  &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; init_module(void) __attribute__((alias(#initfn)));
      |      ^~~~~~~~~~~
/home/alexey/head2/ldiskfs/&lt;span class=&quot;code-keyword&quot;&gt;super&lt;/span&gt;.c:6003:1: note: in expansion of macro &#8216;module_init&#8217;
 6003 | module_init(ldiskfs_init_fs)
      | ^~~~~~~~~~~
/home/alexey/head2/ldiskfs/&lt;span class=&quot;code-keyword&quot;&gt;super&lt;/span&gt;.c:5930:19: note: &#8216;init_module&#8217; target declared here
 5930 | &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; __init ldiskfs_init_fs(void)
      |                   ^~~~~~~~~~~~~~~
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="262094" author="bzzz" created="Wed, 29 Jan 2020 06:07:40 +0000"  >&lt;p&gt;so I&apos;m back with that patch &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.whamcloud.com/images/icons/emoticons/wink.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                            <comment id="279130" author="pjones" created="Wed, 9 Sep 2020 13:42:40 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=simmonsja&quot; class=&quot;user-hover&quot; rel=&quot;simmonsja&quot;&gt;simmonsja&lt;/a&gt; &lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=bzzz&quot; class=&quot;user-hover&quot; rel=&quot;bzzz&quot;&gt;bzzz&lt;/a&gt; is there still work needed here? I don&apos;t see any unlanded patches...&lt;/p&gt;</comment>
                            <comment id="279132" author="bzzz" created="Wed, 9 Sep 2020 13:44:09 +0000"  >&lt;p&gt;well, I still can&apos;t build master with gcc9&lt;/p&gt;</comment>
                            <comment id="279135" author="simmonsja" created="Wed, 9 Sep 2020 13:47:34 +0000"  >&lt;p&gt;I wonder what the default flags are for fedora. I&apos;m using&#160;&lt;/p&gt;

&lt;p&gt;gcc version 9.3.0 (Ubuntu 9.3.0-10ubuntu2) &lt;/p&gt;

&lt;p&gt;What are the build failures you are still seeing?&lt;/p&gt;</comment>
                            <comment id="279139" author="bzzz" created="Wed, 9 Sep 2020 14:12:08 +0000"  >&lt;p&gt;here is example:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
In file included from /home/alexey/head1/ldiskfs/&lt;span class=&quot;code-keyword&quot;&gt;super&lt;/span&gt;.c:20:
include/linux/module.h:132:6: error: &#8216;init_module&#8217; specifies less restrictive attribute than its target &#8216;ldiskfs_init_fs&#8217;: &#8216;cold&#8217; [-Werror=missing-attributes]
  132 |  &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; init_module(void) __attribute__((alias(#initfn)));
      |      ^~~~~~~~~~~
/home/alexey/head1/ldiskfs/&lt;span class=&quot;code-keyword&quot;&gt;super&lt;/span&gt;.c:6003:1: note: in expansion of macro &#8216;module_init&#8217;
 6003 | module_init(ldiskfs_init_fs)
      | ^~~~~~~~~~~
/home/alexey/head1/ldiskfs/&lt;span class=&quot;code-keyword&quot;&gt;super&lt;/span&gt;.c:5930:19: note: &#8216;init_module&#8217; target declared here
 5930 | &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; __init ldiskfs_init_fs(void)
      |                   ^~~~~~~~~~~~~~~
In file included from /home/alexey/head1/ldiskfs/&lt;span class=&quot;code-keyword&quot;&gt;super&lt;/span&gt;.c:20:
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="279155" author="simmonsja" created="Wed, 9 Sep 2020 15:15:47 +0000"  >&lt;p&gt;Is it only ldiskfs? Also what ldiskfs series is being use on Fedora?&lt;/p&gt;</comment>
                            <comment id="369069" author="simmonsja" created="Tue, 11 Apr 2023 15:16:17 +0000"  >&lt;p&gt;We just ran into this issue with the lustre test module kinode.c. It appears to be related to &lt;a href=&quot;https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0b999ae3614d09d97a1575936bcee884f912b10e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0b999ae3614d09d97a1575936bcee884f912b10e&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Also MOFED doesn&apos;t seem to build with gcc 9 as well &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.whamcloud.com/images/icons/emoticons/sad.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                            <comment id="369834" author="yujian" created="Wed, 19 Apr 2023 00:34:51 +0000"  >&lt;p&gt;Building master branch with gcc 9.2.1 on RHEL 8.6 failed as follows:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;# gcc --version | head -1
gcc (GCC) 9.2.1 20191120 (Red Hat 9.2.1-2)
# git clone git://git.whamcloud.com/fs/lustre-release.git
# cd lustre-release/
# sh autogen.sh
# ./configure --disable-server --with-linux=/usr/src/kernels/4.18.0-372.32.1.el8_6.x86_64
# make -j $(nproc)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;/root/lustre-release/lnet/klnds/o2iblnd/o2iblnd.c: In function &#8216;kiblnd_unpack_rd&#8217;:
/root/lustre-release/lnet/klnds/o2iblnd/o2iblnd.c:147:13: error: taking address of packed member of &#8216;struct kib_rdma_desc&#8217; may result in an unaligned pointer value [-Werror=address-of-packed-member]
  147 |   __swab32s(&amp;amp;rd-&amp;gt;rd_key);
      |             ^~~~~~~~~~~
&amp;lt;~snip~&amp;gt;
/root/lustre-release/lnet/klnds/o2iblnd/o2iblnd.c: In function &#8216;kiblnd_unpack_msg&#8217;:
/root/lustre-release/lnet/klnds/o2iblnd/o2iblnd.c:264:13: error: taking address of packed member of &#8216;struct kib_msg&#8217; may result in an unaligned pointer value [-Werror=address-of-packed-member]
  264 |   __swab64s(&amp;amp;msg-&amp;gt;ibm_srcnid);
      |             ^~~~~~~~~~~~~~~~
&amp;lt;~snip~&amp;gt;
/root/lustre-release/lnet/klnds/o2iblnd/o2iblnd.c: At top level:
/usr/src/kernels/4.18.0-372.32.1.el8_6.x86_64/include/linux/module.h:129:6: error: &#8216;init_module&#8217; specifies less restrictive attribute than its target &#8216;ko2iblnd_init&#8217;: &#8216;cold&#8217; [-Werror=missing-attributes]
  129 |  int init_module(void) __attribute__((alias(#initfn)));
      |      ^~~~~~~~~~~
/root/lustre-release/lnet/klnds/o2iblnd/o2iblnd.c:3908:1: note: in expansion of macro &#8216;module_init&#8217;
 3908 | module_init(ko2iblnd_init);
      | ^~~~~~~~~~~
/root/lustre-release/lnet/klnds/o2iblnd/o2iblnd.c:3888:19: note: &#8216;init_module&#8217; target declared here
 3888 | static int __init ko2iblnd_init(void)
      |                   ^~~~~~~~~~~~~
&amp;lt;~snip~&amp;gt;
                 from /root/lustre-release/lnet/klnds/o2iblnd/o2iblnd.c:38:
/usr/src/kernels/4.18.0-372.32.1.el8_6.x86_64/include/linux/module.h:135:7: error: &#8216;cleanup_module&#8217; specifies less restrictive attribute than its target &#8216;ko2iblnd_exit&#8217;: &#8216;cold&#8217; [-Werror=missing-attributes]
  135 |  void cleanup_module(void) __attribute__((alias(#exitfn)));
      |       ^~~~~~~~~~~~~~
/root/lustre-release/lnet/klnds/o2iblnd/o2iblnd.c:3909:1: note: in expansion of macro &#8216;module_exit&#8217;
 3909 | module_exit(ko2iblnd_exit);
      | ^~~~~~~~~~~
/root/lustre-release/lnet/klnds/o2iblnd/o2iblnd.c:3883:20: note: &#8216;cleanup_module&#8217; target declared here
 3883 | static void __exit ko2iblnd_exit(void)
      |                    ^~~~~~~~~~~~~
&amp;lt;~snip~&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;  CC [M]  /root/lustre-release/libcfs/libcfs/module.o
  CC [M]  /root/lustre-release/libcfs/libcfs/tracefile.o
In file included from /root/lustre-release/libcfs/libcfs/module.c:32:
include/linux/module.h:129:6: error: &#8216;init_module&#8217; specifies less restrictive attribute than its target &#8216;libcfs_init&#8217;: &#8216;cold&#8217; [-Werror=missing-attributes]
  129 |  int init_module(void) __attribute__((alias(#initfn)));
      |      ^~~~~~~~~~~
/root/lustre-release/libcfs/libcfs/module.c:962:1: note: in expansion of macro &#8216;module_init&#8217;
  962 | module_init(libcfs_init);
      | ^~~~~~~~~~~
/root/lustre-release/libcfs/libcfs/module.c:847:19: note: &#8216;init_module&#8217; target declared here
  847 | static int __init libcfs_init(void)
      |                   ^~~~~~~~~~~
In file included from /root/lustre-release/libcfs/libcfs/module.c:32:
include/linux/module.h:135:7: error: &#8216;cleanup_module&#8217; specifies less restrictive attribute than its target &#8216;libcfs_exit&#8217;: &#8216;cold&#8217; [-Werror=missing-attributes]
  135 |  void cleanup_module(void) __attribute__((alias(#exitfn)));
      |       ^~~~~~~~~~~~~~
/root/lustre-release/libcfs/libcfs/module.c:963:1: note: in expansion of macro &#8216;module_exit&#8217;
  963 | module_exit(libcfs_exit);
      | ^~~~~~~~~~~
/root/lustre-release/libcfs/libcfs/module.c:918:20: note: &#8216;cleanup_module&#8217; target declared here
  918 | static void __exit libcfs_exit(void)
      |                    ^~~~~~~~~~~
cc1: all warnings being treated as errors
make[6]: *** [scripts/Makefile.build:317: /root/lustre-release/libcfs/libcfs/module.o] Error 1
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="369837" author="yujian" created="Wed, 19 Apr 2023 01:31:51 +0000"  >&lt;p&gt;Building the same codes with gcc 9.4.0 on Ubuntu 20.04.5 with kernel 5.4.0-135-generic passed.&lt;/p&gt;</comment>
                            <comment id="369838" author="yujian" created="Wed, 19 Apr 2023 01:33:57 +0000"  >&lt;p&gt;I&apos;m trying to build and install gcc 9.4.0 on RHEL 8.6 to see how the Lustre client build goes.&lt;/p&gt;</comment>
                            <comment id="369855" author="yujian" created="Wed, 19 Apr 2023 06:53:13 +0000"  >&lt;p&gt;Hit the same failures with gcc 9.4.0 on RHEL 8.6 with kernel 4.18.0-372.32.1.el8_6.&lt;/p&gt;</comment>
                            <comment id="369859" author="yujian" created="Wed, 19 Apr 2023 07:19:00 +0000"  >&lt;blockquote&gt;&lt;p&gt;It appears to be related to &lt;a href=&quot;https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0b999ae3614d09d97a1575936bcee884f912b10e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0b999ae3614d09d97a1575936bcee884f912b10e&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;So the &lt;tt&gt;-Werror=missing-attributes&lt;/tt&gt; issue was fixed in kernel v5.0-rc7.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                            <customfield id="customfield_10890" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i00nif:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10060" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Severity</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10022"><![CDATA[3]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>