|
[Sponsors] |
[OpenFOAM.org] Failed to compile OpenFOAM 3.0.1 with icc |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 23, 2016, 00:35 |
Failed to compile OpenFOAM 3.0.1 with icc
|
#1 |
Senior Member
Join Date: Jun 2016
Posts: 102
Rep Power: 10 |
System Ubuntu 15.10, Installed the latest Parallel Studio XE (icc 16.0.3, intel MPI 5.1.3). If I use default settings (GCC and Open MPI), there will be no error.
I modified 2 settings: in $WM_PROJECT_DIR/etc/bashrc Code:
export WM_COMPILER=Icc export WM_MPLIB=INTELMPI Code:
INTELMPI) export MPI_ARCH_PATH=$I_MPI_ROOT _foamAddPath $MPI_ARCH_PATH/bin64 _foamAddLib $MPI_ARCH_PATH/lib64 _foamAddMan $MPI_ARCH_PATH/man Following the steps on https://openfoamwiki.net/index.php/I...u#Ubuntu_14.04 , I can compile ParaView successfully. Also I can execute $WM_THIRD_PARTY_DIR/platforms/linux64Icc/ParaView-4.4.0/bin/paraview However I can't compile OpenFOAM. In the log file Code:
======================================== Start ThirdParty Allwmake ======================================== ======================================== Build MPI libraries if required ======================================== Build Scotch decomposition library scotch_6.0.3 /home/gux215/OpenFOAM-icc/ThirdParty-3.0.1/platforms/linux64IccInt64/scotch_6.0.3 scotch header in /home/gux215/OpenFOAM-icc/ThirdParty-3.0.1/platforms/linux64IccInt64/scotch_6.0.3/include scotch libs in /home/gux215/OpenFOAM-icc/ThirdParty-3.0.1/platforms/linux64IccDPInt64Opt/lib ======================================== Build Metis decomposition optional component Metis was not found ======================================== Build CGAL CGAL headers in /home/gux215/OpenFOAM-icc/ThirdParty-3.0.1/platforms/linux64Icc/CGAL-4.7/include CGAL libs in /home/gux215/OpenFOAM-icc/ThirdParty-3.0.1/platforms/linux64Icc/CGAL-4.7/lib ======================================== Done ThirdParty Allwmake ======================================== And here's the error: Code:
ptscotchDecomp.C(126): catastrophic error: cannot open source file "ptscotch.h" #include "ptscotch.h" ^ compilation aborted for ptscotchDecomp.C (code 4) /home/gux215/OpenFOAM-icc/OpenFOAM-3.0.1/wmake/rules/General/transform:8: recipe for target '/home/gux215/OpenFOAM-icc/OpenFOAM-3.0.1/platforms/linux64IccDPInt64OptINTELMPI/src/parallel/decompose/ptscotchDecomp/ptscotchDecomp.o' failed make: *** [/home/gux215/OpenFOAM-icc/OpenFOAM-3.0.1/platforms/linux64IccDPInt64OptINTELMPI/src/parallel/decompose/ptscotchDecomp/ptscotchDecomp.o] Error 4 |
|
July 13, 2016, 17:03 |
|
#2 |
New Member
Aditya Raman
Join Date: Oct 2015
Posts: 3
Rep Power: 11 |
I also had this same issue and spent the better part of the day trying to figure out what was happening. So the issue is that ptscotch is not installed along with scotch. If you look at the Allwmake file in the ThirdParty folder it checks to see if the environment variable FOAM_MPI is defined (i.e it is set to something other than dummy), if not then it skips the ptscotch installation. So i just added
Code:
INTELMPI) export MPI_ARCH_PATH=$I_MPI_ROOT export FOAM_MPI=mpi _foamAddPath $MPI_ARCH_PATH/bin64 _foamAddLib $MPI_ARCH_PATH/lib64 _foamAddMan $MPI_ARCH_PATH/man and finally got it to compile ! Hope this helps |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM Training, London, Chicago, Munich, Houston 2016-2017 | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | September 14, 2016 04:19 |
Transient boundary conditions | Jarrod Sinclair (Sinclair) | OpenFOAM Running, Solving & CFD | 133 | May 6, 2015 07:21 |
Can someone PLEASE document the development version installation | bernd | OpenFOAM Installation | 76 | November 14, 2008 22:51 |
user subroutine error | CFDUSER | CFX | 2 | December 9, 2006 07:31 |
user defined function | cfduser | CFX | 0 | April 29, 2006 11:58 |