<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:05:18 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-7019] Lustre client build fails when ./configure called with --with-o2ib=no </title>
                <link>https://jira.whamcloud.com/browse/LU-7019</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Until Lustre 2.8 stable is ready, I&apos;ve been trying to get the current Git pull to build the client on my Ubuntu machines currently running 3.4.61 every few weeks and there has been a persistent error that causes the build to fail. I&apos;ve used the same Git pull, or earlier versions of same, to successfully build the server on CentOS 7, but I&apos;m having trouble just getting the client portion built on Ubuntu.&lt;/p&gt;

&lt;p&gt;For the client, I&apos;m attempting to build Lustre on the same machine on which I built the Linux 3.4.61 kernel all the Ubuntu machines here are running, so all kernel source, intermediate object, headers, etc. should be available.&lt;/p&gt;

&lt;p&gt;The process I&apos;m following is very simple, following something outlined in the old bug report &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-1706&quot; title=&quot;Building debian modules for Lustre 2.1.x fails on Ubuntu 10.04.1 LTS&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-1706&quot;&gt;&lt;del&gt;LU-1706&lt;/del&gt;&lt;/a&gt; where someone else was trying to make Debian packages of the client:&lt;/p&gt;

&lt;p&gt;git clone git://git.hpdd.intel.com/fs/lustre-release.git&lt;br/&gt;
cd lustre-release&lt;br/&gt;
sh autogen.sh&lt;br/&gt;
./configure --disable-server --with-o2ib=no  --with-linux=/usr/src/linux --with-linux-obj=/usr/src/linux&lt;br/&gt;
make debs&lt;/p&gt;

&lt;p&gt;We don&apos;t use Infiniband here; it&apos;s all 10 Gigabit Ethernet, so we don&apos;t have an Infiniband stack installed; we don&apos;t need one and certainly don&apos;t want one!&lt;/p&gt;

&lt;p&gt;On CentOS 7 where the server built successfully, we never (knowingly) installed any Infiniband-related packages. I suspect this issue only arises when attempting to build the client portion, or it&apos;s in &quot;make debs&quot;.&lt;/p&gt;

&lt;p&gt;The build process will attempt to roll along and seems to successfully build userland and some other *.deb packages but I never get a kernel module out for the client. The build fails with the error:&lt;/p&gt;

&lt;p&gt;configure: error: bad --with-o2ib path&lt;/p&gt;

&lt;p&gt;This seems to correspond to, a little earlier up in the build process:&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;Doesn&apos;t seem possible to only build modules...&lt;br/&gt;
./configure --with-linux=/usr/src/linux-3.4.61 \&lt;br/&gt;
		    --with-linux-obj=/usr/src/linux-3.4.61 \&lt;br/&gt;
	            --disable-server \&lt;br/&gt;
		    --disable-quilt  \&lt;br/&gt;
		    --disable-dependency-tracking \&lt;br/&gt;
		    --disable-doc  \&lt;br/&gt;
		    --disable-utils \&lt;br/&gt;
		    --disable-iokit \&lt;br/&gt;
		    --disable-snmp \&lt;br/&gt;
		    --disable-tests \&lt;br/&gt;
		    --enable-quota \&lt;br/&gt;
		    --with-o2ib=&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;I&apos;ve actually gone and edited that Makefile and even if I completely remove the &quot;--with-o2ib&quot; flag, it still fails to compile; I believe it hangs up on a similar error elsewhere.&lt;/p&gt;

&lt;p&gt;I&apos;ve tried the hpdd-discuss list and it doesn&apos;t seem like the problem has been noticed or fixed by happenstance (I&apos;ve been trying a different Git pull every few weeks for the last month or two) so I&apos;m hoping a bug report might help.&lt;/p&gt;

&lt;p&gt;I&apos;ve attached the full buildlog from the attempt for review. Just let me know if there&apos;s any further information I can provide, or anything else I can try; I&apos;d be happy to give it a try and report back. Thanks.&lt;/p&gt;</description>
                <environment>Ubuntu 12.04 LTS with Linux 3.4.61 (+MOSIX); gcc 4.8.1-2ubuntu1~12.04</environment>
        <key id="31522">LU-7019</key>
            <summary>Lustre client build fails when ./configure called with --with-o2ib=no </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="dmiter">Dmitry Eremin</assignee>
                                    <reporter username="scaron">Sean Caron</reporter>
                        <labels>
                    </labels>
                <created>Tue, 18 Aug 2015 18:23:09 +0000</created>
                <updated>Wed, 13 Jan 2016 17:56:22 +0000</updated>
                            <resolved>Wed, 13 Jan 2016 17:56:22 +0000</resolved>
                                    <version>Lustre 2.8.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="124500" author="simmonsja" created="Tue, 18 Aug 2015 18:26:44 +0000"  >&lt;p&gt;Can you build lustre itself? I mean just sh ./autogen.sh;./configure --......;make. I like to see if it is a packaging issue or a actually autoconf script issue.&lt;/p&gt;</comment>
                            <comment id="124502" author="dmiter" created="Tue, 18 Aug 2015 18:38:29 +0000"  >&lt;p&gt;James, this is an issue in Lustre build scripts for Debian like distributive. We need to check for &quot;no&quot; instead of &quot;&quot;.&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;[ &lt;span class=&quot;code-quote&quot;&gt;&quot;x@ENABLEO2IB@&quot;&lt;/span&gt; != &lt;span class=&quot;code-quote&quot;&gt;&quot;x&quot;&lt;/span&gt; ] &amp;amp;&amp;amp; \
        export IB_OPTIONS=&lt;span class=&quot;code-quote&quot;&gt;&quot;--with-o2ib=@O2IBPATHS@&quot;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Recently we change this to:&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;&lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; $with_o2ib in
        yes)    AS_IF([which ofed_info 2&amp;gt;/dev/&lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;], [
[...skip...]
                ENABLEO2IB=&lt;span class=&quot;code-quote&quot;&gt;&quot;yes&quot;&lt;/span&gt;
                ;;
        no)     ENABLEO2IB=&lt;span class=&quot;code-quote&quot;&gt;&quot;no&quot;&lt;/span&gt;
                ;;
        *)      O2IBPATHS=$with_o2ib
                ENABLEO2IB=&lt;span class=&quot;code-quote&quot;&gt;&quot;withpath&quot;&lt;/span&gt;
                OFED=&lt;span class=&quot;code-quote&quot;&gt;&quot;yes&quot;&lt;/span&gt;
                ;;
