[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Using g77 or gfortran?



Thomas Weber writes:
> Am Montag, 4. Juni 2007 11:41:53 schrieb Matthias Klose:
> > Thomas Weber writes:
> > > Hi,
> > >
> > > we (Octave maintainers in Debian) currently have a problem with GNU
> > > Octave, related to gfortran.
> > > Some important libraries (ATLAS, refblas, lapack, ...) are compiled using
> > > g77, whereas we switched to gfortran. We are now facing
> > > 	http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20178
> > >
> > > My question: from the viewpoint of the gcc maintainers, what is the
> > > preferred solution:
> > > a) We switch back to g77
> >
> > that would be the immediate fix.
> >
> > > or
> > > b) We use gfortran with the -ff2c option
> >
> > c) compile all sources using gfortran and drop g77. 
> 
> Without using the -ff2c options, that causes bugs in Octave when using ATLAS. 
> I tried to compile Debian's ATLAS package with gfortran, but the testsuite 
> fails.

did you use gfortran-4.2? If the build system doesn't support setting
another compiler driver, you can use the gfortran package from
experimental.

please could you identify the failing test cases and report these
reports upstream in the GCC bug tracker?

CCing Camm and Kevin as other debian maintainers using g77/gfortran. I
know that the refblas testsuite fails as well at least on i386.

In the long term (and hopefully for lenny), g77 can go away.

> Now, I guess that using g77 would be the easiest option for both sides: we get 
> a working package and you can easily mass-file bugs against packages using 
> g77 later. Is that correct?

yes, that's the best option for now.

> > We should start using gfortran-4.2, after that is the default gfortran
> > compiler.
> 
> Is there a timeframe when this will happen?

in the next weeks.

  Matthias



Reply to: