# Undefined symbol during the compilation of the openfoam adapter

**URL:** <https://precice.discourse.group/t/undefined-symbol-during-the-compilation-of-the-openfoam-adapter/146>\
**Category:** Official adapters and tutorials\
**Tags:** openfoam, adapters\
**Created:** [January 31, 2020, 9:55am UTC](https://precice.discourse.group/t/undefined-symbol-during-the-compilation-of-the-openfoam-adapter/146 "2020-01-31T09:55:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fsalmon](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/fsalmon/32/279_2.png) [@fsalmon](https://precice.discourse.group/u/fsalmon)\
**Post date:** [January 31, 2020, 9:55am UTC](https://precice.discourse.group/t/undefined-symbol-during-the-compilation-of-the-openfoam-adapter/146/1 "2020-01-31T09:55:15Z")

</div>

Hello,

I am installing preCICE, Calculix and OpenFOAM on a remote cluster. Except the openfoam adapter, all the parts have been successfully (and surprisingly easily) compiled.

Regarding the openfoam adapter, I will work with OpenFOAM 7 so I have taken the corresponding adapter. The wmake gives no error while the ldd.log leads to an undefined symbol

[ldd.log](https://precice.discourse.group/uploads/short-url/xrAcUqczBKj00AL5YiwbzQiDxIh.log) (8.2 KB)

[wmake.log](https://precice.discourse.group/uploads/short-url/j1hMdmBmu61GfhHw9XIotmq07Tr.log) (40.7 KB)

Do you have any idea of where could the problem stem from ?

Thank you

---

<div class="post-metadata">

**Author:** ![Makis](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/makis/32/25_2.png) [@Makis](https://precice.discourse.group/u/Makis)\
**Post date:** [January 31, 2020, 4:46pm UTC](https://precice.discourse.group/t/undefined-symbol-during-the-compilation-of-the-openfoam-adapter/146/2 "2020-01-31T16:46:42Z")

</div>

Hi @fsalmon,

I cannot try something out right now, but an easy question first: how did you install OpenFOAM?

It looks like it compiled fine (see `wmake.log` - no errors) but it could not link to some OpenFOAM symbol (see `ldd.log` at the bottom). This is unusual and I have only seen it when building OpenFOAM from source and some part of the building failed.

---

<div class="post-metadata">

**Author:** ![fsalmon](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/fsalmon/32/279_2.png) [@fsalmon](https://precice.discourse.group/u/fsalmon)\
**Post date:** [January 31, 2020, 4:57pm UTC](https://precice.discourse.group/t/undefined-symbol-during-the-compilation-of-the-openfoam-adapter/146/3 "2020-01-31T16:57:50Z")

</div>

Thank you for your reply.

Indeed, it is also my feeling. There was an error during the compilation of OpenFOAM, so I deleted some files (only some mesh utilities) to override this issue. It compiled well after this, and I can run the OpenFOAM tutorials.

Anyway, I will try to install again OpenFOAM on this cluster on Monday and I will get back to you.

Have a nice week-end

---

<div class="post-metadata">

**Author:** ![fsalmon](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/fsalmon/32/279_2.png) [@fsalmon](https://precice.discourse.group/u/fsalmon)\
**Post date:** [February 3, 2020, 1:03pm UTC](https://precice.discourse.group/t/undefined-symbol-during-the-compilation-of-the-openfoam-adapter/146/4 "2020-02-03T13:03:24Z")

</div>

Hello,

Good news, the issue stemmed from the installation of OpenFOAM. I deleted the previous version and installed it again by removing the errors before compiling.

So the problem is solved.

Thank you
