[MITgcm-devel] make depend on sun (o:
Ed Hill
ed at eh3.com
Fri Feb 25 14:58:48 EST 2005
On Fri, 2005-02-25 at 20:35 +0100, Martin Losch wrote:
>
> I put this
> FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X ## _"
> into sunos_sun4_g77 and it works (it's the same as in the
> sunos_sun4u_f77). I am surprised that it hasn't been a problem so far
> (sunos_sun4u_g77 is the default build_options file, as far as I can
> see. It's all very mysterious to me. But I'll happily go along with
> this:
Hi Martin,
> - adjust sunos_sun4_g77 (include the FC_NAMEMANGLE line)
Theres a "get_fortran_c_namemangling()" routine in genmake2 that tries
(and occasionally succeeds!) to figure out the correct setting for that
macro. Is best not to rely on it, however.
> - use the cyrus makedepend by default on SunOS (how does this happen,
> is that the default anyway? otherwise I have to change at least 3
> files: sunos_sun4u_g77 sunos_sun4u_f77 sunos_sun4u_mpf77+mpi_sunfire.
> There are also two files sunos and sunos+mpi, which are almost the same
> and both obsolete, I think. Maybe we should remove them?)
Within genmake2 theres a routine ["look_for_makedepend()"] that tries to
figure out which codes can be used to satisfy the "make depend" stage.
There are some nice comments at the start of that code that explain why.
If you think those optfiles are unused (and, after all, *you're* the
authority on Suns!), then please either delete them or move them into
the
MITgcm/tools/build_options/unsupported
directory.
> - maybe fix xmakedepend, so that it works with Sun (use hard coded
> /lib/cpp), but will that work with other systems? here are the files
> that still contain xmakedepend:
> > csysm3::build_options> grep xmakedepend *
> > darwin_absoft_f77:#MAKEDEPEND='${TOOLSDIR}/xmakedepend'
> > darwin_ppc_g77:#EH3 MAKEDEPEND='${TOOLSDIR}/xmakedepend'
> > darwin_ppc_xlf:MAKEDEPEND='${TOOLSDIR}/xmakedepend'
> > darwin_ppc_xlf_panther:MAKEDEPEND='${TOOLSDIR}/xmakedepend'
> > sunos_sun4u_f77:MAKEDEPEND='$(TOOLSDIR)/xmakedepend'
> > sunos_sun4u_g77:MAKEDEPEND='$(TOOLSDIR)/xmakedepend'
> > sunos_sun4u_g77~:MAKEDEPEND='$(TOOLSDIR)/xmakedepend'
> > sunos_sun4u_mpf77+mpi_sunfire:MAKEDEPEND='$(TOOLSDIR)/xmakedepend'
> So it's only sun and apple with xlf (why is that necessary, when we
> don't need it for darwin_ppc_g77?). If that darwin+xlf thing is sorted
> out, xmakedepend is no longer necessary, except for a fallback.
Yes, we should remove xmakedepend from the platforms that don't need it.
And we should somehow have xmakedepend use settings from the optfile
and/or from the output of genmake2 so that it is more cnfigurable. I'll
look at it and see what I can do to improve it...
> PS. I am at home now, so I'll respond only slowly (or not at all before
> monday).
Hope you have a good weekend! I'll be on-line all weekend f you have
any more Sun problems.
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-devel
mailing list