Bug#1037808: opm-grid: ftbfs with GCC-13

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


Package: src:opm-grid
Version: 2022.10+ds-3
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-grid_2022.10+ds-3_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

[...]
  253 |     constexpr GeometryType(unsigned int topologyId, unsigned int dim, bool isNone)
      |               ^~~~~~~~~~~~
/usr/include/dune/geometry/type.hh:524:71:   in ‘constexpr’ expansion of ‘Dune::GeometryTypes::cube(2)’
/usr/include/dune/geometry/type.hh:524:73: error: ‘constexpr Dune::GeometryType::GeometryType(unsigned int, unsigned int, bool)’ called in a constant expression
  524 |       DUNE_INLINE_VARIABLE constexpr GeometryType quadrilateral = cube(2);
      |                                                                         ^
/usr/include/dune/geometry/type.hh:253:15: note: ‘constexpr Dune::GeometryType::GeometryType(unsigned int, unsigned int, bool)’ declared here
  253 |     constexpr GeometryType(unsigned int topologyId, unsigned int dim, bool isNone)
      |               ^~~~~~~~~~~~
/usr/include/dune/geometry/type.hh:530:72:   in ‘constexpr’ expansion of ‘Dune::GeometryTypes::simplex(3)’
/usr/include/dune/geometry/type.hh:530:74: error: ‘constexpr Dune::GeometryType::GeometryType(unsigned int, unsigned int, bool)’ called in a constant expression
  530 |       DUNE_INLINE_VARIABLE constexpr GeometryType tetrahedron = simplex(3);
      |                                                                          ^
/usr/include/dune/geometry/type.hh:253:15: note: ‘constexpr Dune::GeometryType::GeometryType(unsigned int, unsigned int, bool)’ declared here
  253 |     constexpr GeometryType(unsigned int topologyId, unsigned int dim, bool isNone)
      |               ^~~~~~~~~~~~
/usr/include/dune/geometry/type.hh:536:88: error: ‘constexpr Dune::GeometryType::GeometryType(unsigned int, unsigned int, bool)’ called in a constant expression
  536 |       DUNE_INLINE_VARIABLE constexpr GeometryType pyramid = GeometryType(0b0011,3,false);
      |                                                                                        ^
/usr/include/dune/geometry/type.hh:253:15: note: ‘constexpr Dune::GeometryType::GeometryType(unsigned int, unsigned int, bool)’ declared here
  253 |     constexpr GeometryType(unsigned int topologyId, unsigned int dim, bool isNone)
      |               ^~~~~~~~~~~~
/usr/include/dune/geometry/type.hh:542:86: error: ‘constexpr Dune::GeometryType::GeometryType(unsigned int, unsigned int, bool)’ called in a constant expression
  542 |       DUNE_INLINE_VARIABLE constexpr GeometryType prism = GeometryType(0b0101,3,false);
      |                                                                                      ^
/usr/include/dune/geometry/type.hh:253:15: note: ‘constexpr Dune::GeometryType::GeometryType(unsigned int, unsigned int, bool)’ declared here
  253 |     constexpr GeometryType(unsigned int topologyId, unsigned int dim, bool isNone)
      |               ^~~~~~~~~~~~
/usr/include/dune/geometry/type.hh:548:68:   in ‘constexpr’ expansion of ‘Dune::GeometryTypes::cube(3)’
/usr/include/dune/geometry/type.hh:548:70: error: ‘constexpr Dune::GeometryType::GeometryType(unsigned int, unsigned int, bool)’ called in a constant expression
  548 |       DUNE_INLINE_VARIABLE constexpr GeometryType hexahedron = cube(3);
      |                                                                      ^
/usr/include/dune/geometry/type.hh:253:15: note: ‘constexpr Dune::GeometryType::GeometryType(unsigned int, unsigned int, bool)’ declared here
  253 |     constexpr GeometryType(unsigned int topologyId, unsigned int dim, bool isNone)
      |               ^~~~~~~~~~~~
/usr/include/dune/geometry/type.hh:568:25: error: ‘Dune::GeometryType::Id’ has not been declared
  568 |     template< template< GeometryType::Id > class Operation, int dim, GeometryType::Id geometryId = GeometryTypes::vertex >
      |                         ^~~~~~~~~~~~
/usr/include/dune/geometry/type.hh:568:70: error: ‘Dune::GeometryType::Id’ has not been declared
  568 |     template< template< GeometryType::Id > class Operation, int dim, GeometryType::Id geometryId = GeometryTypes::vertex >
      |                                                                      ^~~~~~~~~~~~
/usr/include/dune/geometry/type.hh:571:48: error: ‘geometryId’ was not declared in this scope; did you mean ‘GeometryType’?
  571 |       static constexpr GeometryType geometry = geometryId;
      |                                                ^~~~~~~~~~
      |                                                GeometryType
/usr/include/dune/geometry/type.hh:584:25: error: ‘Dune::GeometryType::Id’ has not been declared
  584 |     template< template< GeometryType::Id > class Operation, GeometryType::Id geometryId >
      |                         ^~~~~~~~~~~~
/usr/include/dune/geometry/type.hh:584:61: error: ‘Dune::GeometryType::Id’ has not been declared
  584 |     template< template< GeometryType::Id > class Operation, GeometryType::Id geometryId >
      |                                                             ^~~~~~~~~~~~
/usr/include/dune/geometry/type.hh:585:42: error: ‘geometryId’ was not declared in this scope; did you mean ‘GeometryType’?
  585 |     struct IfGeometryType< Operation, 0, geometryId>
      |                                          ^~~~~~~~~~
      |                                          GeometryType
/usr/include/dune/geometry/type.hh:585:52: error: type/value mismatch at argument 1 in template parameter list for ‘template<template<<typeprefixerror><anonymous> > class Operation, int dim, <declaration error> > struct Dune::Impl::IfGeometryType’
  585 |     struct IfGeometryType< Operation, 0, geometryId>
      |                                                    ^
/usr/include/dune/geometry/type.hh:585:52: note:   expected a template of type ‘template<<typeprefixerror><anonymous> > class Operation’, got ‘template<<typeprefixerror><anonymous> > class Operation’
/usr/include/dune/geometry/type.hh:585:52: error: template argument 3 is invalid
make[3]: *** [CMakeFiles/opmgrid.dir/build.make:149: CMakeFiles/opmgrid.dir/opm/grid/cpgrid/PartitionTypeIndicator.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:187: CMakeFiles/opmgrid.dir/all] Error 2
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:11: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the debian-science-maintainers mailing list