I am building O2 from scratch in a Macbook 2012 with clean Catalina 10.15.7 with all updates.
MPFR compilation fails because it finds GMP but identifies a problem with it. The log file at BUILD/MPFR-latest/log shows the following:
checking whether gcc __attribute__ ((mode (XX))) works... yes checking for recent GMP... yes checking for GMP_NUMB_BITS and sizeof(mp_limb_t) consistency... yes checking for __gmpz_init in -lgmp... no configure: error: libgmp not found or uses a different ABI (including static vs shared).
In internet, I found two cases related with error with gmpz_init and “different ABI” .
First case seems closer to my case. It is a linker problem as described in c++ - Installing & Finding GMP under OSX - Stack Overflow . This may be my case because Homebrew installed GMP (/usr/local/Cellar/gmp/6.2.1_1/include/gmp.h) , but aliBuild also compiled GMP. However, I don’t know how to test if this is my problem.
I understand that the compilation environment for MPFR is at …/sw/SPECS/osx_x86-64/ MPFR/v3.1.3-local1/build.sh but I don’t understand how to modify it or make a custom environment for it.
Thanks for your help!