<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-2">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7650.28">
<TITLE>RE: AIX 4.x and 5.x compilation</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial CE">Thanks for quick reply,</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial CE">I have tried gcc already, it compiles gmp but 3 tests crashed (core dump). Still I have to stay with xlC compiler, </FONT>
<BR><FONT SIZE=2 FACE="Arial CE">I will try to take a look at gmpxx.h and reorganize it so xlC could compile it. What I would like to do is to compile the</FONT></P>
<P><FONT SIZE=2 FACE="Arial CE">same code (with respect to config.h and other files depending on the system) at Windows and Aix. I hope there is easy way</FONT></P>
<P><FONT SIZE=2 FACE="Arial CE">through those templates :)</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial CE">Regards</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial CE"> Leszek</FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Arial CE">--------------------------<SPAN LANG="en-us"></SPAN></FONT><SPAN LANG="en-us"></SPAN>
</P>
<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial"><Leszek.Wlodarski@partners.brebank.pl> writes:</FONT></SPAN>
</P>
<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial"> It seems to me that this is a problem with compiler. I am</FONT></SPAN>
<BR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial"> little bit afraid of switching those unary ... tests off, Is</FONT></SPAN>
<BR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial"> there any fast solution/patch for these problems ?</FONT></SPAN>
<BR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial"> </FONT></SPAN>
<BR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">Use gcc, but beware of that most gcc releases will miscompile gmp, so you will very likely need to try several gcc versions.</FONT></SPAN></P>
<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">-- </FONT></SPAN>
<BR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">Torbjörn</FONT></SPAN>
</P>
<BR>
<BR>
<UL>
<P><SPAN LANG="pl"><FONT FACE="Arial CE"></FONT> <FONT SIZE=1 FACE="Tahoma">-----Original Message-----</FONT></SPAN>
<BR><SPAN LANG="pl"><B><FONT SIZE=1 FACE="Tahoma">From: </FONT></B> <FONT SIZE=1 FACE="Tahoma">W³odarski, Leszek, (BRE/GLOBUS) </FONT></SPAN>
<BR><SPAN LANG="pl"><B><FONT SIZE=1 FACE="Tahoma">Sent: </FONT></B> <FONT SIZE=1 FACE="Tahoma">Tuesday, August 22, 2006 11:16 AM</FONT></SPAN>
<BR><SPAN LANG="pl"><B><FONT SIZE=1 FACE="Tahoma">To: </FONT></B> <FONT SIZE=1 FACE="Tahoma">'gmp-bugs@swox.com'</FONT></SPAN>
<BR><SPAN LANG="pl"><B><FONT SIZE=1 FACE="Tahoma">Subject: </FONT></B> <FONT SIZE=1 FACE="Tahoma">AIX 4.x and 5.x compilation</FONT></SPAN>
</P>
<P><SPAN LANG="pl"><FONT SIZE=2 FACE="Arial CE">Hi,</FONT></SPAN>
</P>
<P><SPAN LANG="pl"><FONT SIZE=2 FACE="Arial CE">I'm trying to compile gmp under AIX and I have some problems. Compilation of gmp (simple make) causes no problems, running make check also goes smooth, but only with disabled C++. After enabling C++, --enable-cxx) make check failes. I'm using xlC compiler (IBM VisualAgeC). I got message:</FONT></SPAN></P>
<P><SPAN LANG="pl"><FONT SIZE=2 FACE="Arial CE">"../../../gmp-4.2.1/gmpxx.h", line 1918.3: 1540-1202 (I) No candidate is better than "__gmp_expr<__m</FONT></SPAN>
<BR><SPAN LANG="pl"><FONT SIZE=2 FACE="Arial CE">pf_struct [1],__mpf_struct [1]>::__gmp_expr<__mpf_struct [1],__mpf_struct [1]>(const __gmp_expr<__mp</FONT></SPAN>
<BR><SPAN LANG="pl"><FONT SIZE=2 FACE="Arial CE">f_struct [1],__mpf_struct [1]> &)".</FONT></SPAN>
<BR><SPAN LANG="pl"><FONT SIZE=2 FACE="Arial CE">"../../../gmp-4.2.1/gmpxx.h", line 3645.1: 1540-1231 (I) The conversion from argument number 1 to "c</FONT></SPAN>
<BR><SPAN LANG="pl"><FONT SIZE=2 FACE="Arial CE">onst __gmp_expr<__mpf_struct [1],__mpf_struct [1]> &" uses "the identity conversion".</FONT></SPAN>
<BR><SPAN LANG="pl"><FONT SIZE=2 FACE="Arial CE">"../../../gmp-4.2.1/gmpxx.h", line 2196.7: 1540-0217 (S) "eval" is not a member of "class __gmp_expr</FONT></SPAN>
<BR><SPAN LANG="pl"><FONT SIZE=2 FACE="Arial CE"><__mpq_struct [1],__mpq_struct [1]>".</FONT></SPAN>
<BR><SPAN LANG="pl"><FONT SIZE=2 FACE="Arial CE">"../../../gmp-4.2.1/gmpxx.h", line 2194.13: 1540-0700 (I) The previous message was produced while pr</FONT></SPAN>
<BR><SPAN LANG="pl"><FONT SIZE=2 FACE="Arial CE">ocessing "__gmp_set_expr<__mpq_struct [1]>(mpq_ptr, const __gmp_expr<__mpq_struct [1],__mpq_struct [</FONT></SPAN>
<BR><SPAN LANG="pl"><FONT SIZE=2 FACE="Arial CE">1]> &)".</FONT></SPAN>
<BR><SPAN LANG="pl"><FONT SIZE=2 FACE="Arial CE">"../../../gmp-4.2.1/gmpxx.h", line 1736.3: 1540-0700 (I) The previous message was produced while pro</FONT></SPAN>
<BR><SPAN LANG="pl"><FONT SIZE=2 FACE="Arial CE">cessing "__gmp_expr<__mpq_struct [1],__mpq_struct [1]>::__gmp_expr<__mpq_struct [1],__mpq_struct [1]</FONT></SPAN>
<BR><SPAN LANG="pl"><FONT SIZE=2 FACE="Arial CE">>(const __gmp_expr<__mpq_struct [1],__mpq_struct [1]> &)".</FONT></SPAN>
<BR><SPAN LANG="pl"><FONT SIZE=2 FACE="Arial CE">"../../../gmp-4.2.1/gmpxx.h", line 3631.1: 1540-0700 (I) The previous message was produced while pro</FONT></SPAN>
<BR><SPAN LANG="pl"><FONT SIZE=2 FACE="Arial CE">cessing "__gmp_expr<__mpq_struct [1],__mpq_struct [1]>::operator++(int)".</FONT></SPAN>
<BR><SPAN LANG="pl"><FONT SIZE=2 FACE="Arial CE">"../../../gmp-4.2.1/gmpxx.h", line 2145.7: 1540-0217 (S) "eval" is not a member of "class __gmp_expr</FONT></SPAN>
<BR><SPAN LANG="pl"><FONT SIZE=2 FACE="Arial CE"><__mpz_struct [1],__mpz_struct [1]>".</FONT></SPAN>
<BR><SPAN LANG="pl"><FONT SIZE=2 FACE="Arial CE">"../../../gmp-4.2.1/gmpxx.h", line 2143.13: 1540-0700 (I) The previous message was produced while pr</FONT></SPAN>
<BR><SPAN LANG="pl"><FONT SIZE=2 FACE="Arial CE">ocessing "__gmp_set_expr<__mpz_struct [1]>(mpz_ptr, const __gmp_expr<__mpz_struct [1],__mpz_struct [</FONT></SPAN>
<BR><SPAN LANG="pl"><FONT SIZE=2 FACE="Arial CE">1]> &)".</FONT></SPAN>
<BR><SPAN LANG="pl"><FONT SIZE=2 FACE="Arial CE">"../../../gmp-4.2.1/gmpxx.h", line 1568.3: 1540-0700 (I) The previous message was produced while pro</FONT></SPAN>
<BR><SPAN LANG="pl"><FONT SIZE=2 FACE="Arial CE">cessing "__gmp_expr<__mpz_struct [1],__mpz_struct [1]>::__gmp_expr<__mpz_struct [1],__mpz_struct [1]</FONT></SPAN>
<BR><SPAN LANG="pl"><FONT SIZE=2 FACE="Arial CE">>(const __gmp_expr<__mpz_struct [1],__mpz_struct [1]> &)".</FONT></SPAN>
<BR><SPAN LANG="pl"><FONT SIZE=2 FACE="Arial CE">"../../../gmp-4.2.1/gmpxx.h", line 3673.65: 1540-0700 (I) The previous message was produced while pr</FONT></SPAN>
<BR><SPAN LANG="pl"><FONT SIZE=2 FACE="Arial CE">ocessing "__gmp_expr<__mpz_struct [1],__gmp_urandomm_value>::__gmp_expr<__mpz_struct [1],__gmp_urand</FONT></SPAN>
<BR><SPAN LANG="pl"><FONT SIZE=2 FACE="Arial CE">omm_value>(__gmp_randstate_struct *, const mpz_class &)".</FONT></SPAN>
</P>
<BR>
<P><SPAN LANG="pl"><FONT SIZE=2 FACE="Arial CE">Removing constructor without template arguments makes it compile and even work (test programs work). The next problem I have is message that 'eval' is not a member of __gmp_expr<></FONT></SPAN></P>
<P><SPAN LANG="pl"><FONT SIZE=2 FACE="Arial CE">It seems to me that this is a problem with compiler. I am little bit afraid of switching those unary … tests off, Is there any fast solution/patch for these problems ?</FONT></SPAN></P>
<P><SPAN LANG="pl"><FONT SIZE=2 FACE="Arial CE">Kind regards</FONT></SPAN>
</P>
<P><SPAN LANG="pl"><FONT SIZE=2 FACE="Arial CE"> Leszek Wlodarski</FONT></SPAN>
</P>
<BR>
</UL>
</BODY>
</HTML>