CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2 > SU2 Installation

ERROR in installation with INTEL compiler

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 9, 2013, 18:23
Default ERROR in installation with INTEL compiler
  #1
New Member
 
milind
Join Date: Sep 2011
Posts: 6
Rep Power: 15
milind543 is on a distinguished road
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..
milind543 is offline   Reply With Quote

Old   August 14, 2013, 08:14
Default
  #2
New Member
 
Join Date: May 2013
Posts: 8
Rep Power: 13
viit3 is on a distinguished road
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.
viit3 is offline   Reply With Quote

Old   September 29, 2013, 11:46
Default
  #3
New Member
 
Join Date: Apr 2009
Posts: 6
Rep Power: 17
ervasph is on a distinguished road
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
ervasph is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 15:35.