[Met_help] Problem when compiling MET

John Halley Gotway johnhg at rap.ucar.edu
Thu May 29 11:38:29 MDT 2008


Xiaqiong,

No, I do not believe this error is due to compiling on a 64-bit machine.  You should be able to compile the "pb2nc" tool on a 64-bit machine, but when you actually run it, you'll encounter a runtime 
error similar to the following:
  **************BUFR ARCHIVE LIBRARY ABORT*****************
  BUFRLIB: OPENBF - FIRST 4 BYTES READ FROM RECORD IN INPUT FILE CONNECTED TO UNIT  11 NOT 'BUFR', DOES NOT CONTAIN BUFR DATA
  **************BUFR ARCHIVE LIBRARY ABORT*****************

The error I'm seeing in your attached logfile seems odd to me.  I don't know while this error would show up for "pb2nc" and not the other MET tools.

The compiler appears unable to find some common things that are defined in the "ctype.h" include file.  I searched on the internet for similar problems on RedHat linux, and I did find one thing we 
could try.  So please do the following:
(1) Open up the file METv1.0/src/pb2nc/pb2nc.cc
(2) Cut out line number 34: #include <ctype.h>
(3) And insert that line after line number 42: #include <unistd.h>
(4) Save and close the file.
(5) Try to rebuild MET.

The order of the include files really SHOULD NOT matter, but let's see if this has any impact.  Please let me know what happens.

Ultimately, this is a minor point since you will be unable to run the PB2NC tool on a 64-bit machine anyway.

John

