# ACCESS-AM2 BUILD error

**URL:** <https://forum.access-hive.org.au/t/access-am2-build-error/4780>\
**Category:** Atmosphere\
**Tags:** help, um, error, access-am2\
**Created:** [8 August 2025 06:15 UTC](https://forum.access-hive.org.au/t/access-am2-build-error/4780 "2025-08-08T06:15:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![alanah.chapman](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/alanah.chapman/32/4377_2.png) [@alanah.chapman](https://forum.access-hive.org.au/u/alanah.chapman)\
**Post date:** [8 August 2025 06:15 UTC](https://forum.access-hive.org.au/t/access-am2-build-error/4780/1 "2025-08-08T06:15:45Z")

</div>

Hi 🙂

I am setting up an ACCESS-AM2 model run, and I have gotten an error in the BUILD –\> fcm\_make\_um step. I need to compile from source, but I have gotten this error:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/access1/original/2X/7/781e7eb7a0a659b1c56add081ab74b9c5d4f93fa.jpeg)

Having a closer look within the suite (u-dn941):

 ![image](https://us1.discourse-cdn.com/flex020/uploads/access1/original/2X/3/39e6ec53e56a9dbf9847b33125f77e6aca2dab63.jpeg)

I’m not sure how to fix this, so if anyone has any ideas they would be greatly appreciated !  
(sorry for a late Friday afternoon post)

Cheers,

Alanah

---

<div class="post-metadata">

**Author:** ![Paul.Gregory](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/paul.gregory/32/2566_2.png) [@Paul.Gregory](https://forum.access-hive.org.au/u/Paul.Gregory)\
**Post date:** [8 August 2025 06:47 UTC](https://forum.access-hive.org.au/t/access-am2-build-error/4780/2 "2025-08-08T06:47:25Z")

</div>

Hi Alanah.

This looks like a bash error, i.e. the environment variable OPENMP doesn’t have a value assigned to it at compile time.

In the build script for the rAM3 task `fcm_make_um`, the value of openmp in `app/um/rose-app.conf` is hardwired to true.

```auto
openmp=true

```

If you set that in your rose-suite.conf, it should compile.

You’ll then have to figure out why the environment variable that should be assigned a value in your suite is empty.

---

<div class="post-metadata">

**Author:** ![alanah.chapman](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/alanah.chapman/32/4377_2.png) [@alanah.chapman](https://forum.access-hive.org.au/u/alanah.chapman)\
**Post date:** [9 August 2025 01:02 UTC](https://forum.access-hive.org.au/t/access-am2-build-error/4780/3 "2025-08-09T01:02:25Z")

</div>

Thanks Paul! That fixed the error and its compiled!

---

<div class="post-metadata">

**Author:** ![alanah.chapman](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/alanah.chapman/32/4377_2.png) [@alanah.chapman](https://forum.access-hive.org.au/u/alanah.chapman)\
**Post date:** [9 August 2025 01:14 UTC](https://forum.access-hive.org.au/t/access-am2-build-error/4780/4 "2025-08-09T01:14:34Z")

</div>

So it successfully compiled! but now is failing in the atmos step - which I think is still related to openmp?  
This is the first error in the job.err file:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/access1/original/2X/3/320fbd047e54a0fbd5af0666f8bc8f3ddf5d4abc.png)

With some more detail below:

```plaintext
[0] exceptions: An non-exception application exit occured.[0] exceptions: whilst in a serial region[0] exceptions: Task had pid=109914 on host gadi-cpu-clx-2955.gadi.nci.org.au[0] exceptions: Program is “/home/563/ac9768/cylc-run/u-dn941/share/fcm_make_um/build-atmos/bin/um-atmos.exe”Warning in umPrintMgr: umPrintExceptionHandler : Handler Invokedgc_abort (Processor 0): Job aborted from ereport.

```

```plaintext
MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_WORLDwith errorcode 9.

```

```auto
NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.You may or may not see output from other processes, depending onexactly when Open MPI kills them.

```

```auto
[gadi-cpu-clx-2955.gadi.nci.org.au:109801] PMIX ERROR: UNREACHABLE in file /jobfs/35249569.gadi-pbs/0/openmpi/4.0.2/source/openmpi-4.0.2/opal/mca/pmix/pmix3x/pmix/src/server/pmix_server.c at line 2147

```

Do you think this could be related to setting openmp=true ?

---

<div class="post-metadata">

**Author:** ![Paul.Gregory](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/paul.gregory/32/2566_2.png) [@Paul.Gregory](https://forum.access-hive.org.au/u/Paul.Gregory)\
**Post date:** [11 August 2025 00:19 UTC](https://forum.access-hive.org.au/t/access-am2-build-error/4780/5 "2025-08-11T00:19:03Z")

</div>

I don’t think so. You have compiled with OMP support but it doesn’t mean you are using it at runtime.

In the rAM3 suite you have to activate it by setting

```auto

UM_ATM_OMP=2

```

in `site/nci-gadi/suite-adds.rc`

MPI\_ABORT is a generic message whenever your MPI process fails/exits.

The error suggests you have incorrect values in the RUN\_Nudging nameless section of the UM configuration file.

i.e. this section in `/app/um/rose-suite.conf`

```auto
[namelist:run_nudging]
l_nudging=.false.
!!ndg_analysis_source=
!!ndg_datapath=''
!!ndg_hours_perdata=
!!ndg_lev_bottom=
!!ndg_lev_top=0
!!ndg_on_lev_bottom=0
!!ndg_on_lev_top=0
!!ndg_relax_tvalue=0
!!ndg_relax_uvalue=0
!!ndg_relax_vvalue=0
!!ndg_strat_fac=1.0

```

Are you trying to run with nudging or not?

---

<div class="post-metadata">

**Author:** ![alanah.chapman](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/alanah.chapman/32/4377_2.png) [@alanah.chapman](https://forum.access-hive.org.au/u/alanah.chapman)\
**Post date:** [11 August 2025 01:12 UTC](https://forum.access-hive.org.au/t/access-am2-build-error/4780/6 "2025-08-11T01:12:13Z")

</div>

Ok, in that case it probably is an issue with RUN\_Nudging.  
I am trying to run with nudging, but the suite I am using hasn’t been setup to work with ERA5 - although it is possible to run the nudging with ERA5 (done by Fiddes et al 2024); I’ll double check that we’ve set it up properly! We set `l_nudging=.true.`, and `ndg_analysis_source=4` (which isn’t defined), so that could be the problem.

Thanks Paul!

---

<div class="post-metadata">

**Author:** ![alanah.chapman](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/alanah.chapman/32/4377_2.png) [@alanah.chapman](https://forum.access-hive.org.au/u/alanah.chapman)\
**Post date:** [11 August 2025 02:10 UTC](https://forum.access-hive.org.au/t/access-am2-build-error/4780/7 "2025-08-11T02:10:13Z")

</div>

Had a typo in the `ndg_datapath` ! So this error… is fixed 🙂
