[MITgcm-support] cal pkg, OSX, absoft f77, and pragma

m. r. schaferkotter schaferk at bellsouth.net
Sun Jul 31 00:35:59 EDT 2005


here is the summary:

i downloaded a fresh copy of MITgcm (20050730)
and attempted to compile with my previous instructions for using absoft 
f95 on an application
using OBCSprescribe. packages included cal, exf, and diagnostics among 
others.

andrea molod observed that in the latest version there was no problem 
with multiple instantiation
of numlists and numperlist in DIAGNOSTICS.h and DIAGNOSTICS_SIZE.h. so 
that went away.


i ran into the same problem that Van Thinh (july 26 2005) mentions 
regarding new compile errors
after an update, except in a slightly different form  (he had timenow_ 
unresolved) :

ld: Undefined symbols:
_SYSTEM_TIME
_TIMENOW
_USER_TIME

heimbach/s suggestion for FC_NAMEMANGLE, which solved Thinh/s problem 
did _not_ seem to help
in this case.

for the absoft f95 compiler, just add '-YEXT_NAMES=LCS' to FFLAGS.

note: samar k. suggested adding  '-xassembler-with-cpp' to CPP to 
handle the Xcode 'pragma'  business
that arose with the diagnostics package (inclusion of pragma).
this worked.

so the entire darwin_absoft_f95 optfile becomes:

# tested on dual G4-mirror door, 1.25GHz
# uname -mrsvp:
#Darwin 7.9.0 Darwin Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005;
#root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC  Power Macintosh powerpc
# cc-compiler is available only with the Apple Developer Tools,
# so make sure that those are installed
#
CPP='/usr/bin/cpp -traditional -P -xassembler-with-cpp'
FC='/Applications/Absoft/bin/f95'
LINK='/Applications/Absoft/bin/f95'
FFLAGS='-YEXT_NAMES=LCS'
FOPTIM=
NOOPTFLAGS=
LIBS='-L/Applications/Absoft/lib -lU77'
S64='$(TOOLSDIR)/set64bitConst.sh'
#MAKEDEPEND='${TOOLSDIR}/xmakedepend'
MAKEDEPEND='makedepend'
DEFINES='-DWORDLENGTH=4'

thanx particularly, to ed, samar, and andrea.

m. r.




More information about the MITgcm-support mailing list