No subject

Thomas Lover mailbidonjustice at gmail.com
Mon Aug 22 22:54:26 UTC 2016


Hi, I report here a bug:

 The GMP version number, and if pre-packaged or patched then say so.
gmp-6.1.1 with these installation procedure:

./configure —enable-cxx —disable-shared
make
make check
make install



A test program that makes it possible for us to reproduce the bug. Include instructions on how to run the program.
program attached (mills.cpp) 


A description of what is wrong. If the results are incorrect, in what way. If you get a crash, say so.
Here are the errors i got while compiling..

If I remove the part of the program following "cin >> n;” in the pgm, the compilation’s fine.

/usr/local/include/gmpxx.h:2281:9: error: no matching member function for call
      to 'eval'
  { Op::eval(p, expr.val1.__get_mp(), expr.val2); }
    ~~~~^~~~
/usr/local/include/gmpxx.h:2132:8: note: in instantiation of member function
      '__gmp_expr<__mpf_struct [1], __gmp_binary_expr<__gmp_expr<mpf_t, mpf_t>,
      long, __gmp_binary_xor> >::eval' requested here
  expr.eval(f);
       ^
/usr/local/include/gmpxx.h:1932:5: note: in instantiation of function template
      specialization '__gmp_set_expr<__gmp_binary_expr<__gmp_expr<mpf_t, mpf_t>,
      long, __gmp_binary_xor> >' requested here
  { __gmp_set_expr(mp, expr); return *this; }
    ^
mills.cpp:114:22: note: in instantiation of function template specialization
      '__gmp_expr<__mpf_struct [1], __mpf_struct [1]>::operator=<__mpf_struct
      [1], __gmp_binary_expr<__gmp_expr<mpf_t, mpf_t>, long, __gmp_binary_xor>
      >' requested here
    cplusdpuissancea = cplusd^a;
                     ^
/usr/local/include/gmpxx.h:851:15: note: candidate function not viable: no known
      conversion from 'typename __gmp_resolve_expr<__mpf_struct [1]>::ptr_type'
      (aka '__mpf_struct *') to 'mpz_ptr' (aka '__mpz_struct *') for 1st
      argument
  static void eval(mpz_ptr z, mpz_srcptr w, signed long int l)
              ^
/usr/local/include/gmpxx.h:847:15: note: candidate function not viable: no known
      conversion from 'typename __gmp_resolve_expr<__mpf_struct [1]>::ptr_type'
      (aka '__mpf_struct *') to 'mpz_ptr' (aka '__mpz_struct *') for 1st
      argument
  static void eval(mpz_ptr z, mpz_srcptr w, unsigned long int l)
              ^
/usr/local/include/gmpxx.h:855:15: note: candidate function not viable: no known
      conversion from 'typename __gmp_resolve_expr<__mpf_struct [1]>::ptr_type'
      (aka '__mpf_struct *') to 'mpz_ptr' (aka '__mpz_struct *') for 1st
      argument
  static void eval(mpz_ptr z, mpz_srcptr w, double d)
              ^
/usr/local/include/gmpxx.h:845:15: note: candidate function not viable: no known
      conversion from 'typename __gmp_resolve_expr<__mpf_struct [1]>::ptr_type'
      (aka '__mpf_struct *') to 'mpz_ptr' (aka '__mpz_struct *') for 1st
      argument
  static void eval(mpz_ptr z, mpz_srcptr w, mpz_srcptr v)
              ^
/usr/local/include/gmpxx.h:849:15: note: candidate function not viable: no known
      conversion from 'typename __gmp_resolve_expr<__mpf_struct [1]>::ptr_type'
      (aka '__mpf_struct *') to 'mpz_ptr' (aka '__mpz_struct *') for 1st
      argument
  static void eval(mpz_ptr z, unsigned long int l, mpz_srcptr w)
              ^
/usr/local/include/gmpxx.h:853:15: note: candidate function not viable: no known
      conversion from 'typename __gmp_resolve_expr<__mpf_struct [1]>::ptr_type'
      (aka '__mpf_struct *') to 'mpz_ptr' (aka '__mpz_struct *') for 1st
      argument
  static void eval(mpz_ptr z, signed long int l, mpz_srcptr w)
              ^
/usr/local/include/gmpxx.h:857:15: note: candidate function not viable: no known
      conversion from 'typename __gmp_resolve_expr<__mpf_struct [1]>::ptr_type'
      (aka '__mpf_struct *') to 'mpz_ptr' (aka '__mpz_struct *') for 1st
      argument
  static void eval(mpz_ptr z, double d, mpz_srcptr w)
              ^
1 error generated.


If you get a crash, include a stack backtrace from the debugger if it’s informative (‘where’ in gdb, or ‘$C’ in adb).
I don’t know what a crash is, informatically.


Please do not send core dumps, executables or straces.
ok


The ‘configure’ options you used when building GMP, if any.
done, I tried to configure with the "gcc=with-my-options" but did not work… said "could not find a working compiler”



The output from ‘configure’, as printed to stdout, with any options used.
see configure.doc file attached to this mail



The name of the compiler and its version. For gcc, get the version with ‘gcc -v’, otherwise perhaps ‘what `which cc`’, or similar.
I tried "which cc” it’s said /usr/bin/cc, which I don’t know what to do with.

I used this compiler: gcc-6.0.0a


The output from running ‘uname -a’. 
Darwin MacBook-Pro.local 14.5.0 Darwin Kernel Version 14.5.0: Wed Jul 29 02:26:53 PDT 2015; root:xnu-2782.40.9~1/RELEASE_X86_64 x86_64



The output from running ‘./config.guess’, and from running ‘./configfsf.guess’ (might be the same).
haswell-apple-darwin14.5.0



If the bug is related to ‘configure’, then the compressed contents of config.log.
I don’t know if the bug is related to 'configure’.


If the bug is related to an asm file not assembling, then the contents of config.m4 and the offending line or lines from the temporary mpn/tmp-<file>.s.
I don’t know if the bug is related to an asm file.



Thomas Brouard
http://www.energyistheglobalcurreny.org/
http://www.lovenergies.wordpress.com/
Save your world, then save the world or do both.
Delete maximum of mails, it's polluting.
thomaslover at ntymail.com
+918524959404, Auroville, India







More information about the gmp-bugs mailing list