[MITgcm-support] cal pkg, OSX, absoft f77, and pragma
m. r. schaferkotter
schaferk at bellsouth.net
Thu Jul 28 22:21:40 EDT 2005
greetings:
i/m trying to build MITgcm with the cal pkg on OSX 10.3 with absoft f77
compiler.
the files build on linux with linux_ia32_pgf77 without incident.
i/m using a build_option file darwin_absoft_f77
CPP='/usr/bin/cpp -traditional -P'
FC='/Applications/Absoft/bin/f77'
LINK='/Applications/Absoft/bin/f77'
FFLAGS='-w -W -f -N15 -N113 -q '
FOPTIM='-O -U'
NOOPTFLAGS=
LIBS='-L/Applications/Absoft/lib -lU77'
S64='$(TOOLSDIR)/set64bitConst.sh'
#MAKEDEPEND='${TOOLSDIR}/xmakedepend'
MAKEDEPEND='makedepend'
DEFINES='-DWORDLENGTH=4'
the build stops with:
cat cal_addtime.F | /Users/schaferk/MITgcm/tools/set64bitConst.sh |
/usr/bin/cpp -traditional -P -DWORDLENGTH=4 -I. > cal_addtime.for
/Applications/Absoft/bin/f77 -w -W -f -N15 -N113 -q -O -U -c
cal_addtime.for
error on line 1 of cal_addtime.for: illegal syntax
error on line 1 of cal_addtime.for: illegal syntax
error on line 1 of : too many continuation lines
error on line 0 of : spelling error?
error on line 359 of : RETURN statement in main program unit
make: *** [cal_addtime.o] Error 1
cat cal_addtime.for
#pragma GCC set_debug_pwd
"/Users/schaferk/MITgcm-expt/LUZ/expt_01.0/build"
C $Header: /u/gcmpack/MITgcm/pkg/cal/cal_addtime.F,v 1.3 2003/10/20
06:25:16 dimitri Exp $
C $Name: $
----
using darwin_g77 options file, the build goes past all of this, but
stops because of other problems:
darwin_g77
CPP='/usr/bin/cpp -traditional -P'
FC=g77
LINK=g77
FFLAGS='-Wimplicit -Wunused -Wuninitialized'
FOPTIM='-O3 -funroll-loops'
#FOPTIM='-O3 -malign-power -funroll-loops'
NOOPTFLAGS='-O0'
S64='$(TOOLSDIR)/set64bitConst.sh'
#MAKEDEPEND='${TOOLSDIR}/xmakedepend'
MAKEDEPEND=makedepend
DEFINES='-DWORDLENGTH=4'
${ROOTDIR}/tools/genmake2 "-mods=../code"
"-disable=gmredi,kpp,zonal_filt,shap_filt" \
"-optfile=${ROOTDIR}/tools/build_options/darwin_g77"
make CLEAN && make makefile && make depend && make
g77 -Wimplicit -Wunused -Wuninitialized -O3 -funroll-loops -c
diag_readparms.for
diag_readparms.for: In subroutine `diag_readparms':
diag_readparms.for:445:
INTEGER numlists
1
diag_readparms.for:2253: (continued):
integer numlists, numperlist
2
Invalid declaration of or reference to symbol `numlists' at (2)
[initially seen at (1)]
diag_readparms.for:446:
INTEGER numperlist
1
diag_readparms.for:2253: (continued):
integer numlists, numperlist
2
Invalid declaration of or reference to symbol `numperlist' at (2)
[initially seen at (1)]
diag_readparms.for:2260:
NOTE: other builds from the verification directory (not using cal, or
diagnostics pkg) have built with both build options files.
i/d like to build with the absoft compiler.
any ideas?
m. r. schaferkotter
More information about the MITgcm-support
mailing list