[MITgcm-support] make on an Altix 3700
Ed Hill
ed at eh3.com
Wed Nov 3 13:47:50 EST 2004
On Wed, 2004-11-03 at 13:26, Paola Cessi wrote:
> Hi - I am trying to install the MITgcm on a 256 Intel Itanium 2 processor
> SGI Altix at ORNL. I have tried the following build options
>
> -------------------------------------------------------------
>
> CPP='/lib/cpp -traditional -P'
>
> FFLAGS='-mp -132 -r8 -i4 -w95 -W0 -WB '
>
> (also tried FFLAGS='-mp -132 -r8 -i4 -w95 -W0 -WB -convert big_endian')
>
> FOPTIM='-O3 -align'
>
> LIBS='-L/opt/intel/ifort8119/lib -lmpi'
>
> FC=ifort
>
> DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4'
>
> INCLUDES='-I/opt/intel/ifort8119/include'
>
> INCLUDEDIRS='/opt/intel/ifort8119/include'
>
> ---------------------------------------------
>
> I get the following error after make
>
> fortcom: Error: mdsio_reclen.f, line 1444: Syntax error, found
> END-OF-STATEMENT when expecting one of: ( <IDENTIFIER>
> <CHAR_CON_KIND_PARAM> <CHAR_NAM_KIND_PARAM> <CHARACTER_CONSTANT>
> <INTEGER_CONSTANT> ...
> MDS_RECLEN=nnn**
> -----------------------^
> fortcom: Error: mdsio_reclen.f, line 1446: Syntax error, found '*' when
> expecting one of: ( <IDENTIFIER> <CHAR_CON_KIND_PARAM>
> <CHAR_NAM_KIND_PARAM> <CHARACTER_CONSTANT> <INTEGER_CONSTANT> ...
> MDS_RECLEN=nnn***2
> -----------------------^
> compilation aborted for mdsio_reclen.f (code 1)
> make: *** [mdsio_reclen.o] Error 1
>
> Any suggestion?
Hi Paola,
You have a CPP problem and its causing the WORDLENGTH macro to be
undefined. Two things that will probably fix it are:
1) remove the "CPP=" definition from your optfile and let
genmake2 find your cpp program
2) locate where "cpp" is installed on your system
(use "which cpp") and then specify that with "CPP=..." in
your optfile.
And if you still have problems, please let us know.
Ed
--
Edward H. Hill III, PhD
office: MIT Dept. of EAPS; Rm 54-1424; 77 Massachusetts Ave.
Cambridge, MA 02139-4307
emails: eh3 at mit.edu ed at eh3.com
URLs: http://web.mit.edu/eh3/ http://eh3.com/
phone: 617-253-0098
fax: 617-253-4464
More information about the MITgcm-support
mailing list