[Top][All Lists]

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

Re: Can't use Fortran 90/95 compiler for F77

From: Ralf Wildenhues
Subject: Re: Can't use Fortran 90/95 compiler for F77
Date: Wed, 4 Nov 2009 07:15:29 +0100
User-agent: Mutt/1.5.20 (2009-08-09)

Hello Jeff,

thanks for the report.

* Daily, Jeff A wrote on Tue, Nov 03, 2009 at 09:50:46PM CET:
>  <<testsuite.log>> 
> We use autoconf to build a mixed Fortran 77/C/C++ code and have recently
> run into problems using Fortran 90/95 compilers for F77.  Our Fortran
> source is Fortran 77 and all Fortran 77 source files use either the *.f
> or *.F extension.  We also set the default INTEGER size of the Fortran
> compiler to the same size returned by AC_CHECK_SIZEOF(void*), when
> available.  To allow for setting of the default INTEGER size we look for
> Fortran 90/95 compilers first using AC_PROG_F77 with a custom argument
> list of Fortran compilers to search for.  In particular on a BlueGene/P
> system using the IBM XL compilers, the conftest compilation fails during
> AC_PROG_F77 because "-qfixed" is required to compile the source
> correctly.  I am aware of the macros AC_FC_FREEFORM and AC_FC_SRCEXT yet
> neither help in this case.  In my opinion, AC_PROG_F77 should detect any
> necessary flags for compiling F77 source with F90/95 compilers.

First, does using
  ./configure F77="f77 -qfixed"

work, when you replace f77 with your compiler name?

Then, can you try this, and show all output plus config.log?  Thanks.

cat >configure.ac <<\EOF


reply via email to

[Prev in Thread] Current Thread [Next in Thread]