[Numpy-discussion] fortran 90 compiler problem

Robert Kern robert.kern at gmail.com
Wed Oct 10 16:15:32 EDT 2007


humufr at yahoo.fr wrote:
> 		Hello,
> 
> I'm using the last svn version of numpy (.
> 
> I tried the solution found on the mail list:
> 
> python setup.py config_fc --fcompiler=gnu95 build
> 
> the two interesting part (at least for me) in the building process are:
> 
> customize GnuFCompiler Found executable /usr/bin/g77 
> gnu: no Fortran 90 compiler found
> gnu: no Fortran 90 compiler found 
> customize GnuFCompiler
> gnu: no Fortran 90 compiler found 
> gnu: no Fortran 90 compiler found 
> customize GnuFCompiler using config
> 
> and later: 
> customize G95FCompiler Found executable /usr/local/bin/g95
> 
> but I still have the same answer when I'm trying to do: f2py -c -m hello 
> hello.f90
> 
> customize GnuFCompiler Found executable /usr/bin/g77 
> gnu: no Fortran 90 compiler found gnu: no Fortran 90 
> compiler found customize GnuFCompiler 
> gnu: no Fortran 90 compiler found 
> gnu: no Fortran 90 compiler found

This is a correct message and does not imply that no Fortran 90 compiler exists.
The GnuFCompiler ("gnu") only looks at g77, which is not a Fortran 90 compiler.
That message only applies to the "gnu" compiler, not any other.

> and so:
> 
> error: f90 not supported by GnuFCompiler needed for hello.f90
> 
> I can't compile my fortran module because of this. I'll attach the file obtain 
> with
> 
> python setup.py -v config_fc --fcompiler=gnu95 build
> 
> And I have the same result for g95.
> 
> thank you for numpy and f2py. 

Please give us the build log that actually failed and the command that you used
to obtain it. The one you show, for numpy, succeeded.

-- 
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



More information about the NumPy-Discussion mailing list