NWChem 6.6 compilation fails on mac


Click here for full thread
Just Got Here
Hello,

I've been trying to compile NWChem 6.6 on a macbook pro (os x 10.10) but I keep getting a c compiler error

test \! -f 64_to_32 -o \! -f 32_to_64 || rm -f 64_to_32 32_to_64
test -d /Users/Nev/nwchem-6.6/lib/MACX64 || mkdir -p /Users/Nev/nwchem-6.6/lib/MACX64
test -d /Users/Nev/nwchem-6.6/bin/MACX64 || mkdir -p /Users/Nev/nwchem-6.6/bin/MACX64
./util/util_nwchem_version.bash
Making libraries in tools

*** Configuring Parallel Tools ****

../ga-5-4/configure --prefix=/Users/Nev/nwchem-6.6/src/tools/install --with-tcgmsg --with-mpi=-I/usr/local/Cellar/mpich/3.2_1/include -L/usr/local/Cellar/mpich/3.2_1/lib -lmpifort -lmpi -lpmpi -lpthread /usr/local/Cellar/mpich/3.2_1 --enable-peigs --enable-underscoring --disable-mpi-tests --without-scalapack --without-lapack --without-blas --with-mpi-ts CC=gcc CXX=c++ F77=gfortran CFLAGS=-DMPICH_NO_ATTR_TYPE_TAGS -DMPICH_NO_ATTR_TYPE_TAGS -DMPICH_NO_ATTR_TYPE_TAGS ARMCI_DEFAULT_SHMMAX_UBOUND=131072
checking build system type... x86_64-apple-darwin15.5.0
checking host system type... x86_64-apple-darwin15.5.0
checking for TARGET base (64bit-ness checked later)... MACX
checking whether we think this system is what we call SYSV... no
checking whether we are cross compiling... no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ../ga-5-4/build-aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
configure: Detected VPATH build
configure: 
configure: C compiler
configure: 
checking for style of include used by make... GNU
checking whether the C compiler works... no
configure: error: in `/Users/Nev/nwchem-6.6/src/tools/build':
configure: error: C compiler cannot create executables
See `config.log' for more details
make[1]: *** [build/config.status] Error 1
make: *** [libraries] Error 1



I tried putting different c compilers ( gcc-mp-5, gcc-mp-4.8, gcc-4.8, gcc-5, clang) in the environment vars but this didn't help much.

My environment config is as follows

export FC=gfortran
export CC=gcc
export F77=gfortran
#export FC=/usr/local/Cellar/gcc48/4.8.5/bin/gfortran-4.8
#export CC=/usr/local/Cellar/gcc48/4.8.5/bin/gcc-4.8
#export F77=/usr/local/Cellar/gcc48/4.8.5/bin/gfortran-4.8
#export CXX=/usr/local/Cellar/gcc48/4.8.5/bin/c++-4.8

#NWCHEM 
export NWCHEM_TOP=/Users/Nev/nwchem-6.6
export NWCHEM_TARGET=MACX64
export NWCHEM_MODULES=all
export USE_NOFSCHECK=y
export USE_MPI=y
export USE_INTERNALBLAS=y
export MPI_LOC=/usr/local/Cellar/mpich/3.2_1
export MPI_LIB=$MPI_LOC/lib
export MPI_INCLUDE=$MPI_LOC/include 
export LIBMPI="-lmpifort -lmpi -lpmpi -lpthread"
export CFLAGS_FORGA="-DMPICH_NO_ATTR_TYPE_TAGS"


config.log Download


Thanks for your help.