Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FMS build fails on fortran compiling command steps #5

Open
ziglaser opened this issue Feb 2, 2024 · 1 comment
Open

FMS build fails on fortran compiling command steps #5

ziglaser opened this issue Feb 2, 2024 · 1 comment

Comments

@ziglaser
Copy link

ziglaser commented Feb 2, 2024

I'm attempting to build MOM6 using the fork intended to work with regional-mom6, using the exact procedure outlined in the GitHub. During the ninja build in the 'shared' folder, I get the following error:

ninja: error: 'src/FMS/affinity/fms_affinity.F90', needed by 'fms_affinity_mod.mod', missing and no known rule to make it

Which corresponds to the following line in the ninja build

'build fms_affinity.o fms_affinity_mod.mod : fc ${srcdir}/FMS/affinity/fms_affinity.F90 | ${srcdir}/FMS/fms/fms.F90 ${srcdir}/FMS/mpp/mpp.F90 || fms.o mpp.o'

However, the file src/FMS/affinity/fms_affinity.F90 does exist in src. If I remove that line, it fails on the following fc build line. Since it makes it through the first 12 lines of cc commands, I assume something is going wrong with the fc process. Happy to provide any more detail if it would be helpful, I'm curious if the clean build works from start to finish for anyone else.

@angus-g
Copy link
Owner

angus-g commented Feb 19, 2024

Sorry, this is very late to be getting back to you, but it sounds more like your srcdir is configured incorrectly, and so the build system just can't find the source files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants