<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:17:31 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-1537] posix-types.h redefines __s64 and __u64 in an incompatible way on powerpc</title>
                <link>https://jira.whamcloud.com/browse/LU-1537</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;The linux kernel defines 64bit user space values as l64 on powerpc machines. Unfortunately this is incompatible with the way Lustre assumes 64bit values are ll64 in user space.&lt;/p&gt;

&lt;p&gt;The relevant code from the kernel headers (arch/powerpc/include/asm/types.h):&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;#if defined(__powerpc64__) &amp;amp;&amp;amp; !defined(__KERNEL__)
# include &amp;lt;asm-generic/int-l64.h&amp;gt;
#else
# include &amp;lt;asm-generic/int-ll64.h&amp;gt;
#endif
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The relevant code from the Lustre headers (libcfs/include/libcfs/posix/posix-types.h):&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;#ifndef HAVE___S64
typedef __signed__ long long __s64;
#endif
#ifndef HAVE___U64
typedef unsigned long long __u64;
#endif
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This incompatibility is causing the following program to fail compilation:&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;$ cat main.c 
#include &amp;lt;sys/types.h&amp;gt;
#include &amp;lt;sys/stat.h&amp;gt;
#include &amp;lt;fcntl.h&amp;gt;
#include &amp;lt;lustre/liblustreapi.h&amp;gt;
#include &amp;lt;lustre/lustre_user.h&amp;gt;

int
main ( )
{
 (void) llapi_file_open(&quot;filename&quot;,O_CREAT|O_WRONLY,0666,1048576ll,-1,10,0);
}

$ make main
cc     main.c   -o main
In file included from /usr/include/lustre/lustre_user.h:50,
                 from /usr/include/lustre/liblustreapi.h:48,
                 from main.c:6:
/usr/include/libcfs/posix/posix-types.h:79: error: conflicting types for &apos;__s64&apos;
/usr/include/asm-generic/int-l64.h:28: note: previous declaration of &apos;__s64&apos; was here
/usr/include/libcfs/posix/posix-types.h:82: error: conflicting types for &apos;__u64&apos;
/usr/include/asm-generic/int-l64.h:29: note: previous declaration of &apos;__u64&apos; was here
make: *** [main] Error 1
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="14961">LU-1537</key>
            <summary>posix-types.h redefines __s64 and __u64 in an incompatible way on powerpc</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="green">Oleg Drokin</assignee>
                                    <reporter username="prakash">Prakash Surya</reporter>
                        <labels>
                    </labels>
                <created>Mon, 18 Jun 2012 14:28:26 +0000</created>
                <updated>Thu, 18 Apr 2013 22:07:58 +0000</updated>
                            <resolved>Thu, 18 Apr 2013 22:07:58 +0000</resolved>
                                                    <fixVersion>Lustre 2.4.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="40773" author="prakash" created="Mon, 18 Jun 2012 14:37:08 +0000"  >&lt;p&gt;See: &lt;a href=&quot;http://review.whamcloud.com/3127&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/3127&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="40787" author="pjones" created="Mon, 18 Jun 2012 17:24:11 +0000"  >&lt;p&gt;Oleg was looking at this area recently&lt;/p&gt;</comment>
                            <comment id="56564" author="jlevi" created="Thu, 18 Apr 2013 18:41:33 +0000"  >&lt;p&gt;can this ticket be closed since Change, 3127 landed?&lt;/p&gt;</comment>
                            <comment id="56576" author="prakash" created="Thu, 18 Apr 2013 20:29:52 +0000"  >&lt;p&gt;Yes, this can be closed.&lt;/p&gt;</comment>
                            <comment id="56585" author="jlevi" created="Thu, 18 Apr 2013 22:07:58 +0000"  >&lt;p&gt;Landed to master.&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|hzv5f3:</customfieldvalue>

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