[Met_help] [rt.rap.ucar.edu #90399] History for met 8.1 linux failures

Howard Soh via RT met_help at ucar.edu
Wed Jun 5 07:55:42 MDT 2019


----------------------------------------------------------------
  Initial Request
----------------------------------------------------------------

Hi,
I built 7.0 patched from source on linux system, and using the same 
build script and compilers, I get met 8.1 errors, the first being -
g++ -DHAVE_CONFIG_H -I. -I../../..  -I../../../src/basic/vx_cal -fPIC 
-I../../../src/basic/vx_config -I../../../src/basic/vx_log 
-I../../../src/basic/vx_math -I../../../src/basic/vx_util 
-I../../../src/libcode/vx_afm -I../../../src/libcode/vx_analysis_util 
-I../../../src/libcode/vx_color -I../../../src/libcode/vx_data2d 
-I../../../src/libcode/vx_data2d_factory 
-I../../../src/libcode/vx_data2d_grib 
-I../../../src/libcode/vx_data2d_grib2 
-I../../../src/libcode/vx_data2d_nccf 
-I../../../src/libcode/vx_data2d_nc_met 
-I../../../src/libcode/vx_data2d_nc_pinterp 
-I../../../src/libcode/vx_data2d_python 
-I../../../src/libcode/vx_python_utils -I../../../src/libcode/vx_geodesy 
-I../../../src/libcode/vx_gis -I../../../src/libcode/vx_gnomon 
-I../../../src/libcode/vx_grid -I../../../src/libcode/vx_gsl_prob 
-I../../../src/libcode/vx_nav -I../../../src/libcode/vx_nc_obs 
-I../../../src/libcode/vx_nc_util -I../../../src/libcode/vx_pb_util 
-I../../../src/libcode/vx_plot_util -I../../../src/libcode/vx_ps 
-I../../../src/libcode/vx_pxm -I../../../src/libcode/vx_render 
-I../../../src/libcode/vx_regrid -I../../../src/libcode/vx_shapedata 
-I../../../src/libcode/vx_solar -I../../../src/libcode/vx_statistics 
-I../../../src/libcode/vx_stat_out -I../../../src/libcode/vx_summary 
-I../../../src/libcode/vx_time_series -I../../../src/libcode/vx_tc_util 
-I/usr/local/gfortran-7.3/include -I/usr/local/gfortran-7.3/include 
-I/usr/local/gfortran-7.3/include -I/usr/local/gfortran-7.3/include 
-I/usr/local/gfortran-7.3/src/hdfeos5/include 
-I/usr/local/gfortran-7.3/include -DBLOCK4 -DWITH_GRIB2 
-DMET_BASE="\"/usr/local/gfortran-7.3/met/share/met\""  -fPIC -w -m64  
-MT libvx_util_a-data_line.o -MD -MP -MF 
.deps/libvx_util_a-data_line.Tpo -c -o libvx_util_a-data_line.o `test -f 
'data_line.cc' || echo './'`data_line.cc
data_line.cc: In member function 'void DataLine::dump(std::ostream&, 
int) const':
data_line.cc:202:18: error: no match for 'operator<<' (operand types are 
'std::ostream {aka std::basic_ostream<char>}' and 'std::ostringstream 
{aka std::__cxx11::basic_ostringstream<char>}')
     out << prefix << sstream << Line.substr(j) << "\"\n";
     ~~~~~~~~~~~~~~^~~~~~~~~~
data_line.cc:202:18: note: candidate: operator<<(int, int) <built-in>
data_line.cc:202:18: note:   no known conversion for argument 2 from 
'std::ostringstream {aka std::__cxx11::basic_ostringstream<char>}' to 'int'
In file included from 
/usr/local/gfortran-7.3/include/c++/7.3.0/iostream:39:0,
                  from data_line.cc:16:

Hopefully this is an easy solution I am not a g++ programmer.
With 7.0 I had -fpermissive, but I have tried 8.1 with and without that 
parameter.
With permissive the first error is
g++ -DHAVE_CONFIG_H -I. -I../../..  -I../../../src/basic/vx_cal 
-I../../../src/basic/vx_config -I../../../src/basic/vx_log 
-I../../../src/basic/vx_math -I../../../src/basic/vx_util 
-I../../../src/libcode/vx_afm -I../../../src/libcode/vx_analysis_util 
-I../../../src/libcode/vx_color -I../../../src/libcode/vx_data2d 
-I../../../src/libcode/vx_data2d_factory 
-I../../../src/libcode/vx_data2d_grib 
-I../../../src/libcode/vx_data2d_grib2 
-I../../../src/libcode/vx_data2d_nccf 
-I../../../src/libcode/vx_data2d_nc_met 
-I../../../src/libcode/vx_data2d_nc_pinterp 
-I../../../src/libcode/vx_geodesy -I../../../src/libcode/vx_gis 
-I../../../src/libcode/vx_gnomon -I../../../src/libcode/vx_grid 
-I../../../src/libcode/vx_gsl_prob -I../../../src/libcode/vx_nav 
-I../../../src/libcode/vx_nc_util -I../../../src/libcode/vx_pb_util 
-I../../../src/libcode/vx_plot_util -I../../../src/libcode/vx_ps 
-I../../../src/libcode/vx_pxm -I../../../src/libcode/vx_render 
-I../../../src/libcode/vx_regrid -I../../../src/libcode/vx_shapedata 
-I../../../src/libcode/vx_solar -I../../../src/libcode/vx_statistics 
-I../../../src/libcode/vx_stat_out -I../../../src/libcode/vx_summary 
-I../../../src/libcode/vx_time_series -I../../../src/libcode/vx_tc_util 
-I/usr/local/gfortran-7.3/include -I/usr/local/gfortran-7.3/include 
-I/usr/local/gfortran-7.3/include -I/usr/local/gfortran-7.3/include 
-I/usr/local/gfortran-7.3/src/hdfeos5/include 
-I/usr/local/gfortran-7.3/include -DBLOCK4 -DWITH_GRIB2 
-DMET_BASE="\"/usr/local/gfortran-7.3/met/share/met\""  -fPIC -w -m64  
-MT libvx_statistics_a-compute_ci.o -MD -MP -MF 
.deps/libvx_statistics_a-compute_ci.Tpo -c -o 
libvx_statistics_a-compute_ci.o `test -f 'compute_ci.cc' || echo 
'./'`compute_ci.cc
compute_ci.cc: In function 'void compute_cts_stats_ci_bca(const 
gsl_rng*, const NumArray&, const NumArray&, int, CTSInfo*&, int, int, 
int, const char*)':
compute_ci.cc:347:55: error: invalid conversion from 'char' to 'const 
char*' [-fpermissive]
        cts_i_file[i] = make_temp_file_name(prefix, '\0');
                                                        ^
In file included from ../../../src/basic/vx_util/vx_util.h:50:0,
                  from ../../../src/libcode/vx_gsl_prob/gsl_randist.h:17,
                  from ../../../src/libcode/vx_gsl_prob/vx_gsl_prob.h:19,
                  from compute_ci.h:16,
                  from compute_ci.cc:23:
../../../src/basic/vx_config/temp_file.h:20:21: note:   initializing 
argument 2 of 'ConcatString make_temp_file_name(const char*, const char*)'
  extern ConcatString make_temp_file_name(const char *, const char *);
                      ^~~~~~~~~~~~~~~~~~~
compute_ci.cc:350:55: error: invalid conversion from 'char' to 'const 
char*' [-fpermissive]
        cts_r_file[i] = make_temp_file_name(prefix, '\0');
                                                        ^


I have attached the config.log and my build output files, with no 
-fpermissive

thanks for any assistance,
barry


PS. my build script is basically

export PATH=$dir/bin:$dir/met/bin:$PATH
export LD_LIBRARY_PATH=$dir/lib:$dir/lib64
export CC=gcc
export CFLAGS="-fPIC $1 "
export FC=$2
export FCFLAGS="-fPIC $1 "
export CXX=g++
export CXXFLAGS="-fPIC $1 "
export F77=$2

export MET_NETCDFINC=$dir/include
export MET_NETCDFLIB=$dir/lib
export MET_BUFR=$dir/src/BUFRLIB
export MET_GSL=$dir
export MET_GRIB2CINC=$dir/include
export MET_GRIB2CLIB=$dir/lib
export MET_HDFEOSINC=$dir/src/hdfeos5/include
export MET_HDFEOSLIB=$dir/src/hdfeos5/src/.libs
export MET_CAIROINC=$dir/include
export MET_CAIROLIB=$dir/lib
export MET_HDF5=$dir

