Hello Qianjin,
I recall having a similar error back in 2016-2017. I'll search through my files and share anything relevant if I find it.
From experience, I sometimes had to rename files in LINUX to ensure consistent capitalization, so that might be worth trying as well.
Additionally, I have the Word document we drafted detailing the compilation of SWAT on CentOS 7. Although we didn’t encounter your specific error in that file, I’d be happy to share it if you think it could help.
Best of luck.