[Met_help] [rt.rap.ucar.edu #90543] History for MET 8.1 Compile Problem
John Halley Gotway via RT
met_help at ucar.edu
Tue Jul 9 12:06:43 MDT 2019
----------------------------------------------------------------
Initial Request
----------------------------------------------------------------
Hi MET Help,
I am a sysadmin trying to compile MET 8.1 on a Debian install with GCC 9.1.0. I started with the stock GCC 6.3.0, but ran into this some problem. I upgraded to 9.1.0 in case this was just a bug in 6.3.0, but to no avail. As per instructions, I freshly un-tarred met-8.1.20190503.tar.gz, ran
./configure --prefix=/usr/local/met-8.1 --enable-grib2 MET_NETCDF=/usr/local/netcdf4-gcc MET_HDF5=/usr/local/hdf5-gcc 2>&1 | tee ~/configure.out
then ran
make 2>&1 | tee ~/make.out
The initial error is
data_line.cc:202<http://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>’})
202 | out << prefix << sstream << Line.substr(j) << "\"\n";
| ~~~~~~~~~~~~~ ^~ ~~~~~~~
| | |
| | std::ostringstream {aka std::__cxx11::basic_ostringstream<char>}
| std::ostream {aka std::basic_ostream<char>}
I'm not good enough with C++ to figure out what's going wrong. Hopefully someone can help me figure this out.
Thanks,
---
Matthew Bishop
System Administrator
Department of Atmospheric Science
Colorado State University
970-491-8324
IT pool email: help at atmos.colostate.edu<mailto:help at atmos.colostate.edu>
----------------------------------------------------------------
Complete Ticket History
----------------------------------------------------------------
Subject: MET 8.1 Compile Problem
From: John Halley Gotway
Time: Mon Jun 10 16:43:41 2019
Hello Matthew,
I see you're having trouble compiling met-8.1 with newer versions of
GNU.
We are aware of this issue and are actively working on a fix. Here's
the
GitHub issue that describes the problem:
https://github.com/NCAR/MET/issues/1139
Once we have a fix ready, we'll do a met-8.1.1 bugfix release. met-
8.1
does compile with earlier versions of GNU (4.9.2 for example) but
isn't
compiling with 6.3.0 and later. It also compiles and runs fine with
Intel
compilers.
Sorry for the trouble. We made several changes to how character
arrays and
strings are handled in the code to address warnings raised by the
Fortify
static code analysis tool. Unfortunately, these "fixes" led to
compilation
and runtime problems in more recent GNU versions. If you haven't
already
done so, please register for MET updates. Then you'll receive an
email
when met-8.1.1 is available:
https://dtcenter.org/community-code/model-evaluation-tools-
met/subscribe
Thanks,
John Halley Gotway
On Mon, Jun 10, 2019 at 4:00 PM Bishop,Matt via RT <met_help at ucar.edu>
wrote:
>
> Mon Jun 10 16:00:11 2019: Request 90543 was acted upon.
> Transaction: Ticket created by Matthew.Bishop at colostate.edu
> Queue: met_help
> Subject: MET 8.1 Compile Problem
> Owner: Nobody
> Requestors: Matthew.Bishop at colostate.edu
> Status: new
> Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=90543 >
>
>
> Hi MET Help,
>
> I am a sysadmin trying to compile MET 8.1 on a Debian install with
GCC
> 9.1.0. I started with the stock GCC 6.3.0, but ran into this some
> problem. I upgraded to 9.1.0 in case this was just a bug in 6.3.0,
but to
> no avail. As per instructions, I freshly un-tarred
> met-8.1.20190503.tar.gz, ran
>
> ./configure --prefix=/usr/local/met-8.1 --enable-grib2
> MET_NETCDF=/usr/local/netcdf4-gcc MET_HDF5=/usr/local/hdf5-gcc 2>&1
| tee
> ~/configure.out
>
> then ran
>
> make 2>&1 | tee ~/make.out
>
> The initial error is
>
> data_line.cc:202<http://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>’})
> 202 | out << prefix << sstream << Line.substr(j) << "\"\n";
> | ~~~~~~~~~~~~~ ^~ ~~~~~~~
> | | |
> | | std::ostringstream {aka
> std::__cxx11::basic_ostringstream<char>}
> | std::ostream {aka std::basic_ostream<char>}
>
> I'm not good enough with C++ to figure out what's going wrong.
Hopefully
> someone can help me figure this out.
>
>
> Thanks,
> ---
> Matthew Bishop
> System Administrator
> Department of Atmospheric Science
> Colorado State University
> 970-491-8324
>
> IT pool email:
help at atmos.colostate.edu<mailto:help at atmos.colostate.edu>
>
>
>
------------------------------------------------
Subject: MET 8.1 Compile Problem
From: Bishop,Matt
Time: Mon Jun 10 16:54:50 2019
Thank you, John. I'm signed up to the mailing list now. I'll
patiently await your fix.
Matt
On Jun 10, 2019, at 4:43 PM, John Halley Gotway via RT
<met_help at ucar.edu<mailto:met_help at ucar.edu>> wrote:
Hello Matthew,
I see you're having trouble compiling met-8.1 with newer versions of
GNU.
We are aware of this issue and are actively working on a fix. Here's
the
GitHub issue that describes the problem:
https://github.com/NCAR/MET/issues/1139
Once we have a fix ready, we'll do a met-8.1.1 bugfix release. met-
8.1
does compile with earlier versions of GNU (4.9.2 for example) but
isn't
compiling with 6.3.0 and later. It also compiles and runs fine with
Intel
compilers.
Sorry for the trouble. We made several changes to how character
arrays and
strings are handled in the code to address warnings raised by the
Fortify
static code analysis tool. Unfortunately, these "fixes" led to
compilation
and runtime problems in more recent GNU versions. If you haven't
already
done so, please register for MET updates. Then you'll receive an
email
when met-8.1.1 is available:
https://dtcenter.org/community-code/model-evaluation-tools-
met/subscribe
Thanks,
John Halley Gotway
On Mon, Jun 10, 2019 at 4:00 PM Bishop,Matt via RT
<met_help at ucar.edu<mailto:met_help at ucar.edu>>
wrote:
Mon Jun 10 16:00:11 2019: Request 90543 was acted upon.
Transaction: Ticket created by
Matthew.Bishop at colostate.edu<mailto:Matthew.Bishop at colostate.edu>
Queue: met_help
Subject: MET 8.1 Compile Problem
Owner: Nobody
Requestors:
Matthew.Bishop at colostate.edu<mailto:Matthew.Bishop at colostate.edu>
Status: new
Ticket <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=90543 >
Hi MET Help,
I am a sysadmin trying to compile MET 8.1 on a Debian install with GCC
9.1.0. I started with the stock GCC 6.3.0, but ran into this some
problem. I upgraded to 9.1.0 in case this was just a bug in 6.3.0,
but to
no avail. As per instructions, I freshly un-tarred
met-8.1.20190503.tar.gz, ran
./configure --prefix=/usr/local/met-8.1 --enable-grib2
MET_NETCDF=/usr/local/netcdf4-gcc MET_HDF5=/usr/local/hdf5-gcc 2>&1 |
tee
~/configure.out
then ran
make 2>&1 | tee ~/make.out
The initial error is
data_line.cc:202<http://data_line.cc:202><http://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>’})
202 | out << prefix << sstream << Line.substr(j) << "\"\n";
| ~~~~~~~~~~~~~ ^~ ~~~~~~~
| | |
| | std::ostringstream {aka
std::__cxx11::basic_ostringstream<char>}
| std::ostream {aka std::basic_ostream<char>}
I'm not good enough with C++ to figure out what's going wrong.
Hopefully
someone can help me figure this out.
Thanks,
---
Matthew Bishop
System Administrator
Department of Atmospheric Science
Colorado State University
970-491-8324
IT pool email:
help at atmos.colostate.edu<mailto:help at atmos.colostate.edu><mailto:help at atmos.colostate.edu>
---
Matthew Bishop
System Administrator
Department of Atmospheric Science
Colorado State University
970-491-8324
IT pool email:
help at atmos.colostate.edu<mailto:help at atmos.colostate.edu>
------------------------------------------------
More information about the Met_help
mailing list