mkdir $dir/met
make clean
./configure \
--prefix=$dir/met \
--enable-grib2

-- 

Barry McInnes
325 Broadway
Boulder CO 80304
(303)4976231
barry.j.mcinnes at noaa.gov



----------------------------------------------------------------
  Complete Ticket History
----------------------------------------------------------------

Subject: met 8.1 linux failures
From: Minna Win
Time: Thu May 30 13:30:52 2019

Hello Barry,
It looks like you are having problems building MET8.1 using what you
had
previously used for building MET7.0.  I will try to find another MET
engineer who has more experience with these compiler issues.  Most of
our
staff are out of the office this week, so it may take longer than
usual to
get a resolution to your issue.  Thank you in advance for your
patience.

Regards,
Minna
---------------
Minna Win
NCAR
Research Applications Lab
Phone: 303-497-8423
Fax:   303-497-8401



On Thu, May 30, 2019 at 6:53 PM Barry McInnes (NOAA Affiliate) via RT
<
met_help at ucar.edu> wrote:

>
> Thu May 30 12:52:58 2019: Request 90399 was acted upon.
> Transaction: Ticket created by barry.j.mcinnes at noaa.gov
>        Queue: met_help
>      Subject: met 8.1 linux failures
>        Owner: Nobody
>   Requestors: barry.j.mcinnes at noaa.gov
>       Status: new
>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=90399 >
>
>
> Hi,
> I built 7.0 patched from source on linux system, and using the same
> build script and compilers, I get met 8.1 errors, the first being -
> g++ -DHAVE_CONFIG_H -I. -I../../..  -I../../../src/basic/vx_cal
-fPIC
> -I../../../src/basic/vx_config -I../../../src/basic/vx_log
> -I../../../src/basic/vx_math -I../../../src/basic/vx_util
> -I../../../src/libcode/vx_afm
-I../../../src/libcode/vx_analysis_util
> -I../../../src/libcode/vx_color -I../../../src/libcode/vx_data2d
> -I../../../src/libcode/vx_data2d_factory
> -I../../../src/libcode/vx_data2d_grib
> -I../../../src/libcode/vx_data2d_grib2
> -I../../../src/libcode/vx_data2d_nccf
> -I../../../src/libcode/vx_data2d_nc_met
> -I../../../src/libcode/vx_data2d_nc_pinterp
> -I../../../src/libcode/vx_data2d_python
> -I../../../src/libcode/vx_python_utils
-I../../../src/libcode/vx_geodesy
> -I../../../src/libcode/vx_gis -I../../../src/libcode/vx_gnomon
> -I../../../src/libcode/vx_grid -I../../../src/libcode/vx_gsl_prob
> -I../../../src/libcode/vx_nav -I../../../src/libcode/vx_nc_obs
> -I../../../src/libcode/vx_nc_util -I../../../src/libcode/vx_pb_util
> -I../../../src/libcode/vx_plot_util -I../../../src/libcode/vx_ps
> -I../../../src/libcode/vx_pxm -I../../../src/libcode/vx_render
> -I../../../src/libcode/vx_regrid -I../../../src/libcode/vx_shapedata
> -I../../../src/libcode/vx_solar -I../../../src/libcode/vx_statistics
> -I../../../src/libcode/vx_stat_out -I../../../src/libcode/vx_summary
> -I../../../src/libcode/vx_time_series
-I../../../src/libcode/vx_tc_util
> -I/usr/local/gfortran-7.3/include -I/usr/local/gfortran-7.3/include
> -I/usr/local/gfortran-7.3/include -I/usr/local/gfortran-7.3/include
> -I/usr/local/gfortran-7.3/src/hdfeos5/include
> -I/usr/local/gfortran-7.3/include -DBLOCK4 -DWITH_GRIB2
> -DMET_BASE="\"/usr/local/gfortran-7.3/met/share/met\""  -fPIC -w
-m64
> -MT libvx_util_a-data_line.o -MD -MP -MF
> .deps/libvx_util_a-data_line.Tpo -c -o libvx_util_a-data_line.o
`test -f
> 'data_line.cc' || echo './'`data_line.cc
> data_line.cc: In member function 'void DataLine::dump(std::ostream&,
> int) const':
> data_line.cc:202:18: error: no match for 'operator<<' (operand types
are
> 'std::ostream {aka std::basic_ostream<char>}' and
'std::ostringstream
> {aka std::__cxx11::basic_ostringstream<char>}')
>      out << prefix << sstream << Line.substr(j) << "\"\n";
>      ~~~~~~~~~~~~~~^~~~~~~~~~
> data_line.cc:202:18: note: candidate: operator<<(int, int) <built-
in>
> data_line.cc:202:18: note:   no known conversion for argument 2 from
> 'std::ostringstream {aka std::__cxx11::basic_ostringstream<char>}'
to 'int'
> In file included from
> /usr/local/gfortran-7.3/include/c++/7.3.0/iostream:39:0,
>                   from data_line.cc:16:
>
> Hopefully this is an easy solution I am not a g++ programmer.
> With 7.0 I had -fpermissive, but I have tried 8.1 with and without
that
> parameter.
> With permissive the first error is
> g++ -DHAVE_CONFIG_H -I. -I../../..  -I../../../src/basic/vx_cal
> -I../../../src/basic/vx_config -I../../../src/basic/vx_log
> -I../../../src/basic/vx_math -I../../../src/basic/vx_util
> -I../../../src/libcode/vx_afm
-I../../../src/libcode/vx_analysis_util
> -I../../../src/libcode/vx_color -I../../../src/libcode/vx_data2d
> -I../../../src/libcode/vx_data2d_factory
> -I../../../src/libcode/vx_data2d_grib
> -I../../../src/libcode/vx_data2d_grib2
> -I../../../src/libcode/vx_data2d_nccf
> -I../../../src/libcode/vx_data2d_nc_met
> -I../../../src/libcode/vx_data2d_nc_pinterp
> -I../../../src/libcode/vx_geodesy -I../../../src/libcode/vx_gis
> -I../../../src/libcode/vx_gnomon -I../../../src/libcode/vx_grid
> -I../../../src/libcode/vx_gsl_prob -I../../../src/libcode/vx_nav
> -I../../../src/libcode/vx_nc_util -I../../../src/libcode/vx_pb_util
> -I../../../src/libcode/vx_plot_util -I../../../src/libcode/vx_ps
> -I../../../src/libcode/vx_pxm -I../../../src/libcode/vx_render
> -I../../../src/libcode/vx_regrid -I../../../src/libcode/vx_shapedata
> -I../../../src/libcode/vx_solar -I../../../src/libcode/vx_statistics
> -I../../../src/libcode/vx_stat_out -I../../../src/libcode/vx_summary
> -I../../../src/libcode/vx_time_series
-I../../../src/libcode/vx_tc_util
> -I/usr/local/gfortran-7.3/include -I/usr/local/gfortran-7.3/include
> -I/usr/local/gfortran-7.3/include -I/usr/local/gfortran-7.3/include
> -I/usr/local/gfortran-7.3/src/hdfeos5/include
> -I/usr/local/gfortran-7.3/include -DBLOCK4 -DWITH_GRIB2
> -DMET_BASE="\"/usr/local/gfortran-7.3/met/share/met\""  -fPIC -w
-m64
> -MT libvx_statistics_a-compute_ci.o -MD -MP -MF
> .deps/libvx_statistics_a-compute_ci.Tpo -c -o
> libvx_statistics_a-compute_ci.o `test -f 'compute_ci.cc' || echo
> './'`compute_ci.cc
> compute_ci.cc: In function 'void compute_cts_stats_ci_bca(const
> gsl_rng*, const NumArray&, const NumArray&, int, CTSInfo*&, int,
int,
> int, const char*)':
> compute_ci.cc:347:55: error: invalid conversion from 'char' to
'const
> char*' [-fpermissive]
>         cts_i_file[i] = make_temp_file_name(prefix, '\0');
>                                                         ^
> In file included from ../../../src/basic/vx_util/vx_util.h:50:0,
>                   from
../../../src/libcode/vx_gsl_prob/gsl_randist.h:17,
>                   from
../../../src/libcode/vx_gsl_prob/vx_gsl_prob.h:19,
>                   from compute_ci.h:16,
>                   from compute_ci.cc:23:
> ../../../src/basic/vx_config/temp_file.h:20:21: note:   initializing
> argument 2 of 'ConcatString make_temp_file_name(const char*, const
char*)'
>   extern ConcatString make_temp_file_name(const char *, const char
*);
>                       ^~~~~~~~~~~~~~~~~~~
> compute_ci.cc:350:55: error: invalid conversion from 'char' to
'const
> char*' [-fpermissive]
>         cts_r_file[i] = make_temp_file_name(prefix, '\0');
>                                                         ^
>
>
> I have attached the config.log and my build output files, with no
> -fpermissive
>
> thanks for any assistance,
> barry
>
>
> PS. my build script is basically
>
> export PATH=$dir/bin:$dir/met/bin:$PATH
> export LD_LIBRARY_PATH=$dir/lib:$dir/lib64
> export CC=gcc
> export CFLAGS="-fPIC $1 "
> export FC=$2
> export FCFLAGS="-fPIC $1 "
> export CXX=g++
> export CXXFLAGS="-fPIC $1 "
> export F77=$2
>
> export MET_NETCDFINC=$dir/include
> export MET_NETCDFLIB=$dir/lib
> export MET_BUFR=$dir/src/BUFRLIB
> export MET_GSL=$dir
> export MET_GRIB2CINC=$dir/include
> export MET_GRIB2CLIB=$dir/lib
> export MET_HDFEOSINC=$dir/src/hdfeos5/include
> export MET_HDFEOSLIB=$dir/src/hdfeos5/src/.libs
> export MET_CAIROINC=$dir/include
> export MET_CAIROLIB=$dir/lib
> export MET_HDF5=$dir
>
> mkdir $dir/met
> make clean
> ./configure \
> --prefix=$dir/met \
> --enable-grib2
>
> --
>
> Barry McInnes
> 325 Broadway
> Boulder CO 80304
> (303)4976231
> barry.j.mcinnes at noaa.gov
>
>
>

