FORTRAN compiler detection

Greetings, I was wondering if within the last 8 - 10 weeks anyone has made changes to the way FORTRAN compilers are detected. In the past I was able to specify which compiler was used by the F77 system variable. However, I am now having a f90 compiler that exists on my Solaris system detected regardless of the F77 value. Even unsetting the F77 variable leads to the use of the f90 compiler. I was going to look though the distutil change logs but I was hoping that someone might remember changing something off the top of their heads. Thank you for your time and help, Chris -- Christopher Hanley Systems Software Engineer Space Telescope Science Institute 3700 San Martin Drive Baltimore MD, 21218 (410) 338-4338

On Tue, Feb 26, 2008 at 11:50 AM, Christopher Hanley <chanley@stsci.edu> wrote:
Greetings,
I was wondering if within the last 8 - 10 weeks anyone has made changes to the way FORTRAN compilers are detected. In the past I was able to specify which compiler was used by the F77 system variable. However, I am now having a f90 compiler that exists on my Solaris system detected regardless of the F77 value. Even unsetting the F77 variable leads to the use of the f90 compiler.
I was going to look though the distutil change logs but I was hoping that someone might remember changing something off the top of their heads.
Which FORTRAN compilers do you have installed? What --fcompiler flag are you using? -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco

Robert Kern wrote:
On Tue, Feb 26, 2008 at 11:50 AM, Christopher Hanley <chanley@stsci.edu> wrote:
Greetings,
I was wondering if within the last 8 - 10 weeks anyone has made changes to the way FORTRAN compilers are detected. In the past I was able to specify which compiler was used by the F77 system variable. However, I am now having a f90 compiler that exists on my Solaris system detected regardless of the F77 value. Even unsetting the F77 variable leads to the use of the f90 compiler.
I was going to look though the distutil change logs but I was hoping that someone might remember changing something off the top of their heads.
Which FORTRAN compilers do you have installed? What --fcompiler flag are you using?
Hi Robert, Thank you for your help. I am not using the --fcompiler flag. The FORTRAN compilers I have installed are: f77: Sun WorkShop 6 update 2 FORTRAN 77 5.3 Patch 111691-07 2004/04/23 Usage: f77 [ options ] files. Use 'f77 -flags' for details basil> f90 -V f90: Sun WorkShop 6 update 2 Fortran 95 6.2 Patch 111690-10 2003/08/28 Usage: f90 [ options ] files. Use 'f90 -flags' for details basil> Chris -- Christopher Hanley Systems Software Engineer Space Telescope Science Institute 3700 San Martin Drive Baltimore MD, 21218 (410) 338-4338

On Tue, Feb 26, 2008 at 12:09 PM, Christopher Hanley <chanley@stsci.edu> wrote:
Robert Kern wrote:
On Tue, Feb 26, 2008 at 11:50 AM, Christopher Hanley <chanley@stsci.edu> wrote:
Greetings,
I was wondering if within the last 8 - 10 weeks anyone has made changes to the way FORTRAN compilers are detected. In the past I was able to specify which compiler was used by the F77 system variable. However, I am now having a f90 compiler that exists on my Solaris system detected regardless of the F77 value. Even unsetting the F77 variable leads to the use of the f90 compiler.
I was going to look though the distutil change logs but I was hoping that someone might remember changing something off the top of their heads.
Which FORTRAN compilers do you have installed? What --fcompiler flag are you using?
Hi Robert,
Thank you for your help.
I am not using the --fcompiler flag.
Okay, use the --fcompiler flag. That is the way to tell numpy to use a particular compiler if you have multiple ones installed. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco

Robert Kern wrote:
On Tue, Feb 26, 2008 at 12:09 PM, Christopher Hanley <chanley@stsci.edu> wrote:
Robert Kern wrote:
On Tue, Feb 26, 2008 at 11:50 AM, Christopher Hanley <chanley@stsci.edu> wrote:
Greetings,
I was wondering if within the last 8 - 10 weeks anyone has made changes to the way FORTRAN compilers are detected. In the past I was able to specify which compiler was used by the F77 system variable. However, I am now having a f90 compiler that exists on my Solaris system detected regardless of the F77 value. Even unsetting the F77 variable leads to the use of the f90 compiler.
I was going to look though the distutil change logs but I was hoping that someone might remember changing something off the top of their heads.
Which FORTRAN compilers do you have installed? What --fcompiler flag are you using?
Hi Robert,
Thank you for your help.
I am not using the --fcompiler flag.
Okay, use the --fcompiler flag. That is the way to tell numpy to use a particular compiler if you have multiple ones installed.
What do you do if you have FORTRAN compilers installed but don't want to use any of the compilers to build numpy? -- Christopher Hanley Systems Software Engineer Space Telescope Science Institute 3700 San Martin Drive Baltimore MD, 21218 (410) 338-4338

On Tue, Feb 26, 2008 at 12:46 PM, Christopher Hanley <chanley@stsci.edu> wrote:
Robert Kern wrote:
On Tue, Feb 26, 2008 at 12:09 PM, Christopher Hanley <chanley@stsci.edu> wrote:
Robert Kern wrote:
On Tue, Feb 26, 2008 at 11:50 AM, Christopher Hanley <chanley@stsci.edu> wrote:
Greetings,
I was wondering if within the last 8 - 10 weeks anyone has made changes to the way FORTRAN compilers are detected. In the past I was able to specify which compiler was used by the F77 system variable. However, I am now having a f90 compiler that exists on my Solaris system detected regardless of the F77 value. Even unsetting the F77 variable leads to the use of the f90 compiler.
I was going to look though the distutil change logs but I was hoping that someone might remember changing something off the top of their heads.
Which FORTRAN compilers do you have installed? What --fcompiler flag are you using?
Hi Robert,
Thank you for your help.
I am not using the --fcompiler flag.
Okay, use the --fcompiler flag. That is the way to tell numpy to use a particular compiler if you have multiple ones installed.
What do you do if you have FORTRAN compilers installed but don't want to use any of the compilers to build numpy?
Unless if you are linking to a FORTRAN LAPACK or BLAS, no FORTRAN compiler should be used to build numpy. If you find that one is being used, please show us the full output log. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco

Christopher Hanley wrote:
Robert Kern wrote:
On Tue, Feb 26, 2008 at 12:09 PM, Christopher Hanley <chanley@stsci.edu> wrote:
Robert Kern wrote:
On Tue, Feb 26, 2008 at 11:50 AM, Christopher Hanley <chanley@stsci.edu> wrote:
Greetings,
I was wondering if within the last 8 - 10 weeks anyone has made changes to the way FORTRAN compilers are detected. In the past I was able to specify which compiler was used by the F77 system variable. However, I am now having a f90 compiler that exists on my Solaris system detected regardless of the F77 value. Even unsetting the F77 variable leads to the use of the f90 compiler.
I was going to look though the distutil change logs but I was hoping that someone might remember changing something off the top of their heads.
Which FORTRAN compilers do you have installed? What --fcompiler flag are you using?
Hi Robert,
Thank you for your help.
I am not using the --fcompiler flag.
Okay, use the --fcompiler flag. That is the way to tell numpy to use a particular compiler if you have multiple ones installed.
What do you do if you have FORTRAN compilers installed but don't want to use any of the compilers to build numpy?
You need to use it in your case because you are linking against lapack and blas that were built with a Fortran compiler. The Fortran compiler is only used in the link step of lapack_lite.so -Travis O.

Travis E. Oliphant wrote:
You need to use it in your case because you are linking against lapack and blas that were built with a Fortran compiler. The Fortran compiler is only used in the link step of lapack_lite.so
If for some reasons, Christopher does not want to use fortran compiler at all, I just want to mention that on solaris (and linux), it should be possible to link with BLAS/LAPACK without a fortran compiler, if using sun performance libraries, since they do not depend on fortran at all (but do provide fortran calling convention). But it is certainly easier to use a fortran compiler, since this configuration is supported out of the box. cheers, David
participants (4)
-
Christopher Hanley
-
David Cournapeau
-
Robert Kern
-
Travis E. Oliphant