[MITgcm-devel] MNC genmake2 and Mac

David Ferreira dfer at ocean.mit.edu
Wed Oct 4 15:14:03 EDT 2006


Hi,

I'm trying to get the MNC package to work on my Mac, and obviously
it doesn't go smoothly.
Although I have netcdf installed, genmake2 runs some test that fails and 
then
disables MNC. The first complain from the genmake2 test is a warning about
failing to preprocess the test.
Trying to solve it, I realized that this message is also issued on
Aces and Columbia where MNC works fine. So it seems it has
nothing to do with my Mac and/or netcdf library

The problem may be in those lines :

    COMM="cat genmake_tnc.F | $CPP $DEFINES $INCLUDES"
    echo "$COMM" >> genmake_tnc.log
    $COMM > genmake_tnc.$FS 2>/dev/null  &&  RET_CPP=t
    if test "x$RET_CPP" = xf ; then
       echo "  WARNING: CPP failed to pre-process the netcdf test." \
	    >> genmake_tnc.log
	echo "    Please check that \$INCLUDES is properly set." \
	    >> genmake_tnc.log 
         .....

if "/dev/null" is replaced by "std_err_tnc", I get that:

sdt_err:tnc:
cat: |: No such file or directory
cat: -traditional: No such file or directory
cat: -P: No such file or directory
cat: -xassembler-with-cpp: No such file or directory
cat: -D_BYTESWAPIO: No such file or directory
cat: -DWORDLENGTH=4: No such file or directory
cat: -DNML_TERMINATOR: No such file or directory
cat: -DHAVE_SYSTEM: No such file or directory
cat: -DHAVE_FDATE: No such file or directory
cat: -DHAVE_ETIME: No such file or directory
cat: -DHAVE_CLOC: No such file or directory
cat: -DHAVE_SETRLSTK: No such file or directory
cat: -DHAVE_SIGREG: No such file or directory
cat: -DHAVE_STAT: No such file or directory
cat: -I/sw/include: No such file or directory


If typed explicitly, the command $COMM seems to work OK,
(which is actually what is done in the second attempt to
test netcdf with -lnetcdf added)

Looks fishy to me, this warning about preprocessing
seems to be broken (and misleading), no ?
Could it be fixed ?

Anyway my problem has probably something to do
with  the "name-mangling" discussed on the support list a while ago.
Ed suggests to install netcdf by hand and points to some documentation:

 http://mitgcm.org/mwiki/index.php/NetCDF_Local_Install
  [ ae ehnd http://mitgcm.org/mwiki/index.php/MNC_Package ]

but I can't access these pages: have they disappeared ?

Thanks,
david

-- 

Ferreira David               Tel : 617 253 7967 
EAPS Room 54-1515,
Massachusetts Institute of Technology,
77 Massachusetts Avenue
Cambridge, MA, 02139




More information about the MITgcm-devel mailing list