Compile fms in jedi-bundle issue

I am trying fms with fv3 within the jedi-bundle, but failed to compile fms part.

Initially, I tried to compile fms together with other components directly in the CMakeLists.txt of jedi-bundle. However, the FMS module seems to have failed to compile completely, resulting in an error that could not find fms-targets.cmake or other part.

Later to address this, I compiled fms separately and then linked it in the jedi-bundle’s CMakeLists.txt. But when make, it showed: mpp_domains_mod.mod at line 1 column 2: Unexpected EOF. I suspect that the issue might be due to using different Fortran compilers for fms and jedi-bundle, leading to compatibility issues in file reading.

How to successfully integrate fms to use with fv3 in jedi-bundle? Or, is there a fms module in Derecho that I could link or use?

Thank you in advance for your help.