# Build error on Hera

**URL:** <https://forums.jcsda.org/t/build-error-on-hera/537>\
**Category:** JEDI\
**Created:** [October 6, 2023, 7:42pm UTC](https://forums.jcsda.org/t/build-error-on-hera/537 "2023-10-06T19:42:31Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![HuiLiu-NOAA](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.jcsda.org/huiliu-noaa/32/194_2.png) [@HuiLiu-NOAA](https://forums.jcsda.org/u/HuiLiu-NOAA)\
**Post date:** [October 6, 2023, 7:42pm UTC](https://forums.jcsda.org/t/build-error-on-hera/537/1 "2023-10-06T19:42:32Z")

</div>

Any ideas about the build error:

module purge  
module use /scratch1/NCEPDEV/nems/role.epic/spack-stack/spack-stack-1.5.0/envs/unified  
-env/install/modulefiles/Core  
module load stack-intel/2021.5.0  
module load stack-intel-oneapi-mpi/2021.5.1  
module load stack-python/3.10.8  
module load jedi-fv3-env  
module load eckit  
module load ewok-env  
module load soca-env

git clone [GitHub - JCSDA/fv3-bundle: Bundle containing all the repositories that are needed to compile fv3-jedi](https://github.com/JCSDA/fv3-bundle.git)  
ecbuild …/src/fv3-bundle/

– git fetch --all @ /scratch2/NESDIS/nesdis-rdo1/Hui.Liu/jedi/src/fv3-bundle/crtm  
– git fetch --all --tags @ /scratch2/NESDIS/nesdis-rdo1/Hui.Liu/jedi/src/fv3-bundle/crtm  
– git checkout v2.3-jedi.0 @ /scratch2/NESDIS/nesdis-rdo1/Hui.Liu/jedi/src/fv3-bundle/crtm

* * *

– [crtm] (2.3.0) [46e3292]  
– Feature TESTS enabled  
CMake Error at /scratch2/NESDIS/nesdis-rdo1/Hui.Liu/jedi/build/jedicmake/jedicmake-config.cmake:19 (message):  
File or directory  
/scratch2/NESDIS/nesdis-rdo1/Hui.Liu/jedi/src/fv3-bundle/jedicmake/CMakeModules/Modules  
referenced by variable jedicmake\_MODULES does not exist !  
Call Stack (most recent call first):  
/scratch2/NESDIS/nesdis-rdo1/Hui.Liu/jedi/build/jedicmake/jedicmake-config.cmake:36 (set\_and\_check)  
crtm/CMakeLists.txt:20 (find\_package)

– Configuring incomplete, errors occurred!

---

<div class="post-metadata">

**Author:** ![climbfuji](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.jcsda.org/climbfuji/32/154_2.png) [@climbfuji](https://forums.jcsda.org/u/climbfuji)\
**Post date:** [October 7, 2023, 1:00am UTC](https://forums.jcsda.org/t/build-error-on-hera/537/2 "2023-10-07T01:00:07Z")

</div>

I notice the bundle is trying to build jedi-cmake. Why? This should not happen, because loading the spack-stack modules below should provide a module and that gets detected by jedi-bundle.

---

<div class="post-metadata">

**Author:** ![HuiLiu-NOAA](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.jcsda.org/huiliu-noaa/32/194_2.png) [@HuiLiu-NOAA](https://forums.jcsda.org/u/HuiLiu-NOAA)\
**Post date:** [October 7, 2023, 2:15am UTC](https://forums.jcsda.org/t/build-error-on-hera/537/3 "2023-10-07T02:15:08Z")

</div>

> [@HuiLiu-NOAA](#):
>
> fv3-bundle

not sure about this. Actually, I was trying to build fv3-bundle.

---

<div class="post-metadata">

**Author:** ![climbfuji](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.jcsda.org/climbfuji/32/154_2.png) [@climbfuji](https://forums.jcsda.org/u/climbfuji)\
**Post date:** [October 7, 2023, 2:26am UTC](https://forums.jcsda.org/t/build-error-on-hera/537/4 "2023-10-07T02:26:22Z")

</div>

from JCSDA or JCSDA-internal ?

---

<div class="post-metadata">

**Author:** ![HuiLiu-NOAA](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.jcsda.org/huiliu-noaa/32/194_2.png) [@HuiLiu-NOAA](https://forums.jcsda.org/u/HuiLiu-NOAA)\
**Post date:** [October 7, 2023, 2:29am UTC](https://forums.jcsda.org/t/build-error-on-hera/537/5 "2023-10-07T02:29:49Z")

</div>

from JCSDA. I was kicked out JCSDA-internal a few days ago for some reasons. Can I be in JCSDA-internal?

Just tested:  
ecbuild …/src/jedi-bundle works fine!!  
why ecbuild …/src/fv3-bundle not?

---

<div class="post-metadata">

**Author:** ![climbfuji](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.jcsda.org/climbfuji/32/154_2.png) [@climbfuji](https://forums.jcsda.org/u/climbfuji)\
**Post date:** [October 9, 2023, 1:09pm UTC](https://forums.jcsda.org/t/build-error-on-hera/537/6 "2023-10-09T13:09:42Z")

</div>

> [@HuiLiu-NOAA](#):
>
> from JCSDA. I was kicked out JCSDA-internal a few days ago for some reasons. Can I be in JCSDA-internal?

Following two months of announcements on JCSDA-internal, in the JEDI bi-weekly meetings with all external partners, and on Slack, we enabled mandatory two-factor-authentication for the JCSDA-internal and JCSDA repositories. This automatically removed all Github users without 2FA. Please enable 2FA for your Github account and ask Cory or Daryl to request you being added back in. Thanks.

> [@HuiLiu-NOAA](#):
>
> Just tested:  
> ecbuild …/src/jedi-bundle works fine!!  
> why ecbuild …/src/fv3-bundle not?

That’s a good question for which I unfortunately don’t have a better answer then “use jedi-bundle”, it’s the same. You can comment out the mom6/soca/coupling components in `CMakeLists.txt` before you run `cmake` if you don’t need them.

---

<div class="post-metadata">

**Author:** ![HuiLiu-NOAA](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.jcsda.org/huiliu-noaa/32/194_2.png) [@HuiLiu-NOAA](https://forums.jcsda.org/u/HuiLiu-NOAA)\
**Post date:** [October 9, 2023, 3:32pm UTC](https://forums.jcsda.org/t/build-error-on-hera/537/7 "2023-10-09T15:32:20Z")

</div>

Thanks for your suggestions!

---

<div class="post-metadata">

**Author:** ![NaureenBharwaniNOAA](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.jcsda.org/naureenbharwaninoaa/32/200_2.png) [@NaureenBharwaniNOAA](https://forums.jcsda.org/u/NaureenBharwaniNOAA)\
**Post date:** [October 30, 2023, 2:18pm UTC](https://forums.jcsda.org/t/build-error-on-hera/537/8 "2023-10-30T14:18:17Z")

</div>

I was having a similar error where the build error I was getting was the jedicmake\_MODULES does not exist.

I was able to go into the jedicmake directory and see that nothing was actually built there. By modifying fv3-bundle/CMakeList.txt slightly I was able to get it to build correctly.

Modifying these two lines:

1. Update line 20, on the [CMakeList.txt file](https://github.com/JCSDA/fv3-bundle/blob/develop/CMakeLists.txt) that is located within the fv3-bundle directory. Add RECURSIVE in all caps to the end of the line:

`ecbuild_bundle( PROJECT jedicmake GIT "https://github.com/jcsda/jedi-cmake.git" BRANCH develop UPDATE RECURSIVE )`

1. Addition after line 55, on the [CMakeList.txt file](https://github.com/JCSDA/fv3-bundle/blob/develop/CMakeLists.txt) that is located within the fv3-bundle directory. Add vader bundle to the ecbuild

`ecbuild_bundle( PROJECT vader GIT "https://github.com/jcsda/vader.git" BRANCH develop UPDATE )`

After completing these two steps I saw it build correctly – be sure to first remove all files or directories made by your initial build or it will not recursively go into these directories and update the modules since it see them as already created. This was from JCSDA and NOT JCSDA-internal.

Is this a fix needed on the fv3-bundle to build correctly? Should a PR be opened on the JCSDA’s repo?

---

<div class="post-metadata">

**Author:** ![cwharrop](https://avatars.discourse-cdn.com/v4/letter/c/958977/32.png) [@cwharrop](https://forums.jcsda.org/u/cwharrop)\
**Post date:** [November 2, 2023, 1:25pm UTC](https://forums.jcsda.org/t/build-error-on-hera/537/9 "2023-11-02T13:25:21Z")

</div>

I can confirm @NaureenBharwaniNOAA’s and @HuiLiu-NOAA’s experience.

There is no question that the fv3-bundle develop is broken.

It doesn’t work on Hercules or in the published container either. Same issues with both jedi-cmake and vader.