esac
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="124505" author="scaron" created="Tue, 18 Aug 2015 18:42:37 +0000"  >&lt;p&gt;It looks like it&apos;s definitely an issue with &quot;make debs&quot;; if I run the process with just a make:&lt;/p&gt;

&lt;p&gt;git clone git://git.hpdd.intel.com/fs/lustre-release.git&lt;br/&gt;
cd lustre-release&lt;br/&gt;
sh autogen.sh&lt;br/&gt;
./configure --disable-server --with-o2ib=no --with-linux=/usr/src/linux --with-linux-obj=/usr/src/linux&lt;br/&gt;
make&lt;/p&gt;

&lt;p&gt;The build seems to complete successfully; exit code is 0; I seem to get a number of modules successfully built:&lt;/p&gt;

&lt;p&gt;root@buildhost:/usr/src/lustre-release# find ./ -name &quot;*.ko&quot;&lt;br/&gt;
./lnet/klnds/socklnd/ksocklnd.ko&lt;br/&gt;
./lnet/lnet/lnet.ko&lt;br/&gt;
./lnet/selftest/lnet_selftest.ko&lt;br/&gt;
./lustre/obdclass/llog_test.ko&lt;br/&gt;
./lustre/obdclass/obdclass.ko&lt;br/&gt;
./lustre/lov/lov.ko&lt;br/&gt;
./lustre/mdc/mdc.ko&lt;br/&gt;
./lustre/lmv/lmv.ko&lt;br/&gt;
./lustre/ptlrpc/gss/ptlrpc_gss.ko&lt;br/&gt;
./lustre/ptlrpc/ptlrpc.ko&lt;br/&gt;
./lustre/osc/osc.ko&lt;br/&gt;
./lustre/llite/llite_lloop.ko&lt;br/&gt;
./lustre/llite/lustre.ko&lt;br/&gt;
./lustre/mgc/mgc.ko&lt;br/&gt;
./lustre/fid/fid.ko&lt;br/&gt;
./lustre/fld/fld.ko&lt;br/&gt;
./lustre/obdecho/obdecho.ko&lt;br/&gt;
./libcfs/libcfs/libcfs.ko&lt;br/&gt;
root@buildhost:/usr/src/lustre-release# &lt;/p&gt;

&lt;p&gt;But if I go then and do &quot;make debs&quot;, it fails out with the same error ... seems to be attempting to be doing a lot of building just to stuff some Debian packages. I noticed this early in the &quot;make debs&quot; process:&lt;/p&gt;

&lt;p&gt;dpkg-source: warning: source directory &apos;lustre-release&apos; is not &amp;lt;sourcepackage&amp;gt;-&amp;lt;upstreamversion&amp;gt; &apos;lustre-2.7.58&apos;&lt;br/&gt;
dpkg-source: info: building lustre in lustre_2.7.58-1.tar.gz&lt;br/&gt;
dpkg-source: info: building lustre in lustre_2.7.58-1.dsc&lt;/p&gt;

&lt;p&gt;Is this Git pull really version 2.7.58-1? Or is the &quot;make debs&quot; process going out and pulling a completely different copy of the Lustre source to attempt to build ...?&lt;/p&gt;

&lt;p&gt;Thanks for picking up the ticket and your help so far. &lt;/p&gt;</comment>
                            <comment id="126140" author="dmiter" created="Thu, 3 Sep 2015 08:23:06 +0000"  >&lt;p&gt;Patch &lt;a href=&quot;http://review.whamcloud.com/16183&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/16183&lt;/a&gt; will fix this.&lt;/p&gt;</comment>
                            <comment id="138837" author="simmonsja" created="Wed, 13 Jan 2016 17:56:22 +0000"  >&lt;p&gt;Patch for &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7090&quot; title=&quot;fix serval IB paths assignment for configure&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7090&quot;&gt;&lt;del&gt;LU-7090&lt;/del&gt;&lt;/a&gt; resolved this&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="31864">LU-7090</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="18631" name="lustre.buildlog.3.4.61.1439919886" size="9862" author="scaron" created="Tue, 18 Aug 2015 18:23:09 +0000"/>
                    </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|hzxkqf:</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>