installing OpenFOAM 5.x Allwmake error

Submitted by cdg2112 on
Attachment Size
log.make_.tar_.gz 6.95 KB
mschramm

Hello,
You may be using an incompatible version of mpi for openfoam 5...
I ran into similar issues when trying to install cfdem coupling, liggghts, and openfoam on the latest version of arch (I gave up and went to Ubuntu 20.04...).

Thu, 3 Feb 2022 - 23:54 Permalink
Thao

Hello mschramm,

I am currently running into the problem of fatal errors of not finding ptscotch in my Open-FOAM simulation. Can you recommend for me what version do you find it most compatible with OpenFoam-5.x?

Thanks so much for your help.
Thao

Tue, 15 Feb 2022 - 01:19 Permalink
FachengGong

Hi everyone,

I want to discover the code of CFDEM coupling. Could anyone recommend the IDE tool to debug this software?

Now I use the VS code to debug it. I COULD debug Openfoam in MPI. However, when I tried to connect OpenFoam with Liggghts, the debug command would not continue and was stuck in the MPI process. Some errors occurred in the MPI code between Openfoam and Liggght.

Could someone give me some suggestions on that?

Thanks a lot!
Facheng

Fri, 1 Apr 2022 - 18:16 Permalink

Hello,

I am trying to install CFDEM on Linux Mint 20.2. I am following the steps given in the documents. However, I am getting error while compiling OpenFOAM version 5.x - ./Allwmake.

In file included from common.h:106,
from dgraph_halo.c:64:
dgraph_halo.c: In function ‘dgraphHaloSync2’:
/usr/lib/x86_64-linux-gnu/openmpi/include/mpi.h:322:57: error: static assertion failed: "MPI_Type_extent was removed in MPI-3.0. Use MPI_Type_get_extent instead."
322 | #define THIS_SYMBOL_WAS_REMOVED_IN_MPI30(func, newfunc) _Static_assert(0, #func " was removed in MPI-3.0. Use " #newfunc " instead.")
| ^~~~~~~~~~~~~~
/usr/lib/x86_64-linux-gnu/openmpi/include/mpi.h:2846:31: note: in expansion of macro ‘THIS_SYMBOL_WAS_REMOVED_IN_MPI30’
2846 | #define MPI_Type_extent(...) THIS_SYMBOL_WAS_REMOVED_IN_MPI30(MPI_Type_extent, MPI_Type_get_extent)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dgraph_halo.c:209:3: note: in expansion of macro ‘MPI_Type_extent’
209 | MPI_Type_extent (attrglbtype, &attrglbsiz); /* Get type extent */
| ^~~~~~~~~~~~~~~
dgraph_halo.c: In function ‘_SCOTCHdgraphHaloSync’:
/usr/lib/x86_64-linux-gnu/openmpi/include/mpi.h:322:57: error: static assertion failed: "MPI_Type_extent was removed in MPI-3.0. Use MPI_Type_get_extent instead."
322 | #define THIS_SYMBOL_WAS_REMOVED_IN_MPI30(func, newfunc) _Static_assert(0, #func " was removed in MPI-3.0. Use " #newfunc " instead.")
| ^~~~~~~~~~~~~~
/usr/lib/x86_64-linux-gnu/openmpi/include/mpi.h:2846:31: note: in expansion of macro ‘THIS_SYMBOL_WAS_REMOVED_IN_MPI30’
2846 | #define MPI_Type_extent(...) THIS_SYMBOL_WAS_REMOVED_IN_MPI30(MPI_Type_extent, MPI_Type_get_extent)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dgraph_halo.c:267:5: note: in expansion of macro ‘MPI_Type_extent’
267 | MPI_Type_extent (attrglbtype, &attrglbsiz); /* Get type extent */
| ^~~~~~~~~~~~~~~
make[2]: *** [Makefile:43: dgraph_halo.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/home/chai/OpenFOAM/ThirdParty-5.x/scotch_6.0.3/src/libscotch'
make[1]: *** [Makefile:63: ptscotch] Error 2
make[1]: Leaving directory '/home/chai/OpenFOAM/ThirdParty-5.x/scotch_6.0.3/src/libscotch'
make: *** [Makefile:98: ptscotch] Error 2

I have attached the log file after running Allwmake in OpenFOAM-5.x directory.
Could you please help me with this.
Thank you!