[mpich-discuss] FW: MPICH1.2.1 Install Problem on Linux RedhatEnterprise 4 64 bit

Dave Goodell goodell at mcs.anl.gov
Mon Feb 1 16:10:32 CST 2010


I'm not sure why trac won't let you create a ticket.  I know that you  
do need to enter your email address or your ticket will be flagged as  
spam.

In any case, you don't need to create a ticket.  I believe that I have  
figured out your problem.  Your g++ seems to be broken, at least when  
including the "<complex>" header.  This would normally be fine, but we  
have a bug in our configure logic that causes HAVE_CXX_COMPLEX to be  
defined even when we don't have C++ complex type support.  This breaks  
some code in the various built-in MPI op implementations, such as  
MPI_OP_SUM, that depends on accurate configure test results.

In the short term, you should be able to apply the attached patch and  
get unstuck.  You should be able to apply the patch by putting it in  
the top level source directory, cd'ing to that dir, and running "patch  
-p1 < cxx_complex_fix.patch".  Then re-run make from your build  
directory.  Please let me know how that works out for you, just in  
case there is another related issue in this area.

Alternatively, if you don't need C++ support, you should be able to  
configure with "--disable-cxx" and everything should be fine.

I'll fix this bug in the trunk and on the release branch so that this  
will be fixed in the upcoming 1.2.1p1 patch release.

-Dave

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cxx_complex_fix.patch
Type: application/octet-stream
Size: 857 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20100201/322fc650/attachment.obj>
-------------- next part --------------



On Feb 1, 2010, at 8:34 AM, Woods, Andrew wrote:

