Build Error: jsonResource.cxx/Filter.h with gcc 9.3.1 on RHEL
Hi, I'm getting a build error on RHEL using devtoolset-9 (gcc 9.3.1), has anyone seen this before, or have any suggestions for how to get past? Looks like the offending code is in Filter.h? Thanks for your help!
`
[ 21%] Building CXX object smtk/CMakeFiles/smtkCore.dir/resource/json/jsonResource.cxx.o
cd /projects/wind/cmb/spack-manager/environments/cmb/smtk/spack-build-2twfesa/smtk && /projects/wind/cmb/spack-manager/spack/lib/spack/env/gcc/g++ -DJSON_DIAGNOSTICS=0 -DJSON_USE_IMPLICIT_CONVERSIONS=1 -DsmtkCor
e_EXPORTS -I/projects/wind/cmb/spack-manager/environments/cmb/smtk/spack-build-2twfesa -I/projects/wind/cmb/spack-manager/environments/cmb/smtk -isystem /projects/wind/cmb/spack-manager/environments/cmb/smtk/thi
rdparty -isystem /projects/wind/cmb/spack-manager/environments/cmb/smtk/spack-build-2twfesa/thirdparty -isystem /projects/wind/cmb/spack-manager/environments/cmb/smtk/thirdparty/pugixml -isystem /projects/wind/c
mb/spack-manager/spack/opt/spack/linux-rhel7-cascadelake/gcc-9.3.1/boost-1.68.0-vjg3t6ot4abb62qmptdq4gznyatdxrsp/include -isystem /projects/wind/cmb/spack-manager/spack/opt/spack/linux-rhel7-cascadelake/gcc-9.3.
1/nlohmann-json-3.10.5-3awswsju5y6wgyi4inzlj6sgozfq2d5l/include -isystem /projects/wind/cmb/spack-manager/spack/opt/spack/linux-rhel7-cascadelake/gcc-9.3.1/pegtl-3.2.0-swl7zr7nupdwemg2tjk4ia3f7tnmc7e7/include -i
system /projects/wind/cmb/spack-manager/spack/opt/spack/linux-rhel7-cascadelake/gcc-9.3.1/libarchive-3.5.2-43aevbzgantl6nswkotmfjrmp2rfw2gy/include -fpermissive -O3 -DNDEBUG -fPIC -fvisibility=hidden -std=c++17
-MD -MT smtk/CMakeFiles/smtkCore.dir/resource/json/jsonResource.cxx.o -MF CMakeFiles/smtkCore.dir/resource/json/jsonResource.cxx.o.d -o CMakeFiles/smtkCore.dir/resource/json/jsonResource.cxx.o -c /projects/wind/
cmb/spack-manager/environments/cmb/smtk/smtk/resource/json/jsonResource.cxx
In file included from /projects/wind/cmb/spack-manager/environments/cmb/smtk/smtk/resource/Resource.cxx:18:
/projects/wind/cmb/spack-manager/environments/cmb/smtk/smtk/resource/filter/Filter.h: In member function 'smtk::resource::filter::Rules smtk::resource::filter::Filter::constructRules(const string&)'
:
/projects/wind/cmb/spack-manager/environments/cmb/smtk/smtk/resource/filter/Filter.h:96:26: error: invalid use of member function 'const std::vectortao::pegtl::position& tao::pegtl::parse_error::positions() co
nst' (did you forget the '()' ?)
96 | const auto p = err.positions.front();
| ~~~~^~~~~~~~~
| ()
In file included from /projects/wind/cmb/spack-manager/environments/cmb/smtk/smtk/resource/filter/Filter.h:15,
from /projects/wind/cmb/spack-manager/environments/cmb/smtk/smtk/resource/Resource.cxx:18:
/projects/wind/cmb/spack-manager/environments/cmb/smtk/smtk/resource/filter/Filter.h:100:50: error: 'struct tao::pegtl::string_input<>' has no member named 'line_as_string'
100 | << in.line_as_string(p) << "\n"
| ^~~~~~~~~~~~~~
/projects/wind/cmb/spack-manager/environments/cmb/smtk/smtk/io/Logger.h:41:11: note: in definition of macro 'smtkErrorMacro'
41 | s1 << x; /* NOLINT(bugprone-macro-parentheses) */
| ^
`