# Problems compiling KPP-ocean

**URL:** <https://cms-helpdesk.ncas.ac.uk/t/problems-compiling-kpp-ocean/1154>\
**Category:** KPP\
**Tags:** ARCHER2\
**Created:** [3 October 2023 14:10 UTC](https://cms-helpdesk.ncas.ac.uk/t/problems-compiling-kpp-ocean/1154 "2023-10-03T14:10:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniel.shipley](https://avatars.discourse-cdn.com/v4/letter/d/278dde/32.png) [@daniel.shipley](https://cms-helpdesk.ncas.ac.uk/u/daniel.shipley)\
**Post date:** [3 October 2023 14:10 UTC](https://cms-helpdesk.ncas.ac.uk/t/problems-compiling-kpp-ocean/1154/1 "2023-10-03T14:10:35Z")

</div>

I am trying to update suite u-cc339 to run using MetUM vn12.1; I am working with a copy of this suite, ID u-da133. The suite is a regional climate simulation using GA7 atmosphere and coupled to the KPP ocean model.

I am currently having trouble compiling KPP-ocean. fcm\_make2\_kpp fails with:

[FAIL] /opt/cray/pe/cce/15.0.0/binutils/x86\_64/x86\_64-pc-linux-gnu/bin/ld: warning: libfabric.so.1, needed by /opt/cray/pe/mpich/8.1.23/ofi/cray/10.0/lib/libmpi\_cray.so, not found (try using -rpath or -rpath-link)  
[FAIL] /opt/cray/pe/cce/15.0.0/binutils/x86\_64/x86\_64-pc-linux-gnu/bin/ld: /opt/cray/pe/mpich/8.1.23/ofi/cray/10.0/lib/libmpi\_cray.so: undefined reference to `fi\_strerror@FABRIC\_1.0’

Could you help me find the missing library?

Many thanks,  
Dan

---

<div class="post-metadata">

**Author:** ![dcase](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/dcase/32/468_2.png) [@dcase](https://cms-helpdesk.ncas.ac.uk/u/dcase)\
**Post date:** [3 October 2023 14:29 UTC](https://cms-helpdesk.ncas.ac.uk/t/problems-compiling-kpp-ocean/1154/2 "2023-10-03T14:29:29Z")

</div>

You have a few things loaded in your pre-script. Will changing it to this work:

module load cce/15.0.0  
module use /work/y07/shared/umshared/moci/modules/modules; module load GC3-PrgEnv/v1;  
module load atp  
module list 2\>&1  
unset OMP\_NUM\_THREADS  
ulimit -s unlimited

?  
(I have to admit - I got this by nosing around for other people’s things rather than having done this myself)

---

<div class="post-metadata">

**Author:** ![daniel.shipley](https://avatars.discourse-cdn.com/v4/letter/d/278dde/32.png) [@daniel.shipley](https://cms-helpdesk.ncas.ac.uk/u/daniel.shipley)\
**Post date:** [3 October 2023 14:40 UTC](https://cms-helpdesk.ncas.ac.uk/t/problems-compiling-kpp-ocean/1154/3 "2023-10-03T14:40:11Z")

</div>

Hi Dave,

Thanks for the reply! I didn’t end up implementing your suggestion, but it did tell me where to look. I was pointing to an old version of the libfabric library; pointing to the correct one in /opt/cray/libfabric did the trick.

Cheers,  
Dan

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/cms_support/original/1X/1fd2411499ffcbc299fe756cd5cdf26e44956558.png) [@system](https://cms-helpdesk.ncas.ac.uk/u/system)\
**Post date:** [5 October 2023 14:40 UTC](https://cms-helpdesk.ncas.ac.uk/t/problems-compiling-kpp-ocean/1154/4 "2023-10-05T14:40:45Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
