[Debian-pan-maintainers] Bug#1096415: cbflib: ftbfs with GCC-15

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


Package: src:cbflib
Version: 0.9.7+dfsg1-4
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/cbflib_0.9.7+dfsg1-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

[...]
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/reproducible-path/cbflib-0.9.7+dfsg1/src/img.c:1782:28: note: destination object of size 0 allocated by ‘malloc’
/usr/bin/ld: /tmp/cc19afv3.o: in function `main':
././examples/convert_image.c:672:(.text.startup+0x53b): warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'
mkdir -p /build/reproducible-path/cbflib-0.9.7+dfsg1/bin
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/cbflib-0.9.7+dfsg1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DH5_USE_110_API -g -O3 -Wall -D_USE_XOPEN_EXTENDED -fno-strict-aliasing   -Wl,-z,relro -Wl,-z,now   -DCBF_REGEXLIB_REGEX -I/build/reproducible-path/cbflib-0.9.7+dfsg1/include -I/build/reproducible-path/cbflib-0.9.7+dfsg1/src -I/usr/include/hdf5/serial   \
/build/reproducible-path/cbflib-0.9.7+dfsg1/examples/convert_minicbf.c  -L/build/reproducible-path/cbflib-0.9.7+dfsg1/lib \
-lcbf   -lm -L/usr/lib/x86_64-linux-gnu/hdf5/serial -lhdf5  -o /build/reproducible-path/cbflib-0.9.7+dfsg1/bin/convert_minicbf
chmod 755 /build/reproducible-path/cbflib-0.9.7+dfsg1/examples/batch_convert_minicbf.sh
mkdir -p /build/reproducible-path/cbflib-0.9.7+dfsg1/bin
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/cbflib-0.9.7+dfsg1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DH5_USE_110_API -g -O3 -Wall -D_USE_XOPEN_EXTENDED -fno-strict-aliasing   -Wl,-z,relro -Wl,-z,now   -DCBF_REGEXLIB_REGEX -I/build/reproducible-path/cbflib-0.9.7+dfsg1/include -I/build/reproducible-path/cbflib-0.9.7+dfsg1/src -I/usr/include/hdf5/serial   \
/build/reproducible-path/cbflib-0.9.7+dfsg1/examples/img2cif.c  -L/build/reproducible-path/cbflib-0.9.7+dfsg1/lib \
-lcbf   -lm -L/usr/lib/x86_64-linux-gnu/hdf5/serial -lhdf5  -o /build/reproducible-path/cbflib-0.9.7+dfsg1/bin/img2cif
mkdir -p /build/reproducible-path/cbflib-0.9.7+dfsg1/bin
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/cbflib-0.9.7+dfsg1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DH5_USE_110_API -g -O3 -Wall -D_USE_XOPEN_EXTENDED -fno-strict-aliasing   -Wl,-z,relro -Wl,-z,now   -DCBF_REGEXLIB_REGEX -I/build/reproducible-path/cbflib-0.9.7+dfsg1/include -I/build/reproducible-path/cbflib-0.9.7+dfsg1/src -I/usr/include/hdf5/serial   \
/build/reproducible-path/cbflib-0.9.7+dfsg1/examples/makecbf.c  -L/build/reproducible-path/cbflib-0.9.7+dfsg1/lib \
-lcbf   -lm -L/usr/lib/x86_64-linux-gnu/hdf5/serial -lhdf5  -o /build/reproducible-path/cbflib-0.9.7+dfsg1/bin/makecbf
mkdir -p /build/reproducible-path/cbflib-0.9.7+dfsg1/bin
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/cbflib-0.9.7+dfsg1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DH5_USE_110_API -g -O3 -Wall -D_USE_XOPEN_EXTENDED -fno-strict-aliasing   -Wl,-z,relro -Wl,-z,now   -DCBF_REGEXLIB_REGEX -I/build/reproducible-path/cbflib-0.9.7+dfsg1/include -I/build/reproducible-path/cbflib-0.9.7+dfsg1/src -I/usr/include/hdf5/serial   \
/build/reproducible-path/cbflib-0.9.7+dfsg1/examples/minicbf2nexus.c  -L/build/reproducible-path/cbflib-0.9.7+dfsg1/lib \
-lcbf   -lm -L/usr/lib/x86_64-linux-gnu/hdf5/serial -lhdf5  -o /build/reproducible-path/cbflib-0.9.7+dfsg1/bin/minicbf2nexus
mkdir -p /build/reproducible-path/cbflib-0.9.7+dfsg1/bin
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/cbflib-0.9.7+dfsg1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DH5_USE_110_API -g -O3 -Wall -D_USE_XOPEN_EXTENDED -fno-strict-aliasing   -Wl,-z,relro -Wl,-z,now   -DCBF_REGEXLIB_REGEX -I/build/reproducible-path/cbflib-0.9.7+dfsg1/include -I/build/reproducible-path/cbflib-0.9.7+dfsg1/src -I/usr/include/hdf5/serial   \
/build/reproducible-path/cbflib-0.9.7+dfsg1/examples/nexus2cbf.c  -L/build/reproducible-path/cbflib-0.9.7+dfsg1/lib \
-lcbf   -lm -L/usr/lib/x86_64-linux-gnu/hdf5/serial -lhdf5  -o /build/reproducible-path/cbflib-0.9.7+dfsg1/bin/nexus2cbf
mkdir -p /build/reproducible-path/cbflib-0.9.7+dfsg1/bin
gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/cbflib-0.9.7+dfsg1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DH5_USE_110_API -g -O3 -Wall -D_USE_XOPEN_EXTENDED -fno-strict-aliasing   -Wl,-z,relro -Wl,-z,now   -DCBF_REGEXLIB_REGEX -I/build/reproducible-path/cbflib-0.9.7+dfsg1/include -I/build/reproducible-path/cbflib-0.9.7+dfsg1/src -I/usr/include/hdf5/serial   \
/build/reproducible-path/cbflib-0.9.7+dfsg1/examples/roi_peaksearch.c /build/reproducible-path/cbflib-0.9.7+dfsg1/examples/dps_peaksearch.c  -L/build/reproducible-path/cbflib-0.9.7+dfsg1/lib \
-lcbf   -lm -L/usr/lib/x86_64-linux-gnu/hdf5/serial -lhdf5   -o /build/reproducible-path/cbflib-0.9.7+dfsg1/bin/roi_peaksearch
/build/reproducible-path/cbflib-0.9.7+dfsg1/examples/dps_peaksearch.c: In function ‘sincos’:
/build/reproducible-path/cbflib-0.9.7+dfsg1/examples/dps_peaksearch.c:91:1: warning: old-style function definition [-Wold-style-definition]
   91 | sincos(x, s, c)
      | ^~~~~~
/build/reproducible-path/cbflib-0.9.7+dfsg1/examples/dps_peaksearch.c: In function ‘cmass’:
/build/reproducible-path/cbflib-0.9.7+dfsg1/examples/dps_peaksearch.c:141:1: warning: old-style function definition [-Wold-style-definition]
  141 | cmass (idata, iwidth, iheight, x, y, cm_x, cm_y, cm_nx, cm_ny)
      | ^~~~~
/build/reproducible-path/cbflib-0.9.7+dfsg1/examples/dps_peaksearch.c: In function ‘dps_peaksearch’:
/build/reproducible-path/cbflib-0.9.7+dfsg1/examples/dps_peaksearch.c:461:45: error: passing argument 4 of ‘qsort’ from incompatible pointer type [-Wincompatible-pointer-types]
  461 |     qsort(dps_peaks,npeaks,sizeof(DPS_Peak),sortfunc);
      |                                             ^~~~~~~~
      |                                             |
      |                                             int (*)(void)
In file included from /build/reproducible-path/cbflib-0.9.7+dfsg1/examples/dps_peaksearch.c:69:
/usr/include/stdlib.h:971:34: note: expected ‘__compar_fn_t’ {aka ‘int (*)(const void *, const void *)’} but argument is of type ‘int (*)(void)’
  971 |                    __compar_fn_t __compar) __nonnull ((1, 4));
      |                    ~~~~~~~~~~~~~~^~~~~~~~
/build/reproducible-path/cbflib-0.9.7+dfsg1/examples/dps_peaksearch.c:232:9: note: ‘sortfunc’ declared here
  232 |     int sortfunc();
      |         ^~~~~~~~
/usr/include/stdlib.h:948:15: note: ‘__compar_fn_t’ declared here
  948 | typedef int (*__compar_fn_t) (const void *, const void *);
      |               ^~~~~~~~~~~~~
/build/reproducible-path/cbflib-0.9.7+dfsg1/examples/dps_peaksearch.c: In function ‘sortfunc’:
/build/reproducible-path/cbflib-0.9.7+dfsg1/examples/dps_peaksearch.c:232:9: warning: old-style function definition [-Wold-style-definition]
  232 |     int sortfunc();
      |         ^~~~~~~~
/build/reproducible-path/cbflib-0.9.7+dfsg1/examples/dps_peaksearch.c:490:1: error: number of arguments doesn’t match prototype
  490 | {
      | ^
/build/reproducible-path/cbflib-0.9.7+dfsg1/examples/dps_peaksearch.c:232:9: error: prototype declaration
  232 |     int sortfunc();
      |         ^~~~~~~~
make[2]: *** [Makefile:2053: /build/reproducible-path/cbflib-0.9.7+dfsg1/bin/roi_peaksearch] Error 1
make[2]: Leaving directory '/build/reproducible-path/cbflib-0.9.7+dfsg1'
dh_auto_build: error: make -j1 "INSTALL=install --strip-program=true" C\+\+:=\$\(CXX\) shared all returned exit code 2
make[1]: *** [debian/rules:45: override_dh_auto_build-arch] Error 25
make[1]: Leaving directory '/build/reproducible-path/cbflib-0.9.7+dfsg1'
make: *** [debian/rules:33: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Debian-pan-maintainers mailing list