[mpich-discuss] mpich2-1.3.2 cygwin build error.
Sunil Thomas
sgthomas27 at gmail.com
Fri Apr 29 02:27:28 CDT 2011
Hi!
Just a follow-up - I figured out the mistake I had to use
--enable-shared=cygwin-gcc; not just
"--enable-shared". Then everything works fine..
Thanks,
--Sunil.
On Thu, Apr 28, 2011 at 9:51 PM, Sunil Thomas <sgthomas27 at gmail.com> wrote:
> Hi!
>
> 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?):
>
> *make lib/libmpich.dll
> make[1]: Entering directory `/tmp/sgthomas/mpich2-1.3.2p1'
> (cd lib && /tmp/sgthomas/mpich2-1.3.2p1/src/util/createshlib --mode=link
> -version-info "2:2" -o libmpich.la -rpath /cygd
> rive/c/Users/sgthomas/devl/mpich2-1.3.2p1-install/lib -L. -ldflags ""
> -lpthread )
> Creating library file: libmpich.a.tmp/_init.o:init.c:(.text+0x3a):
> undefined reference to `_MPL_env2str'
> .tmp/_init.o:init.c:(.text+0x5a): undefined reference to `_MPL_env2bool'
> .tmp/_initthread.o:initthread.c:(.text+0xd2): undefined reference to
> `_MPL_env2bool'
> .tmp/ch3u_rma_ops.o:ch3u_rma_ops.c:(.text+0x1523): undefined reference to
> `_MPL_env2bool'
> .tmp/init.o:init.c:(.text+0x3a): undefined reference to `_MPL_env2str'
> .tmp/init.o:init.c:(.text+0x5a): undefined reference to `_MPL_env2bool'
> .tmp/initthread.o:initthread.c:(.text+0x4f2): undefined reference to
> `_MPL_env2bool'
> .tmp/mpid_init.o:mpid_init.c:(.text+0x162): undefined reference to
> `_MPL_env2bool'
> .tmp/mpid_vc.o:mpid_vc.c:(.text+0x2b9): undefined reference to
> `_MPL_env2int'
> .tmp/mpid_vc.o:mpid_vc.c:(.text+0x2cc): undefined reference to
> `_MPL_env2int'
> .tmp/mpid_vc.o:mpid_vc.c:(.text+0x325): undefined reference to
> `_MPL_env2bool'
> .tmp/param_vals.o:param_vals.c:(.text+0x16): undefined reference to
> `_MPL_env2int'
> .tmp/param_vals.o:param_vals.c:(.text+0x33): undefined reference to
> `_MPL_env2int'
> .tmp/param_vals.o:param_vals.c:(.text+0x50): undefined reference to
> `_MPL_env2int'
> .tmp/param_vals.o:param_vals.c:(.text+0x6d): undefined reference to
> `_MPL_env2int'
> .tmp/param_vals.o:param_vals.c:(.text+0x8a): undefined reference to
> `_MPL_env2int'
> .tmp/param_vals.o:param_vals.c:(.text+0xa7): more undefined references to
> `_MPL_env2int' follow
> .tmp/param_vals.o:param_vals.c:(.text+0x3d3): undefined reference to
> `_MPL_env2bool'
> .tmp/param_vals.o:param_vals.c:(.text+0x3f0): undefined reference to
> `_MPL_env2bool'
> .tmp/param_vals.o:param_vals.c:(.text+0x40d): undefined reference to
> `_MPL_env2bool'
> .tmp/param_vals.o:param_vals.c:(.text+0x42a): undefined reference to
> `_MPL_env2bool'
> .tmp/param_vals.o:param_vals.c:(.text+0x447): undefined reference to
> `_MPL_env2bool'
> .tmp/param_vals.o:param_vals.c:(.text+0x464): more undefined references to
> `_MPL_env2bool' follow
> .tmp/param_vals.o:param_vals.c:(.text+0x4bb): undefined reference to
> `_MPL_env2int'
> .tmp/param_vals.o:param_vals.c:(.text+0x4d8): undefined reference to
> `_MPL_env2int'
> .tmp/param_vals.o:param_vals.c:(.text+0x4f5): undefined reference to
> `_MPL_env2bool'
> .tmp/param_vals.o:param_vals.c:(.text+0x512): undefined reference to
> `_MPL_env2bool'
> .tmp/param_vals.o:param_vals.c:(.text+0x52f): undefined reference to
> `_MPL_env2bool'
> .tmp/param_vals.o:param_vals.c:(.text+0x54c): undefined reference to
> `_MPL_env2bool'
> .tmp/param_vals.o:param_vals.c:(.text+0x569): undefined reference to
> `_MPL_env2int'*
>
> 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)
>
> *checking for stdint.h... yes
> checking for unistd.h... yes
> checking for syscall... no
> configure: error: Cannot continue
> configure: ===== done with tools/bind/plpa/plpa configure =====*
>
> 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.
>
> Many thanks,
> --Sunil.
>
>
>
> On Wed, Apr 27, 2011 at 11:22 AM, Jayesh Krishna <jayesh at mcs.anl.gov>wrote:
>
>> Hi,
>> >> Windows pre-compiled binaries don't come with the compilers mpicc,
>> mpicxx
>> 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).
>>
>> Regards,
>> Jayesh
>> ----- Original Message -----
>> From: "Sunil Thomas" <sgthomas27 at gmail.com>
>> To: mpich-discuss at mcs.anl.gov
>> Cc: jayesh at mcs.anl.gov, chan at mcs.anl.gov
>> Sent: Wednesday, April 27, 2011 12:35:16 PM
>> Subject: Re: [mpich-discuss] mpich2-1.3.2 cygwin build error.
>>
>>
>> Hi!
>>
>> Thanks a lot for the response. I will try only disabling fortran support
>> first. Hopefully that works..
>>
>> I would prefer to have shared library support if possible. What are my
>> other options on Windows if that's
>> the case and mpich2-1.3.2 does not support it with cygwin? Should I use
>> mngw? Is there any helpful
>> documentation on it that you have?
>>
>> I need to build from source because the Windows pre-compiled binaries
>> don't come with the compilers
>> mpicc, mpicxx, etc. (atleast I have checked this from installing the
>> pre-compiled binaries on my
>> Windows machine previous to building from scratch) and I need these to
>> build my application using
>> MPI on cygwin...without which, as expected, I get the errors mpicc, mpicxx
>> not found, etc..
>>
>> Thanks again,
>> --Sunil.
>>
>>
>> On Wed, Apr 27, 2011 at 8:27 AM, Jayesh Krishna < jayesh at mcs.anl.gov >
>> wrote:
>>
>>
>> And if you don't need fortran support disable it (./configure ...
>> --disable-f77 --disable-fc ).
>>
>> -Jayesh
>>
>>
>>
>> ----- Original Message -----
>> From: "Anthony Chan" < chan at mcs.anl.gov >
>> To: mpich-discuss at mcs.anl.gov
>> Sent: Wednesday, April 27, 2011 10:17:01 AM
>> Subject: Re: [mpich-discuss] mpich2-1.3.2 cygwin build error.
>>
>>
>> I am not sure cygwin shared library support is in 1.3.2p1. If you don't
>> really
>> need shared library support, you could remove configure option
>> --enable-shared
>> and see if things work OK. You also don't need --enable-fast=O2 since -O2
>> is
>> the default.
>>
>> A.Chan
>>
>> ----- Original Message -----
>> > Hi!
>> >
>> > My mpich2-1.3.2 cygwin build is failing (configure seems to complete
>> > successfully
>> > and I have done a make clean as instructed in the docs).
>> >
>> > *make[4]: Leaving directory
>> > `/tmp/sgthomas/mpich2-1.3.2p1/src/binding/f90'
>> > make[4]: Entering directory
>> > `/tmp/sgthomas/mpich2-1.3.2p1/src/binding/f90'
>> > FC
>> > /cygdrive/c/Users/sgthomas/devl/mpich2-1.3.2p1/src/binding/f90/mpi.f90
>> > make[4]: *** [mpi.lo] Error 1
>> > make[4]: Leaving directory
>> > `/tmp/sgthomas/mpich2-1.3.2p1/src/binding/f90'
>> > make[3]: *** [all-redirect] Error 1
>> > make[3]: Leaving directory
>> > `/tmp/sgthomas/mpich2-1.3.2p1/src/binding/f90'
>> > make[2]: *** [all-redirect] Error 1
>> > make[2]: Leaving directory `/tmp/sgthomas/mpich2-1.3.2p1/src/binding'
>> > make[1]: *** [all-redirect] Error 2
>> > make[1]: Leaving directory `/tmp/sgthomas/mpich2-1.3.2p1/src'
>> > make: *** [all-redirect] Error 2*
>> >
>> > I am testing this on 32 bit Windows 7. Attached is the c.txt and m.txt
>> > files. I am
>> > configuring this using:
>> >
>> > configure --prefix=<path/to>install --enable-fast=O2 --enable-shared
>> > |& tee
>> > c.txt
>> > make VERBOSE=1 2>&1 | tee m.txt
>> >
>> > Any help to resolve this error is appreciated!
>> >
>> > Thanks,
>> > --Sunil.
>> >
>> > _______________________________________________
>> > mpich-discuss mailing list
>> > mpich-discuss at mcs.anl.gov
>> > https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
>> _______________________________________________
>> mpich-discuss mailing list
>> mpich-discuss at mcs.anl.gov
>> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20110429/0f75a45f/attachment.htm>
More information about the mpich-discuss
mailing list