I tried to install Regcm to a workstation but at the moment that I entered make in the terminal the process stopped and showed the error that appears in the image.
I downloaded the source code from this link https://github.com/ICTP/RegCM.
The methodology that i follow to try to install the model is the following:
The following is exported to .bashrc
export LD_LIBRARY_PATH=/home/regcm/RegCM-master/lib:$LD_LIBRARY_PATH
export PATH=/home/regcm/RegCM-master/bin:$PATH
source .bashrc
next i use the following commands in order
aclocal --force
autoheader --f 
automake -af
autoreconf --fi 
./configure PATH=/home/regcm/RegCM-master/bin:$PATH \
            CC="gcc" \
            FC="gfortran" \
            MPIFC="/home/regcm/RegCM-master/bin/mpif90" \
            CPPFLAGS=-I/home/regcm/RegCM-master/include \
            LDFLAGS=-L/home/regcm/RegCM-master/lib \
            LIBS="-lnetcdff -lnetcdf -lhdf5_hl -lhdf5 -lz"
make 

greetings
S. Castillo
PD. all libraries are installed using the prereq_install.sh file from the tools folder inside Regcm, I attach the compiler versions.