[Met_help] problems compiling pb2nc

John Halley Gotway johnhg at rap.ucar.edu
Tue Sep 16 14:48:26 MDT 2008


Jonathan,

FYI - I've added an entry to the MET known issues page regarding the PB2NC compilation problem you experienced using the PGI compilers.  It's the 2nd item listed on the page titled "F2C option when
using the PGI compilers":  http://www.dtcenter.org/met/users/support/known_issues/METv1.1/index.php

Would you say that problem description and solution accurately describe the issue you experienced?

Thanks,
John

Case, Jonathan (MSFC)[] wrote:
> Dear John,
> 
> Thanks for the tip.  I was able to build all the MET executables by
> removing the references to F2C, as you suggested, using PGI v7.1.4.
> Also, it looks like I ran all of the test scripts successfully, after
> unblocking and then re-blocking the sample prepbufr surface obs data
> word cwordsh.
> 
> Finally, for future reference, you might want to know that GEMPAK has
> the cwordsh utility, which showed up in my path when I typed "which
> cwordsh".  So those who already installed GEMPAK should have this
> utility on hand.  
> 
> One last note which should be of high interest to you: 
> I've used the "copygb" program within the WRF Environmental Modeling
> System and WRFPOST for a while, and I'm familiar with how painfully slow
> it can be re-projected data from the NMM rotated lat/lon grid to Lambert
> for display purposes.  
> I've pinged NCEP repeatedly over the last 1-2 years to see whether
> they've developed a more efficient version of copygb.  Well, the time
> has finally arrived!  Hui-ya Chuang recently sent out the optimized
> version of copygb, which pre-computes and saves the interpolation
> weights instead of calculating the interpolation for EVERY output field.
> Bob Rozumalski at COMET already successfully compiled this version of
> copygb for a Linux system.  Rozumalski noted that a test run completed
> in about 85-90% less time!   
> 
> Most sincerely,
> Jonathan
> 
>> -----Original Message-----
>> From: John Halley Gotway [mailto:johnhg at rap.ucar.edu]
>> Sent: Monday, September 15, 2008 5:51 PM
>> To: Case, Jonathan (MSFC)[]
>> Cc: met_help at ucar.edu; Molthan, Andrew L. (MSFC)[]
>> Subject: Re: [Met_help] problems compiling pb2nc
>>
>> Jonathan,
>>
>> I was experiencing identical error messages on one of the machines on
>> which I build MET here at NCAR.
>>
>> Using the "-ff2c" compiler option (as mentioned on the known issues
>> page) would work if you were using the GNU compilers, but it appears
>> that you're using PGI.  However, in playing around with it this
>> afternoon, I was able to get my PGI version to compile.  I did the
>> following:
>> (1) Build BUFRLIB following the suggestions in the MET User's Guide
> and
>> described here:
>>
> http://www.dtcenter.org/met/users/support/online_tutorial/compilation/r
>> eq_libs.php
>> (2) Remove references to F2C from the top-level MET Makefile... So,
>> empty out the lines for F2C_BASE, F2C_INCS, F2C_LIBS, and F2C_LIBNAME.
>> (3) Rebuild MET.
>>
>> Please let me know if that works for you.  It did for me.  We're just
>> removing any mention of the F2C library.
>>
>> Unfortunately, at this point, I can't tell you exactly what's going
> on.
>> It appears that this version of the PGI compiler (I'm running 7.1-5)
>> does not need to link to the F2C library.  Getting the Fortran code to
>> work well with the C++ has been the most tricky part of MET by far.
>>
>> Please let me know if this works for you, and, if so, I'll add an
> entry
>> to the MET Known Issues page.
>>
>> Thanks,
>> John Halley-Gotway
>> johnhg at ucar.edu
>>
>> Case, Jonathan (MSFC)[] wrote:
>>> Dear MET help,
>>>
>>>
>>>
>>> I've been working on compiling the MET v1.1 package recently, and
>>> after whittling away at various problems, I've come across another
>> one that
>>> I'm not sure how to interpret.   Is this compilation problem I'm
>> having
>>> (below) related to the problem with F2C in the FAQs?  If so, I'll go
>>> ahead and follow the instructions on correcting the F2C linking.  If
>>> not, please advise on any corrective steps I can take.
>>>
>>>
>>>
>>> Thanks much,
>>>
>>> Jonathan Case
>>>
>>>
>>>
>>> ***********************************************************
>>> Jonathan Case, ENSCO, Inc.
>>> Aerospace Sciences & Engineering Division Short-term Prediction
>>> Research and Transition Center 320 Sparkman Drive, Room 3062
>>> Huntsville, AL 35805-1912
>>> Voice: (256) 961-7504   Fax: (256) 961-7788
>>> Emails: Jonathan.Case-1 at nasa.gov
>>>
>>>              case.jonathan at ensco.com
>>>
>>> ***********************************************************
>>>
>>>
>>>
>>> /usr/local/tools/pgi-7.1-4/linux86-64/7.1-4/bin/pgCC -o pb2nc
>> pb2nc.cc
>>> pb2nc_Conf.o numpbmsg.o openpb.o readpb.o dumppb.o  \
>>>
>>> -Bstatic   -DMET_BASE=\"/usr/people/casejl/MET/METv1.1\" \
>>>
>>> -I../../lib -I/usr/people/casejl/MET/NETCDF/netcdf-3.6.2/include
>>> -I/usr/local/include/gsl -I/usr/people/casejl/MET/BUFRLIB
>>> -I/usr/people/casejl/MET/F2C \
>>>
>>> -L../../lib -L/usr/people/casejl/MET/NETCDF/netcdf-3.6.2/lib
>>> -L/usr/local/lib -L/usr/people/casejl/MET/BUFRLIB
>>> -L/usr/people/casejl/MET/F2C \
>>>
>>> -lvx_met_util -lvx_analysis_util -lvx_wrfdata -lvx_met_util \
>>>
>>>         -lvx_contable -lvx_grib_classes \
>>>
>>> -lvx_econfig -lvx_gsl_prob -lgsl \
>>>
>>> -lvx_plot_util  -lvx_render -lvx_pxm -lvx_color -lvx_ps -lvx_afm \
>>>
>>> -lvx_data_grids -lvx_gnomon -lvx_nav -lvx_cal -lvx_util -lvx_math
> -lm
>>> \
>>>
>>> -lnetcdf_c++ -lnetcdf \
>>>
>>> -lbufr -lf2c  -lpgftnrtl -lrt -lpthread
>>>
>>> pb2nc.cc:
>>>
>>> "/usr/local/tools/pgi-7.1-4/linux86-64/7.1-4/include/CC/cctype",
> line
>>> 55: error:
>>>
>>>           the global scope has no "isalnum"
>>>
>>>   using _STLP_VENDOR_CSTD::isalnum;
>>>
>>>                            ^
>>>
>>>
>>>
>>> "/usr/local/tools/pgi-7.1-4/linux86-64/7.1-4/include/CC/cctype",
> line
>>> 56: error:
>>>
>>>           the global scope has no "isalpha"
>>>
>>>   using _STLP_VENDOR_CSTD::isalpha;
>>>
>>>                            ^
>>>
>>>
>>>
>>> "/usr/local/tools/pgi-7.1-4/linux86-64/7.1-4/include/CC/cctype",
> line
>>> 57: error:
>>>
>>>           the global scope has no "iscntrl"
>>>
>>>   using _STLP_VENDOR_CSTD::iscntrl;
>>>
>>>                            ^
>>>
>>>
>>>
>>> "/usr/local/tools/pgi-7.1-4/linux86-64/7.1-4/include/CC/cctype",
> line
>>> 58: error:
>>>
>>>           the global scope has no "isdigit"
>>>
>>>   using _STLP_VENDOR_CSTD::isdigit;
>>>
>>>                            ^
>>>
>>>
>>>
>>> "/usr/local/tools/pgi-7.1-4/linux86-64/7.1-4/include/CC/cctype",
> line
>>> 59: error:
>>>
>>>           the global scope has no "isgraph"
>>>
>>>   using _STLP_VENDOR_CSTD::isgraph;
>>>
>>>                            ^
>>>
>>>
>>>
>>> "/usr/local/tools/pgi-7.1-4/linux86-64/7.1-4/include/CC/cctype",
> line
>>> 60: error:
>>>
>>>           the global scope has no "islower"
>>>
>>>   using _STLP_VENDOR_CSTD::islower;
>>>
>>>                            ^
>>>
>>>
>>>
>>> "/usr/local/tools/pgi-7.1-4/linux86-64/7.1-4/include/CC/cctype",
> line
>>> 61: error:
>>>
>>>           the global scope has no "isprint"
>>>
>>>   using _STLP_VENDOR_CSTD::isprint;
>>>
>>>                            ^
>>>
>>>
>>>
>>> "/usr/local/tools/pgi-7.1-4/linux86-64/7.1-4/include/CC/cctype",
> line
>>> 62: error:
>>>
>>>           the global scope has no "ispunct"
>>>
>>>   using _STLP_VENDOR_CSTD::ispunct;
>>>
>>>                            ^
>>>
>>>
>>>
>>> "/usr/local/tools/pgi-7.1-4/linux86-64/7.1-4/include/CC/cctype",
> line
>>> 63: error:
>>>
>>>           the global scope has no "isspace"
>>>
>>>   using _STLP_VENDOR_CSTD::isspace;
>>>
>>>                            ^
>>>
>>>
>>>
>>>
>>>
> ---------------------------------------------------------------------
>> -
>>> --
>>>
>>> _______________________________________________
>>> Met_help mailing list
>>> Met_help at mailman.ucar.edu
>>> http://mailman.ucar.edu/mailman/listinfo/met_help
> _______________________________________________
> 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