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

[develop] UFS-SRW-AQM Build Errors on WCOSS2 #1112

Open
drnimbusrain opened this issue Jul 25, 2024 · 4 comments
Open

[develop] UFS-SRW-AQM Build Errors on WCOSS2 #1112

drnimbusrain opened this issue Jul 25, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@drnimbusrain
Copy link

Expected behavior

UFS-SRW-AQM [develop] branch should build on WCOSS2.

Current behavior

UFS-SRW-AQM [develop] branch has errors in build on WCOSS2.

Machines affected

WCOSS2

Steps To Reproduce

https://ufs-srweather-app.readthedocs.io/en/develop/UsersGuide/BuildingRunningTesting/AQM.html#quick-start-guide-srw-aqm

git clone -b develop https://github.com/ufs-community/ufs-srweather-app
cd ufs-srweather-app
./app_build.sh -p=wcoss2 -a=ATMAQ --extrn
./manage_externals/checkout_externals
./devbuild.sh -p=wcoss2 -a=ATMAQ

Detailed Description of Fix (optional)

Additional Information (optional)

Possible Implementation (optional)

Output (optional)

/lfs/h2/oar/arl/noscrub/Patrick.C.Campbell/run_ufs_srw_aqm/run_na_test_ufs-srw-app_20240724_develop/sorc/ufs-weather-model/FV3/io/module_write_netcdf.F90(424): error #6404: This name does not have a type, and must have an explicit type.   [NF90_DEF_VAR_ZSTANDARD]
              ncerr = nf90_def_var_zstandard(ncid, varids(i), zstandard_level(grid_id)) ; if (ncerr /= nf90_noerr) write(0,*) "file: ", "module_write_netcdf.F90", " line: ", 424, trim(nf90_strerror(ncerr));     if (ncerr /= nf90_noerr) call ESMF_Finalize(endflag=ESMF_END_ABORT)
----------------------^
/lfs/h2/oar/arl/noscrub/Patrick.C.Campbell/run_ufs_srw_aqm/run_na_test_ufs-srw-app_20240724_develop/sorc/ufs-weather-model/FV3/io/module_write_netcdf.F90(443): error #6404: This name does not have a type, and must have an explicit type.   [NF90_DEF_VAR_QUANTIZE]
              ncerr = nf90_def_var_quantize(ncid, varids(i), quant_mode, quantize_nsd(grid_id)) ; if (ncerr /= nf90_noerr) write(0,*) "file: ", "module_write_netcdf.F90", " line: ", 443, trim(nf90_strerror(ncerr));     if (ncerr /= nf90_noerr) call ESMF_Finalize(endflag=ESMF_END_ABORT)
----------------------^
compilation aborted for /lfs/h2/oar/arl/noscrub/Patrick.C.Campbell/run_ufs_srw_aqm/run_na_test_ufs-srw-app_20240724_develop/sorc/ufs-weather-model/FV3/io/module_write_netcdf.F90 (code 1)
make[5]: *** [FV3/CMakeFiles/fv3atm.dir/build.make:283: FV3/CMakeFiles/fv3atm.dir/io/module_write_netcdf.F90.o] Error 1
make[5]: *** Waiting for unfinished jobs....
/lfs/h2/oar/arl/noscrub/Patrick.C.Campbell/run_ufs_srw_aqm/run_na_test_ufs-srw-app_20240724_develop/sorc/ufs-weather-model/FV3/io/module_write_restart_netcdf.F90(385): error #6404: This name does not have a type, and must have an explicit type.   [NF90_DEF_VAR_ZSTANDARD]
            ncerr = nf90_def_var_zstandard(ncid, varids(i), zstandard_level(1))
--------------------^
/lfs/h2/oar/arl/noscrub/Patrick.C.Campbell/run_ufs_srw_aqm/run_na_test_ufs-srw-app_20240724_develop/sorc/ufs-weather-model/FV3/io/module_write_restart_netcdf.F90(387): error #6404: This name does not have a type, and must have an explicit type.   [NF90_ENOFILTER]
               if (ncerr == nf90_enofilter) then
