[MITgcm-support] (no subject)
Martin Losch
mlosch at awi-bremerhaven.de
Mon Jun 7 03:09:24 EDT 2004
Davide,
the message means that the header file SIZE.h that is included into the
sources is the generic one that you find in model/inc/SIZE.h. If you
look at that file you'll see where the error message comes from.
Make sure that you have your own copy of SIZE.h in your include path,
that is, in ../code. Also make sure, that after the make depend step
there is a file/link in your working directory, that points to
../code/SIZE.h (and one for each of the source or header files in
../code that you may have). I assume that currently your SIZE.h points
to ../../model/inc/SIZE.h
Maybe the -mods option of genmake2 needs an "=": -mods=../code (that's
the way I normally type it, but I may be wrong and this is no longer
necessary).
Good luck,
Martin
On Jun 7, 2004, at 8:49 AM, prosperi at wicc.weizmann.ac.il wrote:
>
> Hi!
> I am trying to use the surface driven convection example as start
> point to
> run my customized experiment. So I followed the instruction on the
> manual
> but something wrong happen when I have to compile it. I want o tsy that
> all the others experiments work finely.
>
> As written in the manual I modified the SIZE.h file and used the
> default
> CPP_OPTIONS.h and CPP_EEOPTIONS.h .
>
> I am working on Tru64 Compaq Alpha.
>
> to creatre dependence and compile the code this I do:
>
> % ../../../tools/genmake2 -mods ../code -of
> ../../../tools/build_options/osf1_alpha_f77
> %gmake depend
> %gmake
> the reult is:
>
> cat chksum_tiled.F | ../../../tools/set64bitConst.sh | /usr/bin/cpp -P
> -DTARGET_DEC -DWORDLENGTH=1 -DHAVE_SYSTEM -DHAVE_FDATE -I. >
> chksum_tiled.f
> f77 -convert big_endian -r8 -extend_source -automatic -call_shared
> -notransform_loops -align dcommons -O5 -fast -tune host -inline all -c
> chksum_tiled.f
> f90: Error: chksum_tiled.f, line 398: Illegal character in statement
> label
> field [T]
> These lines are here to deliberately cause a compile-time error.
> --^
> f90: Error: chksum_tiled.f, line 398: Illegal character in statement
> label
> field [h]
> These lines are here to deliberately cause a compile-time error.
> ---^
> f90: Error: chksum_tiled.f, line 398: Illegal character in statement
> label
> field [e]
> These lines are here to deliberately cause a compile-time error.
> ----^
> f90: Error: chksum_tiled.f, line 399: Illegal character in statement
> label
> field [I]
> If you see these lines in your .F files or the compiler shows them
> --^
> f90: Error: chksum_tiled.f, line 399: Illegal character in statement
> label
> field [f]
> If you see these lines in your .F files or the compiler shows them
> ---^
> f90: Error: chksum_tiled.f, line 400: Illegal character in statement
> label
> field [a]
> as an error then it means you have not placed your configuration
> --^
> f90: Error: chksum_tiled.f, line 400: Illegal character in statement
> label
> field [s]
> as an error then it means you have not placed your configuration
> ---^
> f90: Error: chksum_tiled.f, line 401: Illegal character in statement
> label
> field [f]
> files in the appropriate place.
> --^
> f90: Error: chksum_tiled.f, line 401: Illegal character in statement
> label
> field [i]
> files in the appropriate place.
> ---^
> f90: Error: chksum_tiled.f, line 401: Illegal character in statement
> label
> field [l]
> files in the appropriate place.
> ----^
> f90: Error: chksum_tiled.f, line 402: Illegal character in statement
> label
> field [Y]
> You need to place you own copy of SIZE.h in the include
> --^
> f90: Error: chksum_tiled.f, line 402: Illegal character in statement
> label
> field [o]
> You need to place you own copy of SIZE.h in the include
> ---^
> f90: Error: chksum_tiled.f, line 402: Illegal character in statement
> label
> field [u]
> You need to place you own copy of SIZE.h in the include
> ----^
> f90: Error: chksum_tiled.f, line 398: Syntax error, found IDENTIFIER
> 'ELINESAREHERETODELIBERATELYCAUSEACOMPILE' when expecting one of: (
> <END-OF-STATEMENT> ;
> These lines are here to deliberately cause a compile-time error.
> ------^
> f90: Error: chksum_tiled.f, line 403: Illegal character in statement
> label
> field [p]
> path for the model.
> --^
> f90: Error: chksum_tiled.f, line 403: Illegal character in statement
> label
> field [a]
> path for the model.
> ---^
> f90: Error: chksum_tiled.f, line 403: Illegal character in statement
> label
> field [t]
> path for the model.
> ----^
> f90: Error: chksum_tiled.f, line 403: Syntax error, found
> END-OF-STATEMENT
> when expecting one of: <IDENTIFIER> <CHAR_CON_KIND_PARAM>
> <CHAR_NAM_KIND_PARAM> <CHARACTER_CONSTANT>
> path for the model.
> ---------------------^
> gmake: *** [chksum_tiled.o] Error 1
>
>
> I am not understanding the message about SIZE.h..
>
> Thank you very much in advance
> Davide
>
>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://dev.mitgcm.org/mailman/listinfo/mitgcm-support
>
Martin Losch // mailto:mlosch at awi-bremerhaven.de
Alfred-Wegener-Institut für Polar- und Meeresforschung
Postfach 120161, 27515 Bremerhaven, Germany
Tel./Fax: ++49(471)4831-1872/1797
http://www.awi-bremerhaven.de/People/show?mlosch
More information about the MITgcm-support
mailing list