Hi!<br><br>Thanks for the help. I'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'<br>(cd lib && /tmp/sgthomas/mpich2-1.3.2p1/src/util/createshlib --mode=link -version-info "2:2" -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 "" -lpthread )<br>Creating library file: libmpich.a.tmp/_init.o:init.c:(.text+0x3a): undefined reference to `_MPL_env2str'<br>.tmp/_init.o:init.c:(.text+0x5a): undefined reference to `_MPL_env2bool'<br>
.tmp/_initthread.o:initthread.c:(.text+0xd2): undefined reference to `_MPL_env2bool'<br>.tmp/ch3u_rma_ops.o:ch3u_rma_ops.c:(.text+0x1523): undefined reference to `_MPL_env2bool'<br>.tmp/init.o:init.c:(.text+0x3a): undefined reference to `_MPL_env2str'<br>
.tmp/init.o:init.c:(.text+0x5a): undefined reference to `_MPL_env2bool'<br>.tmp/initthread.o:initthread.c:(.text+0x4f2): undefined reference to `_MPL_env2bool'<br>.tmp/mpid_init.o:mpid_init.c:(.text+0x162): undefined reference to `_MPL_env2bool'<br>
.tmp/mpid_vc.o:mpid_vc.c:(.text+0x2b9): undefined reference to `_MPL_env2int'<br>.tmp/mpid_vc.o:mpid_vc.c:(.text+0x2cc): undefined reference to `_MPL_env2int'<br>.tmp/mpid_vc.o:mpid_vc.c:(.text+0x325): undefined reference to `_MPL_env2bool'<br>
.tmp/param_vals.o:param_vals.c:(.text+0x16): undefined reference to `_MPL_env2int'<br>.tmp/param_vals.o:param_vals.c:(.text+0x33): undefined reference to `_MPL_env2int'<br>.tmp/param_vals.o:param_vals.c:(.text+0x50): undefined reference to `_MPL_env2int'<br>
.tmp/param_vals.o:param_vals.c:(.text+0x6d): undefined reference to `_MPL_env2int'<br>.tmp/param_vals.o:param_vals.c:(.text+0x8a): undefined reference to `_MPL_env2int'<br>.tmp/param_vals.o:param_vals.c:(.text+0xa7): more undefined references to `_MPL_env2int' follow<br>
.tmp/param_vals.o:param_vals.c:(.text+0x3d3): undefined reference to `_MPL_env2bool'<br>.tmp/param_vals.o:param_vals.c:(.text+0x3f0): undefined reference to `_MPL_env2bool'<br>.tmp/param_vals.o:param_vals.c:(.text+0x40d): undefined reference to `_MPL_env2bool'<br>
.tmp/param_vals.o:param_vals.c:(.text+0x42a): undefined reference to `_MPL_env2bool'<br>.tmp/param_vals.o:param_vals.c:(.text+0x447): undefined reference to `_MPL_env2bool'<br>.tmp/param_vals.o:param_vals.c:(.text+0x464): more undefined references to `_MPL_env2bool' follow<br>
.tmp/param_vals.o:param_vals.c:(.text+0x4bb): undefined reference to `_MPL_env2int'<br>.tmp/param_vals.o:param_vals.c:(.text+0x4d8): undefined reference to `_MPL_env2int'<br>.tmp/param_vals.o:param_vals.c:(.text+0x4f5): undefined reference to `_MPL_env2bool'<br>
.tmp/param_vals.o:param_vals.c:(.text+0x512): undefined reference to `_MPL_env2bool'<br>.tmp/param_vals.o:param_vals.c:(.text+0x52f): undefined reference to `_MPL_env2bool'<br>.tmp/param_vals.o:param_vals.c:(.text+0x54c): undefined reference to `_MPL_env2bool'<br>
.tmp/param_vals.o:param_vals.c:(.text+0x569): undefined reference to `_MPL_env2int'</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"><<a href="mailto:jayesh@mcs.anl.gov" target="_blank">jayesh@mcs.anl.gov</a>></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>>> Windows pre-compiled binaries don'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: "Sunil Thomas" <<a href="mailto:sgthomas27@gmail.com" target="_blank">sgthomas27@gmail.com</a>><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'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'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 < <a href="mailto:jayesh@mcs.anl.gov" target="_blank">jayesh@mcs.anl.gov</a> > wrote:<br>
<br>
<br>
And if you don't need fortran support disable it (./configure ... --disable-f77 --disable-fc ).<br>
<br>
-Jayesh<br>
<br>
<br>
<br>
----- Original Message -----<br>
From: "Anthony Chan" < <a href="mailto:chan@mcs.anl.gov" target="_blank">chan@mcs.anl.gov</a> ><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't really<br>
need shared library support, you could remove configure option --enable-shared<br>
and see if things work OK. You also don't need --enable-fast=O2 since -O2 is<br>
the default.<br>
<br>
A.Chan<br>
<br>
----- Original Message -----<br>
> Hi!<br>
><br>
> My mpich2-1.3.2 cygwin build is failing (configure seems to complete<br>
> successfully<br>
> and I have done a make clean as instructed in the docs).<br>
><br>
> *make[4]: Leaving directory<br>
> `/tmp/sgthomas/mpich2-1.3.2p1/src/binding/f90'<br>
> make[4]: Entering directory<br>
> `/tmp/sgthomas/mpich2-1.3.2p1/src/binding/f90'<br>
> FC<br>
> /cygdrive/c/Users/sgthomas/devl/mpich2-1.3.2p1/src/binding/f90/mpi.f90<br>
> make[4]: *** [mpi.lo] Error 1<br>
> make[4]: Leaving directory<br>
> `/tmp/sgthomas/mpich2-1.3.2p1/src/binding/f90'<br>
> make[3]: *** [all-redirect] Error 1<br>
> make[3]: Leaving directory<br>
> `/tmp/sgthomas/mpich2-1.3.2p1/src/binding/f90'<br>
> make[2]: *** [all-redirect] Error 1<br>
> make[2]: Leaving directory `/tmp/sgthomas/mpich2-1.3.2p1/src/binding'<br>
> make[1]: *** [all-redirect] Error 2<br>
> make[1]: Leaving directory `/tmp/sgthomas/mpich2-1.3.2p1/src'<br>
> make: *** [all-redirect] Error 2*<br>
><br>
> I am testing this on 32 bit Windows 7. Attached is the c.txt and m.txt<br>
> files. I am<br>
> configuring this using:<br>
><br>
> configure --prefix=<path/to>install --enable-fast=O2 --enable-shared<br>
> |& tee<br>
> c.txt<br>
> make VERBOSE=1 2>&1 | tee m.txt<br>
><br>
> Any help to resolve this error is appreciated!<br>
><br>
> Thanks,<br>
> --Sunil.<br>
><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>
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>