Months??? I don't know how you stayed sane dealing with this kind of problem for so long.
Well, I was using pretty much the same parameters (almost identical) to what I've used in my Elk build (which performs perfectly in parallel, and I've NEVER had trouble installing). My (perfectly working) elk make.inc is
MAKE = make
F90 = mpif90
F90_OPTS = -O3 -ffast-math -funroll-loops -fopenmp
F77 = mpif90
F77_OPTS = -O3 -ffast-math -funroll-loops -fopenmp
AR = ar
LIB_SYS =
LIB_LPK = lapack.a blas.a
LIB_FFT = fftlib.a
One of my Exciting make.inc (the one made automatically, with the replacement of gfortran with mpif90) is
F90=mpif90
F77=$(F90)
F90_OPTS = -O3 -march=native # -flto
F77_OPTS = $(F90_OPTS)
CPP_ON_OPT = -cpp -DXS -DISO -DTETRA -DLIBXC
LIB_ARP =libarpack.a
LIB_LPK = -L./ -llapack -lblas
LIB_FFT = fftlib.a
LIB_BZINT= libbzint.a
LIBS= $(LIB_ARP) $(LIB_LPK) $(LIB_FFT) $(LIB_BZINT) # -flto -fwhole-program
F90_DEBUGOPTS=-g -fbounds-check -fbacktrace -Wall
F77_DEBUGOPTS= $(F90_DEBUGOPTS)
#Ignore if you don't have MPI or smplibs
MPIF90=mpif90
MPIF90_OPTS=$(F90_OPTS) $(CPP_ON_OPT) -DMPI -DMPIRHO -DMPISEC
F77MT=$(F77)
F90MT=$(F90)
SMP_LIBS=$(LIBS)
SMPF90_OPTS=-fopenmp $(F90_OPTS)
SMPF77_OPTS=$(SMPF90_OPTS)
BUILDMPI=true
BUILDSMP=false
Which leads to the error I've reported. If I change the format to resemble my successful Elk build, i.e.
F90_OPTS = -O3 -ffast-math -funroll-loops -fopenmp,
the same thing happens. If I use ifort, the same thing happens as well. I think this particular problem has to to do with permissions, like you said. I'm not sure how to deal with that, but I'll try to find someone at the HPC that can help. Until then, my Macbook will be sitting under a fan for the forseeable future, I suppose.