[MITgcm-support] help with netcdf

Maxwell, Adam R adam.maxwell at pnl.gov
Tue Apr 26 12:20:34 EDT 2005


On Apr 26, 2005, at 09:11, samar khatiwala wrote:

> Baylor, I don't follow. I'm using Mac OS X with gcc/xlf. I have no  
> trouble
> compiling the netcdf libraries and can use them with other code.

Did you compile netcdf with -qextname?  You might try removing that  
from your optfile, since it's probably a name-mangling issue as  
Baylor mentioned.

regards,
Adam Maxwell

>
> Thanks, Samar
>
> On Tue, 26 Apr 2005, Baylor Fox-Kemper wrote:
>
>
>> Hi Samar,
>>    I had to compile netcdf myself with the intel compiler to get  
>> it to
>> work with the intel-compiled mitgcm.  There is a name-mangling  
>> problem
>> otherwise.
>>    Cheers,
>>      -Baylor
>>
>> On Apr 26, 2005, at 11:54 AM, samar khatiwala wrote:
>>
>>
>>> Hi Ed
>>>
>>> Could you please help me sort out a netcdf problem? I cannot get the
>>> MNC
>>> package to work. This is on a dual G5 with a working netcdf
>>> installation.
>>> I get:
>>>
>>> ******************************************************************** 
>>> *
>>> WARNING: the "mnc" package was enabled but tests failed to compile
>>>   NetCDF applications.  Please check that:
>>>
>>>   1) NetCDF is correctly installed for this compiler and
>>>   2) the LIBS variable (within the "optfile") specifies the correct
>>>        NetCDF library to link against.
>>>
>>>   Due to this failure, the "mnc" package is now DISABLED.
>>> ******************************************************************** 
>>> *
>>>
>>> Any hints what could be wrong? Can I get genmake2 to spit out more
>>> debug
>>> info? Optfile is below.
>>>
>>> Thanks, samar
>>>
>>> FC='mpif77'
>>> CC='mpicc'
>>> INCLUDES='-I/usr/local/lam/include -I/usr/local/netcdf/include'
>>> LIBS='-L/usr/local/netcdf/lib -lnetcdf'
>>> LN='/bin/ln -s'
>>> CPP='/usr/bin/cpp -traditional -P -xassembler-with-cpp'
>>> LINK=$FC
>>> FFLAGS='-qfixed=132 -qextname -qsave=all'
>>> FOPTIM='-O3'
>>> NOOPTFLAGS='-O0'
>>>
>>> S64='$(TOOLSDIR)/set64bitConst.sh'
>>> #MAKEDEPEND='${TOOLSDIR}/xmakedepend'
>>> #MAKEDEPEND=makedepend
>>> DEFINES='-DWORDLENGTH=4'
>>> # -DNML_TERMINATOR=" /"'
>>> MAKEDEPEND='/usr/X11R6/bin/makedepend'
>>>
>>>
>>> _______________________________________________
>>> MITgcm-support mailing list
>>> MITgcm-support at mitgcm.org
>>> http://mitgcm.org/mailman/listinfo/mitgcm-support
>>>
>>
>> _______________________________________________
>> MITgcm-support mailing list
>> MITgcm-support at mitgcm.org
>> http://mitgcm.org/mailman/listinfo/mitgcm-support
>>
>>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support
>




More information about the MITgcm-support mailing list