-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Hi OM3 team,
I am looking to build OM3 with modified MOM6 source code I have on gadi. The modified MOM6 source code has a new module added, MOM_numerical_mixing.F90, within the MOM6/src/diagnostics directory. I have been able to build an executable from this MOM6 source code with mom6-ninja-nci and run ANU-TUB with it.
The instructions on how to setup spack and the development environment were thorough and I think I now have everything in place. My development environment spack.yaml has the following appended to it
develop:
access-mom6:
spec: [email protected]
path: /g/data/e14/jb2381/MOM6-examples/src/MOM6-nm # path to the modified source code
After running spack concretize -f --reuse-deps, spack install returns the following error:
==> Error: ProcessError: Command exited with status 2:
'make' '-j16'
6 errors found in build log:
957 /apps/cmake/3.31.6/bin/cmake -E cmake_copy_f90_mod mod/phillips_initialization.mod CMakeFiles/mom6lib.dir/phillips_initialization.mod.stamp IntelLLVM
958 /apps/cmake/3.31.6/bin/cmake -E touch CMakeFiles/mom6lib.dir/src/user/Phillips_initialization.F90.o.provides.build
959 /apps/cmake/3.31.6/bin/cmake -E cmake_copy_f90_mod mod/lock_exchange_initialization.mod CMakeFiles/mom6lib.dir/lock_exchange_initialization.mod.stamp IntelLLVM
960 /apps/cmake/3.31.6/bin/cmake -E touch CMakeFiles/mom6lib.dir/src/user/lock_exchange_initialization.F90.o.provides.build
961 /apps/cmake/3.31.6/bin/cmake -E cmake_copy_f90_mod mod/mom_zanna_bolton.mod CMakeFiles/mom6lib.dir/mom_zanna_bolton.mod.stamp IntelLLVM
962 /apps/cmake/3.31.6/bin/cmake -E touch CMakeFiles/mom6lib.dir/src/parameterizations/lateral/MOM_Zanna_Bolton.F90.o.provides.build
>> 963 /g/data/e14/jb2381/MOM6-examples/src/MOM6-nm/src/diagnostics/MOM_diagnostics.F90(36): error #7002: Error in opening the compiled module file. Check INCLUDE paths.
[MOM_NUMERICAL_MIXING]
964 use MOM_numerical_mixing, only : numerical_mixing
965 ----^
>> 966 /g/data/e14/jb2381/MOM6-examples/src/MOM6-nm/src/diagnostics/MOM_diagnostics.F90(36): error #6580: Name in only-list does not exist or is not accessible. [NUMERICA
L_MIXING]
967 use MOM_numerical_mixing, only : numerical_mixing
968 ----------------------------------^
>> 969 /g/data/e14/jb2381/MOM6-examples/src/MOM6-nm/src/diagnostics/MOM_diagnostics.F90(1726): error #6406: Conflicting attributes or multiple declaration of name. [NUMER
ICAL_MIXING]
970 call numerical_mixing(G, GV, Tr, h, diag_pre_dyn, dt_trans, Idt, uhtr, vhtr, scale_constant, x_upwind, y_upwind, nm)
971 -----------^
972 compilation aborted for /g/data/e14/jb2381/MOM6-examples/src/MOM6-nm/src/diagnostics/MOM_diagnostics.F90 (code 1)
>> 973 make[2]: *** [CMakeFiles/mom6lib.dir/build.make:978: CMakeFiles/mom6lib.dir/src/diagnostics/MOM_diagnostics.F90.o] Error 1
974 make[2]: *** Waiting for unfinished jobs....
975 make[2]: Leaving directory '/scratch/e14/jb2381/tmp/spack-stage/spack-stage-access-mom6-2025.07.000-tv22kxhbvmstyal7ubocwvkousqtxlxl/spack-build-tv22kxh'
>> 976 make[1]: *** [CMakeFiles/Makefile2:90: CMakeFiles/mom6lib.dir/all] Error 2
977 make[1]: Leaving directory '/scratch/e14/jb2381/tmp/spack-stage/spack-stage-access-mom6-2025.07.000-tv22kxhbvmstyal7ubocwvkousqtxlxl/spack-build-tv22kxh'
>> 978 make: *** [Makefile:139: all] Error 2
See build log for details:
/scratch/e14/jb2381/tmp/spack-stage/spack-stage-access-mom6-2025.07.000-tv22kxhbvmstyal7ubocwvkousqtxlxl/spack-build-out.txt
which indicates it cannot find the new (compiled) module. Is there anything else I need to add to the build information/process, e.g. something to INCLUDE paths, when there is something new to be compiled and found? Any help or info would be great, thanks!