[LORENE] gcc 4.0 : g77 replaced by gfortran
Eric Gourgoulhon
eric.gourgoulhon at obspm.fr
Tue Nov 1 12:14:02 CET 2005
Dear all,
In the new version of GCC (GNU Compiler Collection),
namely version 4.0, the Fortran compiler has been completely
rewritten: it is no longer g77 but gfortran, which is actually
a Fortran 95 compiler. More info on
http://gcc.gnu.org/fortran/
For instance, gcc 4.0.1 (with the gcc-gfortran package)
is the default compiler in the Mandriva 2006 distribution.
To take this into account, in the local_setting file in Lorene
root directory, "g77" must be replaced
by "gfortran" with the options " -ffixed-form -ffixed-line-length-none".
Also "-lg2c" must be replaced by "-lgfortran".
A corrected template file is available from Lorene CVS server:
Lorene/local_settings_linux_gcc-4.0.
(Type cvs update to get it).
Another consequence regards the installation of PGPLOT:
some modification must be done in the makefile, as
detailed in http://www.lorene.obspm.fr/pgplot_quick.txt
Apart from this change in the Fortran part, Lorene compiles
well with gcc 4.0.
Bon code !
Eric.
--
Eric Gourgoulhon
Laboratoire de l'Univers et de ses THeories (LUTH)
UMR 8102 du CNRS / Observatoire de Paris, F-92195 Meudon Cedex, France
tel: +33 1 45 07 74 33 (secretariat : +33 1 45 07 75 10)
e-mail: eric.gourgoulhon/at/obspm.fr
http://www.luth.obspm.fr/~luthier/gourgoulhon/
More information about the Lorene.list
mailing list