Make issues installing precice

Hi! I am having issues with installing precice. I am following the quickstart guide (Quickstart | preCICE - The Coupling Library), and am running into make errors when getting to step 4, line 4.

Please describe your system, and especially:

  • preCICE version: 3.1.1
  • Operating system or platform: Ubuntu 22.04, x86_64
  • Installation method: cmake, it looks like
  • Dependency versions: not sure, openfoam 2406-dev

I receive the following output when executing make:

Building the OpenFOAM-preCICE adapter…

If not already known by the system, preCICE may be located using:
pkg-config --cflags libprecice =
pkg-config --libs libprecice = -lprecice

Current OpenFOAM environment:
WM_PROJECT = OpenFOAM
WM_PROJECT_VERSION = v2406
WM_NCOMPPROCS = 1 (number of threads for parallel builds)

The adapter will be built into /home//OpenFOAM/-v2406/platforms/linux64GccDPInt32Opt/lib
Additional preprocessor/compiler options:

Building with WMake (see the wmake.log log file)…

wmake libso (openfoam-adapter-1.3.1)
Everything looks fine in wmake.log.
=== ERROR: Building completed with linking problems: there were undefined symbols. ===
Possible causes:

  • Is preCICE discoverable at runtime? Check the content of pkg-config output above.
  • Did anything go wrong while installing preCICE? Can you run any other preCICE tutorials?
  • Did anything go wrong while installing OpenFOAM? Can you run any other OpenFOAM tutorials?
    See wmake.log and ldd.log for more details.
    Attach your Allwmake.log, wmake.log, and ldd.log when asking for help.

There appears to be a host of packages and such that it is not able to find from the above troubleshooting commands. I can find OpenFOAM, although I have another version of it removed from .bashrc on my system, since I was runnning tutorials on that one.

Attached are the log files that may help.
Allwmake.log (6.3 KB)
wmake.log (37 Bytes)
ldd.log (18.8 KB)

Thanks!

Did you maybe install preCICE using a Debian package for the wrong Ubuntu version?
At the bottom of your ldd.log, I see a few undefined symbols for several dependencies (Boost, PETSc, …), which could be explained by this.

1 Like

Ah, you are right. I have Ubuntu 24.04, not 22.04. Not sure why I didn’t notice this earlier.

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