# Modules to build JEDI on Orion/Hercules with FMS/2023.04

**URL:** <https://forums.jcsda.org/t/modules-to-build-jedi-on-orion-hercules-with-fms-2023-04/599>\
**Category:** JEDI\
**Created:** [July 3, 2024, 6:48pm UTC](https://forums.jcsda.org/t/modules-to-build-jedi-on-orion-hercules-with-fms-2023-04/599 "2024-07-03T18:48:51Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![hbo9955](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.jcsda.org/hbo9955/32/47_2.png) [@hbo9955](https://forums.jcsda.org/u/hbo9955)\
**Post date:** [July 3, 2024, 6:48pm UTC](https://forums.jcsda.org/t/modules-to-build-jedi-on-orion-hercules-with-fms-2023-04/599/1 "2024-07-03T18:48:51Z")

</div>

Hello,

Due to the recent update of FMS to 2024.03, I failed to build the recent JEDI using the spack-stack 1.7.0 modules on Hercules and Orion ([3. Pre-configured sites — spack-stack 1.7.0 documentation](https://spack-stack.readthedocs.io/en/1.7.0/PreConfiguredSites.html)). I also tried “module unload fms; module load fms/2023.04”. It failed seemingly due to the incompatibility with other lib/package.

What modules would I use to compile the recent JEDI version on Hercules or Orion?

Thanks,  
Bo

---

<div class="post-metadata">

**Author:** ![ncrossette](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.jcsda.org/ncrossette/32/219_2.png) [@ncrossette](https://forums.jcsda.org/u/ncrossette)\
**Post date:** [July 3, 2024, 8:05pm UTC](https://forums.jcsda.org/t/modules-to-build-jedi-on-orion-hercules-with-fms-2023-04/599/2 "2024-07-03T20:05:46Z")

</div>

Hi Bo,

Could you copy/paste the error that you are seeing? And which compiler are you using?

-Nate

---

<div class="post-metadata">

**Author:** ![hbo9955](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.jcsda.org/hbo9955/32/47_2.png) [@hbo9955](https://forums.jcsda.org/u/hbo9955)\
**Post date:** [July 3, 2024, 8:22pm UTC](https://forums.jcsda.org/t/modules-to-build-jedi-on-orion-hercules-with-fms-2023-04/599/3 "2024-07-03T20:22:49Z")

</div>

Hi Nate,

Thanks for your response. Here is the ecbuild error from the default spack-stack 1.7.0 on that webpage. I tried both Intel and gnu on Hercules. They have the same error.

```auto
CMake Error at fv3-jedi-lm/CMakeLists.txt:74 (find_package):
  Could not find a configuration file for package "FMS" that is compatible
  with requested version "2023.04".
  The following configuration files were considered but not accepted:
    /work/noaa/gsienkf/bhuang/expCodes/JEDI/fv3-bundle/PR/GETKF-Memory-20240702-Hercules/build/fms/fms-config.cmake, version: 2020.4.0
    /work/noaa/epic/role-epic/spack-stack/hercules/spack-stack-1.7.0/envs/ue-gcc/install/gcc/12.2.0/fms-release-jcsda-nhowxl2/lib64/cmake/fms/fms-config.cmake, version: 2020.4.0

```

The error using Hercules Intel by adding “module unload fms; module load fms/2023.0” is on Orion/Hercules below.

- /work/noaa/gsienkf/bhuang/expCodes/JEDI/fv3-bundle/PR/GETKF-Memory-20240702-Hercules/ecbuild.log.fms2023.04

Thanks,  
Bo

---

<div class="post-metadata">

**Author:** ![ncrossette](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.jcsda.org/ncrossette/32/219_2.png) [@ncrossette](https://forums.jcsda.org/u/ncrossette)\
**Post date:** [July 3, 2024, 9:30pm UTC](https://forums.jcsda.org/t/modules-to-build-jedi-on-orion-hercules-with-fms-2023-04/599/4 "2024-07-03T21:30:33Z")

</div>

Do you get an error when you do the unload/reload? :

```auto
module unload fms
module load fms/2023.04

```

and which version of fms do you see when you do `module list` before/after the unload/reload?

---

<div class="post-metadata">

**Author:** ![hbo9955](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.jcsda.org/hbo9955/32/47_2.png) [@hbo9955](https://forums.jcsda.org/u/hbo9955)\
**Post date:** [July 3, 2024, 10:08pm UTC](https://forums.jcsda.org/t/modules-to-build-jedi-on-orion-hercules-with-fms-2023-04/599/5 "2024-07-03T22:08:08Z")

</div>

Hi Nate,

Below are the modules I loaded. I added the last two lines to the modules for Hercules listed on [this webpage](https://spack-stack.readthedocs.io/en/1.7.0/PreConfiguredSites.html). Otherwise, it will show errors “_Could not find a configuration file for package “FMS” that is compatible with requested version “2023.04”_.”

- module purge

- module use /work/noaa/epic/role-epic/spack-stack/hercules/modulefiles

- module load ecflow/5.8.4

- module load git-lfs/3.1.2

- module use /work/noaa/epic/role-epic/spack-stack/hercules/spack-stack-1.7.0/envs/ue-intel/install/modulefiles/Core

- module load stack-intel/2021.9.0

- module load stack-intel-oneapi-mpi/2021.9.0

- module load stack-python/3.10.13

- module load jedi-fv3-env

- module unload fms

- module load fms/2023.04

When I loaded these modules, “unload/reload fms” command will change from the default **“fms/release-jcsda” to “fms/2023.04”**. Meanwhile, it also showed the error/warning message below.

- The following dependent module(s) are not currently loaded: fms/release-jcsda (required by: jedi-fv3-env/1.0.0)

Bo

---

<div class="post-metadata">

**Author:** ![ncrossette](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.jcsda.org/ncrossette/32/219_2.png) [@ncrossette](https://forums.jcsda.org/u/ncrossette)\
**Post date:** [July 3, 2024, 10:38pm UTC](https://forums.jcsda.org/t/modules-to-build-jedi-on-orion-hercules-with-fms-2023-04/599/6 "2024-07-03T22:38:07Z")

</div>

That all looks right. Which bundle did you clone? fv3-bundle, jedi-bundle, or something else?

---

<div class="post-metadata">

**Author:** ![hbo9955](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.jcsda.org/hbo9955/32/47_2.png) [@hbo9955](https://forums.jcsda.org/u/hbo9955)\
**Post date:** [July 3, 2024, 10:49pm UTC](https://forums.jcsda.org/t/modules-to-build-jedi-on-orion-hercules-with-fms-2023-04/599/7 "2024-07-03T22:49:52Z")

</div>

Thanks. It’s fv3-bundle.  
Bo

---

<div class="post-metadata">

**Author:** ![ncrossette](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.jcsda.org/ncrossette/32/219_2.png) [@ncrossette](https://forums.jcsda.org/u/ncrossette)\
**Post date:** [July 8, 2024, 1:24pm UTC](https://forums.jcsda.org/t/modules-to-build-jedi-on-orion-hercules-with-fms-2023-04/599/8 "2024-07-08T13:24:37Z")

</div>

Hi Bo,  
I was able to reproduce your issue with the fv3-bundle. I don’t have an estimate for when it might be fixed, but in the meantime I recommend switching to the jedi-bundle. I believe the jedi-bundle has everything the fv3-bundle has (plus some extras), but if there is something missing that you need, let us know. And if you were uninterested in the extra things in the jedi-bundle and wanted to save some time, you could comment out the MPAS and SOCA related lines at the end of the `CMakeLists.txt` in the jedi-bundle.  
-Nate

---

<div class="post-metadata">

**Author:** ![hbo9955](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.jcsda.org/hbo9955/32/47_2.png) [@hbo9955](https://forums.jcsda.org/u/hbo9955)\
**Post date:** [July 8, 2024, 4:13pm UTC](https://forums.jcsda.org/t/modules-to-build-jedi-on-orion-hercules-with-fms-2023-04/599/9 "2024-07-08T16:13:01Z")

</div>

Hi Nate,

Thanks very much for your confirmation and recommendation. I will give it a try. In addition, because my ongoing experiments uses “relatively old” JEDI version and rely on the spack-stack-1.6.0/1.7.0 installed on Hercules, I wanted ask if this fix is going to affect/change these two spack modules (I hope not)?

Thanks,  
Bo

---

<div class="post-metadata">

**Author:** ![ncrossette](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.jcsda.org/ncrossette/32/219_2.png) [@ncrossette](https://forums.jcsda.org/u/ncrossette)\
**Post date:** [July 8, 2024, 6:07pm UTC](https://forums.jcsda.org/t/modules-to-build-jedi-on-orion-hercules-with-fms-2023-04/599/10 "2024-07-08T18:07:52Z")

</div>

Hi Bo,  
With the list you are using (including the `module unload fms` `module load fms/2023.04` at the end) you should be all set to build the jedi-bundle using spack-1.6/1.7. I built successfully on hercules this morning (using the GNU compiler). BTW, if you choose to comment out MPAS and SOCA in the CMakeLists, you will also need to comment out the the line for the coupling repo: `#ecbuild_bundle( PROJECT coupling ...`  
-Nate

---

<div class="post-metadata">

**Author:** ![hbo9955](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.jcsda.org/hbo9955/32/47_2.png) [@hbo9955](https://forums.jcsda.org/u/hbo9955)\
**Post date:** [July 9, 2024, 3:28pm UTC](https://forums.jcsda.org/t/modules-to-build-jedi-on-orion-hercules-with-fms-2023-04/599/11 "2024-07-09T15:28:49Z")

</div>

Hi Nate,

Thanks for your answer. And sorry for the confusion about the question in my last message. I currently use the fv3-bundle built in Jan 2024 in one of my experiments that uses spack-1.6/1.7 on Hercules. Some features in this “old” JEDI version that I needed were disabled in the recent JEDI. So I may not be able to use the recent JEDI to continue my experiment.

I wanted to know whether there will be any change to or if this potential fix (if it will happen) of FMS change for fv3-bundle will modify the spack-1.6/1.7 installed on Hercules in the future? If not (I hope), it means I can continue my current experiment using this “old” JEDI. That would be great.

Thanks,  
Bo

---

<div class="post-metadata">

**Author:** ![ncrossette](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.jcsda.org/ncrossette/32/219_2.png) [@ncrossette](https://forums.jcsda.org/u/ncrossette)\
**Post date:** [July 11, 2024, 6:02pm UTC](https://forums.jcsda.org/t/modules-to-build-jedi-on-orion-hercules-with-fms-2023-04/599/12 "2024-07-11T18:02:11Z")

</div>

Hi Bo,  
I don’t think I follow. Were you trying to re-build (or do a `make update` on) your build from January? If so, you shouldn’t be doing the fms module swap. The current spack builds on Hercules and Orion would not have been affected by the fms update. It’s not until the next spack release (1.8) later this summer that there will be a change to the spack modules. If you want to continue your experiments, you should load the spack environment as you previously were.  
-Nate

---

<div class="post-metadata">

**Author:** ![hbo9955](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.jcsda.org/hbo9955/32/47_2.png) [@hbo9955](https://forums.jcsda.org/u/hbo9955)\
**Post date:** [July 12, 2024, 4:48pm UTC](https://forums.jcsda.org/t/modules-to-build-jedi-on-orion-hercules-with-fms-2023-04/599/13 "2024-07-12T16:48:00Z")

</div>

Hi Nate,

Thanks for your explanation. It is great to know that the current spacks already built on Hercules/Orion will not be affected by the fms update. Then I can continue using them for my current experiments using “old” JEDI that was built on spack-stack 1.6/1.7.

Also, I can build jedi-bundle successfully using spack-stack 1.7 following your instruction. It is sufficient for me to test some features using the recent JEDI version.

Thanks very much for your patience to answer my questions.

Bo

---

<div class="post-metadata">

**Author:** ![gnosis83](https://avatars.discourse-cdn.com/v4/letter/g/74df32/32.png) [@gnosis83](https://forums.jcsda.org/u/gnosis83)\
**Post date:** [July 25, 2024, 5:03pm UTC](https://forums.jcsda.org/t/modules-to-build-jedi-on-orion-hercules-with-fms-2023-04/599/14 "2024-07-25T17:03:54Z")

</div>

Hi @ncrossette,  
I am also building jedi-bundle on Hercules. I was wondering which version you have built successfully with spack-stack 1.7.0.  
Somehow, I got the following error when “make -j”:  
/work2/noaa/hwrf/tutorial/save/hsiaof/jedi/jedi-bundle/fv3/model/fv\_sg.F90(62): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [GFDL\_CLOUD\_MICROPHYS\_MOD]  
use gfdl\_cloud\_microphys\_mod, only: wqs1, wqs2, wqsat2\_moist  
------^  
/work2/noaa/hwrf/tutorial/save/hsiaof/jedi/jedi-bundle/fv3/model/fv\_sg.F90(62): error #6580: Name in only-list does not exist or is not accessible. [WQS1]  
use gfdl\_cloud\_microphys\_mod, only: wqs1, wqs2, wqsat2\_moist  
--------------------------------------^  
/work2/noaa/hwrf/tutorial/save/hsiaof/jedi/jedi-bundle/fv3/model/fv\_sg.F90(62): error #6580: Name in only-list does not exist or is not accessible. [WQS2]  
use gfdl\_cloud\_microphys\_mod, only: wqs1, wqs2, wqsat2\_moist  
--------------------------------------------^  
/work2/noaa/hwrf/tutorial/save/hsiaof/jedi/jedi-bundle/fv3/model/fv\_sg.F90(62): error #6580: Name in only-list does not exist or is not accessible. [WQSAT2\_MOIST]  
use gfdl\_cloud\_microphys\_mod, only: wqs1, wqs2, wqsat2\_moist  
--------------------------------------------------^  
/work2/noaa/hwrf/tutorial/save/hsiaof/jedi/jedi-bundle/fv3/model/fv\_sg.F90(994): error #6311: A block was not terminated before an ELSEIF statement was reached.  
elseif ( nwat==6 ) then  
—^  
/work2/noaa/hwrf/tutorial/save/hsiaof/jedi/jedi-bundle/fv3/model/fv\_sg.F90(1313): error #6404: This name does not have a type, and must have an explicit type. [WQS2]  
qsw = wqs2(t0(i,k), den(i,k), dqsdt)  
----------------^  
/work2/noaa/hwrf/tutorial/save/hsiaof/jedi/jedi-bundle/fv3/model/fv\_sg.F90(1782): error #6404: This name does not have a type, and must have an explicit type. [WQSAT2\_MOIST]  
qsw = wqsat2\_moist(pt2(i,j), qv2(i,j), p2(i,j), dwsdt)  
--------------^  
/work2/noaa/hwrf/tutorial/save/hsiaof/jedi/jedi-bundle/fv3/model/fv\_sg.F90(2158): error #6406: Conflicting attributes or multiple declaration of name. [WQSAT2\_MOIST]  
qsw = wqsat2\_moist(pt2(i,j), qv2(i,j), p2(i,j), dwsdt)  
--------------^  
/work2/noaa/hwrf/tutorial/save/hsiaof/jedi/jedi-bundle/fv3/model/fv\_sg.F90(2490): error #6406: Conflicting attributes or multiple declaration of name. [WQSAT2\_MOIST]  
qsw = wqsat2\_moist(pt2(i,j), qv2(i,j), p2(i,j), dwsdt)  
----------------^  
compilation aborted for /work2/noaa/hwrf/tutorial/save/hsiaof/jedi/jedi-bundle/fv3/model/fv\_sg.F90 (code 1)  
make[2]: \*\*\* [fv3/CMakeFiles/fv3.dir/build.make:244: fv3/CMakeFiles/fv3.dir/model/fv\_sg.F90.o] Error 1  
make[1]: \*\*\* [CMakeFiles/Makefile2:26371: fv3/CMakeFiles/fv3.dir/all] Error 2  
make[1]: \*\*\* Waiting for unfinished jobs…

---

<div class="post-metadata">

**Author:** ![ncrossette](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.jcsda.org/ncrossette/32/219_2.png) [@ncrossette](https://forums.jcsda.org/u/ncrossette)\
**Post date:** [July 25, 2024, 5:37pm UTC](https://forums.jcsda.org/t/modules-to-build-jedi-on-orion-hercules-with-fms-2023-04/599/15 "2024-07-25T17:37:25Z")

</div>

This is likely do yesterday’s maintenance. Multiple people from the JCSDA have been unable to build jedi on either hercules or orion since the update yesterday.

---

<div class="post-metadata">

**Author:** ![LizuoLiu](https://avatars.discourse-cdn.com/v4/letter/l/b19c9b/32.png) [@LizuoLiu](https://forums.jcsda.org/u/LizuoLiu)\
**Post date:** [September 18, 2025, 7:59pm UTC](https://forums.jcsda.org/t/modules-to-build-jedi-on-orion-hercules-with-fms-2023-04/599/16 "2025-09-18T19:59:47Z")

</div>

Hi, Nate, is there any update relating to this issue? I tried to build JEDI-bundle through the container from Singularity for SOCA or FV3-jedi-lm, and I got same error:

```auto
CMake Error at soca/CMakeLists.txt:34 (find_package):
  Could not find a configuration file for package "fms" that is compatible
  with requested version "2023.3.0".

  The following configuration files were considered but not accepted:

    /opt/views/view/lib/cmake/fms/fms-config.cmake, version: 2020.4.0

```

To reproduce this, I followed the installation tutorial from the discussion:

> [@No ecbuild when using the singularity build](https://forums.jcsda.org/t/no-ecbuild-when-using-the-singularity-build/563/17):
>
> Hi Steve, I think if you are using the singularity containers with the public repos your best bet is to use jedi-bundle this includes fv3-jedi as well as other packages. These steps worked for me to be able to build in the latest singularity container: #start the singularity shell singularity shell -e jedi-gnu-openmpi-dev\_latest.sif #make a directory to put the source and build in mkdir jedi cd jedi #clone jedi-bundle git clone https://github.com/jcsda/jedi-bundle #make build directory …

---

<div class="post-metadata">

**Author:** ![ncrossette](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.jcsda.org/ncrossette/32/219_2.png) [@ncrossette](https://forums.jcsda.org/u/ncrossette)\
**Post date:** [September 18, 2025, 9:31pm UTC](https://forums.jcsda.org/t/modules-to-build-jedi-on-orion-hercules-with-fms-2023-04/599/17 "2025-09-18T21:31:20Z")

</div>

Hi Lizuo,  
Where are you trying to build… on Hercules/Orion? And which version of the spack-stack are you wanting to use? Unfortunately, I don’t think we are supporting our Singularity containers anymore, so chances are those are out-dated.  
-Nate

---

<div class="post-metadata">

**Author:** ![LizuoLiu](https://avatars.discourse-cdn.com/v4/letter/l/b19c9b/32.png) [@LizuoLiu](https://forums.jcsda.org/u/LizuoLiu)\
**Post date:** [September 18, 2025, 9:50pm UTC](https://forums.jcsda.org/t/modules-to-build-jedi-on-orion-hercules-with-fms-2023-04/599/18 "2025-09-18T21:50:01Z")

</div>

Hi, Nate, Thank you for the quick response! I installed it on a local server. The spack-stack version should be that is installed default in singularity image.

Do you know whether I have any chance to install it locally on the department server? I mainly want to use the jedi-soca module.

Thank you in advance!

Lizuo
