<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:29:47 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-9844] building lustre utils lsnapshot.c fails for arch ppc64le</title>
                <link>https://jira.whamcloud.com/browse/LU-9844</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Attempted to build lustre client from tarball using following config option:&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 --disable-server --with-o2ib=/usr/src/ofa_kernel/default --disable-tests

## --------- ##
## Platform. ##
## --------- ##

hostname = p8eval.cluster
uname -m = ppc64le
uname -r = 3.10.0-514.el7.ppc64le
uname -s = Linux
uname -v = #1 SMP Sat Nov 5 15:08:14 GMT 2016
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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;## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME &quot;Lustre&quot;
#define PACKAGE_TARNAME &quot;lustre&quot;
#define PACKAGE_VERSION &quot;LUSTRE_VERSION.DDN_LUSTRE_VERSION.DDN_BUILD_TAG&quot;
#define PACKAGE_STRING &quot;Lustre LUSTRE_VERSION.DDN_LUSTRE_VERSION.DDN_BUILD_TAG&quot;
#define PACKAGE_BUGREPORT &quot;https://jira.hpdd.intel.com/&quot;
#define PACKAGE_URL &quot;&quot;
#define PACKAGE &quot;lustre&quot;
#define VERSION &quot;2.9.0-1&quot;
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_DLFCN_H 1
#define LT_OBJDIR &quot;.libs/&quot;
#define SIZEOF_UNSIGNED_LONG_LONG 8
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Upon running &quot;make&quot;, we received following error when building utils:&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;Making all in utils
lsnapshot.c: In function &apos;__snapshot_create&apos;:
lsnapshot.c:1111:12: error: format &apos;%llu&apos; expects argument of type &apos;long long unsigned int&apos;, but argument 8 has type &apos;__u64&apos; [-Werror=format=] 
SNAPSHOT_MAGIC, xtime, xtime);
^
lsnapshot.c:1111:12: error: format &apos;%llu&apos; expects argument of type &apos;long long unsigned int&apos;, but argument 9 has type &apos;__u64&apos; [-Werror=format=]
lsnapshot.c:1111:12: error: format &apos;%llu&apos; expects argument of type &apos;long long unsigned int&apos;, but argument 8 has type &apos;__u64&apos; [-Werror=format=]
lsnapshot.c:1111:12: error: format &apos;%llu&apos; expects argument of type &apos;long long unsigned int&apos;, but argument 9 has type &apos;__u64&apos; [-Werror=format=]
lsnapshot.c: In function &apos;__snapshot_modify&apos;:
lsnapshot.c:1609:7: error: format &apos;%llu&apos; expects argument of type &apos;long long unsigned int&apos;, but argument 18 has type &apos;__u64&apos; [-Werror=format=] 
si-&amp;gt;si_new_ssname);
^
lsnapshot.c:1609:7: error: format &apos;%llu&apos; expects argument of type &apos;long long unsigned int&apos;, but argument 18 has type &apos;__u64&apos; [-Werror=format=]
lsnapshot.c:1623:7: error: format &apos;%llu&apos; expects argument of type &apos;long long unsigned int&apos;, but argument 14 has type &apos;__u64&apos; [-Werror=format=]
st-&amp;gt;st_filesystem, si-&amp;gt;si_new_ssname);
^
lsnapshot.c:1623:7: error: format &apos;%llu&apos; expects argument of type &apos;long long unsigned int&apos;, but argument 14 has type &apos;__u64&apos; [-Werror=format=]
lsnapshot.c:1636:7: error: format &apos;%llu&apos; expects argument of type &apos;long long unsigned int&apos;, but argument 12 has type &apos;__u64&apos; [-Werror=format=]
st-&amp;gt;st_filesystem, si-&amp;gt;si_ssname);
^
lsnapshot.c:1636:7: error: format &apos;%llu&apos; expects argument of type &apos;long long unsigned int&apos;, but argument 12 has type &apos;__u64&apos; [-Werror=format=]
lsnapshot.c: In function &apos;snapshot_list_one&apos;:
lsnapshot.c:1800:4: error: format &apos;%llu&apos; expects argument of type &apos;long long unsigned int *&apos;, but argument 3 has type &apos;__u64 *&apos; [-Werror=format=]
sscanf(ptr + 1, &quot;%llu&quot;, &amp;amp;xtime);
^
lsnapshot.c:1810:4: error: format &apos;%llu&apos; expects argument of type &apos;long long unsigned int *&apos;, but argument 3 has type &apos;__u64 *&apos; [-Werror=format=]
sscanf(ptr + 1, &quot;%llu&quot;, &amp;amp;xtime);
^
cc1: all warnings being treated as errors
make[5]: *** [lsnapshot.o] Error 1
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>Lustre-2.9&lt;br/&gt;
RHEL 7.3&lt;br/&gt;
Mellanox OFED 3.4.2&lt;br/&gt;
POWER8 Architecture (ppc64le)&lt;br/&gt;
</environment>
        <key id="47699">LU-9844</key>
            <summary>building lustre utils lsnapshot.c fails for arch ppc64le</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="pjones">Peter Jones</assignee>
                                    <reporter username="chunteraa">Chris Hunter</reporter>
                        <labels>
                            <label>lnsnapshot</label>
                            <label>utils</label>
                    </labels>
                <created>Tue, 8 Aug 2017 14:14:52 +0000</created>
                <updated>Tue, 6 Feb 2018 06:44:45 +0000</updated>
                            <resolved>Tue, 6 Feb 2018 06:44:45 +0000</resolved>
                                                    <fixVersion>Lustre 2.10.4</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="204766" author="chunteraa" created="Tue, 8 Aug 2017 14:15:49 +0000"  >&lt;p&gt;Comments from our team:&lt;/p&gt;

