NWChem 6.6 and OS X El Capitan


Click here for full thread
Clicked A Few Times
Hello everyone, I try to install NWChem 6.6 on my Mac but fail.

I installed the following software:
• gcc 6.0 — http://hpc.sourceforge.net
• mpich —
sudo port install mpich
sudo port select mpi mpich-mp-fortran

• OpenBLAS —
macport install OpenBLAS


Then I evaluate following code in Terminal:
export NWCHEM_TOP=/Users/me/nwchem-6.6
export NWCHEM_MODULES="all"
export NWCHEM_TARGET=MACX64
export USE_MPI="y"
export USE_MPIF="y"
export USE_MPIF4="y"
export CFLAGS_FORGA="-DMPICH_NO_ATTR_TYPE_TAGS"
export MPI_INCLUDE="/usr/local/include"
export MPI_LIB="/usr/local/lib"
export LIBMPI=" -lmpifort -lmpi -lpmpi -lpthread"
export BLASOPT="-framework Accelerate"
cd $NWCHEM_TOP/src
export FC=gfortran
export CC=gcc
make nwchem_config
make


Input and Output:
My-PC:~ me$ export NWCHEM_TOP=/Users/me/nwchem-6.6
My-PC:~ me$ export NWCHEM_MODULES="all"
My-PC:~ me$ export NWCHEM_TARGET=MACX64
My-PC:~ me$ export USE_MPI="y"
My-PC:~ me$ export USE_MPIF="y"
My-PC:~ me$ export USE_MPIF4="y"
My-PC:~ me$ export CFLAGS_FORGA="-DMPICH_NO_ATTR_TYPE_TAGS"
My-PC:~ me$ export MPI_INCLUDE="/usr/local/include"
My-PC:~ me$ export MPI_LIB="/usr/local/lib"
My-PC:~ me$ export LIBMPI=" -lmpifort -lmpi -lpmpi -lpthread"
My-PC:~ me$ export BLASOPT="-framework Accelerate"
My-PC:~ me$ cd $NWCHEM_TOP/src
My-PC:src me$ export FC=gfortran
My-PC:src me$ export CC=gcc
My-PC:src me$ make nwchem_config
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C config -f make_nwchem_config NWCHEM_MODULES="all"
echo \# This configuration generated automatically on \
	      `hostname` at `date` > nwchem_config.h
echo "# Request modules from user: all" >> nwchem_config.h
echo "NW_MODULE_SUBDIRS = NWints atomscf ddscf gradients moints nwdft rimp2 stepper driver optim cphf ccsd vib mcscf prepar esp hessian selci dplot mp2_grad qhop property solvation nwpw fft analyz nwmd cafe space drdy vscf qmmm qmd etrans tce bq mm cons perfm dntmc dangchang ccca" >> nwchem_config.h
echo "NW_MODULE_LIBS = -lccsd -lmcscf -lselci -lmp2 -lmoints -lstepper -ldriver -loptim -lnwdft -lgradients -lcphf -lesp -lddscf -ldangchang -lguess -lhessian -lvib -lnwcutil -lrimp2 -lproperty -lsolvation -lnwints -lprepar -lnwmd -lnwpw -lofpw -lpaw -lpspw -lband -lnwpwlib -lcafe -lspace -lanalyze -lqhop -lpfft -ldplot -ldrdy -lvscf -lqmmm -lqmd -letrans -lpspw -ltce -lbq -lmm -lcons -lperfm -ldntmc -lccca" >> nwchem_config.h
echo "EXCLUDED_SUBDIRS = develop nwxc scfaux rimp2_grad python argos diana uccsdt rism geninterface smd nbo leps lucia" >> nwchem_config.h
echo "CONFIG_LIBS = " >> nwchem_config.h
echo \# This configuration generated automatically on \
	     `hostname` at `date` > NWCHEM_CONFIG