> Dave,
>
> Thanks for your reply.
>
> The trac system will not allow me to include test from the console
> showing the error nor to attach files, so I am sending this to you
> directly from a subsequent try:
>
> Console output near end of failed 1.2.1 Mpich2 install on Linux Redhat
> 4 64
>
>    done ; \
> fi
> make[2]: *** No rule to make target
> `/home/magic/mpich2_install/mpich2-1.2.1/src/pm/hydra/ui/mpiexec/ 
> callbac
> k.c', needed by `mpiexec-callback.o'.  Stop.
> make[2]: Entering directory `/tmp/bldmpich/src/pm/hydra'
> make[2]: Leaving directory `/tmp/bldmpich/src/pm/hydra'
> make[2]: Entering directory `/tmp/bldmpich/src/pm/gforker'
>  CC
> /home/magic/mpich2_tar/mpich2-1.2.1/src/pm/gforker/mpiexec.c
> cd ../util && make
> make[3]: Entering directory `/tmp/bldmpich/src/pm/util'
>  CC
> /home/magic/mpich2_tar/mpich2-1.2.1/src/pm/gforker/../util/cmnargs.c
>  CC
> /home/magic/mpich2_tar/mpich2-1.2.1/src/pm/gforker/../util/process.c
>  CC
> /home/magic/mpich2_tar/mpich2-1.2.1/src/pm/gforker/../util/ioloop.c
>  CC
> /home/magic/mpich2_tar/mpich2-1.2.1/src/pm/gforker/../util/pmiserv.c
>  CC
> /home/magic/mpich2_tar/mpich2-1.2.1/src/pm/gforker/../util/labelout.c
>  CC
> /home/magic/mpich2_tar/mpich2-1.2.1/src/pm/gforker/../util/env.c
>  CC
> /home/magic/mpich2_tar/mpich2-1.2.1/src/pm/gforker/../util/ 
> newsession.c
>  CC
> /home/magic/mpich2_tar/mpich2-1.2.1/src/pm/gforker/../util/rm.c
>  CC
> /home/magic/mpich2_tar/mpich2-1.2.1/src/pm/gforker/../util/pmiport.c
>  CC
> /home/magic/mpich2_tar/mpich2-1.2.1/src/pm/gforker/../util/dbgiface.c
>  AR cr libmpiexec.a cmnargs.o process.o ioloop.o pmiserv.o labelout.o
> env.o newsession.o rm.o pmiport.o dbgiface.o
>  RANLIB          libmpiexec.a
> make[3]: Leaving directory `/tmp/bldmpich/src/pm/util'
> gcc -O2    -o mpiexec mpiexec.o  \
> ../util/libmpiexec.a ../../../lib/libmpich.a -lpthread   -lrt
> gcc: ../../../lib/libmpich.a: No such file or directory
> make[2]: *** [mpiexec] Error 1
> make[2]: Leaving directory `/tmp/bldmpich/src/pm/gforker'
> make[1]: Leaving directory `/tmp/bldmpich'
> /usr/bin/install -c -m 644 src/include/mpi.h
> /usr/local/mpich2-1.2.1/include/mpi.h
> /usr/bin/install -c -m 644 lib/libmpich.a
> /usr/local/mpich2-1.2.1/lib/libmpich.a
> /usr/bin/install: cannot stat `lib/libmpich.a': No such file or
> directory
> make: *** [install] Error 1
>
> Thanks for any help you can give.
>
> Andy Woods
>
> -----Original Message-----
> From: mpich-discuss-bounces at mcs.anl.gov
> [mailto:mpich-discuss-bounces at mcs.anl.gov] On Behalf Of Dave Goodell
> Sent: Friday, January 29, 2010 3:06 PM
> To: mpich-discuss at mcs.anl.gov
> Subject: Re: [mpich-discuss] FW: MPICH1.2.1 Install Problem on Linux
> RedhatEnterprise 4 64 bit
>
> Hi Andrew,
>
> Would you please file this information as a ticket in our bug tracking
> system?
>
> https://trac.mcs.anl.gov/projects/mpich2/newticket
>
> Also, please attach the c.txt, m.txt, and config.log files that you
> mention below to the ticket.
>
> We've had one previous report with similar error messages, but it's
> difficult to figure out exactly what's going wrong in this case
> without a bit more digging and back-and-forth communication.  Putting
> it in a bug report will keep the attachments out of everyone's mailbox
> and will make it easier for me to keep track of the issue.
>
> There's probably a programming error in that code somewhere that stems
> from a bad assumption.  However because that code makes heavy use of
> macros it's not obvious what's happening without expanding all the
> macros.  We can talk about it more in the ticket.
>
> Thanks,
> -Dave
>
> On Jan 29, 2010, at 9:31 AM, Woods, Andrew wrote:
>
>> I have now subscribed.
>>
>> Thanks,
>>
>> Andy Woods
>>
>> From: Woods, Andrew
>> Sent: Friday, January 29, 2010 10:08 AM
>> To: mpich-discuss at mcs.anl.gov
>> Subject: MPICH1.2.1 Install Problem on Linux Redhat Enterprise 4 64
>> bit
>>
>> Dear Mpich helpers:
>>
>> I am attempting to install MPICH1.2.1 on Linux Redhat Enterprise 4
>> 64 bit and the following error occurs after make VERBOSE=1 |tee  
>> m.txt:
>>
>> -DHAVE_CONFIG_H -I. -I/home/magic/mpich2_install/mpich2-1.2.1/src/
>> mpi/coll -I../../include -I/home/magic/mpich2_install/mpich2-1.2.1/
>> src/include -I/home/magic/mpich2_install/mpich2-1.2.1/src/mpi/
>> datatype -O2 -I/home/magic/mpich2_install/mpich2-1.2.1/src/openpa/
>> src -I/tmp/bldmpich/src/openpa/src -DUSE_PROCESS_LOCKS -I/tmp/
>> bldmpich/src/mpid/ch3/include -I/home/magic/mpich2_install/
>> mpich2-1.2.1/src/mpid/ch3/include -I/tmp/bldmpich/src/mpid/common/
>> datatype -I/home/magic/mpich2_install/mpich2-1.2.1/src/mpid/common/
>> datatype -I/tmp/bldmpich/src/mpid/common/locks -I/home/magic/
>> mpich2_install/mpich2-1.2.1/src/mpid/common/locks -I/tmp/bldmpich/
>> src/mpid/ch3/channels/nemesis/include -I/home/magic/mpich2_install/
>> mpich2-1.2.1/src/mpid/ch3/channels/nemesis/include -I/tmp/bldmpich/
>> src/mpid/ch3/channels/nemesis/nemesis/include -I/home/magic/
>> mpich2_install/mpich2-1.2.1/src/mpid/ch3/channels/nemesis/nemesis/
>> include -I/tmp/bldmpich/src/mpid/ch3/channels/nemesis/nemesis/utils/
>> monitor -I/home/magic/mpich2_install/mpich2-1.2.1/src/mpid/ch3/
>> channels/nemesis/nemesis/utils/monitor -I/tmp/bldmpich/src/mpid/
>> common/locks -I/home/magic/mpich2_install/mpich2-1.2.1/src/mpid/
>> common/locks -I/tmp/bldmpich/src/util/wrappers -I/home/magic/
>> mpich2_install/mpich2-1.2.1/src/util/wrappers -c /home/magic/
>> mpich2_install/mpich2-1.2.1/src/mpi/coll/opsum.c
>> /home/magic/mpich2_install/mpich2-1.2.1/src/mpi/coll/opsum.c: In
>> function `MPIR_SUM':
>> /home/magic/mpich2_install/mpich2-1.2.1/src/mpi/coll/opsum.c:57:
>> error: duplicate case value
>> /home/magic/mpich2_install/mpich2-1.2.1/src/mpi/coll/opsum.c:57:
>> error: previously used here
>> /home/magic/mpich2_install/mpich2-1.2.1/src/mpi/coll/opsum.c: In
>> function `MPIR_SUM_check_dtype':
>> /home/magic/mpich2_install/mpich2-1.2.1/src/mpi/coll/opsum.c:92:
>> error: duplicate case value
>> /home/magic/mpich2_install/mpich2-1.2.1/src/mpi/coll/opsum.c:92:
>> error: previously used here
>> make[3]: *** [opsum.o] Error 1
>> make[3]: Leaving directory `/tmp/bldmpich/src/mpi/coll'
>> make[2]: *** [all-redirect] Error 2
>> make[2]: Leaving directory `/tmp/bldmpich/src/mpi'
>> make[1]: *** [all-redirect] Error 2
>> make[1]: Leaving directory `/tmp/bldmpich/src'
>> make: *** [all-redirect] Error 2
>> [root at VA90S-OPTERON-LINUX bldmpich]# pwd
>> /tmp/bldmpich
>> [root at VA90S-OPTERON-LINUX bldmpich]# make VERBOSE=1 |tee m.txt
>>
>> Build steps were:
>> tar xfz /home/magic/mpich2_install/mpich2-1.2.1.tar.tar
>>
>> /home/magic/mpich2_install/mpich2-1.2.1/configure -prefix=/usr/local/
>> mpich2/ |tee c.txt
>> make | tee m.txt
>> make install | tee mi.txt
>>
>> in build directory:
>> [root at VA90S-OPTERON-LINUX bldmpich]# pwd
>> /tmp/bldmpich
>>
>> Can you please advise on this?
>>
>> Thanks,
>>
>> Andrew J. Woods
>> Sr. Scientist/Engineer
>> MAGIC Tool Suite Development Team
>> http://www.magictoolsuite.com
>> Alliant Techsystems (ATK)
>> 8560 Cinderbed Road, Suite 700
>> Newington, VA, USA 22122
>> (703) 254 2416
>> Fax: (703) 339 6953
>> (Andrew.Woods at atk.com)
>> _______________________________________________
>> 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
> < 
> c 
> .txt 
> ><m.txt><config.log>_______________________________________________
> 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