I am trying to install FreeFEM v 4.6 on my mac (macOS Big Sur version 11.0.1) via the terminal using the source code, and I come across this issue while trying to configure PETSc:
===============================================================================
Configuring PETSc to compile on your system
TESTING: checkFortranCompiler from config.setCompilers(config/BuildSystem/config/setCompilers.py:960) *******************************************************************************
UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):
Fortran compiler you provided with --with-fc=/usr/local/bin/mpif90 cannot be found or does not work.
Cannot compile/link FC with /usr/local/bin/mpif90.
make: *** [petsc-3.13.0/tag-conf-real] Error 1
I am not sure how to properly complete installation.
Please try again with FreeFEM 4.8 and let me know if this is fixed. If not, please attach bothconfig.log and 3rdparty/ff-petsc/petsc-3.14.2/configure.log.
I tried installing v4.8 and I was able to successfully configure PETSc; however I run into a different issue trying to build the FreeFEM library and executable. I have attached a screenshot of the terminal output.
I have another issue compiling PETSc - this time on a linux system. The error seems to be an issue in compiling PTScotch. I have attached the screen output as well as the config.log file to aid in debugging.
I modified the config.param file to include '--disable-mmg'and '--disable-parmmg' and recompiled and tried make petsc-slepc again, but the same error seems to occur. I’ve attached the configure.log file again in case it is different the time. configure.log (770.5 KB)
Sorry, I didn’t link the proper answer for this particular error, here it is: Compiltion errors on Centos 7 - #3 by prj
You can remove '--disable-mmg' and '--disable-parmmg' from your config.param.
That did fix the PETSc compiling issue, so I ./reconfigure and everything looks good; however, when I run make I get a strange output/error. I’ve attached the screen output and config.log config.log (191.6 KB)