Hi Justin, On 30/11/15 23:59, Justin Chang wrote:
Onno, that's strange. Are you sure you followed my instructions correctly? Because simply reinstalling Homebrew is not going to fix the fortran issue. You need to manually reconfigure openmpi to use the latest gcc compilers. First ensure you have the latest gcc via Homebrew (I think it should be gcc-5). Then you "install" openmpi initially (via brew install openmpi). Finally you need to rebuild openmpi via
brew reinstall openmpi --build-from-source
Because by default, the openmpi links to the apple compilers, and for some reason mpif90 is not hooked up to any gfortran. Hence you need those environment variables I stated.
They do something similar here http://stackoverflow.com/questions/26812780/linking-homebrew-compiled-openmp...
This should fix that fortran problem within the PETSc build process.
Spatialindex needs to be rebuilt the same way.
It shouldn't be necessary to rebuild openmpi yourself unless you want to use the GNU compilers everywhere. Clang (+ gfortran) works fine as far as I can tell. If you do that, you then won't need to rebuild spatialindex either. Cheers, Lawrence