------------------------------------------------
Subject: met 8.1 linux failures
From: Howard Soh
Time: Mon Jun 03 09:22:43 2019

MET code is not ready to support GNU 6.3 or higher. The next release
will support GNU 6.3 or higher. Meanwhile please build MET with GNU
4.x.

You are compiling with GNU 7.3.0. It's easy to avoid the compile
errors like this, but there are runtime errors because of different
implementation of some APIs (the documentation with "may").

Cheers,
Howard

On Thu May 30 13:30:52 2019, minnawin wrote:
> Hello Barry,
> It looks like you are having problems building MET8.1 using what you
> had
> previously used for building MET7.0.  I will try to find another MET
> engineer who has more experience with these compiler issues.  Most
of
> our
> staff are out of the office this week, so it may take longer than
> usual to
> get a resolution to your issue.  Thank you in advance for your
> patience.
>
> Regards,
> Minna
> ---------------
> Minna Win
> NCAR
> Research Applications Lab
> Phone: 303-497-8423
> Fax:   303-497-8401
>
>
>
> On Thu, May 30, 2019 at 6:53 PM Barry McInnes (NOAA Affiliate) via
RT
> <
> met_help at ucar.edu> wrote:
>
> >
> > Thu May 30 12:52:58 2019: Request 90399 was acted upon.
> > Transaction: Ticket created by barry.j.mcinnes at noaa.gov
> >        Queue: met_help
> >      Subject: met 8.1 linux failures
> >        Owner: Nobody
> >   Requestors: barry.j.mcinnes at noaa.gov
> >       Status: new
> >  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=90399
> > >
> >
> >
> > Hi,
> > I built 7.0 patched from source on linux system, and using the
same
> > build script and compilers, I get met 8.1 errors, the first being
-
> > g++ -DHAVE_CONFIG_H -I. -I../../..  -I../../../src/basic/vx_cal
-fPIC
> > -I../../../src/basic/vx_config -I../../../src/basic/vx_log
> > -I../../../src/basic/vx_math -I../../../src/basic/vx_util
> > -I../../../src/libcode/vx_afm
-I../../../src/libcode/vx_analysis_util
> > -I../../../src/libcode/vx_color -I../../../src/libcode/vx_data2d
> > -I../../../src/libcode/vx_data2d_factory
> > -I../../../src/libcode/vx_data2d_grib
> > -I../../../src/libcode/vx_data2d_grib2
> > -I../../../src/libcode/vx_data2d_nccf
> > -I../../../src/libcode/vx_data2d_nc_met
> > -I../../../src/libcode/vx_data2d_nc_pinterp
> > -I../../../src/libcode/vx_data2d_python
> > -I../../../src/libcode/vx_python_utils
> > -I../../../src/libcode/vx_geodesy
> > -I../../../src/libcode/vx_gis -I../../../src/libcode/vx_gnomon
> > -I../../../src/libcode/vx_grid -I../../../src/libcode/vx_gsl_prob
> > -I../../../src/libcode/vx_nav -I../../../src/libcode/vx_nc_obs
> > -I../../../src/libcode/vx_nc_util
-I../../../src/libcode/vx_pb_util
> > -I../../../src/libcode/vx_plot_util -I../../../src/libcode/vx_ps
> > -I../../../src/libcode/vx_pxm -I../../../src/libcode/vx_render
> > -I../../../src/libcode/vx_regrid
-I../../../src/libcode/vx_shapedata
> > -I../../../src/libcode/vx_solar
-I../../../src/libcode/vx_statistics
> > -I../../../src/libcode/vx_stat_out
-I../../../src/libcode/vx_summary
> > -I../../../src/libcode/vx_time_series
> > -I../../../src/libcode/vx_tc_util
> > -I/usr/local/gfortran-7.3/include -I/usr/local/gfortran-
7.3/include
> > -I/usr/local/gfortran-7.3/include -I/usr/local/gfortran-
7.3/include
> > -I/usr/local/gfortran-7.3/src/hdfeos5/include
> > -I/usr/local/gfortran-7.3/include -DBLOCK4 -DWITH_GRIB2
> > -DMET_BASE="\"/usr/local/gfortran-7.3/met/share/met\""  -fPIC -w
-m64
> > -MT libvx_util_a-data_line.o -MD -MP -MF
> > .deps/libvx_util_a-data_line.Tpo -c -o libvx_util_a-data_line.o
`test
> > -f
> > 'data_line.cc' || echo './'`data_line.cc
> > data_line.cc: In member function 'void
DataLine::dump(std::ostream&,
> > int) const':
> > data_line.cc:202:18: error: no match for 'operator<<' (operand
types
> > are
> > 'std::ostream {aka std::basic_ostream<char>}' and
'std::ostringstream
> > {aka std::__cxx11::basic_ostringstream<char>}')
> >      out << prefix << sstream << Line.substr(j) << "\"\n";
> >      ~~~~~~~~~~~~~~^~~~~~~~~~
> > data_line.cc:202:18: note: candidate: operator<<(int, int) <built-
in>
> > data_line.cc:202:18: note:   no known conversion for argument 2
from
> > 'std::ostringstream {aka std::__cxx11::basic_ostringstream<char>}'
to
> > 'int'
> > In file included from
> > /usr/local/gfortran-7.3/include/c++/7.3.0/iostream:39:0,
> >                   from data_line.cc:16:
> >
> > Hopefully this is an easy solution I am not a g++ programmer.
> > With 7.0 I had -fpermissive, but I have tried 8.1 with and without
> > that
> > parameter.
> > With permissive the first error is
> > g++ -DHAVE_CONFIG_H -I. -I../../..  -I../../../src/basic/vx_cal
> > -I../../../src/basic/vx_config -I../../../src/basic/vx_log
> > -I../../../src/basic/vx_math -I../../../src/basic/vx_util
> > -I../../../src/libcode/vx_afm
-I../../../src/libcode/vx_analysis_util
> > -I../../../src/libcode/vx_color -I../../../src/libcode/vx_data2d
> > -I../../../src/libcode/vx_data2d_factory
> > -I../../../src/libcode/vx_data2d_grib
> > -I../../../src/libcode/vx_data2d_grib2
> > -I../../../src/libcode/vx_data2d_nccf
> > -I../../../src/libcode/vx_data2d_nc_met
> > -I../../../src/libcode/vx_data2d_nc_pinterp
> > -I../../../src/libcode/vx_geodesy -I../../../src/libcode/vx_gis
> > -I../../../src/libcode/vx_gnomon -I../../../src/libcode/vx_grid
> > -I../../../src/libcode/vx_gsl_prob -I../../../src/libcode/vx_nav
> > -I../../../src/libcode/vx_nc_util
-I../../../src/libcode/vx_pb_util
> > -I../../../src/libcode/vx_plot_util -I../../../src/libcode/vx_ps
> > -I../../../src/libcode/vx_pxm -I../../../src/libcode/vx_render
> > -I../../../src/libcode/vx_regrid
-I../../../src/libcode/vx_shapedata
> > -I../../../src/libcode/vx_solar
-I../../../src/libcode/vx_statistics
> > -I../../../src/libcode/vx_stat_out
-I../../../src/libcode/vx_summary
> > -I../../../src/libcode/vx_time_series
> > -I../../../src/libcode/vx_tc_util
> > -I/usr/local/gfortran-7.3/include -I/usr/local/gfortran-
7.3/include
> > -I/usr/local/gfortran-7.3/include -I/usr/local/gfortran-
7.3/include
> > -I/usr/local/gfortran-7.3/src/hdfeos5/include
> > -I/usr/local/gfortran-7.3/include -DBLOCK4 -DWITH_GRIB2
> > -DMET_BASE="\"/usr/local/gfortran-7.3/met/share/met\""  -fPIC -w
-m64
> > -MT libvx_statistics_a-compute_ci.o -MD -MP -MF
> > .deps/libvx_statistics_a-compute_ci.Tpo -c -o
> > libvx_statistics_a-compute_ci.o `test -f 'compute_ci.cc' || echo
> > './'`compute_ci.cc
> > compute_ci.cc: In function 'void compute_cts_stats_ci_bca(const
> > gsl_rng*, const NumArray&, const NumArray&, int, CTSInfo*&, int,
int,
> > int, const char*)':
> > compute_ci.cc:347:55: error: invalid conversion from 'char' to
'const
> > char*' [-fpermissive]
> >         cts_i_file[i] = make_temp_file_name(prefix, '\0');
> >                                                         ^
> > In file included from ../../../src/basic/vx_util/vx_util.h:50:0,
> >                   from
> > ../../../src/libcode/vx_gsl_prob/gsl_randist.h:17,
> >                   from
> > ../../../src/libcode/vx_gsl_prob/vx_gsl_prob.h:19,
> >                   from compute_ci.h:16,
> >                   from compute_ci.cc:23:
> > ../../../src/basic/vx_config/temp_file.h:20:21: note:
initializing
> > argument 2 of 'ConcatString make_temp_file_name(const char*, const
> > char*)'
> >   extern ConcatString make_temp_file_name(const char *, const char
> > *);
> >                       ^~~~~~~~~~~~~~~~~~~
> > compute_ci.cc:350:55: error: invalid conversion from 'char' to
'const
> > char*' [-fpermissive]
> >         cts_r_file[i] = make_temp_file_name(prefix, '\0');
> >                                                         ^
> >
> >
> > I have attached the config.log and my build output files, with no
> > -fpermissive
> >
> > thanks for any assistance,
> > barry
> >
> >
> > PS. my build script is basically
> >
> > export PATH=$dir/bin:$dir/met/bin:$PATH
> > export LD_LIBRARY_PATH=$dir/lib:$dir/lib64
> > export CC=gcc
> > export CFLAGS="-fPIC $1 "
> > export FC=$2
> > export FCFLAGS="-fPIC $1 "
> > export CXX=g++
> > export CXXFLAGS="-fPIC $1 "
> > export F77=$2
> >
> > export MET_NETCDFINC=$dir/include
> > export MET_NETCDFLIB=$dir/lib
> > export MET_BUFR=$dir/src/BUFRLIB
> > export MET_GSL=$dir
> > export MET_GRIB2CINC=$dir/include
> > export MET_GRIB2CLIB=$dir/lib
> > export MET_HDFEOSINC=$dir/src/hdfeos5/include
> > export MET_HDFEOSLIB=$dir/src/hdfeos5/src/.libs
> > export MET_CAIROINC=$dir/include
> > export MET_CAIROLIB=$dir/lib
> > export MET_HDF5=$dir
> >
> > mkdir $dir/met
> > make clean
> > ./configure \
> > --prefix=$dir/met \
> > --enable-grib2
> >
> > --
> >
> > Barry McInnes
> > 325 Broadway
> > Boulder CO 80304
> > (303)4976231
> > barry.j.mcinnes at noaa.gov
> >
> >
> >



