Hello All,<br><br>I&#39;m having trouble compiling MET. I&#39;ve encountered some errors that I was able to fix by downloading an earlier netcdf library and recompiling BUFR, but I can&#39;t figure out what this one error means. I would appreciate any help.<br>
<br>Thank you<br><br><span style="color: rgb(0, 0, 153);">*** Making grid_stat application ***</span><br style="color: rgb(0, 0, 153);"><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">/opt/pgi/linux86/latest/bin/pgCC  -c grid_stat_conf_info.cc -Bstatic   \</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">    -I../../lib -I/home/pmoreira/usr/include -I/usr/include</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">&quot;/opt/pgi/linux86/9.0-3/include/CC/cmath&quot;, line 56: error: the global scope</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">          has no &quot;abs&quot;</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">  using _STLP_VENDOR_CSTD::abs;</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">                           ^</span><br style="color: rgb(0, 0, 153);"><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">1 error detected in the compilation of &quot;grid_stat_conf_info.cc&quot;.</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">make[3]: *** [grid_stat_conf_info.o] Error 2</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">make[2]: *** [all] Error 2</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">make[1]: *** [targets] Error 2</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">make: *** [all] Error 2</span><br><br clear="all"><font color="#000000"><font size="4">There you go my Makefile:</font><br>
<br><span style="color: rgb(0, 0, 153);"># Path to GNU Make command</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">MAKE         = /usr/bin/make</span><br style="color: rgb(0, 0, 153);"><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"># Architecture flags</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">ARCH_FLAGS   = -DBLOCK4</span><br style="color: rgb(0, 0, 153);"><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"># Path to the C++ Compiler</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"># C++ compiler flags</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"># Any additional required libraries</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">CXX          = /opt/pgi/linux86/latest/bin/pgCC </span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">CXX_FLAGS    = -Bstatic # -g</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">CXX_LIBS     =</span><br style="color: rgb(0, 0, 153);"><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"># Path to the Fortran Compiler</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"># Fortran compiler flags</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"># Any additional required libraries</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">FC           = /opt/pgi/linux86/latest/bin/pgf77 </span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">FC_FLAGS     = -Bstatic # -g</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">FC_LIBS      = -lpgftnrtl -lrt -lpthread</span><br style="color: rgb(0, 0, 153);">
<br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"># Make print options</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">PRINT_OPTS   = --no-print-directory</span><br style="color: rgb(0, 0, 153);">
<br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"># Top level directory for the NetCDF library</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"># NetCDF include directory specified as: -I/your/include/path</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"># NetCDF library directory specified as: -L/your/library/path</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">NETCDF_BASE  = /home/pmoreira/usr</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">NETCDF_INCS  = -I$(NETCDF_BASE)/include</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">NETCDF_LIBS  = -L$(NETCDF_BASE)/lib</span><br style="color: rgb(0, 0, 153);">
<br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"># Top level directory for BUFRLIB</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"># BUFRLIB include directory specified as: -I/your/include/path</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"># BUFRLIB library directory specified as: -L/your/library/path</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">BUFR_BASE    = /home/pmoreira/usr/BUFR </span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">BUFR_INCS    = -I$(BUFR_BASE)</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">BUFR_LIBS    = -L$(BUFR_BASE)</span><br style="color: rgb(0, 0, 153);"><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"># Top level directory for the GNU Scientific Library (GSL) if it&#39;s not</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"># installed in a standard location.</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"># GSL include directory specified as: -I/your/include/path</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"># GSL library directory specified as: -L/your/library/path</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">GSL_BASE     = /usr</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">GSL_INCS     = -I$(GSL_BASE)/include</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">GSL_LIBS     = -L$(GSL_BASE)/lib</span><br style="color: rgb(0, 0, 153);">
<br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"># Top level directory for the F2C or G2C Library if it&#39;s not installed in a</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"># standard location.</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"># F2C include directory specified as: -I/your/include/path</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"># F2C library directory containing libf2c.a or libg2c.a and specified as:</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"># -L/your/library/path</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"># Name of the library to be used: -lf2c or -lg2c</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">F2C_BASE     =</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">F2C_INCS     =</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">F2C_LIBS     =</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">F2C_LIBNAME  =</span><br style="color: rgb(0, 0, 153);"><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);"># Optional flags to disable the compilation of MET tools</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);"># Specify a non-zero value to disable the compilation of the tool</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">DISABLE_PCP_COMBINE   = 0</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">DISABLE_GEN_POLY_MASK = 0</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">DISABLE_MODE          = 0</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">DISABLE_GRID_STAT     = 0</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">DISABLE_PB2NC         = 0</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">DISABLE_ASCII2NC      = 0</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">DISABLE_POINT_STAT    = 0</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">DISABLE_WAVELET_STAT  = 0</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">DISABLE_STAT_ANALYSIS = 0</span><br style="color: rgb(0, 0, 153);"><span style="color: rgb(0, 0, 153);">DISABLE_MODE_ANALYSIS = 0</span><br>
<br>(...)<br></font>-- <br>Paula Doubrawa Moreira<br><br>Graduate Student - Research Assistant<br>International Arctic Research Center<br>University of Alaska Fairbanks<br>