[mpich-devel] overzealous F90/F90FLAGS error
Junchao Zhang
jczhang at mcs.anl.gov
Tue Jan 13 12:12:53 CST 2015
Created a ticket https://trac.mpich.org/projects/mpich/ticket/2216
--Junchao Zhang
On Tue, Jan 13, 2015 at 11:47 AM, Balaji, Pavan <balaji at anl.gov> wrote:
>
> I agree with Dave. The F90 check was added because of idiot users who
> don't care about warnings and tell us that things don't work as expected.
> His suggestion to check for F90 != FC is a better option too. There'd be
> very few cases where F90 would need to be different from FC. In such
> cases, Mike's suggestion for a configure option might do the trick.
>
> Can someone create a ticket? I'm on vacation, I shouldn't even be
> responding to emails.
>
> -- Pavan
>
> > On Jan 13, 2015, at 11:00 PM, Blocksome, Michael <
> michael.blocksome at intel.com> wrote:
> >
> > Could an option be added to configure similar to "-Wall -Werr" ? For
> example,
> >
> > ../mpich.git/configure --with-configure-warnings=abort
> >
> > Then these over-zealous configure errors could be turned into easily
> ignored configure warnings in the general case?
> >
> > -----Original Message-----
> > From: Jeff Hammond [mailto:jeff.science at gmail.com]
> > Sent: Tuesday, January 13, 2015 11:12 AM
> > To: devel at mpich.org
> > Subject: Re: [mpich-devel] overzealous F90/F90FLAGS error
> >
> > On Tue, Jan 13, 2015 at 9:03 AM, Dave Goodell (dgoodell)
> > <dgoodell at cisco.com> wrote:
> >> On Jan 13, 2015, at 10:53 AM, Jeff Hammond <jeff.science at gmail.com>
> wrote:
> >>
> >>> On Tue, Jan 13, 2015 at 8:50 AM, Dave Goodell (dgoodell)
> >>> <dgoodell at cisco.com> wrote:
> >>>>
> >>>> Rather than remove this code altogether, it might be better to change
> the logic to complain more like this (untested):
> >>>>
> >>>> if test -n "$F90" && test "x$F90" != "x$FC" ; then
> >>>> AC_MSG_ERROR([F90 set but not equal to FC. This is almost
> certainly a mistake. Either unset F90 or set F90="$FC"])
> >>>> elif test -n "$F90FLAGS" && test "x$F90FLAGS" != "x$FCFLAGS" ; then
> >>>> AC_MSG_ERROR([F90FLAGS set but not equal to FCFLAGS. This is
> almost certainly a mistake. Either unset F90FLAGS or set
> F90FLAGS="$FCFLAGS"])
> >>>
> >>> Except there are systems where FC=xlf2008_r F90=xlf90_r F77=xlf77_r is
> >>> the right thing to do. Thankfully, I no longer have to deal with such
> >>> system, so I bring this up as an academic point.
> >>
> >> I don't feel strongly about this, since I don't have to do much support
> of situations where users would make an F90/FC mistake. But lots of past
> users of MPICH (from before the switch to using FC instead of F90) are
> likely to have scripts/documentation that uses F90 and is oblivious to the
> fact that it will be ignored. So those users will have a pretty bad
> experience when their MPI installation uses a different Fortran compiler
> than they were expecting. A plain warning from configure probably isn't
> enough for them to realize they made a mistake.
> >
> > Yeah, this is real problem. My solution would be to use F90 as FC if
> > and only if F90 is defined to be a non-MPI compiler while FC is not
> > defined at all.
> >
> > I agree that the warning will quickly disappear in the stream of
> > output and will not be effective.
> >
> >> Also, as far as I recall, FC!=F90 is completely at odds with the
> current MPICH (and OMPI) build system(s). I don't know whether those
> systems are correct or not, but it's how they are deliberately designed and
> implemented.
> >
> > True, but since MPICH doesn't reference F90 at any point, it should be
> > perfectly valid for a user to set FC=ifort and F90="mpifort".
> >
> >> I've now used up all of my "care about what happens to Fortran" points
> for the month, so it's back to lurking for me...
> >
> > But there are 17 days left in January!!! :-)
> >
> > Jeff
> >
> > --
> > Jeff Hammond
> > jeff.science at gmail.com
> > http://jeffhammond.github.io/
> > _______________________________________________
> > To manage subscription options or unsubscribe:
> > https://lists.mpich.org/mailman/listinfo/devel
> > _______________________________________________
> > To manage subscription options or unsubscribe:
> > https://lists.mpich.org/mailman/listinfo/devel
>
> --
> Pavan Balaji ✉️
> http://www.mcs.anl.gov/~balaji
>
> _______________________________________________
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/devel/attachments/20150113/598957fa/attachment-0001.html>
More information about the devel
mailing list