[Met_help] Compiling BUFRLIB, METv2

John Halley Gotway johnhg at ucar.edu
Thu Nov 5 13:10:24 MST 2009


Sami,

Thanks for sending your Makefile and the make_met.log file. It makes debugging this issue easier.  You MET compilation is erroring out when trying to compile the PB2NC tool.  The linker can't find one
of the standard FORTRAN libraries it needs.

The error message: cannot find -lifcore
Means that the linker can't find the file "libifcore.a".

However I see a big problem in the Makefile you're using.  You're trying to compile MET using a mixture of GNU and Intel compilers:
CXX          = /usr/bin/g++
FC           = /usr/bin/ifort

If you'd like to compile with the GNU compilers, you should use g++ and gfortran.  If you'd like to compile with the Intel compilers, use icc and ifort.  You need to use the same family of compilers.
 So pick GNU or Intel, and then copy over the Makefile template for whichever you choose:

So either: cp Makefile_gnu Makefile
Or:        cp Makefile_intel Makefile

And then edit the Makefile to point to your compilers, and builds of NetCDF, BUFRLIB, and GSL.  Please note that NetCDF, BUFRLIB, and GSL should be compiled with the same family of compilers you're
using in MET.

Give that a shot and let us know if you have any more problems.

Thanks,
John Halley Gotway
johnhg at ucar.edu


sami sami wrote:
> hello John,
>  
> ifort --version
> ifort (IFORT) 10.1 20080112
> Copyright (C) 1985-2007 Intel Corporation.  All rights reserved.
> icc --version
> icc (ICC) 11.1 20090827
> Copyright (C) 1985-2009 Intel Corporation.  All rights reserved.
>  
> I replaced nvnwin.f  as you advised me and recompiling BUFRLIB with (warnings messages only), bufrlib/libbufr.a  done.
> netcdf: libnetcdf.a libnetcdf_c++.a  done
> libf2c.a      done
> libgsl.a      done
>  
> I Downloaded METv2.0_patches_20091022.tar.gz , But still cannot compiling METv2, (Makefile (intel) and log-file is attached).
>  
> ***Have a nice trip!***
>  
> regards
> ???????_shamsi  		 	   		  
> _________________________________________________________________
> Windows 7: Watch live TV, right from your laptop. Learn more.
> http://windows.microsoft.com/windows-7
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Met_help mailing list
> Met_help at mailman.ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/met_help


More information about the Met_help mailing list