<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:16:32 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-8322] Build issues with master (2.9), OFED 3.18-1, SLES 12</title>
                <link>https://jira.whamcloud.com/browse/LU-8322</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;I&apos;m unable to build today&apos;s master on SLES 12 against OFED 3.18.&lt;/p&gt;

&lt;p&gt;The compilation error:&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;# sh ./autogen.sh; ./configure --disable-server --enable-client --enable-dlc --disable-manpages --with-o2ib=yes; make -j 4
&amp;lt;snip&amp;gt;
In file included from /home/build/builds/lnet/klnds/o2iblnd/o2iblnd.c:42:0:
/home/build/builds/lnet/klnds/o2iblnd/o2iblnd.h:767:19: error: redefinition of &#8216;ib_inc_rkey&#8217;
 static inline u32 ib_inc_rkey(u32 rkey)
                   ^
In file included from /usr/src/compat-rdma/include/rdma/ib_addr.h:47:0,
                 from /usr/src/compat-rdma/include/rdma/rdma_cm.h:39,
                 from /home/build/builds/lnet/klnds/o2iblnd/o2iblnd.h:74,
                 from /home/build/builds/lnet/klnds/o2iblnd/o2iblnd.c:42:
/usr/src/compat-rdma/include/rdma/ib_verbs.h:2483:19: note: previous definition of &#8216;ib_inc_rkey&#8217; was here
 static inline u32 ib_inc_rkey(u32 rkey)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The config.log shows an error similar to &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7042&quot; title=&quot;config.h header conflict with OFED 3.18&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7042&quot;&gt;&lt;del&gt;LU-7042&lt;/del&gt;&lt;/a&gt; which was fixed for 2.8.&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;configure:16582: checking if function &apos;ib_inc_rkey&apos; is defined
configure:16618: cp conftest.c build &amp;amp;&amp;amp; make -d modules LD=/usr/x86_64-suse-linux/bin/ld -m elf_x86_64 CC=gcc -f /home/build/builds/build/Makefile LUSTRE_LINUX_CONFIG=/lib/modules/3.12.28-4-default/build/.config LINUXINCLUDE= -include /usr/src/openib/include/linux/compat-2.6.h -I/usr/src/compat-rdma/include -I/lib/modules/3.12.28-4-default/source/arch/x86/include -Iinclude -Iarch/x86/include/generated -I/lib/modules/3.12.28-4-default/source/include -Iinclude2 -I/lib/modules/3.12.28-4-default/source/include/uapi -Iinclude/generated -I/lib/modules/3.12.28-4-default/source/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/lib/modules/3.12.28-4-default/source/include/uapi -Iinclude/generated/uapi -include /lib/modules/3.12.28-4-default/source/include/linux/kconfig.h -o tmp_include_depends -o scripts -o include/config/MARKER -C /lib/modules/3.12.28-4-default/build EXTRA_CFLAGS=-Werror-implicit-function-declaration -Werror M=/home/build/builds/build
/home/build/builds/build/conftest.c:2:0: error: &quot;PACKAGE_NAME&quot; redefined [-Werror]
 #define PACKAGE_NAME &quot;Lustre&quot;
 ^
In file included from /usr/src/openib/include/linux/compat-2.6.h:7:0,
                 from &amp;lt;command-line&amp;gt;:0:
/usr/src/openib/include/linux/../../compat/config.h:398:0: note: this is the location of the previous definition
 #define PACKAGE_NAME &quot;compat_ofa&quot;
 ^
&amp;lt;etc&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I bisected this particular error to commit a0f7434 &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8241&quot; title=&quot;lustre builds with MOFED 3.3 fail&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8241&quot;&gt;&lt;del&gt;LU-8241&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;http://review.whamcloud.com/20644&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/20644&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If I undo that change I get another error:&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;iosr60-2:/home/build/builds # git diff a0f7434^..a0f7434 | patch -p1 -R
patching file config/lustre-build-linux.m4
patching file lnet/autoconf/lustre-lnet.m4
Hunk #1 succeeded at 253 (offset 7 lines).
Hunk #2 succeeded at 328 (offset 7 lines).
Hunk #3 succeeded at 337 (offset 7 lines).
Hunk #4 succeeded at 467 (offset 7 lines).
Hunk #5 succeeded at 656 (offset 7 lines).
iosr60-2:/home/build/builds # sh ./autogen.sh; ./configure --disable-server --enable-client --enable-dlc --disable-manpages --with-o2ib=yes; make -j 4
&amp;lt;snip&amp;gt;
/home/build/builds/lustre/llite/lloop.c: In function &#8216;loop_set_fd&#8217;:
/home/build/builds/lustre/llite/lloop.c:577:2: error: implicit declaration of function &#8216;blk_queue_max_phys_segments&#8217; [-Werror=implicit-function-declaration]
  blk_queue_max_segments(lo-&amp;gt;lo_queue, LLOOP_MAX_SEGMENTS);
  ^
