Charm 6.5.0 compilation issue

From: Dmitry Osolodkin (dmitry_o_at_qsar.chem.msu.ru)
Date: Sun Jan 06 2013 - 13:28:27 CST

Dear developers,

I'm trying to compile current Nightly build of NAMD with Charm 6.5.0 and
Intel compilers. My command is: env MPICXX=mpiicc ./build charm++
mpi-linux-x86_64 --with-production

I used env MPICXX=mpiicpc or env MPICXX=mpiicc because default mpicxx
points to gcc compiler, but in both cases results are the same:

/share/intel/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 mpi-interoperate.C (code 4)
Fatal Error by charmc in directory
/home/dosolodkin/namd2013/charm-6.5.0/mpi-linux-x86_64/tmp
   Command mpiicc -DCMK_GFORTRAN -I../bin/../include -D__CHARMC__=1 -I.
-O2 -fno-stack-protector -c mpi-interoperate.C -o mpi-interoperate.o
returned error code 4
charmc exiting...
gmake: *** [mpi-interoperate.o] Error 1
-------------------------------------------------
Charm++ NOT BUILT.

Could you please help me to resolve this issue?

Thank you in advance.

Dmitry

-- 
Dmitry Osolodkin, PhD
Researcher
Group of Computational Molecular Design
Department of Chemistry
Moscow State University
Moscow 119991 Russia
e-mail: dmitry_o_at_qsar.chem.msu.ru
Phone: +7-495-9393557
Fax: +7-495-9390290

This archive was generated by hypermail 2.1.6 : Tue Dec 31 2013 - 23:22:52 CST