OpenFOAM 4.1 on CentOS 7 using Intel Compilers
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 |
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 Or is it related to compiling ThirdParty/makeCGAL with Gcc and trying to compile foamyMesh with Intel compiler? Many thanks |
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 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 After installing this gcc and its subsidiaries no problem with rest of the installation done according to wiki. |
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. |
Quote:
Another alternative, with more hacking. Build CGAL without gmp/mpfr and then remove the -lmpfr linkage in the corresponding CGAL wmake rule. |
All times are GMT -4. The time now is 08:44. |