Compilation Error (V 1.7.1; Icc 12.1.0, OpenMPI 1.4.3)
I followed the instruction from the wiki, while compilation continuously fails.
-- Linux 2.6.18-274.7.1.el5 (CentOS 5)
-- Use system-installed intel compiler (v 12.1.0)
-- Use system-installed OpenMPI (v 1.4.3)
-- Use system-installed paraView (v 3.10.1)
-- default gcc v. 4.1.2, thus gcc44 replaces gcc function calls
-- Line 118 (Default Compiler)
-- Line 135 (MPI setup)
-- Line 170,171 (Environment setup for x86_64, 64bit)
-- Line 260 (paraView source)
Comment out _foamSource paraview3/bashrc
-- edit SYSTEMOPENMPI's PINC and PLIBS flag (add system-supported optimization flag)
and tried the compilation under OpenFOAM-1.7.1 directory with
./Allwmake >& makeAll.log
The first compilation error comes with
compilation aborted for derivedFvPatchFields/turbulentHeatFluxTemperature/turbulentHeatFluxTemperatureFvPatchScalarField.C (code 2)
2make: *** [Make/linux64IccDPOpt/turbulentHeatFluxTemperatureFvPatchScalarField.o] Error 2
and a number of error are followed due to the absence of libcompressibleRASModel.so
ld: cannot find -lcompressibleRASModels
make: *** [$USERS_HOME/OpenFOAM/OpenFOAM-1.7.1/lib/linux64IccDPOpt/liblagrangianIntermediate.so] Error 1
I wonder if the error could be caused either by
the false compilation of third-party libraries (especially scotch - replacing WM_CC variable to gcc44 does not seem to work properly) or
false compilation flag (some OpenFOAM functions incompiatible with latest intel compiler) or
any other reason which I cannot estimate.
I am enclosing the complete log file (which is split into 4 due to the file size limitation on wiki).
Can anybody help me with this?
Greetings Jeff and welcome to the forum!
I won't be able to try and reproduce your steps for a few more days, but I suggest the following ideas:
Thanks for your suggestion. Let me try with the latest OpenFOAM first and come back to you with the result.
Following your suggestion, I tried OpenFOAM 2.0.1. I started with Third Party compilation. As I mentioned earlier, I am considering to use ICC, OpenMPI (with Intel compiler), system-installed paraview. Thus, third-party installation will only compile scotch library.
In a word, compilation ends up with the error (line 1056 in enclosed file):
cp -f ../bin/[agm]* $HOME/OpenFOAM/ThirdParty-2.0.1/platforms/linux64Icc/scotch_5.1.11/bin
cp: cannot stat `../bin/[agm]*': No such file or directory
make: [install] Error 1 (ignored)
The MPI compiling seems to have failed and I assume if scotch library requires gcc + gcc-based MPI library (as I mentioned above, MPICC refers to intel compiler, while gcc44 is used to compile sequential part).
1) GCC-based MPI is mandatory for scotch?
2) If scotch is compiled under Intel compiler, that library is still compatible with OpenFOAM? If so, how do I set the configuration file (Makefile.inc.i686_pc_linux2.shlib-OpenFOAM-64) and Allwmake?
Thank you in advance.
p.s. FYI, I am presenting some of environmental variables for OpenFOAM configuration:
declare -x WM_ARCH="linux64"
declare -x WM_ARCH_OPTION="64"
declare -x WM_CC="gcc44"
declare -x WM_CFLAGS="-m64 -fPIC"
declare -x WM_COMPILER="Icc"
declare -x WM_COMPILER_LIB_ARCH="64"
declare -x WM_COMPILE_OPTION="Opt"
declare -x WM_CXX="g++44"
declare -x WM_CXXFLAGS="-m64 -fPIC"
declare -x WM_LDFLAGS="-m64"
declare -x WM_LINK_LANGUAGE="c++"
declare -x WM_MPLIB="SYSTEMOPENMPI"
declare -x WM_OPTIONS="linux64IccDPOpt"
declare -x WM_OSTYPE="POSIX"
According to the log, everything went fine. Run Allwmake in the "ThirdParty-2.0.1" again if you don't believe me ;)
Well, technically not 100% fine, because Intel's libraries gave out this warning:
Fortunately it seems to be running fine. Testrun on windSimpleFoam finishes without any error. Thanks for lots of help.
BTW, how can I link the OpenFOAM with system-supported paraview? Which wrapper do I need to touch to set up environmental variables? Could you recommend me any webpages I can refer to?
If you can run "paraview" without any changes on the command line, then there is no need to change anything, although you'll have to use the "-builtin" argument:
If you need the official OpenFOAM plug-ins, you'll need to build your own custom build of ParaView. With any luck, if you build the same version of ParaView as the one on your system, perhaps you can then use the then newly built plug-ins with the system's ParaView.
Check my signature link, there is a link in there for another blog post of mine about ParaView+OpenFOAM ;)
|All times are GMT -4. The time now is 10:23.|