echo "# Request modules from user: all" >> NWCHEM_CONFIG
echo The following subdirectories are built: >> NWCHEM_CONFIG 
echo NWints analyz atomscf bq cafe ccca ccsd cons cphf dangchang ddscf dntmc dplot drdy driver esp etrans fft gradients hessian mcscf mm moints mp2_grad nwdft nwmd nwpw optim perfm prepar property qhop qmd qmmm rimp2 selci solvation space stepper symmetry tce vib vscf >> NWCHEM_CONFIG 
echo corresponding to these libraries: >> NWCHEM_CONFIG 
echo -lnwints -lanalyze -lguess -lbq -lcafe -lccca -lccsd -lcons -lcphf -ldangchang -lddscf -ldntmc -ldplot -ldrdy -ldriver -lesp -letrans -lpfft -lgradients -lhessian -lmcscf -lmm -lmoints -lmp2 -lnwdft -lnwmd -lnwpw -lofpw -lpaw -lpspw -lband -lnwpwlib -loptim -lperfm -lprepar -lproperty -lqhop -lqmd -lqmmm -lrimp2 -lselci -lsolvation -lspace -lstepper -lnwcutil -ltce -lvib -lvscf >> NWCHEM_CONFIG 
echo >> NWCHEM_CONFIG 
echo The following directories are excluded from the build: >> NWCHEM_CONFIG 
echo develop nwxc scfaux rimp2_grad python argos diana uccsdt rism geninterface smd nbo leps lucia >> NWCHEM_CONFIG 
echo and these routines will be replaced by stubs: >> NWCHEM_CONFIG 
echo argos argos_input crossing debtest dia_input diana gasdev geninterface jantest jvltest jvltest2 kgdtest leps_energy leps_gradient lucia mc_data mc_driver mc_init mc_main md_data md_driver md_set moints_screen mymc_input mymd_input nbo_input nwxc_eval_df nwxc_eval_df2 nwxc_eval_df3 nwxc_get_cam nwxc_get_disp nwxc_getvals nwxc_getwght nwxc_has_2nd nwxc_has_cam nwxc_has_disp nwxc_has_hfx nwxc_has_mp2c nwxc_has_xc nwxc_init nwxc_input nwxc_is_gga nwxc_is_lda nwxc_is_mgga nwxc_is_on nwxc_print nwxc_print_nwpw nwxc_reset_rho_tolerance nwxc_rtdb_delete nwxc_rtdb_load nwxc_rtdb_store nwxc_vdw3_dftd3 nwxc_wght_hfx nwxc_wght_mp2c python_input raktest rimp2g rism_input rjhtest smd_input task_fragment_energy task_nbo task_python task_rism task_smd task_smd_dynamics task_smd_energy task_smd_fragment uccsdt uccsdtest urand  >> NWCHEM_CONFIG 
echo "No extra configuration libraries were added " >> NWCHEM_CONFIG
cp census.skeleton ../stubs.F 
for routine in argos argos_input crossing debtest dia_input diana gasdev geninterface jantest jvltest jvltest2 kgdtest leps_energy leps_gradient lucia mc_data mc_driver mc_init mc_main md_data md_driver md_set moints_screen mymc_input mymd_input nbo_input nwxc_eval_df nwxc_eval_df2 nwxc_eval_df3 nwxc_get_cam nwxc_get_disp nwxc_getvals nwxc_getwght nwxc_has_2nd nwxc_has_cam nwxc_has_disp nwxc_has_hfx nwxc_has_mp2c nwxc_has_xc nwxc_init nwxc_input nwxc_is_gga nwxc_is_lda nwxc_is_mgga nwxc_is_on nwxc_print nwxc_print_nwpw nwxc_reset_rho_tolerance nwxc_rtdb_delete nwxc_rtdb_load nwxc_rtdb_store nwxc_vdw3_dftd3 nwxc_wght_hfx nwxc_wght_mp2c python_input raktest rimp2g rism_input rjhtest smd_input task_fragment_energy task_nbo task_python task_rism task_smd task_smd_dynamics task_smd_energy task_smd_fragment uccsdt uccsdtest urand; do \
	   sed s/STUBROUTINE/$routine/g stub.skeleton >> ../stubs.F ; \
	done
cp util_module_avail_F.begin ../util/util_module_avail.F
echo "c This function was auto generated by make_nwchem_config" >> ../util/util_module_avail.F
for module in NWints analyz atomscf bq cafe ccca ccsd cons cphf dangchang ddscf dntmc dplot drdy driver esp etrans fft gradients hessian mcscf mm moints mp2_grad nwdft nwmd nwpw optim perfm prepar property qhop qmd qmmm rimp2 selci solvation space stepper symmetry tce vib vscf; do \
	   echo "        case (\""$module"\")" >> ../util/util_module_avail.F ; \
        done
cat util_module_avail_F.end >> ../util/util_module_avail.F
My-PC:src me$ make
test \! -f 64_to_32 -o \! -f 32_to_64 || rm -f 64_to_32 32_to_64
test -d /Users/me/nwchem-6.6/lib/MACX64 || mkdir -p /Users/me/nwchem-6.6/lib/MACX64
test -d /Users/me/nwchem-6.6/bin/MACX64 || mkdir -p /Users/me/nwchem-6.6/bin/MACX64
./util/util_nwchem_version.bash
Making libraries in tools
rm -f ./*.CC.stamp
echo "" > gcc.CC.stamp

*** Configuring Parallel Tools ****

../ga-5-4/configure --prefix=/Users/me/nwchem-6.6/src/tools/install --with-tcgmsg --with-mpi=-I/usr/local/include -L/usr/local/lib -lmpifort -lmpi -lpmpi -lpthread --enable-peigs --enable-underscoring --disable-mpi-tests --without-scalapack --without-lapack --with-blas8=-framework Accelerate --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.2.0
checking host system type... x86_64-apple-darwin15.2.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... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for C compiler vendor... gnu
checking whether a simple C MPI program compiles... no
configure: error: in `/Users/me/nwchem-6.6/src/tools/build':
configure: error: could not compile simple C MPI program
See `config.log' for more details
make[1]: *** [build/config.status] Error 1
make: *** [libraries] Error 1
My-PC:src me$ 


Please help me install software. Thank you