<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:49:36 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-5224] Lustre client build failed with Mellanox OFED</title>
                <link>https://jira.whamcloud.com/browse/LU-5224</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;I am try to compile lustre client rpms on SLES11 SP3 with the MLNX_OFED-2.2:&lt;br/&gt;
1. ./configure --disable-server --disable-test --with-o2ib=/usr/src/ofa_kernel/default/&lt;br/&gt;
It success, &lt;br/&gt;
2. make, it failed with this message:&lt;br/&gt;
In file included from /usr/src/linux-3.0.76-0.11/include/linux/netdevice.h:34,&lt;br/&gt;
                 from /usr/src/linux-3.0.76-0.11/include/net/sock.h:50,&lt;br/&gt;
                 from /home/lustre-hpdd/lnet/klnds/o2iblnd/o2iblnd.h:66,&lt;br/&gt;
                 from /home/lustre-hpdd/lnet/klnds/o2iblnd/o2iblnd.c:41:&lt;br/&gt;
/usr/src/ofa_kernel/default/include/linux/pm_qos_params.h:27: error: &#8216;LINUX_BACKPORT&#8217; declared as function returning a function&lt;br/&gt;
cc1: warnings being treated as errors&lt;br/&gt;
/usr/src/ofa_kernel/default/include/linux/pm_qos_params.h:27: error: parameter names (without types) in function declaration&lt;br/&gt;
/usr/src/ofa_kernel/default/include/linux/pm_qos_params.h:29: error: &#8216;LINUX_BACKPORT&#8217; declared as function returning a function&lt;br/&gt;
/usr/src/ofa_kernel/default/include/linux/pm_qos_params.h:29: error: parameter names (without types) in function declaration&lt;br/&gt;
/usr/src/ofa_kernel/default/include/linux/pm_qos_params.h:31: error: &#8216;LINUX_BACKPORT&#8217; declared as function returning a function&lt;br/&gt;
/usr/src/ofa_kernel/default/include/linux/pm_qos_params.h:31: error: parameter names (without types) in function declaration&lt;br/&gt;
/usr/src/ofa_kernel/default/include/linux/pm_qos_params.h:34: error: &#8216;LINUX_BACKPORT&#8217; declared as function returning a function&lt;br/&gt;
/usr/src/ofa_kernel/default/include/linux/pm_qos_params.h:34: error: parameter names (without types) in function declaration&lt;br/&gt;
/usr/src/ofa_kernel/default/include/linux/pm_qos_params.h:37: error: &#8216;LINUX_BACKPORT&#8217; declared as function returning a function&lt;br/&gt;
/usr/src/ofa_kernel/default/include/linux/pm_qos_params.h:37: error: parameter names (without types) in function declaration&lt;br/&gt;
/usr/src/ofa_kernel/default/include/linux/pm_qos_params.h:39: error: &#8216;LINUX_BACKPORT&#8217; declared as function returning a function&lt;br/&gt;
/usr/src/ofa_kernel/default/include/linux/pm_qos_params.h:39: error: parameter names (without types) in function declaration&lt;br/&gt;
In file included from /usr/src/linux-3.0.76-0.11/include/net/sock.h:50,&lt;br/&gt;
                 from /home/lustre-hpdd/lnet/klnds/o2iblnd/o2iblnd.h:66,&lt;br/&gt;
                 from /home/lustre-hpdd/lnet/klnds/o2iblnd/o2iblnd.c:41:&lt;br/&gt;
