Hi all,<br>I recently have downloaded and installed mpich2 for my Linux SGI machine (Linux pg-hpc-altix-01 2.6.5-7.139-sn2 #1 SMP Fri Jan 14 15:41:33 UTC 2005 ia64 ia64 ia64 GNU/Linux). I compiled it with icc and ifort. I am using climate (CCSM) coupled model on this machine. The problem is when i compile one of my code i get error of mpi.h for icc. For ifort every thing is fine. Here is the error.<br>
<br>icc -c -I. -I/hpc/home/sislam/columbia/ccsm/models/atm/cam/src/chemistry/bulk_aero -I/hpc/home/sislam/columbia/ccsm/models/atm/cam/src/chemistry/utils -I/hpc/home/sislam/columbia/ccsm/models/atm/cam/src/physics/cam -I/hpc/home/sislam/columbia/ccsm/models/atm/cam/src/dynamics/fv -I/hpc/home/sislam/columbia/ccsm/models/atm/cam/src/cpl_mct -I/hpc/home/sislam/columbia/ccsm/models/atm/cam/src/control -I/hpc/home/sislam/columbia/ccsm/models/csm_share/shr -I/hpc/home/sislam/columbia/ccsm/models/csm_share/dshr -I/hpc/home/sislam/columbia/ccsm/models/atm/cam/src/utils -I/hpc/home/sislam/columbia/ccsm/models/utils/timing -I/hpc/home/sislam/columbia/ccsm/models/utils/pio -I/hpc/home/sislam/columbia/ccsm/models/utils/mct/mpeu -I/hpc/home/sislam/columbia/ccsm/models/utils/mct/mct -I/hpc/home/sislam/columbia/ccsm/models/utils/esmf_wrf_timemgr -I/hpc/home/sislam/columbia/ccsm/models/atm/cam/src/utils/pilgrim -I/hpc/home/sislam/columbia/ccsm/models/drv/driver -I/hpc/home/sislam/columbia/ccsm/models/drv/shr -I/hpc/home/sislam/columbia/ccsm/models/atm/cam/src/utils/cam_dom -I/hpc/home/sislam/columbia/ccsm/models/atm/cam/src/utils/cam_dom/cpl_mct -I/hpc/home/sislam/columbia/ccsm/models/lnd/clm/src/main/cpl_mct -I/hpc/home/sislam/columbia/ccsm/models/lnd/clm/src/main -I/hpc/home/sislam/columbia/ccsm/models/lnd/clm/src/biogeophys -I/hpc/home/sislam/columbia/ccsm/models/lnd/clm/src/biogeochem -I/hpc/home/sislam/columbia/ccsm/models/lnd/clm/src/riverroute -I/hpc/home/sislam/columbia/ccsm/models/ice/cice/src/drivers/cpl_mct -I/hpc/home/sislam/columbia/ccsm/models/ice/cice/src/drivers/cpl_share -I/hpc/home/sislam/columbia/ccsm/models/ice/cice/src/mpi -I/hpc/home/sislam/columbia/ccsm/models/ice/cice/src/source -I/hpc/home/sislam/columbia/ccsm/models/glc/sglc/cpl_mct -I/hpc/home/sislam/columbia/include -I/hpc/home/sislam/mpich2-1.2.1p1/include  -DNO_SHR_VMATH -DSEQ_MCT -DFORTRANUNDERSCORE -DCO2A -DMAXPATCH_PFT=numpft+1 -DLSMLAT=1 -DLSMLON=1 -DCOUP_DOM -DPLON=144 -DPLAT=96 -DPLEV=26 -DPCNST=3 -DPCOLS=16 -DPTRM=1 -DPTRN=1 -DPTRK=1 -DSTAGGERED  -DCCSMCOUPLED -Dcoupled -Dncdf -DNCAT=1 -DNXGLOB=144 -DNYGLOB=96 -DNTR_AERO=0 -DBLCKX=36 -DBLCKY=96 -DMXBLCKS=1  -D_USEBOX -D_NETCDF   -DNO_MPI2 -DSPMD -DLINUX  /hpc/home/sislam/columbia/ccsm/models/utils/timing/GPTLprint_memusage.c<br>
/usr/include/mpi.h(30): error: invalid redeclaration of type name &quot;MPI_Request&quot; (declared at line 264 of &quot;/hpc/home/sislam/mpich2-1.2.1p1/include/mpi.h&quot;)<br>  typedef unsigned int          MPI_Request;<br>
                                ^<br><br>/usr/include/mpi.h(31): error: invalid redeclaration of type name &quot;MPI_Group&quot; (declared at line 120 of &quot;/hpc/home/sislam/mpich2-1.2.1p1/include/mpi.h&quot;)<br>  typedef unsigned int          MPI_Group;<br>
                                ^<br><br>/usr/include/mpi.h(32): error: invalid redeclaration of type name &quot;MPI_Comm&quot; (declared at line 115 of &quot;/hpc/home/sislam/mpich2-1.2.1p1/include/mpi.h&quot;)<br>  typedef unsigned int          MPI_Comm;<br>
                                ^<br><br>/usr/include/mpi.h(33): error: invalid redeclaration of type name &quot;MPI_Errhandler&quot; (declared at line 243 of &quot;/hpc/home/sislam/mpich2-1.2.1p1/include/mpi.h&quot;)<br>
  typedef unsigned int          MPI_Errhandler;<br>                                ^<br><br>/usr/include/mpi.h(34): error: invalid redeclaration of type name &quot;MPI_Op&quot; (declared at line 136 of &quot;/hpc/home/sislam/mpich2-1.2.1p1/include/mpi.h&quot;)<br>
  typedef unsigned int          MPI_Op;<br>                                ^<br><br>/usr/include/mpi.h(35): error: invalid redeclaration of type name &quot;MPI_Datatype&quot; (declared at line 23 of &quot;/hpc/home/sislam/mpich2-1.2.1p1/include/mpi.h&quot;)<br>
  typedef unsigned int          MPI_Datatype;<br>                                ^<br><br>Can any body help me to find the solution.<br clear="all"><br>Note: I have compiled mpich using following command<br>
./configure --prefix=/hpc/u2/sislam/mpich2-1.2.1p1&#39; &#39;--with-atomic-primitives=no&#39; &#39;CC=icc&#39; &#39;F77=ifort&#39;<br><br>