I have spent a few days trying to determine the reason for the failure. If anything should be clear from the attached log files I would appreciate the heads up.
The config.log file is nearly half a megabyte, otherwise, I would have included it also. I am still wading through the strace output, but it is rather overwhelming.
configure and make output files attached.
CC src/util/other/lib_libmpi_la-assert.lo
( cd . && ./maint/extractcvars --dirs="`cat ./maint/cvardirs`")
Error: open directory /tmp/_HMuTRgPPE/mpich-3.2.1/maint/../src/mpi -- No such file or directory
Makefile:39284: recipe for target 'src/util/cvar/mpich_cvars.c' failed
make[2]: *** [src/util/cvar/mpich_cvars.c] Error 2
make[2]: Leaving directory '/home/jan/amber18/AmberTools/src/mpich-3.2.1'
Makefile:38608: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/jan/amber18/AmberTools/src/mpich-3.2.1'
Makefile:10337: recipe for target 'all' failed
make: *** [all] Error 2
below is the make file code close to line 39284. I have underlined the corresponding log file output and the make file line 39284
# normally built by autogen.sh, but this rebuild rule is here
$(top_srcdir)/src/util/cvar/mpich_cvars.c: $(top_srcdir)/maint/extractcvars
( cd $(top_srcdir) && $(top_srcdir)/maint/extractcvars --dirs="`cat $(top_srcdir)/maint/cvardirs`")
$(cxx_buildiface_out_files): src/binding/cxx/buildiface-stamp
src/binding/cxx/buildiface-stamp:
$(top_srcdir)/src/binding/cxx/
buildiface $(top_srcdir)/src/include/mpi.h.in
( cd $(top_srcdir)/src/binding/cxx && ./buildiface -nosep -initfile=cxx.vlist )
If you are able to provide any pointers it would be much appreciated..