[MITgcm-support] latest cvs code doesn't compile...mnc_cw_citer.f:
Ed Hill
ed at eh3.com
Wed Sep 21 15:34:41 EDT 2005
On Wed, 2005-09-21 at 15:26 -0400, Karsten Friis wrote:
> Hi Ed,
>
> I guess you are the one to ask. The latest cvs code doesn't compile on
> my machine. I include some older subroutines with the genmake2 command
> but I don't think this is the problem here. I get the following report
> that refers to the mnc package which is actived for an offline
> executeable... Can you help me out?
>
> So long,
> -best
> karsten
>
> ----------------------------------------------------------------------
> MNC_CW_READWRITE_RS.f:6365: warning: `npath' might be used uninitialized
> in this function
> cat mnc_cw_citer.F | ../../tools/set64bitConst.sh | cpp -traditional
> -P -D_BYTESWAPIO -DWORDLENGTH=4 -DHAVE_SYSTEM -DHAVE_FDATE -DHAVE_ETIME
> -DHAVE_CLOC -DHAVE_STAT -I/diatom/s0/kfriis/netcdf-3.5.1/src/fortran >
> mnc_cw_citer.f
> g77 -Wimplicit -Wunused -Wuninitialized -O3 -malign-double
> -funroll-loops -c mnc_cw_citer.f
> mnc_cw_citer.f: In subroutine `mnc_cw_citer_setg':
> mnc_cw_citer.f:636:
> mnc_cw_cit(1,igroup) = iflag
> 1 2
> Unrecognized statement name at (1) and invalid form for assignment or
> statement-function definition at (2)
> mnc_cw_citer.f:639:
> IF ( mnc_cw_cit(2,igroup) .NE. ival_curr ) THEN
> ^
> Invalid declaration of or reference to symbol `mnc_cw_cit' at (^)
> [initially seen at (^)]
> mnc_cw_citer.f:644:
Hi Karsten,
While I would have to see your actual setup to confirm it, the above
errors *STRONGLY* indicate that you have a mix of old and new files.
Thats why the variables are undefined.
So, to fix it, you need to make sure that *everything* is indeed
updated. And then the safest thing to do is to completely re-build
everything starting with an empty build directory:
cd your_build_dir
genmake2 ...YOUR_OPTIONS...
make depend
make
to make sure that you don't have any old/modified files lying around.
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