How to Compile the FMS shared code of MOM6 in NCI GADI

I want to run the MOM6 model in NCI Gadi, but I can not compile the FMS shared code successfully.
What I did as the followings:

mkdir build
cat > build/env << EOFA
module load gcc/12.2.0
module load intel-compiler-llvm/2022.2.0
module load openmpi/4.1.4
module load netcdf
module load hdf5

mkdir -p build/fms/
(cd build/fms; rm -f path_names;
…/…/src/mkmf/bin/list_paths -l …/…/src/FMS;
…/…/src/mkmf/bin/mkmf -t …/…/src/mkmf/templates/ -p libfms.a -c “-Duse_libMPI -Duse_netCDF” path_names)
(cd build/fms/; source …/env; make NETCDF=3 REPRO=1 libfms.a -j)

Then I get :

make: *** [Makefile:133: mpp_parameter.o] Error 1
make: *** Waiting for unfinished jobs…
make: *** [Makefile:147: platform.o] Error 1
make: *** [Makefile:27: cloud_interpolator.o] Error 1
icc: remark #10441: The Intel(R) C++ Compiler Classic (ICC) is deprecated and will be
removed from product release in the second half of 2023. The Intel(R) oneAPI
DPC++/C++ Compiler (ICX) is the recommended compiler moving forward. Please
transition to use this compiler. Use ‘-diag-disable=10441’ to disable this message.
make: *** [Makefile:65: drifters_io.o] Error 1
make: *** [Makefile:63: drifters_input.o] Error 1
make: *** [Makefile:61: drifters_core.o] Error 1

Does anyone know why that is?How can I adjust to avoid mistakes? Thank you so much!

1 Like

Hi Ruhui,

There are some instructions on the CLEX CMS wiki for compiling MOM6 on gadi

Can you try that and see if it works for you.

1 Like

The problem you are encountering is because it is using the ssh method to clone the git repository. You can either set up ssk keys or use the https protocol by going to the repo and under the “<> Code” dropdown menu, select HTTPS and copy that URL and clone like so:

git clone

Which other cases do you need to build?

1 Like

Yes, just now I try this suceefully.

I want to try the MOM6-SIS2 coupled mode

That is one of the other cases that is already catered for. You can just modify the script to add that case, following the logic for the ocean_only_symmetric case but changing the directory name to ice_ocean_SIS2_symmetric.

Looks like somebody should update that wiki page to say

git clone

Somebody just did.

Thanks, somebody!