CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   SU2 Installation (https://www.cfd-online.com/Forums/su2-installation/)
-   -   ERROR in installation with INTEL compiler (https://www.cfd-online.com/Forums/su2-installation/122001-error-installation-intel-compiler.html)

milind543 August 9, 2013 17:23

ERROR in installation with INTEL compiler
 
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..

viit3 August 14, 2013 07:14

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.

ervasph September 29, 2013 10:46

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


All times are GMT -4. The time now is 05:14.