Hi Ann,
it seems like you are missing 'libm.a' and 'libc.a' for statically linking. Those are basic libraries (math and C) that should be installed. On a Debian based system, they are in '/usr/lib/x86_64-linux-gnu'. I'd recommend re-installing gcc/gfortran and then try to compile a very simple Fortran program. If that works then rebuild swat, but delete the folder 'build' first. If that still fails, please post the file 'link.txt' from the 'swatplus-unknown-gcc-lin_x86_64.dir' folder.
BTW. If you just want to run the model, you can download the executables from Github. I recommend using the ifx builds, since swat for gfortran still needs adjustments.
Hope this helps.
--od