[mpich-discuss] mpi.mod is not a gfortran module file

Jayesh Krishna jayesh at mcs.anl.gov
Thu Oct 7 11:06:02 CDT 2010


Hi,
 The default fortran 90 module available with MPICH2 is compiled using Intel Fortran compiler (not compatible with gfortran).
 If your program is a fortran 90 program (not just using "use mpi") then I would recommend that you compile MPICH2 on Cygwin (configure/make/make install).

Regards,
Jayesh
----- Original Message -----
From: "孔涛" <hawk_kongtao at yahoo.com.cn>
To: mpich-discuss at mcs.anl.gov
Sent: Thursday, October 7, 2010 3:06:07 AM GMT -06:00 US/Canada Central
Subject: [mpich-discuss] mpi.mod is not a gfortran module file






Hello, I have installed GCC & MPICH2-1.2.1p1 for windows, it works well with c/C++ 
but I can't compile my fortran file with mpi. and I use this command: 
------- 
gfortran -I D:\MPICH2\include -L D:\MPICH2\lib $(FileName) -o $(FileNameNoExt) -lmpi 
------------------ 
and in the folder " D:\MPICH2\include", it contains mpi.mod file. 
but I got the following error: 
----- 

hello.F90:2.36: 


use mpi 
1 
Fatal Error: File 'mpi.mod' opened at (1) is not a GFORTRAN module file 
gfortran.exe: Internal error: Aborted (program f951) 
Please submit a full bug report. 
See < http://gcc.gnu.org/bugs.html > for instructions. 
请按任意键继续. . . 
------------------ 
my gfortran version is : 
-- 


D:\GCC\bin>gfortran -v 
Built by Equation Solution < http://www.Equation.com >. 
Using built-in specs. 
COLLECT_GCC=gfortran 
COLLECT_LTO_WRAPPER=d:/gcc/bin/../libexec/gcc/i686-pc-mingw32/4.5.1/lto-wrapper. 
exe 
Target: i686-pc-mingw32 
Thread model: win32 
gcc version 4.5.1 (GCC) 


D:\GCC\bin> 


----- 
what's the matter? who can help me? somebody says it may be caused by different versions of gfortran? and who can send me a copy of mpi.mod created by my version? 









------ --------------------------------------------- 
孔涛 山东大学数学学院 
Mobile: 13688635846 Phone: 0531-88369020 QQ:584219201 




_______________________________________________
mpich-discuss mailing list
mpich-discuss at mcs.anl.gov
https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss


More information about the mpich-discuss mailing list