[MITgcm-support] getting started with NetCDF

Alistair Adcroft adcroft at mit.edu
Wed Oct 27 14:09:50 EDT 2004


Ed,

Perhaps you should run the test in a sub-dir within the pkg/mnc which 
then won't be automatically scanned by genmake2?

A.

Ed Hill wrote:
> On Tue, 2004-10-26 at 11:14, Matthew Mazloff wrote:
> 
>>Hi Ed,
>>
>>So I am still having a problem using NetCDF with the dic_example
>>when I try to compile i get the error
>>
>> -L/home/mmazloff/pkg/netcdf_g77/lib -lnetcdf
>>utils.o(.text+0x780): In function `ifnblnk_':
>>: multiple definition of `ifnblnk_'
>>mnc_test_utils.o(.text+0x0): first defined here
>>utils.o(.text+0x8cc): In function `ilnblnk_':
>>: multiple definition of `ilnblnk_'
>>mnc_test_utils.o(.text+0x14c): first defined here
>>print.o(.text+0x0): In function `print_error__':
>>: multiple definition of `print_error__'
>>mnc_test_utils.o(.text+0x294): first defined here
>>/usr/bin/ld: Warning: size of symbol `print_error__' changed from 238 in 
>>mnc_test_utils.o to 954 in print.o
>>collect2: ld returned 1 exit status
>>make: *** [mitgcmuv] Error 1
>>
>>and I have not been able to fix this.
> 
> 
> 
> Hi folks,
> 
> Just for future reference, the problem here was due to Matt executing:
> 
>   $  cd MITgcm/pkg/mnc
>   $  make test
> 
> which then produced a bunch of supposed-to-be-used-only-for-testing *.F
> files within pkg/mnc which were then included by genmake2 when he tried
> to build the model.  The fix is was very easy--we just ran a "make
> clean" within pkg/mnc to remove those files and re-ran genmake2 and
> re-built the model.
> 
> Ed
> 


-- 
Dr Alistair Adcroft            http://www.mit.edu/~adcroft
MIT Climate Modeling Initiative        tel: (617) 253-5938
EAPS 54-1624,  77 Massachusetts Ave,  Cambridge,  MA,  USA




More information about the MITgcm-support mailing list