[Met_help] Problems with compiling pb2nc . . . even with the patch

Joe Galewsky galewsky at unm.edu
Wed Jul 9 13:24:38 MDT 2008


John:

I just tried compiling MET with the GNU compilers (after recompiling the 
required libraries), and am still getting cctype errors (see below). 
Any clue what this means?

thx,

Joe

c++ -o pb2nc pb2nc.cc pb2nc_Conf.o numpbmsg.o openpb.o readpb.o dumppb.o  \
-Wall -Wshadow -static  -g -m32 
-DMET_BASE=\"/users/galewsky/METv1.1beta9\" \
-I../../lib -I/users/galewsky/32bit/netcdf-3.6.2/include 
-I/users/galewsky/gsl/include -I/users/galewsky/bufr 
-I/users/galewsky/libf2c \
-L../../lib -L/users/galewsky/32bit/netcdf-3.6.2/lib 
-L/users/galewsky/gsl/lib -L/users/galewsky/bufr -L/users/galewsky/libf2c \
-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  -lgfortran
/usr/include/c++/4.1.2/cctype:70: error: ‘::isalnum’ has not been 
declared
/usr/include/c++/4.1.2/cctype:71: error: ‘::isalpha’ has not been 
declared
/usr/include/c++/4.1.2/cctype:72: error: ‘::iscntrl’ has not been 
declared
/usr/include/c++/4.1.2/cctype:73: error: ‘::isdigit’ has not been 
declared
/usr/include/c++/4.1.2/cctype:74: error: ‘::isgraph’ has not been 
declared
/usr/include/c++/4.1.2/cctype:75: error: ‘::islower’ has not been 
declared
/usr/include/c++/4.1.2/cctype:76: error: ‘::isprint’ has not been 
declared
/usr/include/c++/4.1.2/cctype:77: error: ‘::ispunct’ has not been 
declared
/usr/include/c++/4.1.2/cctype:78: error: ‘::isspace’ has not been 
declared
/usr/include/c++/4.1.2/cctype:79: error: ‘::isupper’ has not been 
declared
/usr/include/c++/4.1.2/cctype:80: error: ‘::isxdigit’ has not been 
declared
/usr/include/c++/4.1.2/cctype:81: error: ‘::tolower’ has not been 
declared
/usr/include/c++/4.1.2/cctype:82: error: ‘::toupper’ has not been 
declared
/usr/include/c++/4.1.2/x86_64-suse-linux/bits/ctype_base.h:51: 
error: ‘_ISupper’ was not declared in this scope
/usr/include/c++/4.1.2/x86_64-suse-linux/bits/ctype_base.h:52: 
error: ‘_ISlower’ was not declared in this scope
/usr/include/c++/4.1.2/x86_64-suse-linux/bits/ctype_base.h:53: 
error: ‘_ISalpha’ was not declared in this scope
/usr/include/c++/4.1.2/x86_64-suse-linux/bits/ctype_base.h:54: 
error: ‘_ISdigit’ was not declared in this scope
/usr/include/c++/4.1.2/x86_64-suse-linux/bits/ctype_base.h:55: 
error: ‘_ISxdigit’ was not declared in this scope
/usr/include/c++/4.1.2/x86_64-suse-linux/bits/ctype_base.h:56: 
error: ‘_ISspace’ was not declared in this scope
/usr/include/c++/4.1.2/x86_64-suse-linux/bits/ctype_base.h:57: 
error: ‘_ISprint’ was not declared in this scope
/usr/include/c++/4.1.2/x86_64-suse-linux/bits/ctype_base.h:58: 
error: ‘_ISalpha’ was not declared in this scope
/usr/include/c++/4.1.2/x86_64-suse-linux/bits/ctype_base.h:58: 
error: ‘_ISdigit’ was not declared in this scope
/usr/include/c++/4.1.2/x86_64-suse-linux/bits/ctype_base.h:58: 
error: ‘_ISpunct’ was not declared in this scope
/usr/include/c++/4.1.2/x86_64-suse-linux/bits/ctype_base.h:59: 
error: ‘_IScntrl’ was not declared in this scope
/usr/include/c++/4.1.2/x86_64-suse-linux/bits/ctype_base.h:60: 
error: ‘_ISpunct’ was not declared in this scope
/usr/include/c++/4.1.2/x86_64-suse-linux/bits/ctype_base.h:61: 
error: ‘_ISalpha’ was not declared in this scope
/usr/include/c++/4.1.2/x86_64-suse-linux/bits/ctype_base.h:61: 
error: ‘_ISdigit’ was not declared in this scope
../../lib/vx_data_grids/grid_defs.h:441: warning: ‘pc_grids_data’ 
defined but not used
../../lib/vx_data_grids/grid_defs.h:476: warning: ‘st_grids_data’ 
defined but not used
../../lib/vx_data_grids/grid_defs.h:514: warning: ‘lc_grids_data’ 
defined but not used
make[3]: *** [pb2nc] Error 1
make[2]: *** [all] Error 2
make[1]: *** [targets] Error 2
make: *** [all] Error 2

