Modelsim仿真这种报错怎么解决?

报错内容:
** =====> Prior declaration of "fx" is at fx1.vwf.vht(38).
** Error: fx1.vwf.vht(488): VHDL Compiler exiting
End time: 00:55:28 on Nov 26,2022, Elapsed time: 0:00:00
Errors: 4, Warnings: 0
Executing ONERROR command at macro ./fx.do line 4