<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hello lttng-dev,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">When cross compiling lttng-tools-2.1.1 for PowerPC-32 bit, I am running into few issues. Could you please let me know what is wrong here.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">First, there was a problem using EPOLL feature.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:.5in">$ CFLAGS="-m32 -g -O2" ./configure --prefix=/home/xxx/linux-3.4.3/ --host=powerpc-linux<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">$ make<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span style="font-family:"Courier New"">make[3]: Entering directory `/home/xxx/lttng2.1/lttng-tools-2.1.1/src/common/compat'<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:1.0in"><span style="font-family:"Courier New"">  CC     compat-epoll.lo<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:1.0in"><span style="font-family:"Courier New"">In file included from compat-epoll.c:31:<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:1.0in"><span style="font-family:"Courier New"">poll.h:76: error: 'EPOLL_CLOEXEC' undeclared here (not in a function)<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">To go past this problem, I have chosen not to use EPOLL through ax_have_epoll_cppflags flag<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:.5in">$ export ax_have_epoll_cppflags=no<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">$ CFLAGS="-m32 -g -O2" ./configure --prefix=/home/xxx/linux-3.4.3/ --host=powerpc-linux<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">$ make<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:1.0in"><span style="font-family:"Courier New"">YACC   filter-parser.c<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:1.0in"><span style="font-family:"Courier New"">/home/xxx/lttng2.1/lttng-tools-2.1.1/src/lib/lttng-ctl/filter/filter-parser.y:299.9-16: syntax error, unexpected identifier, expecting string<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:1.0in"><span style="font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal">This time parser appears have some kind of issue. Also, there are few warnings as shown below that indicates to me that configure is not done in the correct way.<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-family:"Courier New"">consumer.c: In function 'write_relayd_stream_header':<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-family:"Courier New"">consumer.c:749: warning: implicit declaration of function 'htobe64'<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-family:"Courier New"">consumer.c:750: warning: implicit declaration of function 'htobe32'<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Could you please let me know what could be wrong here. Your help is appreciated. Except of lttng-tools, all other components have be successfully build and installed.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Regards,<o:p></o:p></p>
<p class="MsoNormal">Hari<o:p></o:p></p>
</div>
</body>
</html>