John Halley Gotway wrote:
> Joe,
> 
> Hmmm.  I'm not sure.  I'm asking around to see if anyone has any 
> suggestions here.
> 
> In the meantime, if you have access to the GNU compilers, you could try 
> building MET with them.  MET was developed and tested primarily with the 
> GNU compilers.  You could use g++ for the C++ compiler and either g77 or 
> gfortran for the FORTRAN compiler.  The only downside however is that 
> you'd need to build versions of the required libraries using the GNU 
> compilers as well.
> 
> John
> 
> Joe Galewsky wrote:
>> John:
>>
>> Thanks for your quick reply!  I just tried the compilation of the beta 
>> version, and I am still getting the same error on pb2nc, posted below. 
>> I am also attaching the Makefile I used.  Someone posted the exact 
>> same error message on the Portland Group web site, so I am not the 
>> only one with this problem.  Everything else compiled more-or-less 
>> smoothly up to this point (a few warning messages).
>>
>> Thanks for any assistance you can provide!
>>
>> --Joe
>>
>>
>>
>> pgCC -o pb2nc pb2nc.cc pb2nc_Conf.o numpbmsg.o openpb.o readpb.o 
>> dumppb.o  \
>> -Bstatic   -DMET_BASE=\"/users/galewsky/METv1.1beta9\" \
>> -I../../lib -I/users/galewsky/netcdf-3.6.2/include 
>> -I/users/galewsky/gsl -I/users/galewsky/bufr -I/users/galewsky/libf2c \
>> -L../../lib -L/users/galewsky/netcdf-3.6.2/lib 
>> -L/users/galewsky/gsl/libs -L/users/galewsky/bufr 
>> -L/users/galewsky/libf2c \
>> -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:
>> "/users/system/pgi-7.0-2/linux86-64/7.0-2/include/CC/cctype", line 55: 
>> error:
>>           the global scope has no "isalnum"
>>   using _STLP_VENDOR_CSTD::isalnum;
>>                            ^
>>
>> "/users/system/pgi-7.0-2/linux86-64/7.0-2/include/CC/cctype", line 56: 
>> error:
>>           the global scope has no "isalpha"
>>   using _STLP_VENDOR_CSTD::isalpha;
>>                            ^
>>
>> "/users/system/pgi-7.0-2/linux86-64/7.0-2/include/CC/cctype", line 57: 
>> error:
>>           the global scope has no "iscntrl"
>>   using _STLP_VENDOR_CSTD::iscntrl;
>>                            ^
>>
>> "/users/system/pgi-7.0-2/linux86-64/7.0-2/include/CC/cctype", line 58: 
>> error:
>>           the global scope has no "isdigit"
>>   using _STLP_VENDOR_CSTD::isdigit;
>>                            ^
>>
>> "/users/system/pgi-7.0-2/linux86-64/7.0-2/include/CC/cctype", line 59: 
>> error:
>>           the global scope has no "isgraph"
>>   using _STLP_VENDOR_CSTD::isgraph;
>>                            ^
>>
>> "/users/system/pgi-7.0-2/linux86-64/7.0-2/include/CC/cctype", line 60: 
>> error:
>>           the global scope has no "islower"
>>   using _STLP_VENDOR_CSTD::islower;
>>                            ^
>>
>> "/users/system/pgi-7.0-2/linux86-64/7.0-2/include/CC/cctype", line 61: 
>> error:
>>           the global scope has no "isprint"
>>   using _STLP_VENDOR_CSTD::isprint;
>>                            ^
>>
>> "/users/system/pgi-7.0-2/linux86-64/7.0-2/include/CC/cctype", line 62: 
>> error:
>>           the global scope has no "ispunct"
>>   using _STLP_VENDOR_CSTD::ispunct;
>>                            ^
>>
>> "/users/system/pgi-7.0-2/linux86-64/7.0-2/include/CC/cctype", line 63: 
>> error:
>>           the global scope has no "isspace"
>>   using _STLP_VENDOR_CSTD::isspace;
>>                            ^
>>
>> "/users/system/pgi-7.0-2/linux86-64/7.0-2/include/CC/cctype", line 64: 
>> error:
>>           the global scope has no "isupper"
>>   using _STLP_VENDOR_CSTD::isupper;
>>                            ^
>>
>> "/users/system/pgi-7.0-2/linux86-64/7.0-2/include/CC/cctype", line 65: 
>> error:
>>           the global scope has no "isxdigit"
>>   using _STLP_VENDOR_CSTD::isxdigit;
>>                            ^
>>
>> "/users/system/pgi-7.0-2/linux86-64/7.0-2/include/CC/cctype", line 66: 
>> error:
>>           the global scope has no "tolower"
>>   using _STLP_VENDOR_CSTD::tolower;
>>                            ^
>>
>> "/users/system/pgi-7.0-2/linux86-64/7.0-2/include/CC/cctype", line 67: 
>> error:
>>           the global scope has no "toupper"
>>   using _STLP_VENDOR_CSTD::toupper;
>>                            ^
>>
>> "/users/system/pgi-7.0-2/linux86-64/7.0-2/include/CC/stl/_ctype.h", 
>> line 43: error:
>>           identifier "_ISspace" is undefined
>>       space   = _Locale_SPACE,
>>                 ^
>>
>> "/users/system/pgi-7.0-2/linux86-64/7.0-2/include/CC/stl/_ctype.h", 
>> line 44: error:
>>           identifier "_ISprint" is undefined
>>       print   = _Locale_PRINT,
>>                 ^
>>
>> "/users/system/pgi-7.0-2/linux86-64/7.0-2/include/CC/stl/_ctype.h", 
>> line 45: error:
>>           identifier "_IScntrl" is undefined
>>       cntrl   = _Locale_CNTRL,
>>                 ^
>>
>> "/users/system/pgi-7.0-2/linux86-64/7.0-2/include/CC/stl/_ctype.h", 
>> line 46: error:
>>           identifier "_ISupper" is undefined
>>       upper   = _Locale_UPPER,
>>                 ^
>>
>> "/users/system/pgi-7.0-2/linux86-64/7.0-2/include/CC/stl/_ctype.h", 
>> line 47: error:
>>           identifier "_ISlower" is undefined
>>       lower   = _Locale_LOWER,
>>                 ^
>>
>> "/users/system/pgi-7.0-2/linux86-64/7.0-2/include/CC/stl/_ctype.h", 
>> line 48: error:
>>           identifier "_ISalpha" is undefined
>>       alpha   = _Locale_ALPHA,
>>                 ^
>>
>> "/users/system/pgi-7.0-2/linux86-64/7.0-2/include/CC/stl/_ctype.h", 
>> line 49: error:
>>           identifier "_ISdigit" is undefined
>>       digit   = _Locale_DIGIT,
>>                 ^
>>
>> "/users/system/pgi-7.0-2/linux86-64/7.0-2/include/CC/stl/_ctype.h", 
>> line 50: error:
>>           identifier "_ISpunct" is undefined
>>       punct   = _Locale_PUNCT,
>>                 ^
>>
>> "/users/system/pgi-7.0-2/linux86-64/7.0-2/include/CC/stl/_ctype.h", 
>> line 51: error:
>>           identifier "_ISxdigit" is undefined
>>       xdigit  = _Locale_XDIGIT,
>>                 ^
>>
>> 22 errors detected in the compilation of "pb2nc.cc".
>> make[3]: *** [pb2nc] Error 2
>> make[2]: *** [all] Error 2
>> make[1]: *** [targets] Error 2
>> make: *** [all] Error 2
>>
>>
>>
>>
>> John Halley Gotway wrote:
>>> Joe,
>>>
>>> We're actually getting ready to release the next version of MET - 
>>> version 1.1 by the end of the week.  We're basically just finalizing 
>>> the updates to the User's Guide now.  Why don't you try building a 
>>> beta version of this next release and see if you're still having the 
>>> same problems.  We can keep our fingers crossed that the problem will 
>>> have been resolved.
>>>
>>> You can access the beta version at: 
>>> ftp://ftp.rap.ucar.edu/incoming/irap/johnhg/METv1.1beta9.20080702.tar.gz
>>>
>>> The User's Guide in there isn't updated yet for METv1.1.
>>>
>>> You'll first copy over Makefile_pgi to Makefile - and then configure 
>>> that top-level Makefile with the paths to the library dependencies.
>>> Then do: make >& make_met.log
>>>
>>> Please let me know how it goes.  If you run into problems with the 
>>> build, please send back a copy of the Makefile you're using and a 
>>> copy of the build log (make_met.log).  That'll help diagnose the 
>>> problems.
>>>
>>> Thanks,
>>> John Halley-Gotway
>>> johnhg at ucar.edu
>>>
>>> Joe Galewsky wrote:
>>>> Hi:
>>>>
>>>> I'm trying to compile METV1.0 on our Linux system with the Portland 
>>>> Group compilers, version 7.0.2, and am getting fatal errors 
>>>> compiling pb2nc.  I made the changes indicated in your patched 
>>>> makefile, but it's still barfing.  The error messages are identical 
>>>> to those listed here on the PG website:
>>>> http://www.pgroup.com/userforum/viewtopic.php?p=4531&sid=b0bbd1c7125df703be228aa3228f8546 
>>>>
>>>>
>>>> Do you have any suggestions on how to successfully compile this 
>>>> code? Can I provide you with further information?  All of the other 
>>>> libraries and dependencies have been successfully compiled.
>>>>
>>>> Thanks,
>>>>
>>>> Joe Galewsky
>>>>
>>>>
>>>
>>
> 

-- 
----------
Joseph Galewsky
Earth and Planetary Sciences
Northrop Hall Room 222
MSC 03 2040
1 University of New Mexico
Albuquerque, NM 87131-0001
phone: 505-277-2361
fax: 505-277-8843
email: galewsky at unm.edu


More information about the Met_help mailing list