|
[Sponsors] |
Compilation Error (V 1.7.1; Icc 12.1.0, OpenMPI 1.4.3) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 15, 2011, 08:32 |
Compilation Error (V 1.7.1; Icc 12.1.0, OpenMPI 1.4.3)
|
#1 |
New Member
Soon-Heum "Jeff" Ko
Join Date: Dec 2011
Posts: 5
Rep Power: 14 |
Hello,
I followed the instruction from the wiki, while compilation continuously fails. System: -- 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 Configuration changes: in etc/bashrc -- Line 118 (Default Compiler) WM_COMPILER:=Icc -- Line 135 (MPI setup) WM_MPLIB:=SYSTEMOPENMPI -- Line 170,171 (Environment setup for x86_64, 64bit) export WM_CC='gcc44' export WM_CXX='g++44' -- Line 260 (paraView source) Comment out _foamSource paraview3/bashrc in etc/settings.sh -- 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? Best, Jeff |
|
December 17, 2011, 19:32 |
|
#2 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 |
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:
Best regards, Bruno
__________________
|
||
December 18, 2011, 07:38 |
|
#3 |
New Member
Soon-Heum "Jeff" Ko
Join Date: Dec 2011
Posts: 5
Rep Power: 14 |
Dear Bruno,
Thanks for your suggestion. Let me try with the latest OpenFOAM first and come back to you with the result. Best, Jeff |
|
December 18, 2011, 10:36 |
|
#4 |
New Member
Soon-Heum "Jeff" Ko
Join Date: Dec 2011
Posts: 5
Rep Power: 14 |
Dear Bruno,
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). Questions are, 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. Best, Jeff 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" |
|
December 18, 2011, 11:30 |
|
#5 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 |
Hi Jeff,
Quote:
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: Quote:
Good luck! Bruno
__________________
|
|||
December 18, 2011, 11:36 |
|
#6 |
New Member
Soon-Heum "Jeff" Ko
Join Date: Dec 2011
Posts: 5
Rep Power: 14 |
||
December 20, 2011, 05:44 |
|
#7 |
New Member
Soon-Heum "Jeff" Ko
Join Date: Dec 2011
Posts: 5
Rep Power: 14 |
Dear Bruno,
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? Thanks, Jeff |
|
December 20, 2011, 05:56 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 |
Hi Jeff,
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: Code:
paraFoam -builtin 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 Best regards, Bruno
__________________
|
|
Tags |
1.7.1, icc, openfoam, openmpi |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
openfoam 1.7.1 compilation | ehsan | OpenFOAM | 5 | December 6, 2010 20:44 |