CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] Problem with GLIBCXX when installing OpenFOAM using ICC compiler (https://www.cfd-online.com/Forums/openfoam-installation/170134-problem-glibcxx-when-installing-openfoam-using-icc-compiler.html)

huynhthienloc April 25, 2016 04:23

Problem with GLIBCXX when installing OpenFOAM using ICC compiler
 
2 Attachment(s)
Dear Foamers,

I am trying to install OpenFOAM in the cluster with following specs:
Code:

[nnvan@aadl FL35_14]$ uname -a
Linux aadl 2.6.32-573.el6.x86_64 #1 SMP Wed Jul 1 18:23:37 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux
[nnvan@aadl FL35_14]$ module avail
--------------------------------------- /appl/modulefiles --------------------------------
mpi/openmpi-1.8.4-intel2015

And the make.log using recommended settings on with minor change of openmpi is attached below.
HTML Code:

https://openfoamwiki.net/index.php/Installation/Linux/OpenFOAM-2.2.2/CentOS_SL_RHEL
Thanks to Bruno's help, I changed to ICC compiler and successfully install OF222
Code:

module load mpi/openmpi-1.8.4-intel2015; source  $HOME/OpenFOAM/OpenFOAM-2.2.2/etc/bashrc WM_NCOMPPROCS=4  WM_COMPILER=Icc WM_MPLIB=SYSTEMOPENMPI
But I can't run any command as the error of GLIBCXX not found pops up.
Code:

[nnvan@aadl FL35_14]$ blockMesh
blockMesh: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by blockMesh)
blockMesh: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /home/nnvan/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64IccDPOpt/lib/libblockMesh.so)
blockMesh: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /home/nnvan/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64IccDPOpt/lib/libmeshTools.so)

The make.log of the installation using ICC compiler is also attached below. I appreciate any help from your part.

Best regards,
Loc

wyldckat May 1, 2016 18:43

Hi Loc,

Sorry for the late reply, but only now did I manage to take a quick look into this... and I was hoping for anyone else to help you sooner, but that didn't happen :(

Something is wrong or missing in the machine you're using. Because this message is consistently showing up in both log files:
Code:

/appl/compiler/gcc-5.2/libexec/gcc/x86_64-unknown-linux-gnu/5.2.0/cc1: error while loading shared libraries: libmpc.so.2: cannot open shared object file: No such file or directory
This means that there are more modules that need to be loaded in order for GCC to be properly used.
Please check with the cluster administrators on how to fix this issue, given that GCC 5.2 is being used, but bits and pieces are still missing, namely the MPC library.
This should also be related to the problem with GLIBCXX, given that even though ICC was used with success, it apparently refers to the same libraries that GCC 5.2 is using, but which are missing.

Best regards,
Bruno

huynhthienloc May 2, 2016 00:12

Dear Mr. Bruno,

Thank you very much for the reply, I've been really worried that there are no solution for this problem.
It is a very useful information, again, thank you a lot!
I will revert to you again when the problem is fixed.

Best regards,
Loc


All times are GMT -4. The time now is 15:04.