------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #90399] met 8.1 linux failures
From: Barry McInnes (NOAA Affiliate)
Time: Mon Jun 03 10:04:53 2019

Hi Howard,
any time frame for the next release.
I still cannot get it to build presumably because netcdf and others
are
all built with gcc 7.3 ?
First failures start here


make[4]: Entering directory `/usr/local/src/met-8.1/src/tools/core'
Making all in ensemble_stat
make[5]: Entering directory
`/usr/local/src/met-8.1/src/tools/core/ensemble_stat'
g++ -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../src/basic/vx_cal
-fPIC -I../../../../src/basic/vx_config -I../../../../src/basic/vx_log
-I../../../../src/basic/vx_math -I../../../../src/basic/vx_util
-I../../../../src/libcode/vx_afm
-I../../../../src/libcode/vx_analysis_util
-I../../../../src/libcode/vx_color -I../../../../src/libcode/vx_data2d
-I../../../../src/libcode/vx_data2d_factory
-I../../../../src/libcode/vx_data2d_grib
-I../../../../src/libcode/vx_data2d_grib2
-I../../../../src/libcode/vx_data2d_nccf
-I../../../../src/libcode/vx_data2d_nc_met
-I../../../../src/libcode/vx_data2d_nc_pinterp
-I../../../../src/libcode/vx_data2d_python
-I../../../../src/libcode/vx_python_utils
-I../../../../src/libcode/vx_geodesy -I../../../../src/libcode/vx_gis
-I../../../../src/libcode/vx_gnomon -I../../../../src/libcode/vx_grid
-I../../../../src/libcode/vx_gsl_prob -I../../../../src/libcode/vx_nav
-I../../../../src/libcode/vx_nc_obs
-I../../../../src/libcode/vx_nc_util
-I../../../../src/libcode/vx_pb_util
-I../../../../src/libcode/vx_plot_util -I../../../../src/libcode/vx_ps
-I../../../../src/libcode/vx_pxm -I../../../../src/libcode/vx_render
-I../../../../src/libcode/vx_regrid
-I../../../../src/libcode/vx_shapedata
-I../../../../src/libcode/vx_solar
-I../../../../src/libcode/vx_statistics
-I../../../../src/libcode/vx_stat_out
-I../../../../src/libcode/vx_summary
-I../../../../src/libcode/vx_time_series
-I../../../../src/libcode/vx_tc_util -I/usr/local/gfortran-7.3/include
-I/usr/local/gfortran-7.3/include -I/usr/local/gfortran-7.3/include
-I/usr/local/gfortran-7.3/include
-I/usr/local/gfortran-7.3/src/hdfeos5/include
-I/usr/local/gfortran-7.3/include -DBLOCK4 -DWITH_GRIB2
-DMET_BASE="\"/usr/local/gfortran-7.3/met/share/met\""  -fPIC -w -m64
-fpermissive -MT ensemble_stat-ensemble_stat.o -MD -MP -MF
.deps/ensemble_stat-ensemble_stat.Tpo -c -o
ensemble_stat-ensemble_stat.o `test -f 'ensemble_stat.cc' || echo
'./'`ensemble_stat.cc
mv -f .deps/ensemble_stat-ensemble_stat.Tpo
.deps/ensemble_stat-ensemble_stat.Po
g++ -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../src/basic/vx_cal
-fPIC -I../../../../src/basic/vx_config -I../../../../src/basic/vx_log
-I../../../../src/basic/vx_math -I../../../../src/basic/vx_util
-I../../../../src/libcode/vx_afm
-I../../../../src/libcode/vx_analysis_util
-I../../../../src/libcode/vx_color -I../../../../src/libcode/vx_data2d
-I../../../../src/libcode/vx_data2d_factory
-I../../../../src/libcode/vx_data2d_grib
-I../../../../src/libcode/vx_data2d_grib2
-I../../../../src/libcode/vx_data2d_nccf
-I../../../../src/libcode/vx_data2d_nc_met
-I../../../../src/libcode/vx_data2d_nc_pinterp
-I../../../../src/libcode/vx_data2d_python
-I../../../../src/libcode/vx_python_utils
-I../../../../src/libcode/vx_geodesy -I../../../../src/libcode/vx_gis
-I../../../../src/libcode/vx_gnomon -I../../../../src/libcode/vx_grid
-I../../../../src/libcode/vx_gsl_prob -I../../../../src/libcode/vx_nav
-I../../../../src/libcode/vx_nc_obs
-I../../../../src/libcode/vx_nc_util
-I../../../../src/libcode/vx_pb_util
-I../../../../src/libcode/vx_plot_util -I../../../../src/libcode/vx_ps
-I../../../../src/libcode/vx_pxm -I../../../../src/libcode/vx_render
-I../../../../src/libcode/vx_regrid
-I../../../../src/libcode/vx_shapedata
-I../../../../src/libcode/vx_solar
-I../../../../src/libcode/vx_statistics
-I../../../../src/libcode/vx_stat_out
-I../../../../src/libcode/vx_summary
-I../../../../src/libcode/vx_time_series
-I../../../../src/libcode/vx_tc_util -I/usr/local/gfortran-7.3/include
-I/usr/local/gfortran-7.3/include -I/usr/local/gfortran-7.3/include
-I/usr/local/gfortran-7.3/include
-I/usr/local/gfortran-7.3/src/hdfeos5/include
-I/usr/local/gfortran-7.3/include -DBLOCK4 -DWITH_GRIB2
-DMET_BASE="\"/usr/local/gfortran-7.3/met/share/met\""  -fPIC -w -m64
-fpermissive -MT ensemble_stat-ensemble_stat_conf_info.o -MD -MP -MF
.deps/ensemble_stat-ensemble_stat_conf_info.Tpo -c -o
ensemble_stat-ensemble_stat_conf_info.o `test -f
'ensemble_stat_conf_info.cc' || echo './'`ensemble_stat_conf_info.cc
mv -f .deps/ensemble_stat-ensemble_stat_conf_info.Tpo
.deps/ensemble_stat-ensemble_stat_conf_info.Po
g++  -fPIC -w -m64 -fpermissive -L../../../../src/basic/vx_cal
-L../../../../src/basic/vx_config -L../../../../src/basic/vx_log
-L../../../../src/basic/vx_math -L../../../../src/basic/vx_util
-L../../../../src/libcode/vx_afm
-L../../../../src/libcode/vx_analysis_util
-L../../../../src/libcode/vx_color -L../../../../src/libcode/vx_data2d
-L../../../../src/libcode/vx_data2d_factory
-L../../../../src/libcode/vx_data2d_grib
-L../../../../src/libcode/vx_data2d_grib2
-L../../../../src/libcode/vx_data2d_nccf
-L../../../../src/libcode/vx_data2d_nc_met
-L../../../../src/libcode/vx_data2d_nc_pinterp
-L../../../../src/libcode/vx_data2d_python
-L../../../../src/libcode/vx_python_utils
-L../../../../src/libcode/vx_geodesy -L../../../../src/libcode/vx_gis
-L../../../../src/libcode/vx_gnomon -L../../../../src/libcode/vx_grid
-L../../../../src/libcode/vx_gsl_prob -L../../../../src/libcode/vx_nav
-L../../../../src/libcode/vx_nc_obs
-L../../../../src/libcode/vx_nc_util
-L../../../../src/libcode/vx_pb_util
-L../../../../src/libcode/vx_plot_util -L../../../../src/libcode/vx_ps
-L../../../../src/libcode/vx_pxm -L../../../../src/libcode/vx_render
-L../../../../src/libcode/vx_regrid
-L../../../../src/libcode/vx_shapedata
-L../../../../src/libcode/vx_solar
-L../../../../src/libcode/vx_statistics
-L../../../../src/libcode/vx_stat_out
-L../../../../src/libcode/vx_summary
-L../../../../src/libcode/vx_time_series
-L../../../../src/libcode/vx_tc_util -L/usr/local/gfortran-7.3/lib
-L/usr/local/gfortran-7.3/lib -L/usr/local/gfortran-7.3/lib
-L/usr/local/gfortran-7.3/lib -L/usr/local/gfortran-
7.3/src/BUFRLIB/lib
-L/usr/local/gfortran-7.3/src/hdfeos5/src/.libs
-L/usr/local/gfortran-7.3/lib -o ensemble_stat
ensemble_stat-ensemble_stat.o ensemble_stat-ensemble_stat_conf_info.o
-lvx_stat_out -lvx_statistics -lvx_shapedata -lvx_gsl_prob
-lvx_analysis_util -lvx_data2d_factory -lvx_data2d_nc_met
-lvx_data2d_grib -lvx_data2d_grib2 -lgrib2c -ljasper -lpng -lz
-lvx_data2d_nc_pinterp  -lvx_data2d_nccf -lvx_data2d -lvx_nc_obs
-lvx_nc_util -lvx_regrid -lvx_grid -lvx_config -lvx_cal -lvx_util
-lvx_math -lvx_color -lvx_log -lm -lnetcdf_c++4 -lnetcdf -lgsl
-lgslcblas
/usr/bin/ld: warning: libnetcdf.so.13, needed by
/usr/local/gfortran-7.3/lib/libnetcdf_c++4.so, may conflict with
libnetcdf.so.15
ensemble_stat-ensemble_stat.o: In function `process_point_obs(int)':
ensemble_stat.cc:(.text+0x4479): undefined reference to
`netCDF::NcVar::getName() const'
../../../../src/libcode/vx_data2d_nc_met/libvx_data2d_nc_met.a(libvx_data2d_nc_met_a-
met_file.o):
In function `MetNcFile::open(char const*)':
met_file.cc:(.text+0x7d1): undefined reference to
`netCDF::NcVar::getName() const'
../../../../src/libcode/vx_data2d_nc_met/libvx_data2d_nc_met.a(libvx_data2d_nc_met_a-
met_file.o):
In function `MetNcFile::dump(std::basic_ostream<char,
std::char_traits<char> >&, int) const':
met_file.cc:(.text+0x14b3): undefined reference to
`netCDF::NcDim::getName() const'
met_file.cc:(.text+0x15ad): undefined reference to
`netCDF::NcDim::getName() const'
met_file.cc:(.text+0x19c8): undefined reference to
`netCDF::NcDim::getName() const'
../../../../src/libcode/vx_data2d_nc_met/libvx_data2d_nc_met.a(libvx_data2d_nc_met_a-
met_file.o):
In function `MetNcFile::data(netCDF::NcVar*, LongArray const&) const':
met_file.cc:(.text+0x1e8b): undefined reference to
`netCDF::NcVar::getName() const'
met_file.cc:(.text+0x1fbe): undefined reference to
`netCDF::NcVar::getName() const'
met_file.cc:(.text+0x24f2): undefined reference to
`netCDF::NcVar::getName() const'
../../../../src/libcode/vx_data2d_nc_met/libvx_data2d_nc_met.a(libvx_data2d_nc_met_a-
met_file.o):
In function `MetNcFile::data(netCDF::NcVar*, LongArray const&,
DataPlane&) const':
met_file.cc:(.text+0x28ab): undefined reference to
`netCDF::NcVar::getName() const'
met_file.cc:(.text+0x29e4): undefined reference to
`netCDF::NcVar::getName() const'
../../../../src/libcode/vx_data2d_nc_met/libvx_data2d_nc_met.a(libvx_data2d_nc_met_a-
met_file.o):met_file.cc:(.text+0x2be1):
more undefined references to `netCDF::NcVar::getName() const' follow
../../../../src/libcode/vx_data2d_nc_met/libvx_data2d_nc_met.a(libvx_data2d_nc_met_a-
met_file.o):
In function `MetNcFile::data(netCDF::NcVar*, LongArray const&,
DataPlane&) const':
met_file.cc:(.text+0x372a): undefined reference to
`netCDF::NcType::getName() const'
met_file.cc:(.text+0x3cc7): undefined reference to
`netCDF::NcVar::getName() const'
../../../../src/libcode/vx_data2d_nc_met/libvx_data2d_nc_met.a(libvx_data2d_nc_met_a-
get_met_grid.o):
In function `read_netcdf_grid_v3(netCDF::NcFile*, Grid&)':
get_met_grid.cc:(.text+0x289): undefined reference to
`netCDF::NcGroup::getAtt(std::basic_string<char,
std::char_traits<char>,
std::allocator<char> > const&, netCDF::NcGroup::Location) const'
../../../../src/libcode/vx_data2d_nc_met/libvx_data2d_nc_met.a(libvx_data2d_nc_met_a-
get_met_grid.o):
In function `read_netcdf_grid_v2(netCDF::NcFile*, Grid&)':
get_met_grid.cc:(.text+0x7a9): undefined reference to
`netCDF::NcGroup::getAtt(std::basic_string<char,
std::char_traits<char>,
std::allocator<char> > const&, netCDF::NcGroup::Location) const'
../../../../src/libcode/vx_data2d_nc_pinterp/libvx_data2d_nc_pinterp.a(libvx_data2d_nc_pinterp_a-
pinterp_file.o):
In function `PinterpFile::open(char const*)':
pinterp_file.cc:(.text+0xf5d): undefined reference to
`netCDF::NcVar::getName() const'
pinterp_file.cc:(.text+0x1292): undefined reference to
`netCDF::NcVar::getName() const'
pinterp_file.cc:(.text+0x12cc): undefined reference to
`netCDF::NcVar::getName() const'
../../../../src/libcode/vx_data2d_nc_pinterp/libvx_data2d_nc_pinterp.a(libvx_data2d_nc_pinterp_a-
pinterp_file.o):
In function `PinterpFile::dump(std::basic_ostream<char,
std::char_traits<char> >&, int) const':
pinterp_file.cc:(.text+0x1db8): undefined reference to
`netCDF::NcDim::getName() const'
pinterp_file.cc:(.text+0x1eb2): undefined reference to
`netCDF::NcDim::getName() const'
pinterp_file.cc:(.text+0x1fac): undefined reference to
`netCDF::NcDim::getName() const'
pinterp_file.cc:(.text+0x20a6): undefined reference to
`netCDF::NcDim::getName() const'
pinterp_file.cc:(.text+0x279b): undefined reference to
`netCDF::NcDim::getName() const'

On 6/3/19 09:22, Howard Soh via RT wrote:
> MET code is not ready to support GNU 6.3 or higher. The next release
will support GNU 6.3 or higher. Meanwhile please build MET with GNU
4.x.
>
> You are compiling with GNU 7.3.0. It's easy to avoid the compile
errors like this, but there are runtime errors because of different
implementation of some APIs (the documentation with "may").
>
> Cheers,
> Howard
>
> On Thu May 30 13:30:52 2019, minnawin wrote:
>> Hello Barry,
>> It looks like you are having problems building MET8.1 using what
you
>> had
>> previously used for building MET7.0.  I will try to find another
MET
>> engineer who has more experience with these compiler issues.  Most
of
>> our
>> staff are out of the office this week, so it may take longer than
>> usual to
>> get a resolution to your issue.  Thank you in advance for your
>> patience.
>>
>> Regards,
>> Minna
>> ---------------
>> Minna Win
>> NCAR
>> Research Applications Lab
>> Phone: 303-497-8423
>> Fax:   303-497-8401
>>
>>
>>
>> On Thu, May 30, 2019 at 6:53 PM Barry McInnes (NOAA Affiliate) via
RT
>> <
>> met_help at ucar.edu> wrote:
>>
>>> Thu May 30 12:52:58 2019: Request 90399 was acted upon.
>>> Transaction: Ticket created by barry.j.mcinnes at noaa.gov
>>>         Queue: met_help
>>>       Subject: met 8.1 linux failures
>>>         Owner: Nobody
>>>    Requestors: barry.j.mcinnes at noaa.gov
>>>        Status: new
>>>   Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=90399
>>>
>>> Hi,
>>> I built 7.0 patched from source on linux system, and using the
same
>>> build script and compilers, I get met 8.1 errors, the first being
-
>>> g++ -DHAVE_CONFIG_H -I. -I../../..  -I../../../src/basic/vx_cal
-fPIC
>>> -I../../../src/basic/vx_config -I../../../src/basic/vx_log
>>> -I../../../src/basic/vx_math -I../../../src/basic/vx_util
>>> -I../../../src/libcode/vx_afm
-I../../../src/libcode/vx_analysis_util
>>> -I../../../src/libcode/vx_color -I../../../src/libcode/vx_data2d
>>> -I../../../src/libcode/vx_data2d_factory
>>> -I../../../src/libcode/vx_data2d_grib
>>> -I../../../src/libcode/vx_data2d_grib2
>>> -I../../../src/libcode/vx_data2d_nccf
>>> -I../../../src/libcode/vx_data2d_nc_met
>>> -I../../../src/libcode/vx_data2d_nc_pinterp
>>> -I../../../src/libcode/vx_data2d_python
>>> -I../../../src/libcode/vx_python_utils
>>> -I../../../src/libcode/vx_geodesy
>>> -I../../../src/libcode/vx_gis -I../../../src/libcode/vx_gnomon
>>> -I../../../src/libcode/vx_grid -I../../../src/libcode/vx_gsl_prob
>>> -I../../../src/libcode/vx_nav -I../../../src/libcode/vx_nc_obs
>>> -I../../../src/libcode/vx_nc_util
-I../../../src/libcode/vx_pb_util
>>> -I../../../src/libcode/vx_plot_util -I../../../src/libcode/vx_ps
>>> -I../../../src/libcode/vx_pxm -I../../../src/libcode/vx_render
>>> -I../../../src/libcode/vx_regrid
-I../../../src/libcode/vx_shapedata
>>> -I../../../src/libcode/vx_solar
-I../../../src/libcode/vx_statistics
>>> -I../../../src/libcode/vx_stat_out
-I../../../src/libcode/vx_summary
>>> -I../../../src/libcode/vx_time_series
>>> -I../../../src/libcode/vx_tc_util
>>> -I/usr/local/gfortran-7.3/include -I/usr/local/gfortran-
7.3/include
>>> -I/usr/local/gfortran-7.3/include -I/usr/local/gfortran-
7.3/include
>>> -I/usr/local/gfortran-7.3/src/hdfeos5/include
>>> -I/usr/local/gfortran-7.3/include -DBLOCK4 -DWITH_GRIB2
>>> -DMET_BASE="\"/usr/local/gfortran-7.3/met/share/met\""  -fPIC -w
-m64
>>> -MT libvx_util_a-data_line.o -MD -MP -MF
>>> .deps/libvx_util_a-data_line.Tpo -c -o libvx_util_a-data_line.o
`test
>>> -f
>>> 'data_line.cc' || echo './'`data_line.cc
>>> data_line.cc: In member function 'void
DataLine::dump(std::ostream&,
>>> int) const':
>>> data_line.cc:202:18: error: no match for 'operator<<' (operand
types
>>> are
>>> 'std::ostream {aka std::basic_ostream<char>}' and
'std::ostringstream
>>> {aka std::__cxx11::basic_ostringstream<char>}')
>>>       out << prefix << sstream << Line.substr(j) << "\"\n";
>>>       ~~~~~~~~~~~~~~^~~~~~~~~~
>>> data_line.cc:202:18: note: candidate: operator<<(int, int) <built-
in>
>>> data_line.cc:202:18: note:   no known conversion for argument 2
from
>>> 'std::ostringstream {aka std::__cxx11::basic_ostringstream<char>}'
to
>>> 'int'
>>> In file included from
>>> /usr/local/gfortran-7.3/include/c++/7.3.0/iostream:39:0,
>>>                    from data_line.cc:16:
>>>
>>> Hopefully this is an easy solution I am not a g++ programmer.
>>> With 7.0 I had -fpermissive, but I have tried 8.1 with and without
>>> that
>>> parameter.
>>> With permissive the first error is
>>> g++ -DHAVE_CONFIG_H -I. -I../../..  -I../../../src/basic/vx_cal
>>> -I../../../src/basic/vx_config -I../../../src/basic/vx_log
>>> -I../../../src/basic/vx_math -I../../../src/basic/vx_util
>>> -I../../../src/libcode/vx_afm
-I../../../src/libcode/vx_analysis_util
>>> -I../../../src/libcode/vx_color -I../../../src/libcode/vx_data2d
>>> -I../../../src/libcode/vx_data2d_factory
>>> -I../../../src/libcode/vx_data2d_grib
>>> -I../../../src/libcode/vx_data2d_grib2
>>> -I../../../src/libcode/vx_data2d_nccf
>>> -I../../../src/libcode/vx_data2d_nc_met
>>> -I../../../src/libcode/vx_data2d_nc_pinterp
>>> -I../../../src/libcode/vx_geodesy -I../../../src/libcode/vx_gis
>>> -I../../../src/libcode/vx_gnomon -I../../../src/libcode/vx_grid
>>> -I../../../src/libcode/vx_gsl_prob -I../../../src/libcode/vx_nav
>>> -I../../../src/libcode/vx_nc_util
-I../../../src/libcode/vx_pb_util
>>> -I../../../src/libcode/vx_plot_util -I../../../src/libcode/vx_ps
>>> -I../../../src/libcode/vx_pxm -I../../../src/libcode/vx_render
>>> -I../../../src/libcode/vx_regrid
-I../../../src/libcode/vx_shapedata
>>> -I../../../src/libcode/vx_solar
-I../../../src/libcode/vx_statistics
>>> -I../../../src/libcode/vx_stat_out
-I../../../src/libcode/vx_summary
>>> -I../../../src/libcode/vx_time_series
>>> -I../../../src/libcode/vx_tc_util
>>> -I/usr/local/gfortran-7.3/include -I/usr/local/gfortran-
7.3/include
>>> -I/usr/local/gfortran-7.3/include -I/usr/local/gfortran-
7.3/include
>>> -I/usr/local/gfortran-7.3/src/hdfeos5/include
>>> -I/usr/local/gfortran-7.3/include -DBLOCK4 -DWITH_GRIB2
>>> -DMET_BASE="\"/usr/local/gfortran-7.3/met/share/met\""  -fPIC -w
-m64
>>> -MT libvx_statistics_a-compute_ci.o -MD -MP -MF
>>> .deps/libvx_statistics_a-compute_ci.Tpo -c -o
>>> libvx_statistics_a-compute_ci.o `test -f 'compute_ci.cc' || echo
>>> './'`compute_ci.cc
>>> compute_ci.cc: In function 'void compute_cts_stats_ci_bca(const
>>> gsl_rng*, const NumArray&, const NumArray&, int, CTSInfo*&, int,
int,
>>> int, const char*)':
>>> compute_ci.cc:347:55: error: invalid conversion from 'char' to
'const
>>> char*' [-fpermissive]
>>>          cts_i_file[i] = make_temp_file_name(prefix, '\0');
>>>                                                          ^
>>> In file included from ../../../src/basic/vx_util/vx_util.h:50:0,
>>>                    from
>>> ../../../src/libcode/vx_gsl_prob/gsl_randist.h:17,
>>>                    from
>>> ../../../src/libcode/vx_gsl_prob/vx_gsl_prob.h:19,
>>>                    from compute_ci.h:16,
>>>                    from compute_ci.cc:23:
>>> ../../../src/basic/vx_config/temp_file.h:20:21: note:
initializing
>>> argument 2 of 'ConcatString make_temp_file_name(const char*, const
>>> char*)'
>>>    extern ConcatString make_temp_file_name(const char *, const
char
>>> *);
>>>                        ^~~~~~~~~~~~~~~~~~~
>>> compute_ci.cc:350:55: error: invalid conversion from 'char' to
'const
>>> char*' [-fpermissive]
>>>          cts_r_file[i] = make_temp_file_name(prefix, '\0');
>>>                                                          ^
>>>
>>>
>>> I have attached the config.log and my build output files, with no
>>> -fpermissive
>>>
>>> thanks for any assistance,
>>> barry
>>>
>>>
>>> PS. my build script is basically
>>>
>>> export PATH=$dir/bin:$dir/met/bin:$PATH
>>> export LD_LIBRARY_PATH=$dir/lib:$dir/lib64
>>> export CC=gcc
>>> export CFLAGS="-fPIC $1 "
>>> export FC=$2
>>> export FCFLAGS="-fPIC $1 "
>>> export CXX=g++
>>> export CXXFLAGS="-fPIC $1 "
>>> export F77=$2
>>>
>>> export MET_NETCDFINC=$dir/include
>>> export MET_NETCDFLIB=$dir/lib
>>> export MET_BUFR=$dir/src/BUFRLIB
>>> export MET_GSL=$dir
>>> export MET_GRIB2CINC=$dir/include
>>> export MET_GRIB2CLIB=$dir/lib
>>> export MET_HDFEOSINC=$dir/src/hdfeos5/include
>>> export MET_HDFEOSLIB=$dir/src/hdfeos5/src/.libs
>>> export MET_CAIROINC=$dir/include
>>> export MET_CAIROLIB=$dir/lib
>>> export MET_HDF5=$dir
>>>
>>> mkdir $dir/met
>>> make clean
>>> ./configure \
>>> --prefix=$dir/met \
>>> --enable-grib2
>>>
>>> --
>>>
>>> Barry McInnes
>>> 325 Broadway
>>> Boulder CO 80304
>>> (303)4976231
>>> barry.j.mcinnes at noaa.gov
>>>
>>>
>>>
>
>

--

Barry McInnes
325 Broadway
Boulder CO 80304
(303)4976231
barry.j.mcinnes at noaa.gov


------------------------------------------------
Subject: met 8.1 linux failures
From: John Halley Gotway
Time: Mon Jun 03 12:02:57 2019

Howard,

I realize that compiling met-8.1 with GNU 7.3.0 will require many
small changes.  And for that reason you were thinking we'd hold off
until the met-9.0 release.  But that's going to be many months from
now.  I'd be in favor of fixing this in the master_v8.1 branch and
including these changes in the met-8.1.1 release.

Have you been working on this?

Thanks,
John

------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #90399] met 8.1 linux failures
From: Barry McInnes (NOAA Affiliate)
Time: Tue Jun 04 09:51:46 2019

I managed to build it with 4.4, so we will see how that goes,
thanks barry


On 6/3/19 09:22, Howard Soh via RT wrote:
> MET code is not ready to support GNU 6.3 or higher. The next release
will support GNU 6.3 or higher. Meanwhile please build MET with GNU
4.x.
>
> You are compiling with GNU 7.3.0. It's easy to avoid the compile
errors like this, but there are runtime errors because of different
implementation of some APIs (the documentation with "may").
>
> Cheers,
> Howard
>
> On Thu May 30 13:30:52 2019, minnawin wrote:
>> Hello Barry,
>> It looks like you are having problems building MET8.1 using what
you
>> had
>> previously used for building MET7.0.  I will try to find another
MET
>> engineer who has more experience with these compiler issues.  Most
of
>> our
>> staff are out of the office this week, so it may take longer than
>> usual to
>> get a resolution to your issue.  Thank you in advance for your
>> patience.
>>
>> Regards,
>> Minna
>> ---------------
>> Minna Win
>> NCAR
>> Research Applications Lab
>> Phone: 303-497-8423
>> Fax:   303-497-8401
>>
>>
>>
>> On Thu, May 30, 2019 at 6:53 PM Barry McInnes (NOAA Affiliate) via
RT
>> <
>> met_help at ucar.edu> wrote:
>>
>>> Thu May 30 12:52:58 2019: Request 90399 was acted upon.
>>> Transaction: Ticket created by barry.j.mcinnes at noaa.gov
>>>         Queue: met_help
>>>       Subject: met 8.1 linux failures
>>>         Owner: Nobody
>>>    Requestors: barry.j.mcinnes at noaa.gov
>>>        Status: new
>>>   Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=90399
>>>
>>> Hi,
>>> I built 7.0 patched from source on linux system, and using the
same
>>> build script and compilers, I get met 8.1 errors, the first being
-
>>> g++ -DHAVE_CONFIG_H -I. -I../../..  -I../../../src/basic/vx_cal
-fPIC
>>> -I../../../src/basic/vx_config -I../../../src/basic/vx_log
>>> -I../../../src/basic/vx_math -I../../../src/basic/vx_util
>>> -I../../../src/libcode/vx_afm
-I../../../src/libcode/vx_analysis_util
>>> -I../../../src/libcode/vx_color -I../../../src/libcode/vx_data2d
>>> -I../../../src/libcode/vx_data2d_factory
>>> -I../../../src/libcode/vx_data2d_grib
>>> -I../../../src/libcode/vx_data2d_grib2
>>> -I../../../src/libcode/vx_data2d_nccf
>>> -I../../../src/libcode/vx_data2d_nc_met
>>> -I../../../src/libcode/vx_data2d_nc_pinterp
>>> -I../../../src/libcode/vx_data2d_python
>>> -I../../../src/libcode/vx_python_utils
>>> -I../../../src/libcode/vx_geodesy
>>> -I../../../src/libcode/vx_gis -I../../../src/libcode/vx_gnomon
>>> -I../../../src/libcode/vx_grid -I../../../src/libcode/vx_gsl_prob
>>> -I../../../src/libcode/vx_nav -I../../../src/libcode/vx_nc_obs
>>> -I../../../src/libcode/vx_nc_util
-I../../../src/libcode/vx_pb_util
>>> -I../../../src/libcode/vx_plot_util -I../../../src/libcode/vx_ps
>>> -I../../../src/libcode/vx_pxm -I../../../src/libcode/vx_render
>>> -I../../../src/libcode/vx_regrid
-I../../../src/libcode/vx_shapedata
>>> -I../../../src/libcode/vx_solar
-I../../../src/libcode/vx_statistics
>>> -I../../../src/libcode/vx_stat_out
-I../../../src/libcode/vx_summary
>>> -I../../../src/libcode/vx_time_series
>>> -I../../../src/libcode/vx_tc_util
>>> -I/usr/local/gfortran-7.3/include -I/usr/local/gfortran-
7.3/include
>>> -I/usr/local/gfortran-7.3/include -I/usr/local/gfortran-
7.3/include
>>> -I/usr/local/gfortran-7.3/src/hdfeos5/include
>>> -I/usr/local/gfortran-7.3/include -DBLOCK4 -DWITH_GRIB2
>>> -DMET_BASE="\"/usr/local/gfortran-7.3/met/share/met\""  -fPIC -w
-m64
>>> -MT libvx_util_a-data_line.o -MD -MP -MF
>>> .deps/libvx_util_a-data_line.Tpo -c -o libvx_util_a-data_line.o
`test
>>> -f
>>> 'data_line.cc' || echo './'`data_line.cc
>>> data_line.cc: In member function 'void
DataLine::dump(std::ostream&,
>>> int) const':
>>> data_line.cc:202:18: error: no match for 'operator<<' (operand
types
>>> are
>>> 'std::ostream {aka std::basic_ostream<char>}' and
'std::ostringstream
>>> {aka std::__cxx11::basic_ostringstream<char>}')
>>>       out << prefix << sstream << Line.substr(j) << "\"\n";
>>>       ~~~~~~~~~~~~~~^~~~~~~~~~
>>> data_line.cc:202:18: note: candidate: operator<<(int, int) <built-
in>
>>> data_line.cc:202:18: note:   no known conversion for argument 2
from
>>> 'std::ostringstream {aka std::__cxx11::basic_ostringstream<char>}'
to
>>> 'int'
>>> In file included from
>>> /usr/local/gfortran-7.3/include/c++/7.3.0/iostream:39:0,
>>>                    from data_line.cc:16:
>>>
>>> Hopefully this is an easy solution I am not a g++ programmer.
>>> With 7.0 I had -fpermissive, but I have tried 8.1 with and without
>>> that
>>> parameter.
>>> With permissive the first error is
>>> g++ -DHAVE_CONFIG_H -I. -I../../..  -I../../../src/basic/vx_cal
>>> -I../../../src/basic/vx_config -I../../../src/basic/vx_log
>>> -I../../../src/basic/vx_math -I../../../src/basic/vx_util
>>> -I../../../src/libcode/vx_afm
-I../../../src/libcode/vx_analysis_util
>>> -I../../../src/libcode/vx_color -I../../../src/libcode/vx_data2d
>>> -I../../../src/libcode/vx_data2d_factory
>>> -I../../../src/libcode/vx_data2d_grib
>>> -I../../../src/libcode/vx_data2d_grib2
>>> -I../../../src/libcode/vx_data2d_nccf
>>> -I../../../src/libcode/vx_data2d_nc_met
>>> -I../../../src/libcode/vx_data2d_nc_pinterp
>>> -I../../../src/libcode/vx_geodesy -I../../../src/libcode/vx_gis
>>> -I../../../src/libcode/vx_gnomon -I../../../src/libcode/vx_grid
>>> -I../../../src/libcode/vx_gsl_prob -I../../../src/libcode/vx_nav
>>> -I../../../src/libcode/vx_nc_util
-I../../../src/libcode/vx_pb_util
>>> -I../../../src/libcode/vx_plot_util -I../../../src/libcode/vx_ps
>>> -I../../../src/libcode/vx_pxm -I../../../src/libcode/vx_render
>>> -I../../../src/libcode/vx_regrid
-I../../../src/libcode/vx_shapedata
>>> -I../../../src/libcode/vx_solar
-I../../../src/libcode/vx_statistics
>>> -I../../../src/libcode/vx_stat_out
-I../../../src/libcode/vx_summary
>>> -I../../../src/libcode/vx_time_series
>>> -I../../../src/libcode/vx_tc_util
>>> -I/usr/local/gfortran-7.3/include -I/usr/local/gfortran-
7.3/include
>>> -I/usr/local/gfortran-7.3/include -I/usr/local/gfortran-
7.3/include
>>> -I/usr/local/gfortran-7.3/src/hdfeos5/include
>>> -I/usr/local/gfortran-7.3/include -DBLOCK4 -DWITH_GRIB2
>>> -DMET_BASE="\"/usr/local/gfortran-7.3/met/share/met\""  -fPIC -w
-m64
>>> -MT libvx_statistics_a-compute_ci.o -MD -MP -MF
>>> .deps/libvx_statistics_a-compute_ci.Tpo -c -o
>>> libvx_statistics_a-compute_ci.o `test -f 'compute_ci.cc' || echo
>>> './'`compute_ci.cc
>>> compute_ci.cc: In function 'void compute_cts_stats_ci_bca(const
>>> gsl_rng*, const NumArray&, const NumArray&, int, CTSInfo*&, int,
int,
>>> int, const char*)':
>>> compute_ci.cc:347:55: error: invalid conversion from 'char' to
'const
>>> char*' [-fpermissive]
>>>          cts_i_file[i] = make_temp_file_name(prefix, '\0');
>>>                                                          ^
>>> In file included from ../../../src/basic/vx_util/vx_util.h:50:0,
>>>                    from
>>> ../../../src/libcode/vx_gsl_prob/gsl_randist.h:17,
>>>                    from
>>> ../../../src/libcode/vx_gsl_prob/vx_gsl_prob.h:19,
>>>                    from compute_ci.h:16,
>>>                    from compute_ci.cc:23:
>>> ../../../src/basic/vx_config/temp_file.h:20:21: note:
initializing
>>> argument 2 of 'ConcatString make_temp_file_name(const char*, const
>>> char*)'
>>>    extern ConcatString make_temp_file_name(const char *, const
char
>>> *);
>>>                        ^~~~~~~~~~~~~~~~~~~
>>> compute_ci.cc:350:55: error: invalid conversion from 'char' to
'const
>>> char*' [-fpermissive]
>>>          cts_r_file[i] = make_temp_file_name(prefix, '\0');
>>>                                                          ^
>>>
>>>
>>> I have attached the config.log and my build output files, with no
>>> -fpermissive
>>>
>>> thanks for any assistance,
>>> barry
>>>
>>>
>>> PS. my build script is basically
>>>
>>> export PATH=$dir/bin:$dir/met/bin:$PATH
>>> export LD_LIBRARY_PATH=$dir/lib:$dir/lib64
>>> export CC=gcc
>>> export CFLAGS="-fPIC $1 "
>>> export FC=$2
>>> export FCFLAGS="-fPIC $1 "
>>> export CXX=g++
>>> export CXXFLAGS="-fPIC $1 "
>>> export F77=$2
>>>
>>> export MET_NETCDFINC=$dir/include
>>> export MET_NETCDFLIB=$dir/lib
>>> export MET_BUFR=$dir/src/BUFRLIB
>>> export MET_GSL=$dir
>>> export MET_GRIB2CINC=$dir/include
>>> export MET_GRIB2CLIB=$dir/lib
>>> export MET_HDFEOSINC=$dir/src/hdfeos5/include
>>> export MET_HDFEOSLIB=$dir/src/hdfeos5/src/.libs
>>> export MET_CAIROINC=$dir/include
>>> export MET_CAIROLIB=$dir/lib
>>> export MET_HDF5=$dir
>>>
>>> mkdir $dir/met
>>> make clean
>>> ./configure \
>>> --prefix=$dir/met \
>>> --enable-grib2
>>>
>>> --
>>>
>>> Barry McInnes
>>> 325 Broadway
>>> Boulder CO 80304
>>> (303)4976231
>>> barry.j.mcinnes at noaa.gov
>>>
>>>
>>>
>
>

--

Barry McInnes
325 Broadway
Boulder CO 80304
(303)4976231
barry.j.mcinnes at noaa.gov


------------------------------------------------


More information about the Met_help mailing list