# On orion how to use non-intel compiler to build jedi

**URL:** <https://forums.jcsda.org/t/on-orion-how-to-use-non-intel-compiler-to-build-jedi/521>\
**Category:** JEDI\
**Created:** [September 13, 2023, 8:26pm UTC](https://forums.jcsda.org/t/on-orion-how-to-use-non-intel-compiler-to-build-jedi/521 "2023-09-13T20:26:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![TingLei-daprediction](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.jcsda.org/tinglei-daprediction/32/195_2.png) [@TingLei-daprediction](https://forums.jcsda.org/u/TingLei-daprediction)\
**Post date:** [September 13, 2023, 8:26pm UTC](https://forums.jcsda.org/t/on-orion-how-to-use-non-intel-compiler-to-build-jedi/521/1 "2023-09-13T20:26:09Z")

</div>

Hi, folks,  
How could I use non-intel compiler to build jedi?  
Thanks  
Ting

---

<div class="post-metadata">

**Author:** ![maryamao](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.jcsda.org/maryamao/32/6_2.png) [@maryamao](https://forums.jcsda.org/u/maryamao)\
**Post date:** [September 14, 2023, 10:08pm UTC](https://forums.jcsda.org/t/on-orion-how-to-use-non-intel-compiler-to-build-jedi/521/2 "2023-09-14T22:08:40Z")

</div>

Hi Ting,

You can use GNU based modules listed here: [Using spack-stack modules to build and run JEDI — JEDI Documentation 5.0.0 documentation](https://jointcenterforsatellitedataassimilation-jedi-docs.readthedocs-hosted.com/en/latest/using/jedi_environment/modules.html) and on Spack Stack documentation: [3. Pre-configured sites — spack-stack 1.4.1 documentation](https://spack-stack.readthedocs.io/en/latest/PreConfiguredSites.html)

---

<div class="post-metadata">

**Author:** ![TingLei-daprediction](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.jcsda.org/tinglei-daprediction/32/195_2.png) [@TingLei-daprediction](https://forums.jcsda.org/u/TingLei-daprediction)\
**Post date:** [September 14, 2023, 11:44pm UTC](https://forums.jcsda.org/t/on-orion-how-to-use-non-intel-compiler-to-build-jedi/521/3 "2023-09-14T23:44:24Z")

</div>

@maryamao Thank you so much!, I will do following the link you gave and give an update here!

---

<div class="post-metadata">

**Author:** ![TingLei-daprediction](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.jcsda.org/tinglei-daprediction/32/195_2.png) [@TingLei-daprediction](https://forums.jcsda.org/u/TingLei-daprediction)\
**Post date:** [September 18, 2023, 7:01pm UTC](https://forums.jcsda.org/t/on-orion-how-to-use-non-intel-compiler-to-build-jedi/521/4 "2023-09-18T19:01:41Z")

</div>

@maryamao An update: following the instructions given from where you pointed to, I have module loaded as

```auto
module purge
module use /work/noaa/da/role-da/spack-stack/modulefiles
module load miniconda/3.9.7
module load ecflow/5.8.4
module load mysql/8.0.31
module use /work/noaa/epic-ps/role-epic-ps/spack-stack/spack-stack-1.4.0/envs/unified-env-v2/install/modulefiles/Core
module load stack-gcc/10.2.0
module load stack-openmpi/4.0.4
module load stack-python/3.9.7
module load jedi-fv3-env/unified-dev
module load ewok-env/unified-dev
module load soca-env/unified-dev

```

But, after a couple of times trying on-off options in CMakeLists.txt , “ecbuild -DCMAKE\_BUILD\_TYPE=Debug -DMPIEXEC\_EXECUTABLE=`which srun` -DMPIEXEC\_NUMPROC\_FLAG=”-n" …/" still gave the error messages as

```auto
-- The following OPTIONAL packages have not been found:

 * rttov (required version >= 12.1.0)
 * gsw
 * oasim
 * MKL
 * ropp-ufo

```

Are the modules with GNU a little behind compared with Intel ones? Any comments/suggestions are welcome!

---

<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:** [September 19, 2023, 1:07am UTC](https://forums.jcsda.org/t/on-orion-how-to-use-non-intel-compiler-to-build-jedi/521/5 "2023-09-19T01:07:59Z")

</div>

I don’t see any error messages, these are _optional_ packages that have not been found. Where’s the problem?

---

<div class="post-metadata">

**Author:** ![TingLei-daprediction](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.jcsda.org/tinglei-daprediction/32/195_2.png) [@TingLei-daprediction](https://forums.jcsda.org/u/TingLei-daprediction)\
**Post date:** [September 19, 2023, 2:25am UTC](https://forums.jcsda.org/t/on-orion-how-to-use-non-intel-compiler-to-build-jedi/521/6 "2023-09-19T02:25:41Z")

</div>

@climbfuji The ecbuild (cmake) complained it couldn’t find modules for those 5 sub-systems and gave the above error messages alongside " Configuring incomplete, errors occurred!" . I know some could be avoided , like ropp-ufo , I could let BUNDLE\_SKIP\_ROPP-UFO=OFF to let its’ own source created (but seems I have no permission to this branch and that would cause another error). But I failed to find options in the root CMakeLists.txt to avoid the above error messages for other 4 packages. Since the same jedi works with the intel module setup. I guess some differences in the GNU env caused this problem. Thanks.

---

<div class="post-metadata">

**Author:** ![TingLei-daprediction](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.jcsda.org/tinglei-daprediction/32/195_2.png) [@TingLei-daprediction](https://forums.jcsda.org/u/TingLei-daprediction)\
**Post date:** [September 20, 2023, 3:55pm UTC](https://forums.jcsda.org/t/on-orion-how-to-use-non-intel-compiler-to-build-jedi/521/7 "2023-09-20T15:55:56Z")

</div>

@climbfuji Thanks a lot for your reminder. Yes. further searching in the output of the ecbuild , it was found the actual issue was with crtm , including issues like:

```auto
CMake Error at crtm/CMakeLists.txt:29 (add_subdirectory):
  add_subdirectory given source "src" which is not an existing directory.

```

Those issues had been reported by other developers and, hence, I just turned off options for use of crtm , which is not necessary for my work on orion for being now. The new building of JEDI using GNU succeeded after I also turned off l95.  
Thanks a lot to both of you @maryamao @climbfuji
