[Mitgcm-support] Re: forward from Samar

mitgcm-support at dev.mitgcm.org mitgcm-support at dev.mitgcm.org
Wed Jul 9 15:49:31 EDT 2003


> Hi again. I checked out the latest version. Now I have the
> following problem on a Sun:
> 
> 1) make depend gave lots of warnings:
> unknown flag -traditional
> "./CPP_EEMACROS.h", line 152: macro _d redefines previous macro at
> "command line"


It's a nuisance, but doesn't cause real problems
(warnings can be ignored).
You could delete the -D_d=E in genmake.


> 2) f77 was repeatedly complaining about unknown -xtypemap option


-xtypemap has been introduced by Alistair.
Does not seem to be compatible with older Sun compilers.
You may want to revert to the older FFLAGS (i.e. -r8 -i4),
see.e.g. the difference page of CVS version 1.59 and 1.60 of genmake
http://mitgcm.org/cgi-bin/cvsweb.cgi/MITgcm/tools/genmake.diff?r1=1.59&r2=1.60&only_with_tag=MAIN&f=h


> 3) compilation fails:
> packages_init_variables.f:
>         packages_init_variables:
> cat packages_readparms.F | cat | /usr/ccs/lib/cpp -P -DTARGET_SUN
> -DWORDLENGTH=4 -D_d=E -I. -I../code -I../../../pkg/debug
> -I../../../pkg/generic_advdiff -I../../../pkg/mdsio
> -I../../../pkg/mom_fluxform -I../../../pkg/mom_vecinv
> -I../../../pkg/monitor -I../../../pkg/obcs
> -I../../../pkg/rw -I../../../pkg/shap_filt -I../../../pkg/timeave
> -I../../../pkg/zonal_filt -I../../../eesupp/inc -I../../../model/inc >
> packages_readparms.f
> "./CPP_EEMACROS.h", line 152: macro _d redefines previous macro at
> "command line"
> illegal/missing macro name
> If-less endif
> *** Error code 2
> make: Fatal error: Command failed for target `packages_readparms.f'


The source of this error is a missing argument in an
#ifdef statement.
My fault, as I quickly tried to incorporate the calendar and
external forcing package into the MITgcm stand alone
to make it available to Francis.
It's no problem on the linux g77 compilers which is why
I didn't notice it.
Fix: in line 106 of packages_readparms.F
the "#ifdef" should be #ifdef ALLOW_CALENDAR".

Cheers
Patrick



-- 
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Patrick Heimbach     Massachusetts Institute of Technology
FON: +1/617/253-5259                    EAPS, Room 54-1518
FAX: +1/617/253-4464               77 Massachusetts Avenue
mailto:heimbach at mit.edu                 Cambridge MA 02139
http://www.mit.edu/~heimbach/                       U.S.A.




More information about the MITgcm-support mailing list