[mpich-discuss] Error when compiling with mpif90

Anthony Chan chan at mcs.anl.gov
Sat Feb 12 21:56:45 CST 2011


Both .txt files seem fine. Did you do "make install" after "make" ?
--enable-fx should be --enable-fc. But since Fortran 90 support is
enabled by default, --enable-fx is ignored.

Can you do the following ?

cd <mpich2-build-directory>/examples/f90
make

and send us the output of the "make" command ? More questions inlined
below.

----- Original Message -----
> Ok, I've added those flags, along with some others, but I still get
> the same
> error. The output from show is:

what do you mean by "the output from show" ?
The following output is not from "mpif90 -show", right ?

> 
> /usr/local/bin/gfortran -c bla.f -fdefault-real-8 -O3 -fdollar-ok
> -fmax-errors=6 -fconvert=big-endian -frecord-marker=4 -cpp
> -mcmodel=large
> -DMPI -I/usr/local/mpich2/include -L/usr/local/mpich2/lib
> -I/usr/local/mpich2/include -I/usr/local/mpich2/include
> 
> I configured with:
> 
> ./configure --enable-fx --enable-f77 --prefix=/usr/local/mpich2
> --enable-shared --enable-sharedlibs=osx-gcc 2>&1 | tee c.txt
> 
> 
> I'm attaching the configure and make (VERBOSE=1) logs too.
> 
> Thanks,
> Brandt
> 
> 
> 
> >
> >
> > ----------------------------------------------------------------------
> >
> > Message: 1
> > Date: Fri, 11 Feb 2011 14:32:01 -0600 (CST)
> > From: Anthony Chan <chan at mcs.anl.gov>
> > Subject: Re: [mpich-discuss] Error when compiling with mpif90
> > To: mpich-discuss at mcs.anl.gov
> > Message-ID:
> >        <2104102570.47103.1297456321711.JavaMail.root at zimbra.anl.gov>
> > Content-Type: text/plain; charset=utf-8
> >
> >
> >
> > ----- Original Message -----
> >
> > > not /usr/bin/mpif90, which gives a different error message about
> > > not
> > > supporting fortran.
> > >
> > > The output from using show is:
> > >
> > > /usr/local/bin/gfortran -c bla.f -mcmodel=large
> > > -I/usr/local/mpich2/include
> > > -L/usr/local/mpich2/lib -cpp -I/usr/local/mpich2/include
> > > -I/usr/local/mpich2/include
> >
> > I am not familiar with Mac, but AFAIK, mpich2's mpif90 does not add
> > "-cpp" or "-mcmodel". How did you configure mpich2 ? Can you send us
> > the configure and make outputs ? I would like to make sure that
> > your mpich2 build is OK.
> >
> > A.Chan
> >
> > >
> > > And just to repeat, the compiler error messages are below.
> > >
> > > /var/folders/zz/zzzivhrRnAmviuee++2ZO++-7KU/-Tmp-//ccsWDdv3.s:23533:junk
> > > `@PLTOFF' after expression
> > > /var/folders/zz/zzzivhrRnAmviuee++2ZO++-7KU/-Tmp-//ccsWDdv3.s:23537:junk
> > > `@GOTOFF' after expression
> > >
> >
> >
> 
> _______________________________________________
> 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