<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:52:00 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-5498] Lustre client build failed with Mellanox OFED </title>
                <link>https://jira.whamcloud.com/browse/LU-5498</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;I tried to compile lustre-2.4.3 client with Mellanox OFED.2.2.1.0.0.1.gdf6fefb. The compilation failed. It failed at&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;/p&gt;

&lt;p&gt;I saw &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5224&quot; title=&quot;Lustre client build failed with Mellanox OFED&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5224&quot;&gt;&lt;del&gt;LU-5224&lt;/del&gt;&lt;/a&gt; and cherry-picked the patch, but it still failed:&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;

&lt;p&gt;The &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5224&quot; title=&quot;Lustre client build failed with Mellanox OFED&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5224&quot;&gt;&lt;del&gt;LU-5224&lt;/del&gt;&lt;/a&gt; patch tried to address the compilation problem at o2iblnd.h. However, all C files that include &amp;lt;net/sock.h&amp;gt; would end up including &amp;lt;linux/pm_qos_params.h&amp;gt; and hit this problem. There are more files in the lustre code do that other than o2iblnd.c&lt;/p&gt;

&lt;p&gt;I think the correct fix is to add the define&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;br/&gt;
in config/lustre-build-linux.m4.&lt;/p&gt;

&lt;p&gt;I am not sure if we need to qualify which sles11sp? kernel version? so that the fix would not break unaffected kernel versions. &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5224&quot; title=&quot;Lustre client build failed with Mellanox OFED&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5224&quot;&gt;&lt;del&gt;LU-5224&lt;/del&gt;&lt;/a&gt; patch was not a correct fix.&lt;/p&gt;</description>
                <environment>sles11sp3 3.0.101-0.31.1&lt;br/&gt;
Mellanox OFED.2.2.1.0.0.1.gdf6fefb</environment>
        <key id="26047">LU-5498</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="bogl">Bob Glossman</assignee>
                                    <reporter username="jaylan">Jay Lan</reporter>
                        <labels>
                    </labels>
                <created>Fri, 15 Aug 2014 21:48:09 +0000</created>
                <updated>Wed, 20 Aug 2014 22:45:03 +0000</updated>
                            <resolved>Wed, 20 Aug 2014 22:43:43 +0000</resolved>
                                    <version>Lustre 2.4.3</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="91789" author="pjones" created="Fri, 15 Aug 2014 22:55:08 +0000"  >&lt;p&gt;Bob&lt;/p&gt;

&lt;p&gt;Could you please advise?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="91793" author="bogl" created="Fri, 15 Aug 2014 23:11:15 +0000"  >&lt;p&gt;Jay, I think you are quite right.  It appears the previous fix from &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5224&quot; title=&quot;Lustre client build failed with Mellanox OFED&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5224&quot;&gt;&lt;del&gt;LU-5224&lt;/del&gt;&lt;/a&gt; doesn&apos;t do the job.  Your suggestion about adding -DCONFIG_COMPAT_PM_QOS looks like the right approach to me.  More extensive changes are needed to get that back into b2_4 for sles11sp3 though. The autoconf file in b2_4 doesn&apos;t have any -DCONFIG_COMPAT flags in it at all.  putting the change in master will be easier to start with.&lt;/p&gt;</comment>
                            <comment id="91795" author="jaylan" created="Sat, 16 Aug 2014 00:08:48 +0000"  >&lt;p&gt;Hi Bob,&lt;/p&gt;

&lt;p&gt;Don&apos;t worry about b2_4 patch. I have my simple local patch that just works right in my situation without having to be concerned about autoconf stuff. &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.whamcloud.com/images/icons/emoticons/smile.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="91868" author="bogl" created="Mon, 18 Aug 2014 16:21:56 +0000"  >&lt;p&gt;Jay, I haven&apos;t been able to reproduce the build failure you describe in b2_5 or current master, I only see it in b2_4.   I am using the latest sles11sp3 and MLNX_OFED_LINUX-2.2-1.0.1-sles11sp3-x86_64.tar.   Since you say you are OK with us not pushing back the fix into b2_4 and it&apos;s not really needed for anything later I would like to close this as Won&apos;t Fix.  Are you OK with that?&lt;/p&gt;

&lt;p&gt;I can pursue getting it into b2_4 but it seems more trouble than it&apos;s worth.&lt;/p&gt;</comment>
                            <comment id="92083" author="jaylan" created="Wed, 20 Aug 2014 22:29:55 +0000"  >&lt;p&gt;Bob,&lt;/p&gt;

&lt;p&gt;We have not decided to use Mellanox OFED or not, so it is not important to us whether you have a right fix to this problem or not. However, if Intel plans to support Mellanox OFED, you need to put in a right fix. &lt;/p&gt;

&lt;p&gt;We plan to upgrade to 2.5.x from 2.4.3 in a few months. If we were to use Mellanox OFED with 2.5.x, we may hit this problem again. You understand the nature of this problem and I am sure you do not need a reproducer to come up with a correct fix.&lt;/p&gt;

&lt;p&gt;It is a low priority to us. I can always carry my own simplified patch (ie, one without changes in autoconfig.)&lt;/p&gt;</comment>
                            <comment id="92086" author="bogl" created="Wed, 20 Aug 2014 22:43:43 +0000"  >&lt;p&gt;Closing this issue since the problem only happens with old lustre versions.  We don&apos;t plan to go out of our way to support newer MLNX versions on older lustre release branches.&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_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzwtxb:</customfieldvalue>

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