----------------------------^
compilation aborted for /lfs/h2/oar/arl/noscrub/Patrick.C.Campbell/run_ufs_srw_aqm/run_na_test_ufs-srw-app_20240724_develop/sorc/ufs-weather-model/FV3/io/module_write_restart_netcdf.F90 (code 1)
make[5]: *** [FV3/CMakeFiles/fv3atm.dir/build.make:296: FV3/CMakeFiles/fv3atm.dir/io/module_write_restart_netcdf.F90.o] Error 1
^[[Bmake[4]: *** [CMakeFiles/Makefile2:416: FV3/CMakeFiles/fv3atm.dir/all] Error 2

@chan-hoo

@drnimbusrain drnimbusrain added the bug Something isn't working label Jul 25, 2024
@chan-hoo
Copy link
Collaborator

@drnimbusrain, I am sorry. I don't have access to WCOSS2 any more (other EPIC code managers as well). This may be the module file issue. The module files have not been updated since I left EMC. Moreover, as far as I know, uwtools was not available on WCOSS2 yet. The develop branch will not work correctly without it.

@drnimbusrain
Copy link
Author

drnimbusrain commented Feb 12, 2025

@chan-hoo @gspetro @MichaelLueken I understand EPIC does not support WCOSS2 for UFS-SRW-App coupled AQM, but still trying to get latest [develop] version build on WCOSS2 exactly following the latest documentation: https://ufs-srweather-app.readthedocs.io/en/develop/UsersGuide/BuildingRunningTesting/AQM.html

git clone -b develop https://github.com/ufs-community/ufs-srweather-app
cd ufs-srweather-app
./manage_externals/checkout_externals
./devbuild.sh -p=wcoss2 -a=ATMAQ

Now I see the following build errors, which points to an issue with UPP submodule in FV3 when using later versions of ufs-weather-model:

/lfs/h2/oar/arl/noscrub/Patrick.C.Campbell/run_ufs_srw_aqm/run_na_test_ufs-srw-app_20240212_develop/sorc/ufs-weather-model/FV3/upp/sorc/ncep_post.fd/grib2_module.f(499): error #6580: Name in only-list does not exist or is not accessible. [G2SEC4_TEMP9]
g2sec4_temp0,g2sec4_temp8,g2sec4_temp9,g2sec4_temp44, &
-----------------------------------------------------^
/lfs/h2/oar/arl/noscrub/Patrick.C.Campbell/run_ufs_srw_aqm/run_na_test_ufs-srw-app_20240212_develop/sorc/ufs-weather-model/FV3/upp/sorc/ncep_post.fd/grib2_module.f(500): error #6580: Name in only-list does not exist or is not accessible. [G2SEC4_TEMP46]
g2sec4_temp46,g2sec4_temp48,g2sec5_temp0,g2sec5_temp2, &
---------------------------^
/lfs/h2/oar/arl/noscrub/Patrick.C.Campbell/run_ufs_srw_aqm/run_na_test_ufs-srw-app_20240212_develop/sorc/ufs-weather-model/FV3/upp/sorc/ncep_post.fd/grib2_module.f(502): error #6580: Name in only-list does not exist or is not accessible. [G2SEC4_TEMP49]
g2sec4_temp49
---------------------------^
[ 49%] Building Fortran object AQM/CMakeFiles/CCTM.dir/src/model/CMAQ/CCTM/src/gas/ebi_cb6r3_ae6_aq/DEGRADE_SETUP_TOX.F.o
compilation aborted for /lfs/h2/oar/arl/noscrub/Patrick.C.Campbell/run_ufs_srw_aqm/run_na_test_ufs-srw-app_20240212_develop/sorc/ufs-weather-model/FV3/upp/sorc/ncep_post.fd/grib2_module.f (code 1)
make[5]: *** [FV3/upp/sorc/ncep_post.fd/CMakeFiles/upp.dir/build.make:868: FV3/upp/sorc/ncep_post.fd/CMakeFiles/upp.dir/grib2_module.f.o] Error 1
make[5]: *** Waiting for unfinished jobs....

Interestingly, I try this same procedure on Hera with [develop], and I do not get these errors (but do see this same error on Hera with other older workflows like [aqm_dev]). Is there any guidance out there on how to fix this and proceed?

Thank you, Patrick

@iri

@MichaelLueken
Copy link
Collaborator

@drnimbusrain -

While the versions/build.ver.wcoss2 and required libraries haven't been updated for WCOSS2 in a long time, you will need to source the versions/build.ver.wcoss2 before launching the devbuild.sh script:

source versions/build.ver.wcoss2

Once you have done this, then modulefiles/build_wcoss2_intel.lua should be able to identify the library versions and load the modules, unless they no longer exist on the machine.

@drnimbusrain
Copy link
Author

drnimbusrain commented Feb 12, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants