[Met_help] problems compiling pb2nc

John Halley Gotway johnhg at rap.ucar.edu
Mon Sep 15 16:50:42 MDT 2008


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/req_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.  I 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


More information about the Met_help mailing list