Bug with square roots

Emil Vladov emil at emovla.com
Wed May 9 14:27:36 CEST 2012

Well yes, it turned out you are right. The trivial test linked to different library.

Thanks, Emil

On May 9, 2012, at 12:23 PM, Torbjorn Granlund wrote:

> Emil Vladov <emil at emovla.com> writes:
>  The program that follows takes sqrt of a long integer, then takes
>  root(2). The resulting numbers are different (and both are wrong).
>  $ ./config.guess
>  coreisbr-apple-darwin11.3.0
>  'make check' tests pass.
> If a trivial program fails like you say, and 'make check' passes, then
> it will hardly be of the same libgmp compile.
> One thing seems clear: You're linking the trivial test to a badly
> miscompiled library.  If it is installed on your system, you should
> remove it.
> Sometimes system policies bind to surprising library files, not the ones
> one asks for.  This might happen to your trivial test, or it might
> happen to 'make check'.
> -- 
> Torbjörn

More information about the gmp-bugs mailing list