Humph, I get the following:
On 1 Dec 2015, at 11:58, Justin Chang <jychang48@gmail.com> wrote:
Yeah, that's not the case for me. I did:
brew uninstall gcc brew uninstall openmpi
brew install openmpi brew install gcc
and here's what I have:
mpicc --show clang -I/usr/local/Cellar/open-mpi/1.10.1/include -L/usr/local/opt/libevent/lib -L/usr/local/Cellar/open-mpi/1.10.1/lib -lmpi
mpicxx --show clang++ -I/usr/local/Cellar/open-mpi/1.10.1/include -L/usr/local/opt/libevent/lib -L/usr/local/Cellar/open-mpi/1.10.1/lib -lmpi_cxx -lmpi
mpif90 --show -------------------------------------------------------------------------- No underlying compiler was specified in the wrapper compiler data file (e.g., mpicc-wrapper-data.txt) --------------------------------------------------------------------------
$ brew uninstall gcc Uninstalling /usr/local/Cellar/gcc/5.2.0... (1353 files, 248M) $ brew uninstall openmpi Uninstalling /usr/local/Cellar/open-mpi/1.10.0... (785 files, 22M) $ brew install openmpi ==> Downloading https://homebrew.bintray.com/bottles/open-mpi-1.10.0.el_capitan.bottle.tar.g... Already downloaded: /Library/Caches/Homebrew/open-mpi-1.10.0.el_capitan.bottle.tar.gz ==> Pouring open-mpi-1.10.0.el_capitan.bottle.tar.gz /usr/local/Cellar/open-mpi/1.10.0: 785 files, 22M $ mpif90 -show /usr/local/bin/gfortran -I/usr/local/Cellar/open-mpi/1.10.0/include -Wl,-flat_namespace -Wl,-commons,use_dylibs -I/usr/local/Cellar/open-mpi/1.10.0/lib -L/usr/local/opt/libevent/lib -L/usr/local/Cellar/open-mpi/1.10.0/lib -lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi $ mpif90 -------------------------------------------------------------------------- The Open MPI wrapper compiler was unable to find the specified compiler /usr/local/bin/gfortran in your PATH. Note that this compiler was either specified at configure time or in one of several possible environment variables. -------------------------------------------------------------------------- $ brew install gcc ==> Downloading https://homebrew.bintray.com/bottles/gcc-5.2.0.el_capitan.bottle.2.tar.gz Already downloaded: /Library/Caches/Homebrew/gcc-5.2.0.el_capitan.bottle.2.tar.gz ==> Pouring gcc-5.2.0.el_capitan.bottle.2.tar.gz ==> Caveats GCC has been built with multilib support. Notably, OpenMP may not work: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60670 If you need OpenMP support you may want to brew reinstall gcc --without-multilib ==> Summary /usr/local/Cellar/gcc/5.2.0: 1353 files, 248M $ mpif90 -show /usr/local/bin/gfortran -I/usr/local/Cellar/open-mpi/1.10.0/include -Wl,-flat_namespace -Wl,-commons,use_dylibs -I/usr/local/Cellar/open-mpi/1.10.0/lib -L/usr/local/opt/libevent/lib -L/usr/local/Cellar/open-mpi/1.10.0/lib -lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi lmitche1@dyn1224-221:~/Documents/work/mapdes/petsc g firedrake d st $ mpif90 gfortran: fatal error: no input files compilation terminated. So the ElCap bottle of openmpi definitely has /usr/local/bin/gfortran baked in. I don't recall if you're on el cap or mavericks, or something else. Cheers, Lawrence