#1096471 cpptraj: ftbfs with GCC-15

Package:
src:cpptraj
Source:
src:cpptraj
Submitter:
Matthias Klose
Date:
2025-09-21 22:15:02 UTC
Severity:
normal
Tags:
#1096471#5
Date:
2025-02-17 17:08:18 UTC
From:
To:
[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/cpptraj_5.1.0+dfsg-4_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

[...]
                 from DataSet_Coords.h:4,
                 from DataSet_Coords_REF.h:3,
                 from ReferenceFrame.h:3,
                 from DataSetList.h:4,
                 from DataFile.h:4,
                 from DataFileList.h:3,
                 from ActionState.h:3,
                 from Action.h:5,
                 from Action_GIST.h:3,
                 from Action_GIST.cpp:3:
In member function ‘Vec3 Vec3::operator-(const Vec3&) const’,
    inlined from ‘void Action_GIST::Order(const Frame&)’ at Action_GIST.cpp:814:31:
Vec3.h:76:57: warning: ‘WAT’ may be used uninitialized [-Wmaybe-uninitialized]
   76 |       return Vec3(V_[0]-rhs.V_[0], V_[1]-rhs.V_[1], V_[2]-rhs.V_[2]);
      |                                                     ~~~~^
Action_GIST.cpp: In member function ‘void Action_GIST::Order(const Frame&)’:
Action_GIST.cpp:783:10: note: ‘WAT’ declared here
  783 |     Vec3 WAT[4];
      |          ^~~
In member function ‘Vec3 Vec3::operator-(const Vec3&) const’,
    inlined from ‘void Action_GIST::Order(const Frame&)’ at Action_GIST.cpp:814:31:
Vec3.h:76:23: warning: ‘WAT’ may be used uninitialized [-Wmaybe-uninitialized]
   76 |       return Vec3(V_[0]-rhs.V_[0], V_[1]-rhs.V_[1], V_[2]-rhs.V_[2]);
      |                   ~~~~^
Action_GIST.cpp: In member function ‘void Action_GIST::Order(const Frame&)’:
Action_GIST.cpp:783:10: note: ‘WAT’ declared here
  783 |     Vec3 WAT[4];
      |          ^~~
In member function ‘Vec3 Vec3::operator-(const Vec3&) const’,
    inlined from ‘void Action_GIST::Order(const Frame&)’ at Action_GIST.cpp:814:31:
Vec3.h:76:40: warning: ‘WAT’ may be used uninitialized [-Wmaybe-uninitialized]
   76 |       return Vec3(V_[0]-rhs.V_[0], V_[1]-rhs.V_[1], V_[2]-rhs.V_[2]);
      |                                    ~~~~^
Action_GIST.cpp: In member function ‘void Action_GIST::Order(const Frame&)’:
Action_GIST.cpp:783:10: note: ‘WAT’ declared here
  783 |     Vec3 WAT[4];
      |          ^~~
In member function ‘Vec3 Vec3::operator-(const Vec3&) const’,
    inlined from ‘void Action_GIST::Order(const Frame&)’ at Action_GIST.cpp:814:31:
Vec3.h:76:23: warning: ‘WAT’ may be used uninitialized [-Wmaybe-uninitialized]
   76 |       return Vec3(V_[0]-rhs.V_[0], V_[1]-rhs.V_[1], V_[2]-rhs.V_[2]);
      |                   ~~~~^
Action_GIST.cpp: In member function ‘void Action_GIST::Order(const Frame&)’:
Action_GIST.cpp:783:10: note: ‘WAT’ declared here
  783 |     Vec3 WAT[4];
      |          ^~~
In member function ‘Vec3 Vec3::operator-(const Vec3&) const’,
    inlined from ‘void Action_GIST::Order(const Frame&)’ at Action_GIST.cpp:815:31:
Vec3.h:76:57: warning: ‘WAT’ may be used uninitialized [-Wmaybe-uninitialized]
   76 |       return Vec3(V_[0]-rhs.V_[0], V_[1]-rhs.V_[1], V_[2]-rhs.V_[2]);
      |                                                     ~~~~^
Action_GIST.cpp: In member function ‘void Action_GIST::Order(const Frame&)’:
Action_GIST.cpp:783:10: note: ‘WAT’ declared here
  783 |     Vec3 WAT[4];
      |          ^~~
In member function ‘Vec3 Vec3::operator-(const Vec3&) const’,
    inlined from ‘void Action_GIST::Order(const Frame&)’ at Action_GIST.cpp:815:31:
Vec3.h:76:23: warning: ‘WAT’ may be used uninitialized [-Wmaybe-uninitialized]
   76 |       return Vec3(V_[0]-rhs.V_[0], V_[1]-rhs.V_[1], V_[2]-rhs.V_[2]);
      |                   ~~~~^
Action_GIST.cpp: In member function ‘void Action_GIST::Order(const Frame&)’:
Action_GIST.cpp:783:10: note: ‘WAT’ declared here
  783 |     Vec3 WAT[4];
      |          ^~~
make[2]: Leaving directory '/build/reproducible-path/cpptraj-5.1.0+dfsg/src'
make[1]: *** [Makefile:10: install] Error 2
make[1]: Leaving directory '/build/reproducible-path/cpptraj-5.1.0+dfsg'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:10: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

#1096471#14
Date:
2025-09-21 13:01:11 UTC
From:
To:
Dear maintainer,

I've prepared an NMU for cpptraj (versioned as 5.1.0+dfsg-4.1) and
uploaded it to DELAYED/2. Please feel free to tell me if I should
cancel it.

cu
Adrian

#1096471#23
Date:
2025-09-21 21:28:48 UTC
From:
To:
I've made a team upload from your NMU.

Thanks.

#1096471#28
Date:
2025-09-21 21:50:09 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
cpptraj, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1096471@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Santiago Vila <sanvila@debian.org> (supplier of updated cpptraj package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sun, 21 Sep 2025 23:20:00 +0200
Source: cpptraj
Architecture: source
Version: 5.1.0+dfsg-5
Distribution: unstable
Urgency: medium
Maintainer: Debichem Team <debichem-devel@lists.alioth.debian.org>
Changed-By: Santiago Vila <sanvila@debian.org>
Closes: 1096471
Changes:
 cpptraj (5.1.0+dfsg-5) unstable; urgency=medium
 .
   * Team upload.
   [ Adrian Bunk ]
   * Fix FTBFS with GCC 15. Closes: #1096471.
   [ Santiago Vila ]
   * Add debian/salsa-ci.yml.
   * Update standards-version.
Checksums-Sha1:
 225305d02d1bcb4fe5d286ee195a0c4ace7613f3 1814 cpptraj_5.1.0+dfsg-5.dsc
 e9dc2e6320baf83a1225663e91801c50e40a9147 6432 cpptraj_5.1.0+dfsg-5.debian.tar.xz
 86f75753e48dd1df7a6f598cb752954b7c206d34 8246 cpptraj_5.1.0+dfsg-5_source.buildinfo
Checksums-Sha256:
 a25c7763bd5ae17bf9050282cf38838845596aa886c5adabd90c2289887fbaa9 1814 cpptraj_5.1.0+dfsg-5.dsc
 afa4e2f53d68cad0fb8b9e16765447cfea6ea2ce80c193584290ef0cc06b897c 6432 cpptraj_5.1.0+dfsg-5.debian.tar.xz
 bf18803a29f93b6335d116d2304b02d14e8eec1c8659e77215c18cb270aaec05 8246 cpptraj_5.1.0+dfsg-5_source.buildinfo
Files:
 90a6508befc8a26324b9ce964a7ed7d0 1814 science optional cpptraj_5.1.0+dfsg-5.dsc
 15d8033b48593c90d52a78d14c2123b8 6432 science optional cpptraj_5.1.0+dfsg-5.debian.tar.xz
 8c174176c9558bcbd30bbdd8faa38e36 8246 science optional cpptraj_5.1.0+dfsg-5_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEE1Uw7+v+wQt44LaXXQc5/C58bizIFAmjQbVcACgkQQc5/C58b
izJexAf9ESboi/d4ykGp0aLTcptglTxWgB2wojr9cXdjtuYw/WUL6FLZW/T18xkW
Cik2LFWUpAeahy6O4LDrXadjIc/MbKvnIEgWMt6OvH7+nsj9EaTbtdDLGFf6W85b
OQTR79jhclzpEXrlzg6uVhyXHFa+Co/2C2w7Wix2JpLKN325LpIwJRfysX9Ew44b
iPRboCTnvd5mc+5IyfcTm4q6oggFup73e7/++UQ//mEqaCAX8JYYE5Uqpq3gU384
7u8DDAVVZlmKZ6vg5wvu0P9ShD18bXK2yqY163CmAH8bjoIw4ti0jwGeeFhiWoTl
klqO6kq9yELgIm+wycfjo7M5FTfV4Q==
=bOa3
-----END PGP SIGNATURE-----