Problem compiling on Mac OS 10.13


Click here for full thread
Just Got Here
Quote:Edoapra Mar 2nd 10:32 am
You are still not using the homebrew installation.
Please redefine your path excluding /opt/local/bin by executing

export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin


OK. That helped somewhat. At this point, the error is:

  "_ma_trace_", referenced from:
      _memory_input_ in libnwctask.a(memory_input.o)
  "_ma_verify_allocator_stuff_", referenced from:
      _gsopt_project_hess_grad_ in liboptim.a(mepgs_drv.o)
      _mepgs_proj_grad_ in liboptim.a(mepgs_drv.o)
      _driver_project_hess_grad_ in libdriver.a(opt_drv.o)
      _driver_hss_init_ in libdriver.a(opt_drv.o)
      _grad_force_ in libgradients.a(grad_force.o)
      _md_start_ in libnwmd.a(md_start.o)
      _qmd_driver_ in libqmd.a(qmd_driver.o)
      ...
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make: *** [all] Error 1


The result from running

>> mpif90 -show

is

gfortran -I/usr/local/Cellar/open-mpi/3.0.0_2/include -Wl,-flat_namespace -Wl,-commons,use_dylibs -I/usr/local/Cellar/open-mpi/3.0.0_2/lib -L/usr/local/opt/libevent/lib -L/usr/local/Cellar/open-mpi/3.0.0_2/lib -lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi


My env variables are

export NWCHEM_TOP=/Users/me/nwchem-6.6
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 USE_INTERNALBLAS="y"
export NWCHEM_MODULES="all"


Thanks Edoapra for all your help.

Link to build log
https://www.dropbox.com/s/75rkgq1lciadh05/build3.log?dl=0