/usr/src/linux-3.0.76-0.11/include/linux/netdevice.h:1064: error: field &#8216;pm_qos_req&#8217; has incomplete type&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;9&amp;#93;&lt;/span&gt;: *** &lt;span class=&quot;error&quot;&gt;&amp;#91;/home/lustre-hpdd/lnet/klnds/o2iblnd/o2iblnd.o&amp;#93;&lt;/span&gt; Error 1&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;8&amp;#93;&lt;/span&gt;: *** &lt;span class=&quot;error&quot;&gt;&amp;#91;/home/lustre-hpdd/lnet/klnds/o2iblnd&amp;#93;&lt;/span&gt; Error 2&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;7&amp;#93;&lt;/span&gt;: *** &lt;span class=&quot;error&quot;&gt;&amp;#91;/home/lustre-hpdd/lnet/klnds&amp;#93;&lt;/span&gt; Error 2&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;6&amp;#93;&lt;/span&gt;: *** &lt;span class=&quot;error&quot;&gt;&amp;#91;/home/lustre-hpdd/lnet&amp;#93;&lt;/span&gt; Error 2&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;5&amp;#93;&lt;/span&gt;: *** &lt;span class=&quot;error&quot;&gt;&amp;#91;_module_/home/lustre-hpdd&amp;#93;&lt;/span&gt; Error 2&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;4&amp;#93;&lt;/span&gt;: *** &lt;span class=&quot;error&quot;&gt;&amp;#91;sub-make&amp;#93;&lt;/span&gt; Error 2&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;3&amp;#93;&lt;/span&gt;: *** &lt;span class=&quot;error&quot;&gt;&amp;#91;all&amp;#93;&lt;/span&gt; Error 2&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;3&amp;#93;&lt;/span&gt;: Leaving directory `/usr/src/linux-3.0.76-0.11-obj/x86_64/default&apos;&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;2&amp;#93;&lt;/span&gt;: *** &lt;span class=&quot;error&quot;&gt;&amp;#91;modules&amp;#93;&lt;/span&gt; Error 2&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;2&amp;#93;&lt;/span&gt;: Leaving directory `/home/lustre-hpdd&apos;&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt;: *** &lt;span class=&quot;error&quot;&gt;&amp;#91;all-recursive&amp;#93;&lt;/span&gt; Error 1&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt;: Leaving directory `/home/lustre-hpdd&apos;&lt;br/&gt;
make: *** &lt;span class=&quot;error&quot;&gt;&amp;#91;all&amp;#93;&lt;/span&gt; Error 2&lt;/p&gt;</description>
                <environment>SLES11 SP3 X86_64, with MLNX_OFED_LINUX-2.2-1.0.1</environment>
        <key id="25200">LU-5224</key>
            <summary>Lustre client build failed with Mellanox OFED</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</priority>
                        <status id="5" iconUrl="https://jira.whamcloud.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="mdiep">Minh Diep</assignee>
                                    <reporter username="gnlwlb">wu libin</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Wed, 18 Jun 2014 09:24:28 +0000</created>
                <updated>Thu, 14 Aug 2014 16:40:12 +0000</updated>
                            <resolved>Tue, 12 Aug 2014 20:03:28 +0000</resolved>
                                    <version>Lustre 2.4.1</version>
                    <version>Lustre 2.5.0</version>
                    <version>Lustre 2.5.1</version>
                                    <fixVersion>Lustre 2.6.0</fixVersion>
                    <fixVersion>Lustre 2.5.3</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>10</watches>
                                                                            <comments>
                            <comment id="87022" author="bogl" created="Thu, 19 Jun 2014 14:47:24 +0000"  >&lt;p&gt;I see a proposed solution at &lt;a href=&quot;http://review.whamcloud.com/#/c/10749&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/10749&lt;/a&gt;.  our regular autotest doesn&apos;t build with MLNX ofed stack so only shows the change doesn&apos;t break regular builds.  Can anybody confirm the fix does fix the build with MLNX on more than one distro?  I&apos;m concerned to know that a fix tried on sles11sp3 doesn&apos;t break anything on el6, for example.&lt;/p&gt;</comment>
                            <comment id="88324" author="simmonsja" created="Mon, 7 Jul 2014 16:52:35 +0000"  >&lt;p&gt;Patch for master has landed. Back ported patch for b2_5 is at &lt;a href=&quot;http://review.whamcloud.com/#/c/10819&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/10819&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="91013" author="jaylan" created="Wed, 6 Aug 2014 20:55:40 +0000"  >&lt;p&gt;The #10819 patch did not help us. We hit the same problem in building 2.4.3 against MLNX 2.2. Kernel is sles11sp3 3.0.101-0.31.1.&lt;/p&gt;

&lt;p&gt;...&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;5&amp;#93;&lt;/span&gt;: Entering directory `/usr/src/linux-3.0.101-0.31.1.20140612nasa-obj/x86_64/nasa&apos;&lt;br/&gt;
In file included from /usr/src/linux-3.0.101-0.31.1.20140612nasa/include/linux/netdevice.h:35,&lt;br/&gt;
                 from /usr/src/linux-3.0.101-0.31.1.20140612nasa/include/net/sock.h:51,&lt;br/&gt;
                 from /usr/src/packages/BUILD/lustre-2.4.3/libcfs/include/libcfs/linux/linux-tcpip.h:53,&lt;br/&gt;
                 from /usr/src/packages/BUILD/lustre-2.4.3/libcfs/include/libcfs/linux/libcfs.h:57,&lt;br/&gt;
                 from /usr/src/packages/BUILD/lustre-2.4.3/libcfs/include/libcfs/libcfs.h:48,&lt;br/&gt;
                 from /usr/src/packages/BUILD/lustre-2.4.3/libcfs/libcfs/linux/linux-tracefile.c:41:&lt;br/&gt;
