[mpich-discuss] cygwin & mingw64 & windows 7 (64bits)

Jayesh Krishna jayesh at mcs.anl.gov
Mon Nov 8 10:51:39 CST 2010


Hi,
 Mingw does not provide the POSIX runtime environment that Nemesis/sock needs. Try compiling your code with gcc (from mingw package) and MPICH2 (64-bit) installed using the windows installers (mpich2-1.3-win-x86-64.msi).
 Let us know if it works for you.

Regards,
Jayesh
----- Original Message -----
From: Jean-Michel Beuken <beuken at pcpm.ucl.ac.be>
To: mpich-discuss at mcs.anl.gov
Sent: Mon, 08 Nov 2010 09:41:26 -0600 (CST)
Subject: [mpich-discuss] cygwin & mingw64 & windows 7 (64bits)

Hello,

I want to share my experiences but not the final solution :-(

my environment :

Windows 7 (64bits)
Cygwin 1.7.7 ( + automake, autotools, m4,... )
x86_64-w64-mingw32-[gcc,gfortran,ar,nm,...]

A) first of all, I succeed to compile and to run a sequential version of
my Fortran90 code ( http://www.abinit.org) in this environment...


B) now, I'm try to make the parallel version with mpich2-1.3

1) one problem with the configure script...
while I have :

------------------------------------------
$ echo $PATH
/usr/x86_64-w64-mingw32/bin:/usr/local/bin:/usr/bin:/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:

$ which egrep
/usr/bin/egrep
------------------------------------------

configure hangs with pipe around the line 24445 in configure :

------------------------------------------
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   $EGREP "memchr" >/dev/null 2>&1; then
------------------------------------------

because $EGREP is not defined,


2)   this is my configure script :

-----------------my configure script -------------------------------
FC=x86_64-w64-mingw32-gfortran.exe \
CC=x86_64-w64-mingw32-gcc.exe \
F77=x86_64-w64-mingw32-gfortran.exe \
CPP=/usr/bin/x86_64-w64-mingw32-cpp.exe \
CXX=/usr/bin/x86_64-w64-mingw32-g++.exe \
AR=/usr/bin/x86_64-w64-mingw32-ar.exe \
RANLIB=/usr/bin/x86_64-w64-mingw32-ranlib.exe \
STRIP=/usr/bin/x86_64-w64-mingw32-strip.exe \
AS=/usr/bin/x86_64-w64-mingw32-as.exe \
DLLTOOL=/usr/bin/x86_64-w64-mingw32-dlltool.exe \
LD=/usr/bin/x86_64-w64-mingw32-ld.exe \
NM=/usr/bin/x86_64-w64-mingw32-nm.exe \
OBJDUMP=/usr/bin/x86_64-w64-mingw32-objdump.exe \
\
EGREP=/usr/bin/egrep \
LDFLAGS='-static-libgcc -static-libgfortran' \
\
./configure --prefix=/usr/local/mpich2 \
             --disable-shared --disable-sharedlibs \
             --with-thread-package=none --enable-threads=single \
             --disable-cxx --without-mpe \
             --with-device=ch3:sock
---------------------------------------------------------------

- but, with ch3:sock  :
...
configure: ===== configuring poll =====
....
checking for poll... no
configure: error: This device requires the poll function
configure: error: poll configure failed
configure: error: src/mpid/common/sock configure failed

- but,  with ch3:nemesis
...
RUNNING CONFIGURE FOR THE NEMESIS CHANNEL
...
configure: error: cannot support shared memory:  need either sysv shared memory functions or mmap in order to support shared memory
configure: error: channels/nemesis configure failed
configure: error: src/mpid/ch3 configure failed


Any ideas to go futher ?

regards

jmb
_______________________________________________
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