&lt;p&gt;&lt;font color=&quot;#737373&quot;&gt;there are what appear to be time calculations which expect a __U64 format but are done with a variable %llu which has a different format.&lt;/font&gt;&lt;br/&gt;
&lt;font color=&quot;#737373&quot;&gt;&amp;gt; (See attached file: lsnapshot.c)&lt;/font&gt;&lt;br/&gt;
&lt;font color=&quot;#737373&quot;&gt;&amp;gt; For example:&lt;/font&gt;&lt;br/&gt;
&lt;font color=&quot;#737373&quot;&gt;&amp;gt; static int __snapshot_create(struct snapshot_instance *si,&lt;/font&gt;&lt;br/&gt;
&lt;font color=&quot;#737373&quot;&gt;&amp;gt; struct list_head *head, const char *fsname,&lt;/font&gt;&lt;br/&gt;
&lt;font color=&quot;#737373&quot;&gt;&amp;gt; const char *mgsnode, __u64 xtime)&lt;/font&gt;&lt;br/&gt;
&lt;font color=&quot;#737373&quot;&gt;&amp;gt; A few statements later:&lt;/font&gt;&lt;br/&gt;
&lt;font color=&quot;#737373&quot;&gt;&amp;gt; len = snprintf(cmd, sizeof(cmd) - 1,&lt;/font&gt;&lt;br/&gt;
&lt;font color=&quot;#737373&quot;&gt;&amp;gt; &quot;%s %s &apos;zfs snapshot &quot;&lt;/font&gt;&lt;br/&gt;
&lt;font color=&quot;#737373&quot;&gt;&amp;gt; &quot;-o lustre:fsname=%s &quot;&lt;/font&gt;&lt;br/&gt;
&lt;font color=&quot;#737373&quot;&gt;&amp;gt; &quot;-o lustre:magic=%s &quot;&lt;/font&gt;&lt;br/&gt;
&lt;font color=&quot;#737373&quot;&gt;&amp;gt; &quot;-o lustre:ctime=%llu &quot;&lt;/font&gt;&lt;br/&gt;
&lt;font color=&quot;#737373&quot;&gt;&amp;gt; &quot;-o lustre:mtime=%llu &quot;,&lt;/font&gt;&lt;br/&gt;
&lt;font color=&quot;#737373&quot;&gt;&amp;gt; si-&amp;gt;si_rsh, st-&amp;gt;st_host, fsname,&lt;/font&gt;&lt;br/&gt;
&lt;font color=&quot;#737373&quot;&gt;&amp;gt; SNAPSHOT_MAGIC, xtime, xtime);&lt;/font&gt;&lt;br/&gt;
&lt;font color=&quot;#737373&quot;&gt;&amp;gt; &quot;&quot;&quot;&lt;/font&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="204886" author="pjones" created="Wed, 9 Aug 2017 13:29:15 +0000"  >&lt;p&gt;Chris&lt;/p&gt;

&lt;p&gt;Why are you using 2.9? Does the same error occur using 2.10?&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="204887" author="chunteraa" created="Wed, 9 Aug 2017 13:41:43 +0000"  >&lt;p&gt;Hi Peter,&lt;/p&gt;

&lt;p&gt;I think server vendor or ISV recommended lustre 2.9 prior to myh involvement.&lt;/p&gt;

&lt;p&gt;They plan to try 2.10 community build; will update ticket with results.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="204900" author="simmonsja" created="Wed, 9 Aug 2017 15:21:01 +0000"  >&lt;p&gt;Hi guys. I just started to try lustre 2.10.0 on our Power8 systems as well. I don&apos;t see the lsnapshot.c issues but I do see a rpm build problem. It appears that the autoconf tools like to set my library directory to /usr/lib64 and the system rpm macros set %{_libdir} to /usr/lib so it fails. I working on a fix right now.&lt;/p&gt;</comment>
                            <comment id="220014" author="simmonsja" created="Mon, 5 Feb 2018 19:47:40 +0000"  >&lt;p&gt;This is no longer a problem. Chris Hunter can you confirm&lt;/p&gt;</comment>
                            <comment id="220080" author="chunteraa" created="Tue, 6 Feb 2018 04:59:20 +0000"  >&lt;p&gt;Yes we can now build ppc64le client.&lt;/p&gt;

&lt;p&gt;We did run into an unrelated bug due missing &quot;crtsaves.o&quot;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://bugzilla.kernel.org/show_bug.cgi?id=11143&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://bugzilla.kernel.org/show_bug.cgi?id=11143&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/torvalds/linux/commit/7fca5dc8aa7aaa6a1023bd3587901b88ebfe8154#diff-ff7999e4c0518e8123094a4ae5be7f09&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/torvalds/linux/commit/7fca5dc8aa7aaa6a1023bd3587901b88ebfe8154#diff-ff7999e4c0518e8123094a4ae5be7f09&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;FWIW now waiting on &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10157&quot; title=&quot;LNET_MAX_IOV hard coded to 256&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10157&quot;&gt;&lt;del&gt;LU-10157&lt;/del&gt;&lt;/a&gt; to allow larger RPC size.&lt;/p&gt;</comment>
                            <comment id="220104" author="simmonsja" created="Tue, 6 Feb 2018 06:44:45 +0000"  >&lt;p&gt;I will close the ticket tin that case.&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|hzzi1r:</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>