[Numpy-discussion] FORTRAN compiler detection
Travis E. Oliphant
oliphant at enthought.com
Tue Feb 26 15:35:42 EST 2008
Christopher Hanley wrote:
> Robert Kern wrote:
>
>> On Tue, Feb 26, 2008 at 12:09 PM, Christopher Hanley <chanley at stsci.edu> wrote:
>>
>>> Robert Kern wrote:
>>> > On Tue, Feb 26, 2008 at 11:50 AM, Christopher Hanley <chanley at 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.
More information about the NumPy-Discussion
mailing list