Description
I'm trying to port CESM 3.0 beta02 to Fujitsu A64FX platform (Redhat EL8, x86_64 as login node and aarch64 as computing node) with Fujitsu compiler suite.
With some code modifications, I've managed to get to building the final cesm.exe; it failed at the esm.F90 by missing (sub)modules:
jwd1384i-s "/IFS/nwpr/gfs/com132/cesm3_0_b02/components/cmeps/cime_config/../cesm/driver/esm.F90", line 826: The module or submodule 'mpp_min' that is used directly or indirectly in the module or submodule 'ocn_comp_nuopc' must be available.
This module is actually built and can be found in:
bld/fujitsu/openmpi/nodebug/nothreads/CDEPS/docn/ocn_comp_nuopc.mod
Its path (bld/..../docn) is not in the Fortran compiler -I paths; adding it to copied compile command from log makes it find this module, so esm.o and esm.mod can be built.
I'm not sure about how these include paths were populated, and there could be some cmake / alternative compiler interactions in this.
What can I do to make this path included in the build process?