|
[Sponsors] |
[OpenFOAM.org] OpenFOAM 4.1 on CentOS 7 using Intel Compilers |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 10, 2017, 22:38 |
OpenFOAM 4.1 on CentOS 7 using Intel Compilers
|
#1 |
Member
Fatih Ertinaz
Join Date: Feb 2011
Location: Istanbul
Posts: 64
Rep Power: 15 |
Hi everyone
Subject is quite explanatory. I am trying to compile OpenFOAM 4.1 version from git repo. The OS: CentOS Linux release 7.3.1611 Compiler: Intel Parallel Studio XE 2017 Update 2 for Linux Modifications to OpenFOAM:
Now it is time to run Allwmake and when we do that two issues appear:
Anyone can help me with this issue? // Fatih |
|
March 11, 2017, 04:03 |
|
#2 | ||
Member
Fatih Ertinaz
Join Date: Feb 2011
Location: Istanbul
Posts: 64
Rep Power: 15 |
Quote:
I compiled CGAL following the steps in: https://openfoamwiki.net/index.php/I...CentOS_SL_RHEL But when I try to compile foamyMesh (using OF41 and Intel compiler) I get: Quote:
Code:
#include <gmp.h> Code:
#include "gmp.h" Code:
/home/hpcuser/OpenFOAM/ThirdParty-4.1/platforms/linux64Icc/CGAL-4.8/include/CGAL/GMP/Gmpz_type.h:33:18: fatal error: mpfr.h: No such file or directory #include <mpfr.h> Or is it related to compiling ThirdParty/makeCGAL with Gcc and trying to compile foamyMesh with Intel compiler? Many thanks |
|||
October 26, 2017, 12:59 |
|
#3 | |
New Member
Vladeta
Join Date: May 2009
Location: BGD
Posts: 6
Rep Power: 17 |
Hello,
I haven't seen your post before, so I do not know if this is already solved. I've had a very similar problem in installing OpenFOAM 5.0 to scientific calculation cluster running on ScientificLinux 6.4 which is practically very similar to RHEL and Centos. When following the OpenFOAMwiki for installing without administrative privileges I was getting the same error as you. This error actually comes from not properlly installed gcc, gmp mpfr and its applications. You are, as me getting the error : Quote:
However the problem is not mpfr.h or gmp.h even the error log points to them as they are existing and findable but in their respective libraries: libmpfr.so and libgmp.so. See the 2 lines above the error log message you've posted. These 2 libraries needs to be placed in lib64 folder of mpfr and gmp directories. To compile them you should use: Code:
./configure --prefix=$WM_THIRD_PARTY_DIR/platforms/linux64/mpfr-3.1.2 make make install Next to successfully install mpc I used similarly in its extracted source dir: Code:
\configure --prefix=$WM_THIRD_PARTY_DIR/platforms/linux64/mpc-1.0.5 --with-gmp=$WM_THIRD_PARTY_DIR/platforms/linux64/gmp-5.2.1 --with-mpfr=$WM_THIRD_PARTY_DIR/platforms/linux64/mpfr-3.1.2 make make install After installing this gcc and its subsidiaries no problem with rest of the installation done according to wiki. |
||
November 15, 2017, 04:40 |
|
#4 |
New Member
Shweta
Join Date: Nov 2017
Posts: 3
Rep Power: 9 |
Hello,
I had encountered the same problem. The problem is, the GMP_ARCH_PATH and MPFR_ARCH_PATH are some how not set by the OpenFOAM bashrc. The solution I applied is to write the complete path of your thirdparty library in wmake/rules/General/CGAL script. This will resolve the error. |
|
January 12, 2018, 09:41 |
|
#5 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
Another alternative, with more hacking. Build CGAL without gmp/mpfr and then remove the -lmpfr linkage in the corresponding CGAL wmake rule. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Differences in interPhaseChangeFoam between OpenFOAM 2.3 and OpenFOAM 4.1 | Mashiro5 | OpenFOAM Running, Solving & CFD | 2 | May 29, 2017 05:13 |
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin | CFDFoundation | OpenFOAM Announcements from Other Sources | 0 | January 4, 2017 07:15 |
Open Foam 1.7.x Installation on Altix Ice 8400 with Intel 12.1 compilers | yadavmahe | OpenFOAM Installation | 1 | February 1, 2012 16:30 |
installation with Intel MPI and Intel compilers | achim | OpenFOAM Installation | 12 | November 10, 2011 06:56 |
CFX11 + Fortran compiler ? | Mohan | CFX | 20 | March 30, 2011 19:56 |