<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7036.0">
<TITLE>RE: [mpich-discuss] BUILDING MPICH2 under Windows x64</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>&nbsp;Hi,<BR>
&nbsp; I am able to download the source of MPICH2 (1.0.7) from web and configure it successfully (You might still see some errors about unhandled defn which you can ignore. I don&#8217;t get any errors about not being able to open src\pmi. If you don't have src\pmi in your MPICH2 source tree the source tree is corrupted - or a previous instance of perl is still running in the background)<BR>
<BR>
# Reboot your machine (This should kill any previous instances of perl.exe or build scripts running in the background)<BR>
# Delete your current MPICH2 source directory (C:\mpich2-1.0.7\mpich2-1.0.7) &amp; the source tar file that you are currently using.<BR>
# Download a fresh copy of MPICH2 1.0.7 (the latest stable version) source from web (<A HREF="http://www.mcs.anl.gov/research/projects/mpich2/downloads/index.php?s=downloads">http://www.mcs.anl.gov/research/projects/mpich2/downloads/index.php?s=downloads</A>).<BR>
# Unzip the source.<BR>
# Run &quot;cscript winconfigure.wsf --cleancode&quot;<BR>
<BR>
&nbsp; Let us know if you still get the errors (You can ignore the &quot;unhandled definitions&quot; error).<BR>
<BR>
Regards,<BR>
Jayesh<BR>
<BR>
-----Original Message-----<BR>
From: owner-mpich-discuss@mcs.anl.gov [<A HREF="mailto:owner-mpich-discuss@mcs.anl.gov">mailto:owner-mpich-discuss@mcs.anl.gov</A>] On Behalf Of Joao Paulo Lima Santos<BR>
Sent: Monday, September 22, 2008 2:18 PM<BR>
To: mpich-discuss@mcs.anl.gov<BR>
Subject: RE: [mpich-discuss] BUILDING MPICH2 under Windows x64<BR>
<BR>
Hi,<BR>
I tried to follow the steps recommended but unfortunately still returns the error message &quot;Could not open src\pmi&quot; :<BR>
<BR>
------------------------------------------------------------------------<BR>
<BR>
C:\mpich2-1.0.7\mpich2-1.0.7&gt;cscript winconfigure.wsf --cleancode Microsoft (R) Windows Script Host Version 5.6 Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.<BR>
<BR>
Creating src\include\win64\mpi.h<BR>
Creating src\include\win32\mpi.h<BR>
Creating src\include\win32\mpichtimer.h<BR>
Creating src\include\win64\mpichtimer.h<BR>
Creating src\include\mpich2info.h<BR>
Creating src\mpe2\src\logging\include\mpe_log_thread.h<BR>
Creating src\mpe2\src\callstack\include\mpe_callstack.h<BR>
Creating src\include\mpio.h<BR>
Creating src\mpi\romio\adio\include\romioconf.h<BR>
C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\cxx&gt;perl buildiface -nosep Creating src\include\mpicxx.h modifying the comm, win datatype classes to handle unreferenced variables.<BR>
C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\f77&gt;perl buildiface Creating src\include\win32\mpif.h Creating src\include\win64\mpif.h Creating src\binding\f77\fprotos.h Creating file: C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\f77\accumulatefs.c<BR>
Creating file: C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\f77\allgatherfs.c<BR>
Creating file: C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\f77\allgathervfs.c<BR>
Creating file: C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\f77\allreducefs.c<BR>
Creating file: C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\f77\alltoallfs.c<BR>
Creating file: C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\f77\alltoallvfs.c<BR>
Creating file: C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\f77\alltoallwfs.c<BR>
Creating file: C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\f77\bcastfs.c<BR>
Creating file: C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\f77\bsendfs.c<BR>
Creating file: C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\f77\bsend_initfs.c<BR>
Creating file: C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\f77\bufattachfs.c<BR>
Creating file: C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\f77\bufdetachfs.c<BR>
Creating file: C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\f77\exscanfs.c<BR>
Creating file: C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\f77\gatherfs.c<BR>
Creating file: C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\f77\gathervfs.c<BR>
Creating file: C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\f77\getfs.c<BR>
Creating file: C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\f77\ibsendfs.c<BR>
Creating file: C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\f77\irecvfs.c<BR>
Creating file: C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\f77\irsendfs.c<BR>
Creating file: C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\f77\isendfs.c<BR>
Creating file: C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\f77\issendfs.c<BR>
Creating file: C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\f77\putfs.c<BR>
Creating file: C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\f77\recvfs.c<BR>
Creating file: C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\f77\recv_initfs.c<BR>
Creating file: C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\f77\redscatfs.c<BR>
Creating file: C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\f77\reducefs.c<BR>
Creating file: C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\f77\rsendfs.c<BR>
Creating file: C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\f77\rsend_initfs.c<BR>
Creating file: C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\f77\scanfs.c<BR>
Creating file: C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\f77\scatterfs.c<BR>
Creating file: C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\f77\scattervfs.c<BR>
Creating file: C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\f77\sendfs.c<BR>
Creating file: C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\f77\sendrecvfs.c<BR>
Creating file: C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\f77\send_initfs.c<BR>
Creating file: C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\f77\sndrcvrplfs.c<BR>
Creating file: C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\f77\ssendfs.c<BR>
Creating file: C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\f77\ssend_initfs.c<BR>
Creating file: C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\f77\win_createfs.c<BR>
Creating src\binding\f77\setbotf.f<BR>
C:\mpich2-1.0.7\mpich2-1.0.7\src\binding\f90&gt;perl buildiface Creating src\include\win32\mpifnoext.h Creating src\include\win64\mpifnoext.h Creating src\binding\f90\win32\mpi_sizeofs.f90<BR>
Creating src\binding\f90\win64\mpi_sizeofs.f90<BR>
C:\mpich2-1.0.7\mpich2-1.0.7&gt;perl maint\extracterrmsgs -skip=src\util/multichann el/mpi.c src\mpi src\nameserv src\util src\binding src\include src\mpid src\pmi<BR>
<BR>
Could not open src\pmi<BR>
<BR>
Because of errors in extracting error messages, the file src\mpi\errhan\defmsg.h was not updated.<BR>
Creating maint\extractstates<BR>
Creating maint\extractstrings<BR>
C:\mpich2-1.0.7\mpich2-1.0.7&gt;perl maint\extractstates Creating test\mpi\maint\testmerge C:\mpich2-1.0.7\mpich2-1.0.7\test\mpi\cxx\io&gt;perl ..\..\maint\testmerge -defn=..<BR>
\..\maint\common.defn ioharness.defn ioharness.tlt C:\mpich2-1.0.7\mpich2-1.0.7\test\mpi\f77\io&gt;perl ..\..\maint\testmerge -defn=..<BR>
\..\maint\common.defn ioharness.defn ioharness.tlt Creating src\include\win32\mpichconf.h Creating src\include\win64\mpichconf.h Creating src\include\win32\mpidi_ch3_conf.h<BR>
Creating src\include\win64\mpidi_ch3_conf.h<BR>
Creating src\include\win32\timerconf.h<BR>
Creating src\include\win64\timerconf.h<BR>
Creating src\include\win32\mpid_locksconf.h<BR>
Creating src\include\win64\mpid_locksconf.h<BR>
Creating src\include\win32\mpidu_sock_conf.h<BR>
Creating src\include\win64\mpidu_sock_conf.h<BR>
Creating src\include\win32\ch3usockconf.h Creating src\include\win64\ch3usockconf.h Creating src\include\win32\pmiconf.h Creating src\include\win64\pmiconf.h Skipping file: mpidi_ch3i_rdma_conf.h Creating src\include\win32\mpidi_ch3i_shm_conf.h<BR>
Creating src\include\win64\mpidi_ch3i_shm_conf.h<BR>
Creating src\include\win32\mpidi_ch3i_sock_conf.h<BR>
Creating src\include\win64\mpidi_ch3i_sock_conf.h<BR>
Creating src\include\win32\mpidi_ch3i_ssm_conf.h<BR>
Creating src\include\win64\mpidi_ch3i_ssm_conf.h<BR>
Skipping file: mpidi_ch3i_sshm_conf.h<BR>
Skipping file: mpidi_ch3i_ib_conf.h<BR>
Creating src\include\win32\mpe_logging_conf.h<BR>
Creating src\include\win64\mpe_logging_conf.h<BR>
Creating src\include\win32\mpe_wrappers_conf.h<BR>
Creating src\include\win64\mpe_wrappers_conf.h<BR>
Creating src\include\win32\mpe_conf.h<BR>
Creating src\include\win64\mpe_conf.h<BR>
Creating src\mpe2\src\logging\include\clog_inttypes.h<BR>
Creating src\include\win32\mpe_thread.h<BR>
Creating src\include\win64\mpe_thread.h<BR>
Skipping file: mpe_thread_conf.h<BR>
Creating src\mpe2\src\callstack\mpe_callstack_conf.h<BR>
Creating src\include\win32\mpid_thread.h Creating src\include\win64\mpid_thread.h Creating src\util\logging\rlog\trace_impl.h<BR>
Creating src\include\win32\mpitestconf.h Creating src\include\win64\mpitestconf.h Creating src\include\win32\attraints.h Creating src\include\win64\attraints.h Creating src\include\win32\typeaints.h Creating src\include\win64\typeaints.h Creating src\include\win32\ioaint.h Creating src\include\win64\ioaint.h Creating src\include\win32\iooffset.h Creating src\include\win64\iooffset.h Creating src\include\win32\iodisp.h Creating src\include\win64\iodisp.h Creating src\include\win32\addsize.h Creating src\include\win64\addsize.h Creating src\include\win32\type1aint.h Creating src\include\win64\type1aint.h Creating bin\mpicc.wsf Creating winbuild directory Creating src\pm\smpd\smpd_version.h: 1.0.7 Unhandled definitions:<BR>
HAVE_PVFS2_CREATE_WITHOUT_LAYOUT<BR>
ROMIO_BGL<BR>
ROMIO_BGLOCKLESS<BR>
ROMIO_LUSTRE<BR>
CRAY_STACKSEG_END<BR>
HAVE_DLSYM<BR>
HAVE_DOUBLE_ALIGNMENT_EXCEPTION<BR>
HAVE_F90_TYPE_ROUTINES<BR>
HAVE_MPICHCONF<BR>
HAVE_PTHREAD_CLEANUP_PUSH<BR>
HAVE_PTHREAD_CLEANUP_PUSH_MACRO<BR>
HAVE_RUNTIME_THREADCHECK<BR>
LINUX86_CYCLE_CPUID_RDTSC<BR>
LINUX86_CYCLE_RDTSC<BR>
LINUX86_CYCLE_RDTSCP<BR>
MPICH2_LIBDIR<BR>
MPICH_DEBUG_MEMARENA<BR>
MPICH_DEBUG_MUTEX<BR>
STACK_DIRECTION<BR>
USE_ALLOCA<BR>
USE_DYNAMIC_LIBRARIES<BR>
WORDS_BIGENDIAN<BR>
HAVE_MPIDI_CH3_CONF<BR>
USE_NOPOSIX_FOR_IFCONF<BR>
HAVE_MPIDI_CH3SOCKCONF<BR>
HAVE_GCC_ASM_SPARC_MEMBAR<BR>
HAVE_GCC_ASM_SPARC_STBAR<BR>
HAVE_SOLARIS_ASM_SPARC_MEMBAR<BR>
HAVE_SOLARIS_ASM_SPARC_STBAR<BR>
GCC_X86_CYCLE_CPUID_RDTSC<BR>
GCC_X86_CYCLE_RDTSC<BR>
GCC_X86_CYCLE_RDTSCP<BR>
HAVE_LIBPTHREAD<BR>
HAVE_O_LARGEFILE<BR>
HAVE_MPI_INIT_THREAD<BR>
HAVE_EXECINFO_H<BR>
HAVE_FDOPEN<BR>
HAVE_UCONTEXT_H<BR>
NEEDS_FDOPEN_DECL<BR>
HAVE_H_ADDR_LIST<BR>
<BR>
ERROR: 40 definitions not handled<BR>
(92 instances of unhandled definitions)<BR>
<BR>
----------------------------------------------------------------------<BR>
<BR>
I'm trying recompile mpich to convert int to int8 bytes for use fortran mpi lib. I'll use visual studio solution win64.&nbsp; What can I do?<BR>
<BR>
Thank you very much.<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
Quoting Jayesh Krishna &lt;jayesh@mcs.anl.gov&gt;:<BR>
<BR>
&gt; Hi,<BR>
&gt;&nbsp; If you want to use MPICH2 (develop MPI apps) on windows you can<BR>
&gt; install<BR>
&gt; MPICH2 using the installer available at the MPICH2 downloads webpage<BR>
&gt; (<A HREF="http://www.mcs.anl.gov/research/projects/mpich2/downloads/index.php?s">http://www.mcs.anl.gov/research/projects/mpich2/downloads/index.php?s</A><BR>
&gt; =dow nloads). The MPICH2 install includes binaries for the job<BR>
&gt; launcher, process manager and the libs to build your MPI application.<BR>
&gt;&nbsp; If you would like to perform development (modify) on MPICH2 code, to<BR>
&gt; build MPICH2 on windows you need to run the configure script for<BR>
&gt; windows<BR>
&gt; (winconfigure.wsf) and run the build batch file (build.bat available<BR>
&gt; in the winbuild directory).<BR>
&gt;<BR>
&gt; Building MPICH2 from source on windows<BR>
&gt; ------------------------------------------<BR>
&gt; 1) Obtain the MPICH2 source from the MPICH2 downloads page<BR>
&gt; (<A HREF="http://www.mcs.anl.gov/research/projects/mpich2/downloads/index.php?s">http://www.mcs.anl.gov/research/projects/mpich2/downloads/index.php?s</A><BR>
&gt; =dow<BR>
&gt; nloads).<BR>
&gt;&nbsp;&nbsp; -- If you download MPICH2 source from the SVN repository, run<BR>
&gt; &quot;maint/updatefiles&quot; before running windows configure script.<BR>
&gt; 2) Run the windows configure script,<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cscript winconfigure.wsf --cleancode<BR>
&gt; 3) Build MPICH2<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; build.bat<BR>
&gt;<BR>
&gt;&nbsp; From the error message it looks like you don't have the complete<BR>
&gt; MPICH2 source. Make sure that you download the MPICH2 source from the<BR>
&gt; MPICH2 downloads page.<BR>
&gt;&nbsp; Let us know if you need further help.<BR>
&gt;<BR>
&gt; Regards,<BR>
&gt; Jayesh<BR>
&gt;<BR>
&gt;<BR>
&gt; -----Original Message-----<BR>
&gt; From: owner-mpich-discuss@mcs.anl.gov<BR>
&gt; [<A HREF="mailto:owner-mpich-discuss@mcs.anl.gov">mailto:owner-mpich-discuss@mcs.anl.gov</A>] On Behalf Of Joao Paulo Lima<BR>
&gt; Santos<BR>
&gt; Sent: Friday, September 19, 2008 1:40 PM<BR>
&gt; To: mpich-discuss@mcs.anl.gov<BR>
&gt; Subject: [mpich-discuss] BUILDING MPICH2 under Windows x64<BR>
&gt;<BR>
&gt; I'm trying rebuild mpich 2 under windows x64. But, when I run<BR>
&gt; winconfigure.wsf&nbsp; I see the PERL runnig, but show a message &quot;could not<BR>
&gt; open src\pmi&quot;.<BR>
&gt;<BR>
&gt; I need to set up something more?<BR>
&gt;<BR>
&gt; ...<BR>
&gt; BUILDING MPICH2 under Windows<BR>
&gt;<BR>
&gt; requirements:<BR>
&gt; a) MS Development Environment 2003, C/C++ and Intel Fortran 8.0<BR>
&gt; b) perl<BR>
&gt; c) administrative privileges on your machines.<BR>
&gt;<BR>
&gt; Create the directories and files:<BR>
&gt; 1) unzip the package.<BR>
&gt; 2) cd into the mpich2 directory<BR>
&gt; 3) run winconfigure to generate mpi.h and other header files. (perl<BR>
&gt; required)<BR>
&gt;<BR>
&gt; Sincerely yours.<BR>
&gt;<BR>
&gt;<BR>
<BR>
<BR>
<BR>
--<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>