[MITgcm-support] Compiling error when using MNC package

Martin Losch Martin.Losch at awi.de
Fri May 12 03:59:01 EDT 2017


Hi Yakun,

the error message means, that the netcdf library is not found or that the objects in the libary do not match the “name mangling convention” (I hope that I got this right).

For debugging, I usually find it the easiest to check the output of genmake2: which of the tests fail? then have a look at genmake.log and check out the details, why and where they fail. I assume that the netcdf example will already fail in that test and you can use the commands in genmake.log to create short test that let’s you play with library settings until it works.

Martin

> On 12. May 2017, at 08:55, Yankun Gong <yankun.gong at research.uwa.edu.au> wrote:
> 
> Hi all,
> 
> When I decide to compile MITgcm model with mnc package on Cray System, errors occur on the third/last step of compilation (make). In fact, the model can successfully compile without mnc package and I am sure that I have added the Libs of NetCDF on build options. The compiling errors are shown below:
> 
> MNC_CW_READWRITE_I.o: In function `mnc_cw_i_w_s_':
> /scratch/pawsey0106/gongyk/MITgcm_c66g/test_IW/build/MNC_CW_READWRITE_I.f:361: undefined
> […]
> /scratch/pawsey0106/gongyk/MITgcm_c66g/test_IW/build/mnc_var.f:13005: undefined reference to `nf_put_vara_int_'
> make[1]: *** [mitgcmuv] Error 1
> make[1]: Leaving directory `/scratch/pawsey0106/gongyk/MITgcm_c66g/test_IW/build'
> make: *** [fwd_exe_target] Error 2
> 
> 
> Any help and suggestions are welcome!
> 
> Thanks
> Yankun
>                         
> 
> Yankun Gong
> School of Civil, Environmental and Mining Engineering & UWA Oceans Institute 
> The University of Western Australia, Perth WA 6009 Australia
> T  +61 0420 831 087  •  E  yankun.gong at research.uwa.edu.au
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support




More information about the MITgcm-support mailing list