May 7, 2021, 05:56
|
An Error in recompiling of openFoam-7
|
#1
|
Senior Member
A. Min
Join Date: Mar 2015
Posts: 305
Rep Power: 12
|
Dear foamers
I faced the following error during the installation of OpenFOAM-7 from
HTML Code:
https://openfoamwiki.net/index.php/Installation/Linux/OpenFOAM-7/Ubuntu/20.04
on ubuntu 20.04, when I use this command:
Code:
./makeParaView -python -mpi -python-lib /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0 > log.makePV 2>&1
Code:
vtkmpi4py/src/MPI.c:4:
/home/ali/OpenFOAM/ThirdParty-7/ParaView-5.6.0/VTK/ThirdParty/mpi4py/vtkmpi4py/src/mpi4py.MPI.c: In function ‘__pyx_f_6mpi4py_3MPI_del_Datatype’:
/usr/lib/x86_64-linux-gnu/openmpi/include/mpi.h:322:57: error: expected expression before ‘_Static_assert’
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:1112:24: note: in expansion of macro ‘THIS_SYMBOL_WAS_REMOVED_IN_MPI30’
1112 | # define MPI_UB THIS_SYMBOL_WAS_REMOVED_IN_MPI30(MPI_UB, MPI_Type_create_resized);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ali/OpenFOAM/ThirdParty-7/ParaView-5.6.0/VTK/ThirdParty/mpi4py/vtkmpi4py/src/mpi4py.MPI.c:14831:36: note: in expansion of macro ‘MPI_UB’
14831 | __pyx_t_1 = (((__pyx_v_ob[0]) == MPI_UB) != 0);
| ^~~~~~
/usr/lib/x86_64-linux-gnu/openmpi/include/mpi.h:322:57: error: expected expression before ‘_Static_assert’
Do you know how to solve it?
Thanks
|
|
|