[MITgcm-devel] build on sunos_sun4u_g77

Patrick Heimbach heimbach at MIT.EDU
Fri Dec 10 04:42:50 EST 2004


Hi Martin,

if you're OK I'd do the following changes to the sunos_sun_4u_... optfiles:

sunos_4u_g77
o leave gmake but add comment that gmake may not work
  (which it doesn't on these machines, i.e. not installed)
o add 'CC=gcc'

sunos_4u_f77
o comment for gmake
o hard-wire
  FC='/opt/SUNWspro/bin/f77'
  CC='/opt/SUNWspro/bin/cc'

-Patrick



On Friday 10 December 2004 02:35, Martin Losch wrote:
  > Hi,
  >
  > my experience with Sun is that it only works with gmake (Sun make is
  > notoriously terrible) and as I said yesterday, there are even problems
  > with awk (/usr/bin/awk on "my" SunFire 15k), so that awk should be
  > replaced by gawk. But awk is hardwired into genmake2 so far
  > (AWK=awk/gawk and there are a few occurrances of just awk and now $AWK)
  > and needs to be changed in the script if problems occur.
  >
  > Make sure that
  > which cc/f77 gives:
  > /opt/SUNWspro/bin/cc and /opt/SUNWspro/bin/f77
  >
  > I am currently using:
  > > model::run00> f77 -V
  > > NOTICE: Invoking /opt/SUNWspro/bin/f90 -f77 -ftrap=%none -V
  > > f90: Forte Developer 7 Fortran 95 7.0 Patch 111714-03 2002/11/19
  > > Usage: f90 [ options ] files.  Use 'f90 -flags' for details
  > > model::run00> cc -V
  > > cc: Forte Developer 7 C 5.4 2002/03/09
  > > usage: cc [ options] files.  Use 'cc -flags' for details
  >
  > Martin
  >
  > On Dec 9, 2004, at 9:40 PM, Patrick Heimbach wrote:
  > > Hi Ed,
  > >
  > > great, thanks!
  > > Is this something to check in, or platform-dependent?
  > > (should I have followed some recent discussions on this list?).
  > >
  > > Anyways, similar problems seem to occur with testreport
  > >
  > >> ./testreport -t global_ocean.90x40x15  -of
  > >
  > > ../tools/build_options/sunos_sun4u_g77
  > > parsing options...  OK
  > > creating the comparison code...  /usr/ucb/cc:  language optional
  > > software
  > > package not installed
  > >
  > > (with or without specifying the optfile).
  > > So it seems that testreport uses cc before it gets
  > > the info from the optfile which cc to use.
  > > (not a big deal for me for now).
  > >
  > > Thanks again
  > > -Patrick
  > >
  > > Quoting Ed Hill <ed at eh3.com>:
  > >> On Thu, 2004-12-09 at 13:27 -0500, Patrick Heimbach wrote:
  > >>> Hi Ed,
  > >>>
  > >>> I am trying to build a fresh copy of the code on
  > >>>
  > >>>> uname -a
  > >>>
  > >>> SunOS ifmsun24 5.8 Generic_117350-12 sun4u sparc SUNW,Sun-Blade-1500
  > >>>
  > >>> Any idea what could be wrong?
  > >>
  > >> Hi Patrick,
  > >>
  > >> Just two quick changes to the default optfile for that platform and it
  > >> works.  The changes are:
  > >>
  > >> $ diff sunos_sun4u_g77 ../../../tools/build_options/sunos_sun4u_g77
  > >> < #MAKE='gmake'
  > >> < CC=gcc
  > >> ---
  > >>
  > >>> MAKE='gmake'
  > >>
  > >> Please let me know if you have any more problems with it.
  > >>
  > >> 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-devel mailing list
  > >> MITgcm-devel at mitgcm.org
  > >> http://dev.mitgcm.org/mailman/listinfo/mitgcm-devel
  > >
  > > --------------------------------------------------------
  > > 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
  > >
  > > _______________________________________________
  > > MITgcm-devel mailing list
  > > MITgcm-devel at mitgcm.org
  > > http://dev.mitgcm.org/mailman/listinfo/mitgcm-devel
  >
  > _______________________________________________
  > MITgcm-devel mailing list
  > MITgcm-devel at mitgcm.org
  > http://dev.mitgcm.org/mailman/listinfo/mitgcm-devel

-- 
----------------------------------------------------------
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-devel mailing list