[Met_help] METv1.0 compile problem

John Halley Gotway johnhg at rap.ucar.edu
Fri Jan 11 10:27:56 MST 2008


Mike,

I apologize if I wasn't clear in the last email.  You're welcome to use the EITHER the PGI compilers OR the GNU Compilers, but I wouldn't recommend mixing them.

Since you'd like to use the PGI compilers, edit the file Makefile_pgi and provide the paths to "pgCC" and "pgf77".
CPP_COMPILER = /your/path/to/pgCC
F77_COMPILER = /your/path/to/pgf77

You'll also need to provide paths for:
MET_BASE, NETCDF_INCS, NETCDF_LIBS, BUFR_INCS, and BUFR_LIBS

And if GSL and F2C are in non-standard locations on your machine, you'll need to provide paths for:
GSL_INCS, GSL_LIBS, F2C_INCS, and F2C_LIBS

Then execute the following commands to rebuild MET:
make clean
make -f Makefile_pgi >& make_met.log

Does that make sense?  Please let me know if you're able to get MET to compile or if more questions come up.

Thanks,
John

Mike Ku wrote:
> John,
> 
> I used Makefile_pgi since pgi is the compile we used for our applications. I
> follow your suggestion of using Makefile (g++ and g77), and it works except
> creating "pb2nc", since there is no g77 in my computer. I try to mix pgf77
> and g++ but no luck. I think I need install g77 for my computer. One
> question why pgi is no longer support? I feel more comfortable to use pgi
> compiler. Thanks,
> 
> Mike
> **********************************************
> Michael Ku
> Research Scientist
> NYS Dept Environmental Conservation
> 625 Broadway
> Albany, 12233-3259
> Tel: 518-402-8385
> Fax: 518-402-9035
> mku at dec.state.ny.us
> 
> ----- Original Message ----- 
> From: "John Halley Gotway" <johnhg at rap.ucar.edu>
> To: "Mike Ku" <mku at dec.state.ny.us>
> Cc: <met_help at ucar.edu>
> Sent: Thursday, January 10, 2008 4:23 PM
> Subject: Re: [Met_help] METv1.0 compile problem
> 
> 
>> Mike,
>>
>> It appears that MET is linking to the shared object library file
> "libgsl.so", when it should be linking to the library archive file
> "libgsl.a".
>> Based on the contents of the log file you sent, I'm guessing you were
> using the PGI version of the makefile (named Makefile_pgi) in the top-level
> directory rather than the makefile for the GNU
>> compilers (named Makefile).  I can tell this since the call to g++ for
> MODE contains the "-Bstatic" option in the line, rather than the "-static"
> option that g++ actually recognizes.
>> If that's the case, please try to rebuild MET (be sure to do a 'make
> clean' first), but this time make sure to start with "Makefile" rather than
> "Makefile_pgi".
>> "Makefile" sets the compiler flags as:     FLAGS
> = -g -Wall -Wshadow -static
>> "Makefile_pgi" sets the compiler flags as: FLAGS = -g -Bstatic
>>
>> If compiling with g++, as you appear to be doing, you need to use that
> first set of flags.
>> Please let me know whether or not that does the trick for you.
>>
>> Thanks,
>> John Halley-Gotway
>>
>> Mike Ku wrote:
>>> I have problem to compile METv1.0. Includes the make log file.
>>>
>>> Michael
>>>
>>> **********************************************
>>> Michael Ku
>>> Research Scientist
>>> NYS Dept Environmental Conservation
>>> 625 Broadway
>>> Albany, 12233-3259
>>> Tel: 518-402-8385
>>> Fax: 518-402-9035
>>> mku at dec.state.ny.us
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> 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