[Debian-med-packaging] Bug#1097542: paml: ftbfs with GCC-15

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


Package: src:paml
Version: 4.9j+dfsg-5
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/paml_4.9j+dfsg-5_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

[...]
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools.c:5689:7: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5689 |       scanf("%d%d", &ivar_f2d[i][0], &ivar_f2d[i][1]);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools.c: In function ‘gfopen’:
tools.c:1148:7: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1148 |       scanf("%s", filename);
      |       ^~~~~~~~~~~~~~~~~~~~~
tools.c: In function ‘scanfile’:
tools.c:5356:7: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5356 |       fgets(line, lline, fin);
      |       ^~~~~~~~~~~~~~~~~~~~~~~
tools.c: In function ‘DescriptiveStatistics’:
tools.c:5678:10: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5678 |          fscanf(fin, "%lf", &data[j*n + i]);
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools.c:5689:7: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5689 |       scanf("%d%d", &ivar_f2d[i][0], &ivar_f2d[i][1]);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools.c: In function ‘gfopen’:
tools.c:1148:7: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1148 |       scanf("%s", filename);
      |       ^~~~~~~~~~~~~~~~~~~~~
tools.c: In function ‘scanfile’:
tools.c:5356:7: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5356 |       fgets(line, lline, fin);
      |       ^~~~~~~~~~~~~~~~~~~~~~~
tools.c: In function ‘DescriptiveStatistics’:
tools.c:5678:10: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5678 |          fscanf(fin, "%lf", &data[j*n + i]);
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools.c:5689:7: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5689 |       scanf("%d%d", &ivar_f2d[i][0], &ivar_f2d[i][1]);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:22: mcmctree] Error 1
make[1]: *** Waiting for unfinished jobs....
tools.c: In function ‘gfopen’:
tools.c:1148:7: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1148 |       scanf("%s", filename);
      |       ^~~~~~~~~~~~~~~~~~~~~
tools.c: In function ‘scanfile’:
tools.c:5356:7: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5356 |       fgets(line, lline, fin);
      |       ^~~~~~~~~~~~~~~~~~~~~~~
tools.c: In function ‘DescriptiveStatistics’:
tools.c:5678:10: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5678 |          fscanf(fin, "%lf", &data[j*n + i]);
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools.c:5689:7: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5689 |       scanf("%d%d", &ivar_f2d[i][0], &ivar_f2d[i][1]);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools.c: In function ‘gfopen’:
tools.c:1148:7: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1148 |       scanf("%s", filename);
      |       ^~~~~~~~~~~~~~~~~~~~~
tools.c: In function ‘scanfile’:
tools.c:5356:7: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5356 |       fgets(line, lline, fin);
      |       ^~~~~~~~~~~~~~~~~~~~~~~
tools.c: In function ‘DescriptiveStatistics’:
tools.c:5678:10: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5678 |          fscanf(fin, "%lf", &data[j*n + i]);
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools.c:5689:7: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5689 |       scanf("%d%d", &ivar_f2d[i][0], &ivar_f2d[i][1]);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: Leaving directory '/build/reproducible-path/paml-4.9j+dfsg/src'
dh_auto_build: error: cd src && make -j8 "INSTALL=install --strip-program=true" returned exit code 2
make: *** [debian/rules:13: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Debian-med-packaging mailing list