[MITgcm-devel] genmake2 fails with netcdf on SUN
Martin Losch
mlosch at awi-bremerhaven.de
Thu Jan 6 06:09:30 EST 2005
More awk troubles:
SunOS's awk (oawk) doesn't like the "toupper" command:
> rays1::MITgcm> echo ALLOW_something | awk '{print toupper($0)}'
> ALLOW_something
> rays1::MITgcm> echo ALLOW_something | nawk '{print toupper($0)}'
> ALLOW_SOMETHING
> rays1::MITgcm> echo ALLOW_something | gawk '{print toupper($0)}'
> ALLOW_SOMETHING
This causes serious problems because all -DALLOW_PKG become -DALLOW_pkg
etc. My "Unix is a Nutshell" from 1994 even says that "toupper" is only
available in gawk, but apparently it works also in nawk.
After (quick-)fixing this problem (replaced $AWK with gawk in the
instances toupper appears in genmake2), everythings compiles and runs
with /usr/bin/awk on SunOS, Solaris 5.9.
Again, do we care about this? Or is it better to stick with gawk/nawk
and have these specified in all sunos_sun4u_* build options files?
Martin
More information about the MITgcm-devel
mailing list