Xiaqiong Zhou wrote:
> Hello, John:
> Thank you for your information.
> I can get 6 tools (grid_stat mode mode_analysis pcp_combine point_stat 
> vsdb_analysis) except PB2NC tool.
> The compiling output is attached. Is it due to my 64-bit machine?
> Thanks again
> Xiaqiong
> 
> ----- Original Message -----
> From: John Halley Gotway <johnhg at rap.ucar.edu>
> Date: Wednesday, May 28, 2008 12:20 pm
> Subject: Re: [Met_help] Problem when compiling MET
> To: Xiaqiong Zhou <xiaqiong at hawaii.edu>
> Cc: met_help at ucar.edu
> 
>  > Xiaqiong,
>  >
>  > I believe that you're encountering one of the issues already
>  > included on the "known issue" page.
>  >
>  > Please take a look here:
>  > http://www.dtcenter.org/met/users/support/known_issues/METv1.0/index.phpFor 
> the line: "Compilation Error in the vx_met_util Library"
>  >
>  > And update the version of the file
>  > METv1.0/lib/vx_met_util/Makefile with the one posted on the
>  > known issues page.
>  >
>  > Please let me know if you run into any more problems.
>  >
>  > Thanks,
>  > John Halley-Gotway
>  > johnhg at ucar.edu
>  >
>  > Xiaqiong Zhou wrote:
>  > > Hello, MET:
>  > >  I have a problem when compiling MET.
>  > >  I am using x86-64 GNU/linux with f77/gcc. 
>  > > The error is from read_grib.c. Please see the following
>  > information. Is it a problem due to  netcdf  library?
>  > I use f77 to install netcdf.
>  > >  Thanks
>  > >  Kate
>  > >  gcc read_grib.cc -g -Wall -Wshadow -static  -c -I..
>  > -I/usbdisk4jylee/xiaqiong/lib/gsl-1.11
>  > >  In file included from ../vx_met_util/vx_met_util.h:21,
>  > >                   from read_grib.cc:20:
>  > >  ../vx_met_util/read_pcp_combine_netcdf.h:16:21:
>  > netcdf.hh: No such file or directory
>  > >  In file included from ../vx_met_util/vx_met_util.h:21,
>  > >                   from read_grib.cc:20:
>  > >  ../vx_met_util/read_pcp_combine_netcdf.h:25: warning:
>  > `read_pcp_combine_netcdf' initialized and declared `extern'
>  > >  ../vx_met_util/read_pcp_combine_netcdf.h:25: error:
>  > variable or field `read_pcp_combine_netcdf' declared void
>  > >  ../vx_met_util/read_pcp_combine_netcdf.h:25: error:
>  > `NcFile' was not declared in this scope
>  > >  ../vx_met_util/read_pcp_combine_netcdf.h:25: error:
>  > expected primary-expression before ',' token
>  > >  ../vx_met_util/read_pcp_combine_netcdf.h:25: error:
>  > expected primary-expression before '&' token
>  > >  ../vx_met_util/read_pcp_combine_netcdf.h:25: error:
>  > expected primary-expression before ',' token
>  > >  ../vx_met_util/read_pcp_combine_netcdf.h:25: error:
>  > expected primary-expression before '&' token
>  > >  ../vx_met_util/read_pcp_combine_netcdf.h:25: error:
>  > expected primary-expression before ',' token
>  > >  ../vx_met_util/read_pcp_combine_netcdf.h:25: error:
>  > expected primary-expression before "int"
>  > >  ../vx_met_util/read_pcp_combine_netcdf.h:26: error:
>  > expected primary-expression before '&' token
>  > >  ../vx_met_util/read_pcp_combine_netcdf.h:26: error:
>  > expected primary-expression before ',' token
>  > >  ../vx_met_util/read_pcp_combine_netcdf.h:26: error:
>  > expected primary-expression before '&' token
>  > >  ../vx_met_util/read_pcp_combine_netcdf.h:26: error:
>  > expected primary-expression before ',' token
>  > >  ../vx_met_util/read_pcp_combine_netcdf.h:27: error:
>  > expected primary-expression before '&' token
>  > >  ../vx_met_util/read_pcp_combine_netcdf.h:27: error:
>  > expected primary-expression before ')' token
>  > >  ../vx_met_util/read_pcp_combine_netcdf.h:27: error:
>  > initializer expression list treated as compound expression
>  > >  ../vx_wrfdata/vx_wrfdata.h:41: warning: 'wrfdata_magic'
>  > defined but not used
>  > >  ../vx_wrfdata/vx_wrfdata.h:64: warning:
>  > 'thresh_type_str' defined but not used
>  > >  ../vx_wrfdata/vx_wrfdata.h:85: warning:
>  > 'step_direction_str' defined but not used
>  > >  ../vx_met_util/constants.h:23: warning: 'na_str' defined
>  > but not used
>  > >  ../vx_met_util/constants.h:26: warning:
>  > 'all_msg_typ_str' defined but not used
>  > >  ../vx_met_util/constants.h:30: warning: 'anyair_str'
>  > defined but not used
>  > >  ../vx_met_util/constants.h:31: warning:
>  > 'anyair_msg_typ_str' defined but not used
>  > >  ../vx_met_util/constants.h:32: warning: 'anysfc_str'
>  > defined but not used
>  > >  ../vx_met_util/constants.h:33: warning:
>  > 'anysfc_msg_typ_str' defined but not used
>  > >  ../vx_met_util/constants.h:34: warning: 'onlysf_str'
>  > defined but not used
>  > >  ../vx_met_util/constants.h:35: warning:
>  > 'onlysf_msg_typ_str' defined but not used
>  > >  ../vx_met_util/constants.h:38: warning:
>  > 'all_interp_mthd_str' defined but not used
>  > >  ../vx_met_util/constants.h:49: warning: 'mthd_str'
>  > defined but not used
>  > >  ../vx_met_util/met_stats.h:20: warning: 'hdr_fmt_str'
>  > defined but not used
>  > >  ../vx_grib_classes/grib_strings.h:20: warning:
>  > 'missing_str' defined but not used
>  > >  ../vx_grib_classes/grib_strings.h:62: warning:
>  > 'grib_code_list' defined but not used
>  > >  ../vx_grib_classes/grib_strings.h:94: warning:
>  > 'grib_code_list_str' defined but not used
>  > >  ../vx_grib_classes/grib_strings.h:391: warning:
>  > 'grib_level_list_str' defined but not used
>  > >  make[3]: *** [read_grib.o] Error 1
>  > >  make[2]: *** [vx_met_util_all] Error 2
>  > >  make[1]: *** [libs] Error 2
>  > >  make: *** [all] Error 2
>  > >
>  > >
>  > >
>  > > ---------------------------------------------------------------
>  > ---------
>  > >
>  > > _______________________________________________
>  > > 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