Hi!<br><br>Thanks for the help. I&#39;ve tried configuring mpich2-1.3.2 again using cygwin on Windows 7. This time I disabled fortran (--disable-f77 and --disable-fc) leaving the --enable-shared option. I am getting the following error (this error appears due to the shared option?):<br>
<br><font style="color: rgb(255, 0, 0);" size="1"><i>make lib/libmpich.dll<br>make[1]: Entering directory `/tmp/sgthomas/mpich2-1.3.2p1&#39;<br>(cd lib &amp;&amp; /tmp/sgthomas/mpich2-1.3.2p1/src/util/createshlib --mode=link  -version-info &quot;2:2&quot; -o <a href="http://libmpich.la">libmpich.la</a>  -rpath /cygd<br>
rive/c/Users/sgthomas/devl/mpich2-1.3.2p1-install/lib -L.   -ldflags &quot;&quot; -lpthread  )<br>Creating library file: libmpich.a.tmp/_init.o:init.c:(.text+0x3a): undefined reference to `_MPL_env2str&#39;<br>.tmp/_init.o:init.c:(.text+0x5a): undefined reference to `_MPL_env2bool&#39;<br>
.tmp/_initthread.o:initthread.c:(.text+0xd2): undefined reference to `_MPL_env2bool&#39;<br>.tmp/ch3u_rma_ops.o:ch3u_rma_ops.c:(.text+0x1523): undefined reference to `_MPL_env2bool&#39;<br>.tmp/init.o:init.c:(.text+0x3a): undefined reference to `_MPL_env2str&#39;<br>
.tmp/init.o:init.c:(.text+0x5a): undefined reference to `_MPL_env2bool&#39;<br>.tmp/initthread.o:initthread.c:(.text+0x4f2): undefined reference to `_MPL_env2bool&#39;<br>.tmp/mpid_init.o:mpid_init.c:(.text+0x162): undefined reference to `_MPL_env2bool&#39;<br>
.tmp/mpid_vc.o:mpid_vc.c:(.text+0x2b9): undefined reference to `_MPL_env2int&#39;<br>.tmp/mpid_vc.o:mpid_vc.c:(.text+0x2cc): undefined reference to `_MPL_env2int&#39;<br>.tmp/mpid_vc.o:mpid_vc.c:(.text+0x325): undefined reference to `_MPL_env2bool&#39;<br>
.tmp/param_vals.o:param_vals.c:(.text+0x16): undefined reference to `_MPL_env2int&#39;<br>.tmp/param_vals.o:param_vals.c:(.text+0x33): undefined reference to `_MPL_env2int&#39;<br>.tmp/param_vals.o:param_vals.c:(.text+0x50): undefined reference to `_MPL_env2int&#39;<br>
.tmp/param_vals.o:param_vals.c:(.text+0x6d): undefined reference to `_MPL_env2int&#39;<br>.tmp/param_vals.o:param_vals.c:(.text+0x8a): undefined reference to `_MPL_env2int&#39;<br>.tmp/param_vals.o:param_vals.c:(.text+0xa7): more undefined references to `_MPL_env2int&#39; follow<br>
.tmp/param_vals.o:param_vals.c:(.text+0x3d3): undefined reference to `_MPL_env2bool&#39;<br>.tmp/param_vals.o:param_vals.c:(.text+0x3f0): undefined reference to `_MPL_env2bool&#39;<br>.tmp/param_vals.o:param_vals.c:(.text+0x40d): undefined reference to `_MPL_env2bool&#39;<br>
.tmp/param_vals.o:param_vals.c:(.text+0x42a): undefined reference to `_MPL_env2bool&#39;<br>.tmp/param_vals.o:param_vals.c:(.text+0x447): undefined reference to `_MPL_env2bool&#39;<br>.tmp/param_vals.o:param_vals.c:(.text+0x464): more undefined references to `_MPL_env2bool&#39; follow<br>
.tmp/param_vals.o:param_vals.c:(.text+0x4bb): undefined reference to `_MPL_env2int&#39;<br>.tmp/param_vals.o:param_vals.c:(.text+0x4d8): undefined reference to `_MPL_env2int&#39;<br>.tmp/param_vals.o:param_vals.c:(.text+0x4f5): undefined reference to `_MPL_env2bool&#39;<br>
.tmp/param_vals.o:param_vals.c:(.text+0x512): undefined reference to `_MPL_env2bool&#39;<br>.tmp/param_vals.o:param_vals.c:(.text+0x52f): undefined reference to `_MPL_env2bool&#39;<br>.tmp/param_vals.o:param_vals.c:(.text+0x54c): undefined reference to `_MPL_env2bool&#39;<br>
.tmp/param_vals.o:param_vals.c:(.text+0x569): undefined reference to `_MPL_env2int&#39;</i></font><br><br>I am attaching my c.txt and m.txt files.. I noticed also an error in c.txt (perhaps I missed this one in the last build)<br>
<br><font style="color: rgb(255, 0, 0);" size="1"><i>checking for stdint.h... yes<br>checking for unistd.h... yes<br>checking for syscall... no<br>configure: error: Cannot continue<br>configure: ===== done with tools/bind/plpa/plpa configure =====</i></font><br>
<br>Any ideas are appreciated to get the build to work with the shared option on Windows...also any feedback on experience using mngw as an alternative to build mpich2 on Windows will be very helpful.<br><br>Many thanks,<br>
--Sunil.<br><br><br><div class="gmail_quote">On Wed, Apr 27, 2011 at 11:22 AM, Jayesh Krishna <span dir="ltr">&lt;<a href="mailto:jayesh@mcs.anl.gov" target="_blank">jayesh@mcs.anl.gov</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Hi,<br>
<div>&gt;&gt;  Windows pre-compiled binaries don&#39;t come with the compilers mpicc, mpicxx<br>
</div> mpicc/mpicxx etc are compiler wrappers (convenience scripts). You can create your own in Cygwin (Most of the Cygwin users who use Windows libraries explicitly invoke the compiler, gcc, with the appropriate include/lib paths libs etc).<br>


<br>
Regards,<br>
<font color="#888888">Jayesh<br>
</font><div>----- Original Message -----<br>
From: &quot;Sunil Thomas&quot; &lt;<a href="mailto:sgthomas27@gmail.com" target="_blank">sgthomas27@gmail.com</a>&gt;<br>
To: <a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br>
</div><div><div></div><div>Cc: <a href="mailto:jayesh@mcs.anl.gov" target="_blank">jayesh@mcs.anl.gov</a>, <a href="mailto:chan@mcs.anl.gov" target="_blank">chan@mcs.anl.gov</a><br>
Sent: Wednesday, April 27, 2011 12:35:16 PM<br>
Subject: Re: [mpich-discuss] mpich2-1.3.2 cygwin build error.<br>
<br>
<br>
Hi!<br>
<br>
Thanks a lot for the response. I will try only disabling fortran support first. Hopefully that works..<br>
<br>
I would prefer to have shared library support if possible. What are my other options on Windows if that&#39;s<br>
the case and mpich2-1.3.2 does not support it with cygwin? Should I use mngw? Is there any helpful<br>
documentation on it that you have?<br>
<br>
I need to build from source because the Windows pre-compiled binaries don&#39;t come with the compilers<br>
mpicc, mpicxx, etc. (atleast I have checked this from installing the pre-compiled binaries on my<br>
Windows machine previous to building from scratch) and I need these to build my application using<br>
MPI on cygwin...without which, as expected, I get the errors mpicc, mpicxx not found, etc..<br>
<br>
Thanks again,<br>
--Sunil.<br>
<br>
<br>
On Wed, Apr 27, 2011 at 8:27 AM, Jayesh Krishna &lt; <a href="mailto:jayesh@mcs.anl.gov" target="_blank">jayesh@mcs.anl.gov</a> &gt; wrote:<br>
<br>
<br>
And if you don&#39;t need fortran support disable it (./configure ... --disable-f77 --disable-fc ).<br>
<br>
-Jayesh<br>
<br>
<br>
<br>
----- Original Message -----<br>
From: &quot;Anthony Chan&quot; &lt; <a href="mailto:chan@mcs.anl.gov" target="_blank">chan@mcs.anl.gov</a> &gt;<br>
To: <a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br>
Sent: Wednesday, April 27, 2011 10:17:01 AM<br>
Subject: Re: [mpich-discuss] mpich2-1.3.2 cygwin build error.<br>
<br>
<br>
I am not sure cygwin shared library support is in 1.3.2p1. If you don&#39;t really<br>
need shared library support, you could remove configure option --enable-shared<br>
and see if things work OK. You also don&#39;t need --enable-fast=O2 since -O2 is<br>
the default.<br>
<br>
A.Chan<br>
<br>
----- Original Message -----<br>
&gt; Hi!<br>
&gt;<br>
&gt; My mpich2-1.3.2 cygwin build is failing (configure seems to complete<br>
&gt; successfully<br>
&gt; and I have done a make clean as instructed in the docs).<br>
&gt;<br>
&gt; *make[4]: Leaving directory<br>
&gt; `/tmp/sgthomas/mpich2-1.3.2p1/src/binding/f90&#39;<br>
&gt; make[4]: Entering directory<br>
&gt; `/tmp/sgthomas/mpich2-1.3.2p1/src/binding/f90&#39;<br>
&gt; FC<br>
&gt; /cygdrive/c/Users/sgthomas/devl/mpich2-1.3.2p1/src/binding/f90/mpi.f90<br>
&gt; make[4]: *** [mpi.lo] Error 1<br>
&gt; make[4]: Leaving directory<br>
&gt; `/tmp/sgthomas/mpich2-1.3.2p1/src/binding/f90&#39;<br>
&gt; make[3]: *** [all-redirect] Error 1<br>
&gt; make[3]: Leaving directory<br>
&gt; `/tmp/sgthomas/mpich2-1.3.2p1/src/binding/f90&#39;<br>
&gt; make[2]: *** [all-redirect] Error 1<br>
&gt; make[2]: Leaving directory `/tmp/sgthomas/mpich2-1.3.2p1/src/binding&#39;<br>
&gt; make[1]: *** [all-redirect] Error 2<br>
&gt; make[1]: Leaving directory `/tmp/sgthomas/mpich2-1.3.2p1/src&#39;<br>
&gt; make: *** [all-redirect] Error 2*<br>
&gt;<br>
&gt; I am testing this on 32 bit Windows 7. Attached is the c.txt and m.txt<br>
&gt; files. I am<br>
&gt; configuring this using:<br>
&gt;<br>
&gt; configure --prefix=&lt;path/to&gt;install --enable-fast=O2 --enable-shared<br>
&gt; |&amp; tee<br>
&gt; c.txt<br>
&gt; make VERBOSE=1 2&gt;&amp;1 | tee m.txt<br>
&gt;<br>
&gt; Any help to resolve this error is appreciated!<br>
&gt;<br>
&gt; Thanks,<br>
&gt; --Sunil.<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; mpich-discuss mailing list<br>
&gt; <a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br>
&gt; <a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
_______________________________________________<br>
mpich-discuss mailing list<br>
<a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
<br>
</div></div></blockquote></div><br>