<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:41:10 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-4266] fix lbuild script to work with OFED 3.5-x</title>
                <link>https://jira.whamcloud.com/browse/LU-4266</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Build lustre using OFED 3.5-1 fail&lt;/p&gt;

&lt;p&gt;++ echo 3.5-1&lt;br/&gt;
++ sed &lt;del&gt;re &apos;s/&lt;/del&gt;(&lt;span class=&quot;error&quot;&gt;&amp;#91;0-9&amp;#93;&lt;/span&gt;&lt;b&gt;-&lt;span class=&quot;error&quot;&gt;&amp;#91;rR&amp;#93;&lt;/span&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;cC&amp;#93;&lt;/span&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;0-9&amp;#93;&lt;/span&gt;&lt;/b&gt;)$//&apos;&lt;br/&gt;
+ ofed_version=3.5-1&lt;br/&gt;
++ ls &apos;/mnt/build/build/b25/BUILD/RPMS/&lt;b&gt;/compat-rdma-devel-3.5-1-2.6.32_358.18.1.el6.x86_64.&lt;/b&gt;.rpm&apos;&lt;br/&gt;
ls: cannot access /mnt/build/build/b25/BUILD/RPMS/&lt;b&gt;/compat-rdma-devel-3.5-1-2.6.32_358.18.1.el6.x86_64.&lt;/b&gt;.rpm: No such file or directory&lt;br/&gt;
+ local rpm=&lt;br/&gt;
+ rpm2cpio&lt;br/&gt;
+ cpio -id&lt;/p&gt;</description>
                <environment></environment>
        <key id="22147">LU-4266</key>
            <summary>fix lbuild script to work with OFED 3.5-x</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="mdiep">Minh Diep</reporter>
                        <labels>
                    </labels>
                <created>Mon, 18 Nov 2013 16:31:30 +0000</created>
                <updated>Thu, 22 May 2014 18:35:22 +0000</updated>
                            <resolved>Mon, 16 Dec 2013 16:48:14 +0000</resolved>
                                                    <fixVersion>Lustre 2.6.0</fixVersion>
                    <fixVersion>Lustre 2.5.2</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>10</watches>
                                                                            <comments>
                            <comment id="71910" author="mdiep" created="Tue, 19 Nov 2013 17:47:47 +0000"  >&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/#/c/8319/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/8319/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;but build failed with the following unrelated to OFED. It&apos;s interesting that with in-kernel ofed, it passed.&lt;/p&gt;

&lt;p&gt;In file included from include/trace/ftrace.h:440,&lt;br/&gt;
                 from include/trace/define_trace.h:73,&lt;br/&gt;
                 from /mnt/build/build/master-ofed/BUILD/BUILD/lustre-2.5.51/ldiskfs/trace/events/ldiskfs.h:904,&lt;br/&gt;
                 from /mnt/build/build/master-ofed/BUILD/BUILD/lustre-2.5.51/ldiskfs/super.c:56:&lt;br/&gt;
/mnt/build/build/master-ofed/BUILD/BUILD/lustre-2.5.51/ldiskfs/trace/events/ldiskfs.h: In function &apos;ftrace_profile_enable_ldiskfs_free_inode&apos;:&lt;br/&gt;
/mnt/build/build/master-ofed/BUILD/BUILD/lustre-2.5.51/ldiskfs/trace/events/ldiskfs.h:18: error: implicit declaration of function &apos;register_trace_ldiskfs_free_inode&apos;&lt;br/&gt;
/mnt/build/build/master-ofed/BUILD/BUILD/lustre-2.5.51/ldiskfs/trace/events/ldiskfs.h: In function &apos;ftrace_profile_disable_ldiskfs_free_inode&apos;:&lt;br/&gt;
/mnt/build/build/master-ofed/BUILD/BUILD/lustre-2.5.51/ldiskfs/trace/events/ldiskfs.h:18: error: implicit declaration of function &apos;unregister_trace_ldiskfs_free_inode&apos;&lt;br/&gt;
/mnt/build/build/master-ofed/BUILD/BUILD/lustre-2.5.51/ldiskfs/trace/events/ldiskfs.h: In function &apos;ftrace_profile_enable_ldiskfs_request_inode&apos;:&lt;br/&gt;
/mnt/build/build/master-ofed/BUILD/BUILD/lustre-2.5.51/ldiskfs/trace/events/ldiskfs.h:47: error: implicit declaration of function &apos;register_trace_ldiskfs_request_inode&apos;&lt;br/&gt;
/mnt/build/build/master-ofed/BUILD/BUILD/lustre-2.5.51/ldiskfs/trace/events/ldiskfs.h: In function &apos;ftrace_profile_disable_ldiskfs_request_inode&apos;:&lt;br/&gt;
/mnt/build/build/master-ofed/BUILD/BUILD/lustre-2.5.51/ldiskfs/trace/events/ldiskfs.h:47: error: implicit declaration of function &apos;unregister_trace_ldiskfs_request_inode&apos;&lt;br/&gt;
/mnt/build/build/master-ofed/BUILD/BUILD/lustre-2.5.51/ldiskfs/trace/events/ldiskfs.h: In function &apos;ftrace_profile_enable_ldiskfs_allocate_inode&apos;:&lt;br/&gt;
/mnt/build/build/master-ofed/BUILD/BUILD/lustre-2.5.51/ldiskfs/trace/events/ldiskfs.h:69: error: implicit declaration of function &apos;register_trace_ldiskfs_allocate_inode&apos;&lt;br/&gt;
/mnt/build/build/master-ofed/BUILD/BUILD/lustre-2.5.51/ldiskfs/trace/events/ldiskfs.h: In function &apos;ftrace_profile_disable_ldiskfs_allocate_inode&apos;:&lt;br/&gt;
/mnt/build/build/master-ofed/BUILD/BUILD/lustre-2.5.51/ldiskfs/trace/events/ldiskfs.h:69: error: implicit declaration of function &apos;unregister_trace_ldiskfs_allocate_inode&apos;&lt;br/&gt;
/mnt/build/build/master-ofed/BUILD/BUILD/lustre-2.5.51/ldiskfs/trace/events/ldiskfs.h: In function &apos;ftrace_profile_enable_ldiskfs_write_begin&apos;:&lt;br/&gt;
/mnt/build/build/master-ofed/BUILD/BUILD/lustre-2.5.51/ldiskfs/trace/events/ldiskfs.h:121: error: implicit declaration of function &apos;register_trace_ldiskfs_write_begin&apos;&lt;br/&gt;
....&lt;/p&gt;

&lt;p&gt;There was a mention about this failure in &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-3462&quot; title=&quot;Eliminate ldiskfs recursive &amp;amp; independent rpm packaging&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-3462&quot;&gt;&lt;del&gt;LU-3462&lt;/del&gt;&lt;/a&gt; but no further follow up&lt;/p&gt;</comment>
                            <comment id="72335" author="dmiter" created="Tue, 26 Nov 2013 20:25:14 +0000"  >&lt;p&gt;The patch &lt;a href=&quot;http://review.whamcloud.com/8404&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/8404&lt;/a&gt; should fix this issue.&lt;/p&gt;</comment>
                            <comment id="72357" author="mdiep" created="Tue, 26 Nov 2013 23:23:47 +0000"  >&lt;p&gt;the above patch did not solve the issue. there seems to be something else. investigating&lt;/p&gt;</comment>
                            <comment id="72365" author="ihara" created="Wed, 27 Nov 2013 03:13:26 +0000"  >&lt;p&gt;I fixed it with fixing OFED codes. This causes tracepoint evenets are backported in RHEL6&apos;s kernel below.&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;TRACE_EVENT and DEFINE_EVENT are defined in ofa_kernel/default/include/linux/tracepoint.h
#if (LINUX_VERSION_CODE &amp;lt;= KERNEL_VERSION(2,6,32))
/*
 * Disable all tracing for older kernels
 * &amp;lt; 2.6.27             had no tracing
 * 2.6.27               had broken tracing
 * 2.6.28-2.6.32        didn&apos;t have anything like DECLARE_EVENT_CLASS
 *                      and faking it would be extremely difficult
 */backported
#if (LINUX_VERSION_CODE &amp;gt;= KERNEL_VERSION(2,6,28))
/*
 * For 2.6.28+ include the original tracepoint.h but override
 * the defines new code uses to disable tracing completely.
 */
#include_next &amp;lt;linux/tracepoint.h&amp;gt;
#endif
#undef TRACE_EVENT
#define TRACE_EVENT(name, proto, ...) \
static inline void trace_ ## name(proto) {}
#undef DECLARE_EVENT_CLASS
#define DECLARE_EVENT_CLASS(...)
#undef DEFINE_EVENT
#define DEFINE_EVENT(evt_class, name, proto, ...) \
static inline void trace_ ## name(proto) {}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;We might need more proper fixes, but as a quick workaround is adding &quot;!defined(CONFIG_COMPAT_RHEL_6_4)&quot; to skip trace events for patched lustre kernel below. &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;--- ofa_kernel/default/include/linux/tracepoint.h.orig    2013-11-05 03:11:23.000000000 -0800
+++ ofa_kernel/default/include/linux/tracepoint.h    2013-11-05 03:13:08.000000000 -0800
@@ -3,7 +3,7 @@

 #include &amp;lt;linux/version.h&amp;gt;

-#if (LINUX_VERSION_CODE &amp;lt;= KERNEL_VERSION(2,6,32))
+#if (LINUX_VERSION_CODE &amp;lt;= KERNEL_VERSION(2,6,32) &amp;amp;&amp;amp; !defined(CONFIG_COMPAT_RHEL_6_4))
 /*
  * Disable all tracing for older kernels
  * &amp;lt; 2.6.27        had no tracing
@@ -35,6 +35,6 @@ static inline void trace_ ## name(proto)
 /* since 2.6.33, tracing hasn&apos;t changed, so just include the kernel&apos;s file */
 #include_next &amp;lt;linux/tracepoint.h&amp;gt;

-#endif /* (LINUX_VERSION_CODE &amp;lt;= KERNEL_VERSION(2,6,32)) */
+#endif /* (LINUX_VERSION_CODE &amp;lt;= KERNEL_VERSION(2,6,32) &amp;amp;&amp;amp; !defined(CONFIG_COMPAT_RHEL_6_4)) */

 #endif    /* _COMPAT_LINUX_TRACEPOINT_H */
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="72481" author="dmiter" created="Thu, 28 Nov 2013 15:47:10 +0000"  >&lt;p&gt;I can confirm with this patch I was able to compile OFED-3.5-1 and OFED-3.5-2-rc2. But we have an issue with specifying our patch for OFED in &quot;contrib/patches/ofed&quot;. The script &quot;01-remove-mlx4-erroneous-modprobe-config-&lt;a href=&quot;file:rhel6.ed&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;file:rhel6.ed&lt;/a&gt;&quot; is not applied to OFED spec and thanks this other patched will not be applied also.&lt;/p&gt;</comment>
                            <comment id="72482" author="ihara" created="Thu, 28 Nov 2013 15:51:51 +0000"  >&lt;p&gt;that&apos;s differnt problem. please use OFED-3.5.2-daily build. previous version doesn&apos;t work on RHEL6.4&lt;/p&gt;</comment>
                            <comment id="72551" author="mdiep" created="Sun, 1 Dec 2013 17:13:33 +0000"  >&lt;p&gt;Ihara, could you explain why OFED-3.5-1 doesn&apos;t work on RHEL6.4?&lt;/p&gt;

&lt;p&gt;I have a patch here that patch ofed and built OFED-3.5-1 successfully.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/#/c/8319/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/8319/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Ihara, Dmitry,&lt;/p&gt;

&lt;p&gt;please review the patch. I will do another around of clean up the comments and remove the hack to build OFED 3.5 (since our lab doesn&apos;t do that at the moment)&lt;/p&gt;</comment>
                            <comment id="72565" author="dmiter" created="Mon, 2 Dec 2013 10:35:47 +0000"  >&lt;p&gt;Actually I think we used wrong way to adopt OFED for our build. Why we use OFED headers for fdiskfs build? Probably we should use OFED headers only for sources that required them. Otherwise such backport issues will always affect us. Could we change build scripts to avoid using OFED headers for all sources?&lt;/p&gt;</comment>
                            <comment id="72571" author="dmiter" created="Mon, 2 Dec 2013 12:30:25 +0000"  >&lt;p&gt;Include any OFED backport headers in all compile commands was introduced in commit 70eca9ed3d7408bebeda59ad65ea4fc1ca9bf57b with following comment:&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;+# it&apos;s ugly to be doing anything with OFED outside of the lnet module, but
+# &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; has to be done here so that the backports path is set before all of
+# the LN_PROG_LINUX checks are done
+LB_CONFIG_OFED_BACKPORTS
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Does anybody knows why this done? Why we need backport headers in all compile commands?&lt;/p&gt;</comment>
                            <comment id="72641" author="dmiter" created="Mon, 2 Dec 2013 19:43:53 +0000"  >&lt;p&gt;Just removed OFED backport headers for all components except lnet and move all OFED related autoconf testing into lnet/autoconf in patch &lt;a href=&quot;http://review.whamcloud.com/8451&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/8451&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="72700" author="parinay" created="Tue, 3 Dec 2013 15:15:29 +0000"  >&lt;p&gt;Hello Dmitry,&lt;br/&gt;
I tested your patch &lt;a href=&quot;http://review.whamcloud.com/#/c/8451/1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/8451/1&lt;/a&gt; to build OFED-3.5-2-rc2 ( for another issue &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-3389&quot; title=&quot;Lustre b2_1 build failed on RHEL6.4 with OFA IB stack&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-3389&quot;&gt;&lt;del&gt;LU-3389&lt;/del&gt;&lt;/a&gt; reported by Wally ). The build completed successfully. I did remove the hard coded value of OFED_VERSION.&lt;br/&gt;
Let me know if I should be updating the logs for your reference.&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;</comment>
                            <comment id="72708" author="dmiter" created="Tue, 3 Dec 2013 16:57:58 +0000"  >&lt;p&gt;Thanks for testing. But it looks we have an issue with OFED-1.5.3.1:&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;/mnt/build/build/lu4266/BUILD/BUILD/lustre-2.5.52/lnet/klnds/o2iblnd/o2iblnd.c: In function &lt;span class=&quot;code-quote&quot;&gt;&apos;kiblnd_dev_need_failover&apos;&lt;/span&gt;:
/mnt/build/build/lu4266/BUILD/BUILD/lustre-2.5.52/lnet/klnds/o2iblnd/o2iblnd.c:2565: error: too few arguments to function &lt;span class=&quot;code-quote&quot;&gt;&apos;rdma_create_id&apos;&lt;/span&gt;
/mnt/build/build/lu4266/BUILD/BUILD/lustre-2.5.52/lnet/klnds/o2iblnd/o2iblnd.c: In function &lt;span class=&quot;code-quote&quot;&gt;&apos;kiblnd_dev_failover&apos;&lt;/span&gt;:
/mnt/build/build/lu4266/BUILD/BUILD/lustre-2.5.52/lnet/klnds/o2iblnd/o2iblnd.c:2639: error: too few arguments to function &lt;span class=&quot;code-quote&quot;&gt;&apos;rdma_create_id&apos;&lt;/span&gt;
make[7]: *** [/mnt/build/build/lu4266/BUILD/BUILD/lustre-2.5.52/lnet/klnds/o2iblnd/o2iblnd.o] Error 1
make[6]: *** [/mnt/build/build/lu4266/BUILD/BUILD/lustre-2.5.52/lnet/klnds/o2iblnd] Error 2
make[5]: *** [/mnt/build/build/lu4266/BUILD/BUILD/lustre-2.5.52/lnet/klnds] Error 2
make[4]: *** [/mnt/build/build/lu4266/BUILD/BUILD/lustre-2.5.52/lnet] Error 2
make[4]: *** Waiting &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; unfinished jobs....
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;I need to fix this.&lt;/p&gt;</comment>
                            <comment id="72737" author="dmiter" created="Tue, 3 Dec 2013 20:03:26 +0000"  >&lt;p&gt;The Patch Set 2 works for all OFED versions.&lt;/p&gt;</comment>
                            <comment id="73094" author="simmonsja" created="Mon, 9 Dec 2013 17:06:04 +0000"  >&lt;p&gt;Same here. Your patch address my issues as well. I have these same issues on the 2.5 branch as well so this will need to be backported.&lt;/p&gt;</comment>
                            <comment id="73840" author="spitzcor" created="Thu, 19 Dec 2013 14:05:02 +0000"  >&lt;p&gt;Yes, let&apos;s update the fix version to 2.5.1&lt;/p&gt;</comment>
                            <comment id="76180" author="simmonsja" created="Tue, 4 Feb 2014 15:41:35 +0000"  >&lt;p&gt;Patch for b2_5 is at &lt;a href=&quot;http://review.whamcloud.com/#/c/9109&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/9109&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10120">
                    <name>Blocker</name>
                                            <outwardlinks description="is blocking">
                                                        </outwardlinks>
                                                        </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|hzw9lz:</customfieldvalue>

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