[MITgcm-devel] MITgcm on SunOS

Ed Hill ed at eh3.com
Thu Dec 16 10:42:41 EST 2004


On Thu, 2004-12-16 at 09:32 +0100, Martin Losch wrote: 
> My favorite topic, I know Patrick will appreciate this:
> 
> I have changed the sunos_sun4u_f77 build_options file to replace the 
> option
> -xarch=v9
> by
> -xarch=native
> An alternative is to remove this option altogether (along with some 
> other options that are not really necessary). The -xarch=v9 option 
> prevented me from using netcdf, because my libraries have not been 
> compile with thi -xarch=v9 option (I guess).
> 
> The other problem is xmakedepend. Because SunOS doesn't have a working 
> makedepend, we always have to specify $(TOOLSDIR)/xmakedepend. The 
> first line in xmakedepend sets the CPP flags, the first flag is 
> -tradititonal, something that not all Sun CPP's understand.
> Do we need to have this option in xmakedepend? Wouldn't it make more 
> sense to specify -traditional in the buildoptionsfiles along with a 
> CPP='/some/cpp -P -traditional' if the traditional option is required?


Hi Martin & Patrick,

Theres another and potentially better "make depend" option!

I few months back I added the "makedepend" program from the Cyrus ipamd
project to our MITgcm/tools/cyrus-imapd-makedepend directory.  Current
versions of genmake2 will automatically try to find a use-able
makedepend in the following order:

 - a system-wide install thats in your $PATH
 - the cyrus-imapd-makedepend version (if its able to
     build it)
 - fall back to xmakedepend if nothing else works

So have you tried specifying either nothing or the cyrus-imapd-
makedepend?

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