Installing a fortran package with gfortran -
i want install package on 2 different machines. http://www.2decomp.org/download.html
on mac laptop, when using makefile.inc.x86 makefile.inc, , make, works straight away without problem. on other machine when use same makefile.inc file, getting following error:
[k00603@fe01p05 src]$make mpif90 -ddouble_prec -o3 -fcray-pointer -cpp -c decomp_2d.f90 gfortran: unrecognized option '-cpp' warning: decomp_2d.f90:20: illegal preprocessor directive warning: decomp_2d.f90:21: illegal preprocessor directive warning: decomp_2d.f90:22: illegal preprocessor directive warning: decomp_2d.f90:23: illegal preprocessor directive ------------------------------------------------------- --- around 50 more lines same warning -------- ------------------------------------------------------- in file decomp_2d.f90:32 integer, parameter, public :: ga_real_type = mt_f_dbl 1 error: symbol 'mt_f_dbl' @ (1) has no implicit type in file decomp_2d.f90:33 integer, parameter, public :: ga_complex_type = mt_f_dcpl 1 error: symbol 'mt_f_dcpl' @ (1) has no implicit type in file decomp_2d.f90:36 ------------------------------------------------------- ------------ lot of other errors -------------------- -------------------------------------------------------
both of them linux x86_64 machines. ideas can install on other machine?
your gfortran old. -cpp
option added in 2008. new one, or try -x f95-cpp-input
or -x f77-cpp-input
istead.
Comments
Post a Comment