I am trying to install preCICE on ETHZ linux cluster building the code from source, however, I am facing some errors.
Here are the steps I did:
- Load the following required modules:
- gcc/12.2.0
- cmake/3.27.7
- eigen/3.4.0
- boost/1.83.0
- libxml2
- openmpi/4.1.6
- petsc/3.20.1
- python/3.11.6 - Get the code from source with: “wget https://github.com/precice/precice/archive/v3.1.2.tar.gz
tar -xzvf v3.1.2.tar.gz
cd precice-3.1.2” - Set the production configuration preset with : “cmake --preset=production”
- Building the code with: “make”
However, this gives me the following error:
/usr/bin/ld: /tmp/cc9t4IyU.ltrans109.ltrans.o: undefined reference to symbol 'omp_get_max_threads@@OMP_1.0'
/usr/bin/ld: /cluster/software/stacks/2024-06/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-11.4.0/gcc-12.2.0-bj2twcnwcownogkldo6ndfylxx5sqpbn/lib64/libgomp.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/testprecice.dir/build.make:6611: testprecice] Error 1
make[1]: *** [CMakeFiles/Makefile2:276: CMakeFiles/testprecice.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
Also when running ctest the following tests fails:
1 - precice.acceleration (Failed)
2 - precice.action (Failed)
3 - precice.com (Failed)
4 - precice.cplscheme (Failed)
5 - precice.io (Failed)
6 - precice.m2n (Failed)
7 - precice.mapping (Failed)
8 - precice.mapping.petrbf (Failed)
9 - precice.math (Failed)
10 - precice.mesh (Failed)
11 - precice.partition (Failed)
12 - precice.interface (Failed)
13 - precice.query (Failed)
14 - precice.testing (Failed)
15 - precice.time (Failed)
16 - precice.utils (Failed)
17 - precice.xml (Failed)
18 - precice.integration.GeometricMultiscale (Failed)
19 - precice.integration.Parallel (Failed)
20 - precice.integration.QuasiNewton (Failed)
21 - precice.integration.Serial (Failed)
Thank You for Your help!