[mpich-discuss] Installing mpich

rigved sharma rigved.sharma123 at gmail.com
Thu Sep 22 13:40:44 CDT 2011


thanks..can that not be fixed using the same version ? what fix i have to
apply?

On Thu, Sep 22, 2011 at 11:34 PM, Anthony Chan <chan at mcs.anl.gov> wrote:

>
> That means Fortran binding was not built correctly.
> Sorry, you need to use mpich2.
>
> A.Chan
>
> ----- Original Message -----
> > when i try to execute helloworld.f90 code, i get following error.
> >
> > ../bin/mpif90 helloworld.f90
> > /par1/mpich/install/lib/libmpich.a(farg.o): In function
> > `mpir_iargc__':
> > farg.f:(.text+0x6): undefined reference to `f__xargc'
> > /par1/mpich/install/lib/libmpich.a(farg.o): In function
> > `mpir_getarg__':
> > farg.f:(.text+0x38): undefined reference to `getarg_'
> > collect2: ld returned 1 exit status
> > --------------------------------
> > 01.program helloWorld
> > 02. implicit none
> > 03. include "mpif.h"
> > 04. integer :: myPE, numProcs, ierr
> > 05. call MPI_INIT(ierr)
> > 06. call MPI_COMM_RANK(MPI_COMM_WORLD, myPE, ierr)
> > 07. call MPI_COMM_SIZE(MPI_COMM_WORLD, numProcs, ierr)
> > 08. print *, "Hello World from ", myPE
> > 09. call MPI_FINALIZE(ierr)
> > 10.end program helloWorld
> > ----------------------------------
> > I have some other programs to run . Can you suggest a way out ?
> >
> > RIGVED
> >
> > On Wed, Sep 21, 2011 at 9:53 PM, Anthony Chan <chan at mcs.anl.gov>
> > wrote:
> >
> > >
> > >
> > > ----- Original Message -----
> > >
> > > > when i execute the command mpif90 -v, i get following error. Any
> > > > solution
> > > > for this linking issue sir
> > > >
> > > >
> > > > /usr/lib/gcc/x86_64-redhat-linux/4.1.2/libgfortranbegin.a(fmain.o):
> > > > In
> > > > function `main':
> > > > (.text+0xa): undefined reference to `MAIN__'
> > > > collect2: ld returned 1 exit status
> > >
> > > Don't worry about that. MPICH-1's fortran compiler wrapper isn't
> > > careful
> > > about
> > > this case. Try using mpif90 to compile a fortran MPI program and see
> > > if it
> > > runs.
> > > Again, we don't support it so you are on your own.
> > >
> > > A.Chan
> > > _______________________________________________
> > > mpich-discuss mailing list mpich-discuss at mcs.anl.gov
> > > To manage subscription options or unsubscribe:
> > > https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
> > >
> >
> > _______________________________________________
> > mpich-discuss mailing list mpich-discuss at mcs.anl.gov
> > To manage subscription options or unsubscribe:
> > https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
> _______________________________________________
> mpich-discuss mailing list     mpich-discuss at mcs.anl.gov
> To manage subscription options or unsubscribe:
> 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/20110923/18e236c3/attachment.htm>


More information about the mpich-discuss mailing list