[mpich-discuss] (no subject)

Anthony Chan chan at mcs.anl.gov
Thu Apr 28 10:28:37 CDT 2011


This seems to be a cygwin issue. cygwin 1.7.8 seems buggy.  Do a web search
of "cygwin 1.7.8 __xpg_strerror_r", you will see there are many
reference of the bug, see for instance:

http://comments.gmane.org/gmane.os.cygwin/125487

Try update to the latest cygwin to see if the problem is still there.
(We have seen user with cygwin 1.7.9 was able to compile mpich2 without
any major problem).

A.Chan

----- Original Message -----
> Hi,
> 
> I am trying to install mpich2-1.3.2p1 on my 64-bit Windows 7 with
> Cygwin
> ( 1.7.8(0.236/5/3) 2011-03-01 09:36 i686 Cygwin), the compilation is
> almost successful, it failed with error messages:
> ...
> make[7]: `/cygdrive/g/mpich2-1.3.2p1/src/mpe2/lib/libmpe_nompi.a' is
> up to date.
> make --no-print-directory
> /cygdrive/g/mpich2-1.3.2p1/src/mpe2/lib/libmpe.a
> /cygdrive/g/mpich2-1.3.2p1/bin/mpicc -I.. -I../include -I../../..
> -I../../../include -o dbxerr.po -c dbxerr.c
> dbxerr.c: In function ‘MPE_DefaultHandler’:
> dbxerr.c:429: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
> before ‘{’ token
> dbxerr.c:459: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
> before ‘{’ token
> dbxerr.c:475: error: argument ‘sig’ doesn’t match prototype
> dbxerr.c:407: error: prototype declaration
> dbxerr.c:475: error: expected ‘{’ at end of input
> make[7]: *** [dbxerr.po] Error 1
> make[6]: *** [default] Error 2
> make[5]: *** [build_lib_bin] Error 2
> make[4]: *** [all] Error 2
> 
> ....
> 
> make all-postamble
> make[1]: Entering directory `/cygdrive/g/mpich2-1.3.2p1'
> ( cd examples && make )
> make[2]: Entering directory `/cygdrive/g/mpich2-1.3.2p1/examples'
> ../bin/mpicc -o cpi cpi.o -lm
> /cygdrive/g/mpich2-1.3.2p1/lib/libmpich.a(strerror.o):strerror.c:(.text+0x28):
> undefined reference to `__xpg_strerror_r'
> collect2: ld returned 1 exit status
> make[2]: *** [cpi] Error 1
> make[2]: Leaving directory `/cygdrive/g/mpich2-1.3.2p1/examples'
> make[1]: *** [all-postamble] Error 2
> make[1]: Leaving directory `/cygdrive/g/mpich2-1.3.2p1'
> make: *** [all-redirect] Error 2
> 
> 
> The version of gcc is 4.3.4. Any suggestion on what might be wrong?
> Thanks for your help.
> 
> Jyh-Shyong Ho, Ph.D.
> Research Scientist
> National Center for High Performance Computing
> Hsinchu, Taiwan, ROC
> _______________________________________________
> 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