[mpich-discuss] MInGW(4.5.2)+MPICH2, ERROR!!!!!

孔涛 hawk_kongtao at yahoo.com.cn
Thu Mar 31 11:51:03 CDT 2011


Hello,everyone. I am using MinGW ( GCC v4.5.2) compined with MPICH2 in my win7 
platform. All the softwares  are downloaded from the official websites. 

Now MinGW works well for an ordinary C/C++/fortran source file without MPI. but 
when turnning to a MPI source file , it can only compile with the -c option, but 
can't link. if link, the following error occurs:
---
D:\MathProgF\MPICH2\lib/libmpicxx.a(initcxx.o):initcxx.cxx:(.text+0x456): 
undefined reference to `__gxx_personality_sj0'
D:\MathProgF\MPICH2\lib/libmpicxx.a(initcxx.o):initcxx.cxx:(.text+0x47b): 
undefined reference to `_Unwind_SjLj_Register'
D:\MathProgF\MPICH2\lib/libmpicxx.a(initcxx.o):initcxx.cxx:(.text+0x4e8): 
undefined reference to `_Unwind_SjLj_Resume'
...
...
...
D:\MathProgF\MPICH2\lib/libmpicxx.a(initcxx.o):initcxx.cxx:(.text$_ZNK3MPI8Cartcomm3SubEPKb[MPI::Cartcomm::Sub(bool
 const*) const]+0xc): undefined reference to `__gxx_personality_sj0'
D:\MathProgF\MPICH2\lib/libmpicxx.a(initcxx.o):initcxx.cxx:(.text$_ZNK3MPI8Cartcomm3SubEPKb[MPI::Cartcomm::Sub(bool
 const*) const]+0x31): undefined reference to `_Unwind_SjLj_Register'
D:\MathProgF\MPICH2\lib/libmpicxx.a(initcxx.o):initcxx.cxx:(.text$_ZNK3MPI8Cartcomm3SubEPKb[MPI::Cartcomm::Sub(bool
 const*) const]+0x138): undefined reference to `_Unwind_SjLj_Resume'
D:\MathProgF\MPICH2\lib/libmpicxx.a(initcxx.o):initcxx.cxx:(.text$_ZNK3MPI8Cartcomm3SubEPKb[MPI::Cartcomm::Sub(bool
 const*) const]+0x143): undefined reference to `_Unwind_SjLj_Unregister'
D:\MathProgF\MPICH2\lib/libmpicxx.a(initcxx.o):initcxx.cxx:(.text$_ZNK3MPI3Win14Get_errhandlerEv[MPI::Win::Get_errhandler()
 const]+0xc): undefined reference to `__gxx_personality_sj0'
D:\MathProgF\MPICH2\lib/libmpicxx.a(initcxx.o):initcxx.cxx:(.text$_ZNK3MPI3Win14Get_errhandlerEv[MPI::Win::Get_errhandler()
 const]+0x31): undefined reference to `_Unwind_SjLj_Register'
D:\MathProgF\MPICH2\lib/libmpicxx.a(initcxx.o):initcxx.cxx:(.text$_ZNK3MPI3Win14Get_errhandlerEv[MPI::Win::Get_errhandler()
 const]+0xd2): undefined reference to `_Unwind_SjLj_Resume'
D:\MathProgF\MPICH2\lib/libmpicxx.a(initcxx.o):initcxx.cxx:(.text$_ZNK3MPI3Win14Get_errhandlerEv[MPI::Win::Get_errhandler()
 const]+0xdd): undefined reference to `_Unwind_SjLj_Unregister'
D:\MathProgF\MPICH2\lib/libmpicxx.a(initcxx.o):initcxx.cxx:(.text$_ZNK3MPI3Win9Get_groupEv[MPI::Win::Get_group()
 const]+0xc): undefined reference to `__gxx_personality_sj0'
D:\MathProgF\MPICH2\lib/libmpicxx.a(initcxx.o):initcxx.cxx:(.text$_ZNK3MPI3Win9Get_groupEv[MPI::Win::Get_group()
 const]+0x31): undefined reference to `_Unwind_SjLj_Register'
D:\MathProgF\MPICH2\lib/libmpicxx.a(initcxx.o):initcxx.cxx:(.text$_ZNK3MPI3Win9Get_groupEv[MPI::Win::Get_group()
 const]+0xd2): undefined reference to `_Unwind_SjLj_Resume'
D:\MathProgF\MPICH2\lib/libmpicxx.a(initcxx.o):initcxx.cxx:(.text$_ZNK3MPI3Win9Get_groupEv[MPI::Win::Get_group()
 const]+0xdd): undefined reference to `_Unwind_SjLj_Unregister'
D:\MathProgF\MPICH2\lib/libmpicxx.a(initcxx.o):initcxx.cxx:(.text$_ZN3MPI4File13Iwrite_sharedEPKviRKNS_8DatatypeE[MPI::File::Iwrite_shared(void
 const*, int, MPI::Datatype const&)]+0xc): undefined reference to 
`__gxx_personality_sj0'
D:\MathProgF\MPICH2\lib/libmpicxx.a(initcxx.o):initcxx.cxx:(.text$_ZN3MPI4File13Iwrite_sharedEPKviRKNS_8DatatypeE[MPI::File::Iwrite_shared(void
 const*, int, MPI::Datatype const&)]+0x31): undefined reference to 
`_Unwind_SjLj_Register'
D:\MathProgF\MPICH2\lib/libmpicxx.a(initcxx.o):initcxx.cxx:(.text$_ZN3MPI4File13Iwrite_sharedEPKviRKNS_8DatatypeE[MPI::File::Iwrite_shared(void
 const*, int, MPI::Datatype const&)]+0xea): undefined reference to 
`_Unwind_SjLj_Resume'
D:\MathProgF\MPICH2\lib/libmpicxx.a(initcxx.o):initcxx.cxx:(.text$_ZN3MPI4File13Iwrite_sharedEPKviRKNS_8DatatypeE[MPI::File::Iwrite_shared(void
 const*, int, MPI::Datatype const&)]+0xf5): undefined reference to 
`_Unwind_SjLj_Unregister'
D:\MathProgF\MPICH2\lib/libmpicxx.a(initcxx.o):initcxx.cxx:(.text$_ZN3MPI4File6IwriteEPKviRKNS_8DatatypeE[MPI::File::Iwrite(void
 const*, int, MPI::Datatype const&)]+0xc): undefined reference to 
`__gxx_personality_sj0'
D:\MathProgF\MPICH2\lib/libmpicxx.a(initcxx.o):initcxx.cxx:(.text$_ZN3MPI4File6IwriteEPKviRKNS_8DatatypeE[MPI::File::Iwrite(void
 const*, int, MPI::Datatype const&)]+0x31): undefined reference to 
`_Unwind_SjLj_Register'
---------------
More detial infomation is appended in the attachment
can users tell me what's the matter and how to solve the problem?

I had to say sth. else that if you use "easymingwtoolkit" , everything works 
well, but it doesn't contain a fortran complier and I want to compile some .f90 
file

Many thanks, waiting for your reply

 ---
Kong Tao
School of Maths,Shandong Univ.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20110401/ec9242cd/attachment-0001.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: errinfo.txt
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20110401/ec9242cd/attachment-0001.txt>


More information about the mpich-discuss mailing list