CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[] An Error in recompiling of openFoam-7

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   May 7, 2021, 05:56
Default An Error in recompiling of openFoam-7
Senior Member
A. Min
Join Date: Mar 2015
Posts: 305
Rep Power: 12
alimea is on a distinguished road
Dear foamers

I faced the following error during the installation of OpenFOAM-7 from

HTML Code:
on ubuntu 20.04, when I use this command:

./makeParaView -python -mpi -python-lib /usr/lib/x86_64-linux-gnu/ > log.makePV 2>&1
/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?

alimea is offline   Reply With Quote


error, openfoam-7, ubuntu 20.04

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 05:29
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 05:36
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 03:52
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 3 September 8, 2010 06:25
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 14:25

All times are GMT -4. The time now is 20:53.