/usr/src/ofa_kernel/nasa/include/linux/pm_qos_params.h:27: error: &apos;LINUX_BACKPORT&apos; declared as function returning a function&lt;br/&gt;
cc1: warnings being treated as errors&lt;br/&gt;
/usr/src/ofa_kernel/nasa/include/linux/pm_qos_params.h:27: error: parameter names (without types) in function declaration&lt;br/&gt;
/usr/src/ofa_kernel/nasa/include/linux/pm_qos_params.h:29: error: &apos;LINUX_BACKPORT&apos; declared as function returning a function&lt;br/&gt;
/usr/src/ofa_kernel/nasa/include/linux/pm_qos_params.h:29: error: parameter names (without types) in function declaration&lt;br/&gt;
/usr/src/ofa_kernel/nasa/include/linux/pm_qos_params.h:31: error: &apos;LINUX_BACKPORT&apos; declared as function returning a function&lt;br/&gt;
/usr/src/ofa_kernel/nasa/include/linux/pm_qos_params.h:31: error: parameter names (without types) in function declaration&lt;br/&gt;
/usr/src/ofa_kernel/nasa/include/linux/pm_qos_params.h:34: error: &apos;LINUX_BACKPORT&apos; declared as function returning a function&lt;br/&gt;
/usr/src/ofa_kernel/nasa/include/linux/pm_qos_params.h:34: error: parameter names (without types) in function declaration&lt;br/&gt;
/usr/src/ofa_kernel/nasa/include/linux/pm_qos_params.h:37: error: &apos;LINUX_BACKPORT&apos; declared as function returning a function&lt;br/&gt;
/usr/src/ofa_kernel/nasa/include/linux/pm_qos_params.h:37: error: parameter names (without types) in function declaration&lt;br/&gt;
/usr/src/ofa_kernel/nasa/include/linux/pm_qos_params.h:39: error: &apos;LINUX_BACKPORT&apos; declared as function returning a function&lt;br/&gt;
/usr/src/ofa_kernel/nasa/include/linux/pm_qos_params.h:39: error: parameter names (without types) in function declaration&lt;br/&gt;
In file included from /usr/src/linux-3.0.101-0.31.1.20140612nasa/include/net/sock.h:51,&lt;br/&gt;
                 from /usr/src/packages/BUILD/lustre-2.4.3/libcfs/include/libcfs/linux/linux-tcpip.h:53,&lt;br/&gt;
                 from /usr/src/packages/BUILD/lustre-2.4.3/libcfs/include/libcfs/linux/libcfs.h:57,&lt;br/&gt;
                 from /usr/src/packages/BUILD/lustre-2.4.3/libcfs/include/libcfs/libcfs.h:48,&lt;br/&gt;
                 from /usr/src/packages/BUILD/lustre-2.4.3/libcfs/libcfs/linux/linux-tracefile.c:41:&lt;br/&gt;
/usr/src/linux-3.0.101-0.31.1.20140612nasa/include/linux/netdevice.h:1064: error: field &apos;pm_qos_req&apos; has incomplete type&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;10&amp;#93;&lt;/span&gt;: *** &lt;span class=&quot;error&quot;&gt;&amp;#91;/usr/src/packages/BUILD/lustre-2.4.3/libcfs/libcfs/linux/linux-tracefile.o&amp;#93;&lt;/span&gt; Error 1&lt;/p&gt;</comment>
                            <comment id="91027" author="jaylan" created="Wed, 6 Aug 2014 23:02:01 +0000"  >&lt;p&gt;There are more than one ways to end up with /usr/src/ofa_kernel/nasa/include/linux/pm_qos_params.h. &lt;/p&gt;

&lt;p&gt;Why don&apos;t we just add&lt;br/&gt;
    -DCOFIG_COMPAT_PM_QOS&lt;br/&gt;
to &lt;br/&gt;
    EXTRA_LNET_INCLUDE=&quot;$EXTRA_LNET_INCLUDE -DCONFIG_COMPAT_SLES_11_$SP -DCONFIG_COMPAT_PM_QOS&quot;&lt;/p&gt;

&lt;p&gt;in config/lustre-build-linux.m4? Worked for me, and #10819 is not needed any more.&lt;/p&gt;</comment>
                            <comment id="91028" author="simmonsja" created="Wed, 6 Aug 2014 23:18:01 +0000"  >&lt;p&gt;Does this only happen for the 2.4 code base? Do we need this fix for 2.5 as well.&lt;/p&gt;</comment>
                            <comment id="91030" author="jaylan" created="Thu, 7 Aug 2014 01:12:55 +0000"  >&lt;p&gt;I believe so. Fixing at o2iblnd.h (as in #10819) is not a correct fix. The build of my 2.5.1 client failed on lustre/lmv/lproc_lmv.c.&lt;/p&gt;</comment>
                            <comment id="91466" author="pjones" created="Tue, 12 Aug 2014 20:03:29 +0000"  >&lt;p&gt;This looks like it was landed for 2.6&lt;/p&gt;</comment>
                    </comments>
                    <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_10040" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Epic</customfieldname>
                        <customfieldvalues>
                                        <label>client</label>
            <label>lnet</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10030" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Epic/Theme</customfieldname>
                        <customfieldvalues>
                                        <label>lnet</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzwpbr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>14558</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>