possible miscompilation on macOS Catalina 10.15.6

Niels Möller nisse at lysator.liu.se
Thu Oct 29 15:17:22 UTC 2020


tg at gmplib.org (Torbjörn Granlund) writes:

> Trevor Spiteri <tspiteri at ieee.org> writes:
>
>   This is all the information I got; sorry if it is incomplete. (The
>   user's issue was solved by using their already installed homebrew?
>   libraries instead of compiling GMP anew.)
>
> OK, so *some* compiler compiled GMP with and *some* GMP test program
> reported a segfault.  I will right away start the natural deduction over
> all possible instances of compilers and GMP test cases. Oh wait, I need
> to consider all possible CPUs and relevant environment variables as
> well.

And to be a bit less sarcastic: Fairly recent Apple compilers have had
bugs making them miscompile GMP. Most likely explanation for the
reported problem is that your user has a buggy version of the compiler
installed. So try a different compiler. And if you suspect it's a
genuine GMP bug, please follow bug reporting instructions in the fine
manual.

Regards,
/Niels

-- 
Niels Möller. PGP-encrypted email is preferred. Keyid 368C6677.
Internet email is subject to wholesale government surveillance.


More information about the gmp-bugs mailing list