AIX 4.x and 5.x compilation

Leszek.Wlodarski at partners.brebank.pl Leszek.Wlodarski at partners.brebank.pl
Tue Aug 22 11:15:46 CEST 2006


Hi,

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:

"../../../gmp-4.2.1/gmpxx.h", line 1918.3: 1540-1202 (I) No candidate is better than "__gmp_expr<__m
pf_struct [1],__mpf_struct [1]>::__gmp_expr<__mpf_struct [1],__mpf_struct [1]>(const __gmp_expr<__mp
f_struct [1],__mpf_struct [1]> &)".
"../../../gmp-4.2.1/gmpxx.h", line 3645.1: 1540-1231 (I) The conversion from argument number 1 to "c
onst __gmp_expr<__mpf_struct [1],__mpf_struct [1]> &" uses "the identity conversion".
"../../../gmp-4.2.1/gmpxx.h", line 2196.7: 1540-0217 (S) "eval" is not a member of "class __gmp_expr
<__mpq_struct [1],__mpq_struct [1]>".
"../../../gmp-4.2.1/gmpxx.h", line 2194.13: 1540-0700 (I) The previous message was produced while pr
ocessing "__gmp_set_expr<__mpq_struct [1]>(mpq_ptr, const __gmp_expr<__mpq_struct [1],__mpq_struct [
1]> &)".
"../../../gmp-4.2.1/gmpxx.h", line 1736.3: 1540-0700 (I) The previous message was produced while pro
cessing "__gmp_expr<__mpq_struct [1],__mpq_struct [1]>::__gmp_expr<__mpq_struct [1],__mpq_struct [1]
>(const __gmp_expr<__mpq_struct [1],__mpq_struct [1]> &)".
"../../../gmp-4.2.1/gmpxx.h", line 3631.1: 1540-0700 (I) The previous message was produced while pro
cessing "__gmp_expr<__mpq_struct [1],__mpq_struct [1]>::operator++(int)".
"../../../gmp-4.2.1/gmpxx.h", line 2145.7: 1540-0217 (S) "eval" is not a member of "class __gmp_expr
<__mpz_struct [1],__mpz_struct [1]>".
"../../../gmp-4.2.1/gmpxx.h", line 2143.13: 1540-0700 (I) The previous message was produced while pr
ocessing "__gmp_set_expr<__mpz_struct [1]>(mpz_ptr, const __gmp_expr<__mpz_struct [1],__mpz_struct [
1]> &)".
"../../../gmp-4.2.1/gmpxx.h", line 1568.3: 1540-0700 (I) The previous message was produced while pro
cessing "__gmp_expr<__mpz_struct [1],__mpz_struct [1]>::__gmp_expr<__mpz_struct [1],__mpz_struct [1]
>(const __gmp_expr<__mpz_struct [1],__mpz_struct [1]> &)".
"../../../gmp-4.2.1/gmpxx.h", line 3673.65: 1540-0700 (I) The previous message was produced while pr
ocessing "__gmp_expr<__mpz_struct [1],__gmp_urandomm_value>::__gmp_expr<__mpz_struct [1],__gmp_urand
omm_value>(__gmp_randstate_struct *, const mpz_class &)".


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<>

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 ?

Kind regards

   Leszek Wlodarski


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gmplib.org/list-archives/gmp-bugs/attachments/20060822/4aca2ec5/attachment.html 


More information about the gmp-bugs mailing list