Bug#1013072: yade: ftbfs with GCC-12

Matthias Klose doko at debian.org
Thu Jun 16 13:15:17 BST 2022


Package: src:yade
Version: 2022.01a-9
Severity: normal
Tags: sid bookworm
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-12

[This bug is targeted to the upcoming bookworm 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-12/g++-12, but succeeds to build with gcc-11/g++-11. The
severity of this report will be raised before the bookworm release.

The full build log can be found at:
http://qa-logs.debian.net/2022/06/09/gcc12/yade_2022.01a-9_unstable_gcc12.log
The last lines of the build log are at the end of this report.

To build with GCC 11, either set CC=gcc-11 CXX=g++-11 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-11/porting_to.html

GCC 11 defaults to the GNU++17 standard.  If your package installs
header files in /usr/include, please don't work around C++17 issues
by choosing a lower C++ standard for the package build, but fix these
issues to build with the C++17 standard.

[...]
/<<PKGBUILDDIR>>/py/high-precision/minieigen/visitors.hpp: In static member function ‘static std::string AabbVisitor<Box>::__str__(const boost::python::api::object&) [with Box = Eigen::AlignedBox<double, 2>]’:
/<<PKGBUILDDIR>>/py/high-precision/minieigen/visitors.hpp:975:39: note: unnamed temporary defined here
  975 |                 const Box&         self = py::extract<Box>(obj)();
      |                                       ^~~~~~~~~~~~~~~~~
In member function ‘const Eigen::AlignedBox<Scalar, Dim>::VectorType& Eigen::AlignedBox<Scalar, Dim>::max() const [with _Scalar = double; int _AmbientDim = 3]’,
    inlined from ‘static std::string AabbVisitor<Box>::__str__(const boost::python::api::object&) [with Box = Eigen::AlignedBox<double, 3>]’ at /<<PKGBUILDDIR>>/py/high-precision/minieigen/visitors.hpp:980:78:
/usr/include/eigen3/unsupported/Eigen/../../Eigen/src/Geometry/AlignedBox.h:146:51: error: dangling pointer to an unnamed temporary may be used [-Werror=dangling-pointer=]
  146 |   EIGEN_DEVICE_FUNC inline const VectorType& (max)() const { return m_max; }
      |                                                   ^~~~~
/<<PKGBUILDDIR>>/py/high-precision/minieigen/visitors.hpp: In static member function ‘static std::string AabbVisitor<Box>::__str__(const boost::python::api::object&) [with Box = Eigen::AlignedBox<double, 3>]’:
/<<PKGBUILDDIR>>/py/high-precision/minieigen/visitors.hpp:975:39: note: unnamed temporary defined here
  975 |                 const Box&         self = py::extract<Box>(obj)();
      |                                       ^~~~~~~~~~~~~~~~~
In member function ‘const Eigen::AlignedBox<Scalar, Dim>::VectorType& Eigen::AlignedBox<Scalar, Dim>::min() const [with _Scalar = double; int _AmbientDim = 3]’,
    inlined from ‘static std::string AabbVisitor<Box>::__str__(const boost::python::api::object&) [with Box = Eigen::AlignedBox<double, 3>]’ at /<<PKGBUILDDIR>>/py/high-precision/minieigen/visitors.hpp:978:78:
/usr/include/eigen3/unsupported/Eigen/../../Eigen/src/Geometry/AlignedBox.h:142:51: error: dangling pointer to an unnamed temporary may be used [-Werror=dangling-pointer=]
  142 |   EIGEN_DEVICE_FUNC inline const VectorType& (min)() const { return m_min; }
      |                                                   ^~~~~
/<<PKGBUILDDIR>>/py/high-precision/minieigen/visitors.hpp: In static member function ‘static std::string AabbVisitor<Box>::__str__(const boost::python::api::object&) [with Box = Eigen::AlignedBox<double, 3>]’:
/<<PKGBUILDDIR>>/py/high-precision/minieigen/visitors.hpp:975:39: note: unnamed temporary defined here
  975 |                 const Box&         self = py::extract<Box>(obj)();
      |                                       ^~~~~~~~~~~~~~~~~
In member function ‘const Eigen::AlignedBox<Scalar, Dim>::VectorType& Eigen::AlignedBox<Scalar, Dim>::max() const [with _Scalar = boost::multiprecision::number<boost::multiprecision::backends::float128_backend, boost::multiprecision::et_off>; int _AmbientDim = 3]’,
    inlined from ‘static std::string AabbVisitor<Box>::__str__(const boost::python::api::object&) [with Box = Eigen::AlignedBox<boost::multiprecision::number<boost::multiprecision::backends::float128_backend, boost::multiprecision::et_off>, 3>]’ at /<<PKGBUILDDIR>>/py/high-precision/minieigen/visitors.hpp:980:78:
/usr/include/eigen3/unsupported/Eigen/../../Eigen/src/Geometry/AlignedBox.h:146:51: error: dangling pointer to an unnamed temporary may be used [-Werror=dangling-pointer=]
  146 |   EIGEN_DEVICE_FUNC inline const VectorType& (max)() const { return m_max; }
      |                                                   ^~~~~
/<<PKGBUILDDIR>>/py/high-precision/minieigen/visitors.hpp: In static member function ‘static std::string AabbVisitor<Box>::__str__(const boost::python::api::object&) [with Box = Eigen::AlignedBox<boost::multiprecision::number<boost::multiprecision::backends::float128_backend, boost::multiprecision::et_off>, 3>]’:
/<<PKGBUILDDIR>>/py/high-precision/minieigen/visitors.hpp:975:39: note: unnamed temporary defined here
  975 |                 const Box&         self = py::extract<Box>(obj)();
      |                                       ^~~~~~~~~~~~~~~~~
In member function ‘const Eigen::AlignedBox<Scalar, Dim>::VectorType& Eigen::AlignedBox<Scalar, Dim>::min() const [with _Scalar = boost::multiprecision::number<boost::multiprecision::backends::float128_backend, boost::multiprecision::et_off>; int _AmbientDim = 3]’,
    inlined from ‘static std::string AabbVisitor<Box>::__str__(const boost::python::api::object&) [with Box = Eigen::AlignedBox<boost::multiprecision::number<boost::multiprecision::backends::float128_backend, boost::multiprecision::et_off>, 3>]’ at /<<PKGBUILDDIR>>/py/high-precision/minieigen/visitors.hpp:978:78:
/usr/include/eigen3/unsupported/Eigen/../../Eigen/src/Geometry/AlignedBox.h:142:51: error: dangling pointer to an unnamed temporary may be used [-Werror=dangling-pointer=]
  142 |   EIGEN_DEVICE_FUNC inline const VectorType& (min)() const { return m_min; }
      |                                                   ^~~~~
/<<PKGBUILDDIR>>/py/high-precision/minieigen/visitors.hpp: In static member function ‘static std::string AabbVisitor<Box>::__str__(const boost::python::api::object&) [with Box = Eigen::AlignedBox<boost::multiprecision::number<boost::multiprecision::backends::float128_backend, boost::multiprecision::et_off>, 3>]’:
/<<PKGBUILDDIR>>/py/high-precision/minieigen/visitors.hpp:975:39: note: unnamed temporary defined here
  975 |                 const Box&         self = py::extract<Box>(obj)();
      |                                       ^~~~~~~~~~~~~~~~~
In member function ‘const Eigen::AlignedBox<Scalar, Dim>::VectorType& Eigen::AlignedBox<Scalar, Dim>::max() const [with _Scalar = boost::multiprecision::number<boost::multiprecision::backends::float128_backend, boost::multiprecision::et_off>; int _AmbientDim = 2]’,
    inlined from ‘static std::string AabbVisitor<Box>::__str__(const boost::python::api::object&) [with Box = Eigen::AlignedBox<boost::multiprecision::number<boost::multiprecision::backends::float128_backend, boost::multiprecision::et_off>, 2>]’ at /<<PKGBUILDDIR>>/py/high-precision/minieigen/visitors.hpp:980:78:
/usr/include/eigen3/unsupported/Eigen/../../Eigen/src/Geometry/AlignedBox.h:146:51: error: dangling pointer to an unnamed temporary may be used [-Werror=dangling-pointer=]
  146 |   EIGEN_DEVICE_FUNC inline const VectorType& (max)() const { return m_max; }
      |                                                   ^~~~~
/<<PKGBUILDDIR>>/py/high-precision/minieigen/visitors.hpp: In static member function ‘static std::string AabbVisitor<Box>::__str__(const boost::python::api::object&) [with Box = Eigen::AlignedBox<boost::multiprecision::number<boost::multiprecision::backends::float128_backend, boost::multiprecision::et_off>, 2>]’:
/<<PKGBUILDDIR>>/py/high-precision/minieigen/visitors.hpp:975:39: note: unnamed temporary defined here
  975 |                 const Box&         self = py::extract<Box>(obj)();
      |                                       ^~~~~~~~~~~~~~~~~
In member function ‘const Eigen::AlignedBox<Scalar, Dim>::VectorType& Eigen::AlignedBox<Scalar, Dim>::min() const [with _Scalar = boost::multiprecision::number<boost::multiprecision::backends::float128_backend, boost::multiprecision::et_off>; int _AmbientDim = 2]’,
    inlined from ‘static std::string AabbVisitor<Box>::__str__(const boost::python::api::object&) [with Box = Eigen::AlignedBox<boost::multiprecision::number<boost::multiprecision::backends::float128_backend, boost::multiprecision::et_off>, 2>]’ at /<<PKGBUILDDIR>>/py/high-precision/minieigen/visitors.hpp:978:78:
/usr/include/eigen3/unsupported/Eigen/../../Eigen/src/Geometry/AlignedBox.h:142:51: error: dangling pointer to an unnamed temporary may be used [-Werror=dangling-pointer=]
  142 |   EIGEN_DEVICE_FUNC inline const VectorType& (min)() const { return m_min; }
      |                                                   ^~~~~
/<<PKGBUILDDIR>>/py/high-precision/minieigen/visitors.hpp: In static member function ‘static std::string AabbVisitor<Box>::__str__(const boost::python::api::object&) [with Box = Eigen::AlignedBox<boost::multiprecision::number<boost::multiprecision::backends::float128_backend, boost::multiprecision::et_off>, 2>]’:
/<<PKGBUILDDIR>>/py/high-precision/minieigen/visitors.hpp:975:39: note: unnamed temporary defined here
  975 |                 const Box&         self = py::extract<Box>(obj)();
      |                                       ^~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[4]: *** [py/CMakeFiles/_minieigenHP.dir/build.make:93: py/CMakeFiles/_minieigenHP.dir/high-precision/_ExposeBoxes.cpp.o] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/debian/build-double'
make[3]: *** [CMakeFiles/Makefile2:815: py/CMakeFiles/_minieigenHP.dir/all] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/debian/build-double'
make[2]: *** [Makefile:139: all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/debian/build-double'
dh_auto_build: error: cd debian/build-double && make -j1 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2
make[1]: *** [debian/rules:72: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:24: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2



More information about the debian-science-maintainers mailing list