/home/build/builds/lustre/llite/lloop.c:577:2: error: implicit declaration of function &#8216;blk_queue_max_hw_segments&#8217; [-Werror=implicit-function-declaration]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The config.log shows the error I noted in &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7527&quot; title=&quot;Configure errors with OFED 3.18-1, ZFS, and EL6.7 kernel &quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7527&quot;&gt;&lt;del&gt;LU-7527&lt;/del&gt;&lt;/a&gt;:&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;configure:18146: checking if &apos;blk_queue_max_segments&apos; is defined
configure:18173: cp conftest.c build &amp;amp;&amp;amp; make -d modules LD=/usr/x86_64-suse-linux/bin/ld -m elf_x86_64 CC=gcc -f /home/build/builds/build/Makefile LUSTRE_LINUX_CONFIG=/lib/modules/3.12.28-4-default/build/.config LINUXINCLUDE= -I/usr/src/compat-rdma/include -I/lib/modules/3.12.28-4-default/source/arch/x86/include -Iinclude -Iarch/x86/include/generated -I/lib/modules/3.12.28-4-default/source/include -Iinclude2 -I/lib/modules/3.12.28-4-default/source/include/uapi -Iinclude/generated -I/lib/modules/3.12.28-4-default/source/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/lib/modules/3.12.28-4-default/source/include/uapi -Iinclude/generated/uapi -include /lib/modules/3.12.28-4-default/source/include/linux/kconfig.h -o tmp_include_depends -o scripts -o include/config/MARKER -C /lib/modules/3.12.28-4-default/build EXTRA_CFLAGS=-Werror-implicit-function-declaration -g -I/home/build/builds/libcfs/include -I/home/build/builds/lnet/include -I/home/build/builds/lustre/include M=/home/build/builds/build
In file included from /lib/modules/3.12.28-4-default/source/include/linux/device.h:29:0,
                 from /lib/modules/3.12.28-4-default/source/include/linux/genhd.h:62,
                 from /lib/modules/3.12.28-4-default/source/include/linux/blkdev.h:9,
                 from /home/build/builds/build/conftest.c:58:
/usr/src/compat-rdma/include/linux/kthread.h:23:8: error: redefinition of &#8216;struct kthread_worker&#8217;
 struct kthread_worker {
        ^
In file included from /usr/src/compat-rdma/include/linux/kthread.h:16:0,
                 from /lib/modules/3.12.28-4-default/source/include/linux/device.h:29,
                 from /lib/modules/3.12.28-4-default/source/include/linux/genhd.h:62,
                 from /lib/modules/3.12.28-4-default/source/include/linux/blkdev.h:9,
                 from /home/build/builds/build/conftest.c:58:
/lib/modules/3.12.28-4-default/source/include/linux/kthread.h:66:8: note: originally defined here
 struct kthread_worker {
        ^
&amp;lt;etc&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;As noted in &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7527&quot; title=&quot;Configure errors with OFED 3.18-1, ZFS, and EL6.7 kernel &quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7527&quot;&gt;&lt;del&gt;LU-7527&lt;/del&gt;&lt;/a&gt; I can workaround this latter issue by adding the following to the autoconf tests that fail with the kthread_worker redefinition error:&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;+	#ifdef HAVE_COMPAT_RDMA
+	#undef PACKAGE_NAME
+	#undef PACKAGE_TARNAME
+	#undef PACKAGE_VERSION
+	#undef PACKAGE_STRING
+	#undef PACKAGE_BUGREPORT
+	#undef PACKAGE_URL
+	#include &amp;lt;linux/compat-2.6.h&amp;gt;
+	#endif
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="37789">LU-8322</key>
            <summary>Build issues with master (2.9), OFED 3.18-1, SLES 12</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="6" iconUrl="https://jira.whamcloud.com/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="3">Duplicate</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="hornc">Chris Horn</reporter>
                        <labels>
                    </labels>
                <created>Thu, 23 Jun 2016 20:17:47 +0000</created>
                <updated>Mon, 1 Aug 2016 21:31:50 +0000</updated>
                            <resolved>Mon, 1 Aug 2016 21:31:50 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="158059" author="hornc" created="Thu, 7 Jul 2016 22:45:28 +0000"  >&lt;p&gt;Okay, so about the PACKAGE_* redefines:&lt;/p&gt;

&lt;p&gt;It looks to be the same issue as &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7042&quot; title=&quot;config.h header conflict with OFED 3.18&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7042&quot;&gt;&lt;del&gt;LU-7042&lt;/del&gt;&lt;/a&gt;. A lot of the OFED configure checks would be failing with this warning, except not all of them compile with &amp;#45;Werror (LN_CONFIG_IB_INC_RKEY is one that does have &amp;#45;Werror).&lt;/p&gt;</comment>
                            <comment id="158066" author="simmonsja" created="Thu, 7 Jul 2016 23:17:47 +0000"  >&lt;p&gt;Does this mean removing &quot;EXTRA_KCFLAGS=&quot;-Werror&quot;&quot; from the LN_CONFIG_IB_INC_RKEY fixed your build issue?&lt;/p&gt;</comment>
                            <comment id="158146" author="hornc" created="Fri, 8 Jul 2016 17:27:09 +0000"  >&lt;p&gt;Yes, removing that line fixes this particular issue.&lt;/p&gt;</comment>
                            <comment id="158147" author="hornc" created="Fri, 8 Jul 2016 17:32:11 +0000"  >&lt;p&gt;The &quot;undef.h&quot; header gets created later in the configure process and is included at the command line when we actually compile the modules. Can it be created sooner in the configure process so that it can be included at the command line when performing the compile tests? I do not know much about proper use of GNU autotools, so maybe there is a better solution here.&lt;/p&gt;</comment>
                            <comment id="160483" author="hornc" created="Mon, 1 Aug 2016 21:31:50 +0000"  >&lt;p&gt;The patch from &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8401&quot; title=&quot;modprobe: ERROR: could not insert &amp;#39;lnet&amp;#39;: Unknown symbol in module&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8401&quot;&gt;&lt;del&gt;LU-8401&lt;/del&gt;&lt;/a&gt; resolves this issue, so I&apos;m resolving this ticket as a duplicate.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="38182">LU-8401</issuekey>
        </issuelink>
                            </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|hzyfm7:</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>