|
[Sponsors] |
August 9, 2013, 18:23 |
ERROR in installation with INTEL compiler
|
#1 |
New Member
milind
Join Date: Sep 2011
Posts: 6
Rep Power: 15 |
I tried compiling with intel mpi compiler but I got an error.
I used the configuration as follows: ./configure CXX=icc CFLAGS=-g CXXFLAGS=-O3 --with-CGNS-lib=/usr/local/lib --with-CGNS-include=/usr/local/include --with-Metis-lib=/usr/local/lib --with-Metis-include=/usr/local/include --with-Metis-version=5 --with-MPI=/opt/intel-c/impi/4.0.3.008/intel64/bin/mpiicc the configuration is succesfull but then when i do make the error it gives is make[1]: Entering directory `/home/rohithvs/milind/SU2v2.0/trunk/Common/lib' if /opt/intel-c/impi/4.0.3.008/intel64/bin/mpiicc -DPACKAGE_NAME=\"SU\^2\" -DPACKAGE_TARNAME=\"SU\^2\" -DPACKAGE_VERSION=\"2.0\" -DPACKAGE_STRING=\"SU\^2\ 2.0\" -DPACKAGE_BUGREPORT=\"susquared-dev@lists.stanford.edu\" -DPACKAGE=\"SU\^2\" -DVERSION=\"2.0\" -I. -I. -I/usr/local/include -I/usr/local/include -DMETIS_5 -DNO_TECIO -O3 -MT ../src/libSU2_a-config_structure.o -MD -MP -MF "../src/.deps/libSU2_a-config_structure.Tpo" -c -o ../src/libSU2_a-config_structure.o `test -f '../src/config_structure.cpp' || echo './'`../src/config_structure.cpp; \ then mv -f "../src/.deps/libSU2_a-config_structure.Tpo" "../src/.deps/libSU2_a-config_structure.Po"; else rm -f "../src/.deps/libSU2_a-config_structure.Tpo"; exit 1; fi /opt/intel-c/impi/4.0.3.008/intel64/include/mpicxx.h(93): catastrophic error: #error directive: "SEEK_SET is #defined but must not be for the C++ binding of MPI. Include mpi.h before stdio.h" #error "SEEK_SET is #defined but must not be for the C++ binding of MPI. Include mpi.h before stdio.h" ^ compilation aborted for ../src/config_structure.cpp (code 4) make[1]: *** [../src/libSU2_a-config_structure.o] Error 1 make[1]: Leaving directory `/home/rohithvs/milind/SU2v2.0/trunk/Common/lib' make: *** [all-recursive] Error 1 I tried searching i found if i add -DMPICH_IGNORE_SEEK as an additional flag it will go, well it does go but it agian shows some another error hence i feel there s a better way out. Can you please help.. |
|
August 14, 2013, 08:14 |
|
#2 |
New Member
Join Date: May 2013
Posts: 8
Rep Power: 13 |
I had similar error. Its a problem with intelmpi. For each file where you get this error, for eg here you are getting it for
config_structure.cpp You have to edit the file to include mpi.h before all other include statements. You have to do it for a lot of files. |
|
September 29, 2013, 11:46 |
|
#3 |
New Member
Join Date: Apr 2009
Posts: 6
Rep Power: 17 |
You can add
#undef SEEK_SET #undef SEEK_END #undef SEEK_CUR before mpi.h is included in fact, only "config_structure.hpp", "geometry_structure.hpp" and "solver_structure.hpp" need be modified |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM] Color display problem to view OpenFOAM results. | Sargam05 | ParaView | 16 | May 11, 2013 01:10 |
CFX11 + Fortran compiler ? | Mohan | CFX | 20 | March 30, 2011 19:56 |
OF1.7.0 installation problem with Intel compiler | i1ya | OpenFOAM Installation | 3 | August 14, 2010 04:14 |
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found | piprus | OpenFOAM Installation | 22 | February 25, 2010 14:43 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 19:07 |