Bug#1037811: opm-simulators: ftbfs with GCC-13

Matthias Klose doko at debian.org
Wed Jun 14 10:29:44 BST 2023


Package: src:opm-simulators
Version: 2022.10+ds-2
Severity: normal
Tags: sid trixie
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-13

[This bug is targeted to the upcoming trixie release]

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-13/g++-13, but succeeds to build with gcc-12/g++-12. The
severity of this report will be raised before the trixie release.

The full build log can be found at:
http://qa-logs.debian.net/2023/05/22/logs/opm-simulators_2022.10+ds-2_unstable_gccexp.log
The last lines of the build log are at the end of this report.

To build with GCC 13, either set CC=gcc-13 CXX=g++-13 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-13/porting_to.html

[...]
  592 |     for (auto&& trans: trans_) {
      |     ^~~
      |     std::begin
In file included from /usr/include/c++/13/array:44,
                 from /usr/include/opm/grid/common/CartesianIndexMapper.hpp:4,
                 from /<<PKGBUILDDIR>>/ebos/ecltransmissibility.hh:31:
/usr/include/c++/13/bits/range_access.h:114:37: note: ‘std::begin’ declared here
  114 |   template<typename _Tp> const _Tp* begin(const valarray<_Tp>&) noexcept;
      |                                     ^~~~~
/<<PKGBUILDDIR>>/ebos/ecltransmissibility.cc:592:5: error: ‘end’ was not declared in this scope
  592 |     for (auto&& trans: trans_) {
      |     ^~~
/<<PKGBUILDDIR>>/ebos/ecltransmissibility.cc:592:5: note: suggested alternatives:
/usr/include/c++/13/bits/range_access.h:116:37: note:   ‘std::end’
  116 |   template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept;
      |                                     ^~~
In file included from /usr/include/opm/input/eclipse/Units/UnitSystem.hpp:29,
                 from /usr/include/opm/input/eclipse/Schedule/Well/Well.hpp:53,
                 from /usr/include/opm/grid/utility/OpmParserIncludes.hpp:26,
                 from /usr/include/opm/grid/cpgrid/CpGridData.hpp:89,
                 from /usr/include/opm/grid/cpgrid/Iterators.hpp:171,
                 from /usr/include/opm/grid/cpgrid/Entity.hpp:266,
                 from /usr/include/opm/grid/CpGrid.hpp:67,
                 from /<<PKGBUILDDIR>>/ebos/ecltransmissibility.cc:30:
/usr/include/opm/input/eclipse/Schedule/UDQ/UDQEnums.hpp:126:5: note:   ‘Opm::UDQTokenType::end’
  126 |     end = 100
      |     ^~~
/<<PKGBUILDDIR>>/ebos/ecltransmissibility.cc: In instantiation of ‘void Opm::EclTransmissibility<Grid, GridView, ElementMapper, CartesianIndexMapper, Scalar>::removeSmallNonCartesianTransmissibilities_() [with Grid = Dune::PolyhedralGrid<3, 3, double>; GridView = Dune::GridView<Dune::PolyhedralGridViewTraits<3, 3, double, Dune::All_Partition> >; ElementMapper = Dune::MultipleCodimMultipleGeomTypeMapper<Dune::GridView<Dune::PolyhedralGridViewTraits<3, 3, double, Dune::All_Partition> > >; CartesianIndexMapper = Dune::CartesianIndexMapper<Dune::PolyhedralGrid<3, 3, double> >; Scalar = double]’:
/<<PKGBUILDDIR>>/ebos/ecltransmissibility.cc:1149:16:   required from here
/<<PKGBUILDDIR>>/ebos/ecltransmissibility.cc:592:5: error: ‘begin’ was not declared in this scope; did you mean ‘std::begin’?
  592 |     for (auto&& trans: trans_) {
      |     ^~~
      |     std::begin
/usr/include/c++/13/bits/range_access.h:114:37: note: ‘std::begin’ declared here
  114 |   template<typename _Tp> const _Tp* begin(const valarray<_Tp>&) noexcept;
      |                                     ^~~~~
/<<PKGBUILDDIR>>/ebos/ecltransmissibility.cc:592:5: error: ‘end’ was not declared in this scope
  592 |     for (auto&& trans: trans_) {
      |     ^~~
/<<PKGBUILDDIR>>/ebos/ecltransmissibility.cc:592:5: note: suggested alternatives:
/usr/include/c++/13/bits/range_access.h:116:37: note:   ‘std::end’
  116 |   template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept;
      |                                     ^~~
/usr/include/opm/input/eclipse/Schedule/UDQ/UDQEnums.hpp:126:5: note:   ‘Opm::UDQTokenType::end’
  126 |     end = 100
      |     ^~~
make[3]: *** [CMakeFiles/opmsimulators.dir/build.make:219: CMakeFiles/opmsimulators.dir/ebos/ecltransmissibility.cc.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:330: CMakeFiles/opmsimulators.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 25%] Built target flow_libpolymer
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 25%] Built target flow_liboilwater
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 25%] Built target flow_liboilwater_brine
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 25%] Built target flow_libgaswater_brine
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 25%] Built target flow_liboilwater_polymer
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 25%] Built target flow_liboilwater_polymer_injectivity
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 25%] Built target flow_libmicp
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:149: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j8 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:29: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the debian-science-maintainers mailing list