[Debian-pan-maintainers] Bug#1096531: dmrgpp: ftbfs with GCC-15

Matthias Klose doko at debian.org
Mon Feb 17 17:10:10 GMT 2025


Package: src:dmrgpp
Version: 6.06-2
Severity: important
Tags: sid forky
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-15

[This bug is NOT 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-15/g++-15, but succeeds to build with gcc-14/g++-14. The
severity of this report will be raised before the forky release.

The full build log can be found at:
http://qa-logs.debian.net/2025/02/16/amd64exp/dmrgpp_6.06-2_unstable_gccexp.log.gz
The last lines of the build log are at the end of this report.

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

  apt-get -t=experimental install g++ 

GCC 15 now defaults to the C23/C++23 standards, exposing many FTBFS.
Other 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-15/porting_to.html

[...]
g++ -frecord-gcc-switches -Wdate-time -D_FORTIFY_SOURCE=2 -pedantic -std=c++11 -Wall -Wendif-labels -I/usr/include/hdf5/serial -DUSE_BOOST -DUSE_PTHREADS -O3 -DNDEBUG -I ../psimaglite/ -I ../psimaglite/src/ -I. -I Engine -c observe.cpp
In file included from Engine/BasisWithOperators.h:80,
                 from ObserveDriver.h:6,
                 from observe.cpp:1:
Engine/Basis.h: In function ‘std::ostream& Dmrg::operator<<(std::ostream&, const Basis<SparseMatrixType_>&)’:
Engine/Basis.h:645:25: error: ‘const class Dmrg::Basis<SparseMatrixType_>’ has no member named ‘quantumNumbers_’ [-Wtemplate-body]
  645 |                 os << x.quantumNumbers_;
      |                         ^~~~~~~~~~~~~~~
Engine/Basis.h:647:25: error: ‘const class Dmrg::Basis<SparseMatrixType_>’ has no member named ‘electrons_’ [-Wtemplate-body]
  647 |                 os << x.electrons_;
      |                         ^~~~~~~~~~
In file included from Engine/CorrelationsSkeleton.h:86,
                 from Engine/ApplyOperatorExpression.h:75,
                 from Engine/TargetingCommon.h:83,
                 from Engine/TargetingBase.h:89,
                 from Engine/TargetSelector.h:3,
                 from Engine/DmrgSolver.h:95,
                 from ObserveDriver.h:8:
Engine/ObserverHelper.h: In function ‘std::ostream& Dmrg::operator<<(std::ostream&, ObserverHelper<IoInputType_, MatrixType_, VectorType_, VectorWithOffsetType_, LeftRightSuperType>&)’:
Engine/ObserverHelper.h:316:44: error: ‘class Dmrg::ObserverHelper<IoInputType_, MatrixType_, VectorType_, VectorWithOffsetType_, LeftRightSuperType>’ has no member named ‘SpermutationInverse_’ [-Wtemplate-body]
  316 |                 for (SizeType i = 0; i < p.SpermutationInverse_.size(); i++) {
      |                                            ^~~~~~~~~~~~~~~~~~~~
Engine/ObserverHelper.h:318:48: error: ‘class Dmrg::ObserverHelper<IoInputType_, MatrixType_, VectorType_, VectorWithOffsetType_, LeftRightSuperType>’ has no member named ‘SpermutationInverse_’ [-Wtemplate-body]
  318 |                         os << "\tS.size=" << p.SpermutationInverse_[i].size();
      |                                                ^~~~~~~~~~~~~~~~~~~~
Engine/ObserverHelper.h:319:40: error: ‘class Dmrg::ObserverHelper<IoInputType_, MatrixType_, VectorType_, VectorWithOffsetType_, LeftRightSuperType>’ has no member named ‘Spermutation_’ [-Wtemplate-body]
  319 |                         os << " " << p.Spermutation_[i].size() << "\n";
      |                                        ^~~~~~~~~~~~~
Engine/ObserverHelper.h:320:49: error: ‘class Dmrg::ObserverHelper<IoInputType_, MatrixType_, VectorType_, VectorWithOffsetType_, LeftRightSuperType>’ has no member named ‘SEpermutationInverse_’ [-Wtemplate-body]
  320 |                         os << "\tSE.size=" << p.SEpermutationInverse_[i].size();
      |                                                 ^~~~~~~~~~~~~~~~~~~~~
Engine/ObserverHelper.h:321:40: error: ‘class Dmrg::ObserverHelper<IoInputType_, MatrixType_, VectorType_, VectorWithOffsetType_, LeftRightSuperType>’ has no member named ‘SEpermutation_’ [-Wtemplate-body]
  321 |                         os << " " << p.SEpermutation_[i].size() << "\n";
      |                                        ^~~~~~~~~~~~~~
Engine/ObserverHelper.h:322:56: error: ‘class Dmrg::ObserverHelper<IoInputType_, MatrixType_, VectorType_, VectorWithOffsetType_, LeftRightSuperType>’ has no member named ‘electrons_’ [-Wtemplate-body]
  322 |                         os << "\tElectrons.size=" << p.electrons_[i].size() << "\n";
      |                                                        ^~~~~~~~~~
Engine/ObserverHelper.h:323:51: error: ‘class Dmrg::ObserverHelper<IoInputType_, MatrixType_, VectorType_, VectorWithOffsetType_, LeftRightSuperType>’ has no member named ‘transform_’; did you mean ‘transform’? [-Wtemplate-body]
  323 |                         os << "\tTransform=" << p.transform_[i].n_row() << "x";
      |                                                   ^~~~~~~~~~
      |                                                   transform
Engine/ObserverHelper.h:324:33: error: ‘class Dmrg::ObserverHelper<IoInputType_, MatrixType_, VectorType_, VectorWithOffsetType_, LeftRightSuperType>’ has no member named ‘transform_’; did you mean ‘transform’? [-Wtemplate-body]
  324 |                         os << p.transform_[i].n_col() << "\n";
      |                                 ^~~~~~~~~~
      |                                 transform
Engine/ObserverHelper.h:325:49: error: ‘class Dmrg::ObserverHelper<IoInputType_, MatrixType_, VectorType_, VectorWithOffsetType_, LeftRightSuperType>’ has no member named ‘wavefunction_’ [-Wtemplate-body]
  325 |                         os << "\tWF.size=" << p.wavefunction_[i].size() << "\n";
      |                                                 ^~~~~~~~~~~~~
In file included from Engine/ModelBase.h:93,
                 from ObserveDriver.h:15:
Engine/TargetQuantumElectrons.h: In function ‘std::ostream& Dmrg::operator<<(std::ostream&, const TargetQuantumElectrons<RealType, QnType>&)’:
Engine/TargetQuantumElectrons.h:194:52: error: ‘const class Dmrg::TargetQuantumElectrons<RealType, QnType>’ has no member named ‘totalElectrons’ [-Wtemplate-body]
  194 |                 os << "TargetElectronsTotal=" << p.totalElectrons << "\n";
      |                                                    ^~~~~~~~~~~~~~
Engine/TargetQuantumElectrons.h:195:43: error: ‘const class Dmrg::TargetQuantumElectrons<RealType, QnType>’ has no member named ‘other’ [-Wtemplate-body]
  195 |                 os << "TargetOther=" << p.other << "\n";
      |                                           ^~~~~
Engine/TargetQuantumElectrons.h:196:23: error: ‘const class Dmrg::TargetQuantumElectrons<RealType, QnType>’ has no member named ‘isSu2’; did you mean ‘isSu2_’? [-Wtemplate-body]
  196 |                 if (p.isSu2)
      |                       ^~~~~
      |                       isSu2_
Engine/TargetQuantumElectrons.h:197:58: error: ‘const class Dmrg::TargetQuantumElectrons<RealType, QnType>’ has no member named ‘twiceJ’ [-Wtemplate-body]
  197 |                         os << "TargetSpinTimesTwo=" << p.twiceJ << "\n";
      |                                                          ^~~~~~
make[2]: *** [Makefile:66: observe.o] Error 1
make[2]: Leaving directory '/build/reproducible-path/dmrgpp-6.06/src'
make[1]: *** [debian/rules:37: override_dh_auto_build] Error 2
make[1]: Leaving directory '/build/reproducible-path/dmrgpp-6.06'
make: *** [debian/rules:20: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Debian-pan-maintainers mailing list