[MITgcm-devel] genmake2 fails with netcdf on SUN

Martin Losch mlosch at awi-bremerhaven.de
Tue Jan 4 10:50:02 EST 2005


Hi,
after having spent a day to make the MITgcm run on a SUN before 
Christmas, I tried to compile it again today with a fresh copy. All 
tests are "successful", but genmake2 stalls after the "packages are: 
..." line (I use global_ocean.90x40x15). Why does this always happen, 
when I try to show someone how nicely the MITgcm compiles on any 
machine, even a SUN ???????
A CTRL-C gives this:
>     packages are:   cd_code debug generic_advdiff gmredi kpp mdsio mnc 
> mom_common mom_fluxform mom_vecinv monitor ptracers rw timeave
> ^CError: problem encountered while building source files in pkg/mnc:
> rm -f *.o EEPARAMS.h utils.F PACKAGES_CONFIG.h CPP_OPTIONS.h SIZE.h 
> mnc_test_utils.F mnc_test_utils.o
> rm -f mnc_test_???.F mnc_test_??? test_???.nc t_out_???
> cat  | sed -e 's/RX/RS/g' | sed -e 's/__V/_RS/g' > 
> MNC_CW_READWRITE_RS.F
>
> *** MNC_CW_READWRITE_RS.F removed.
In other words, it happens in pkg/mnc/Makefile.
The probelm can be fixed by specifying MAKE=gmake. What do I have to 
conclude? On some Sun-Systems make is f***ed-up and on some others it 
isn't? I would be nice, if the makefiles and scripts would be truly 
platform independent and that one doesn't have to rely on gmake and 
gawk by default! The default make on my system is unfortunately 
/usr/ccs/bin/make,

Martin

PS. Patrick, this may mean that we have to go back to MAKE=gmake and 
AWK=gawk in the build options file for sun. Another option is SUN's own 
'dmake' which seems to work (unfortunately there isn't any dawk), and 
seems to be availabel on all SUNs (?).




More information about the MITgcm-devel mailing list