[MITgcm-support] no -mpi option for genmake2

Patrick Heimbach heimbach at MIT.EDU
Tue Aug 10 18:35:26 EDT 2004


A guess:

One situation in which this type of errors occurs is
for certain CPP's which don't like unterminated quotes per line.

A quick way to find out is to check whether you're using
cpp option '-traditional', i.e. in your optfile have the line
CPP='/lib/cpp  -traditional -P'
and see whether that works better.

-p.



Quoting "m. r. schaferkotter" <schaferk at bellsouth.net>:

> ed:
> 
> did it both ways, updated my copy and also got a new version.
> configured the options file with our local mpich stuff and ended up in 
> the
> same place in the compile:
> 
> after genmake2 and make depend, the make stops with:
> 
> cat orlanski_east.F | ../../tools/set64bitConst.sh |  cpp 
> -DWORDLENGTH=4 -DALLOW_USE_MPI -DALWAYS_USE_MPI -DHAVE_SYSTEM 
> -DHAVE_FDATE -DHAVE_ETIME -DHAVE_CLOC 
> -I/common/mpich/mpich-1.2.5-pgi5/include > orlanski_east.f
> <stdin>:70:27: missing terminating ' character
> make: *** [orlanski_east.f] Error 1
> 
> i/m not sure where the terminating character should be:
> 
> ignoring (not good) and making again:
> 
> cat orlanski_west.F | ../../tools/set64bitConst.sh |  cpp 
> -DWORDLENGTH=4 -DALLOW_USE_MPI -DALWAYS_USE_MPI -DHAVE_SYSTEM 
> -DHAVE_FDATE -DHAVE_ETIME -DHAVE_CLOC 
> -I/common/mpich/mpich-1.2.5-pgi5/include > orlanski_west.f
> <stdin>:70:27: missing terminating ' character
> make: *** [orlanski_west.f] Error 1
> 
> interesting...
> 
> continuing...
> 
> cat barrier.F | ../../tools/set64bitConst.sh |  cpp -DWORDLENGTH=4 
> -DALLOW_USE_MPI -DALWAYS_USE_MPI -DHAVE_SYSTEM -DHAVE_FDATE 
> -DHAVE_ETIME -DHAVE_CLOC -I/common/mpich/mpich-1.2.5-pgi5/include > 
> barrier.f
> mpif77   -c barrier.f
> PGF90-S-0021-Label field of continuation line is not blank (<stdin>: 
> 143)
> PGF90-S-0021-Label field of continuation line is not blank (<stdin>: 
> 189)
> PGF90-S-0021-Label field of continuation line is not blank (<stdin>: 
> 225)
>    0 inform,   0 warnings,   3 severes, 0 fatal for barrier
> make: *** [barrier.o] Error 2
> 
> that/s a fixed point in the make process.
> 
> so, any help?
> 
> michael
> 
> On Tuesday, August 10, 2004, at 04:26 PM, Ed Hill wrote:
> 
> > On Tue, 2004-08-10 at 16:26, m. r. schaferkotter wrote:
> >> ed:
> >>
> >> thanx.
> >>
> >> so i just do a cvs update MITgcm?
> >
> >
> > Hi Michael,
> >
> > I recommend getting a fresh copy.  But if you choose to do an update,
> > please do it with:
> >
> >   cvs -q up -d -P
> >
> > to get any new directories.
> >
> > Then, for MPI builds, you'll probably have to create an "optfile" that
> > is customized for your machine(s).  The MPI libraries are generally not
> > installed in the same place twice so its just about impossible to 
> > create
> > an automatic configuration system for them.  The best thing to do is to
> > look at our sample MPI optfiles such as:
> >
> >   linux_ia32_g77+mpi_cg01
> >   linux_ia32_pgf77+mpi_aer
> >   linux_ia32_g77+mpi_itrda
> >
> > and then just modify the paths of the compilers, libs, etc. to match 
> > the
> > install locations on your machine(s).
> >
> > 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
> >
> > _______________________________________________
> > MITgcm-support mailing list
> > MITgcm-support at mitgcm.org
> > http://dev.mitgcm.org/mailman/listinfo/mitgcm-support
> >
> 
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://dev.mitgcm.org/mailman/listinfo/mitgcm-support
> 


--------------------------------------------------------
Patrick Heimbach   Massachusetts Institute of Technology
FON: +1/617/253-5259                  EAPS, Room 54-1518
FAX: +1/617/253-4464             77 Massachusetts Avenue
mailto:heimbach at mit.edu               Cambridge MA 02139
http://www.mit.edu/~heimbach/                        USA




More information about the MITgcm-support mailing list