Bug#1097378: med-fichier: ftbfs with GCC-15

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


Package: src:med-fichier
Version: 4.1.0+repack-8
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/med-fichier_4.1.0+repack-8_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

[...]
      |       ^~~~~~~~~~~~
../../include/med_utils.h:258:65: note: format string is defined here
  258 |                                         fprintf(stderr,"%s = %llu\n",#entier,entier) ;\
      |                                                              ~~~^
      |                                                                 |
      |                                                                 long long unsigned int
      |                                                              %lu
../../include/med_utils.h:258:56: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'med_size' {aka 'long unsigned int'} [-Wformat=]
  258 |                                         fprintf(stderr,"%s = %llu\n",#entier,entier) ;\
      |                                                        ^~~~~~~~~~~~~
../../../src/ci/_MEDfieldComputingStepCheck236.c:122:31: note: in expansion of macro 'ISCRUTE_size'
  122 |       ISCRUTE_size(_prevnseq);ISCRUTE_size(_nseq);ISCRUTE_size(_i);
      |                               ^~~~~~~~~~~~
../../include/med_utils.h:258:65: note: format string is defined here
  258 |                                         fprintf(stderr,"%s = %llu\n",#entier,entier) ;\
      |                                                              ~~~^
      |                                                                 |
      |                                                                 long long unsigned int
      |                                                              %lu
../../include/med_utils.h:258:56: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'med_size' {aka 'long unsigned int'} [-Wformat=]
  258 |                                         fprintf(stderr,"%s = %llu\n",#entier,entier) ;\
      |                                                        ^~~~~~~~~~~~~
../../../src/ci/_MEDfieldComputingStepCheck236.c:122:51: note: in expansion of macro 'ISCRUTE_size'
  122 |       ISCRUTE_size(_prevnseq);ISCRUTE_size(_nseq);ISCRUTE_size(_i);
      |                                                   ^~~~~~~~~~~~
../../include/med_utils.h:258:65: note: format string is defined here
  258 |                                         fprintf(stderr,"%s = %llu\n",#entier,entier) ;\
      |                                                              ~~~^
      |                                                                 |
      |                                                                 long long unsigned int
      |                                                              %lu
../../../src/ci/_MEDfieldComputingStepCheck236.c:149:32: error: passing argument 2 of '_MEDiterate' from incompatible pointer type [-Wincompatible-pointer-types]
  149 |       if (_MEDiterate(_cstpid, _MEDcheckAttributeStringFunc, &_itdatas ) < 0) {
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                |
      |                                med_err (*)(med_idt,  const char *, const H5L_info1_t *, med_string_itdatas *) {aka int (*)(long int,  const char *, const H5L_info1_t *, med_string_itdatas *)}
In file included from ../../../include/med_outils.h:265:
../../../include/med_hdfi.h:412:49: note: expected 'herr_t (*)(void)' {aka 'int (*)(void)'} but argument is of type 'med_err (*)(med_idt,  const char *, const H5L_info1_t *, med_string_itdatas *)' {aka 'int (*)(long int,  const char *, const H5L_info1_t *, med_string_itdatas *)'}
  412 | med_err _MEDiterate(const med_idt fid, herr_t (*func)(), void * itdatas );
      |                                        ~~~~~~~~~^~~~~~~
../../../include/med_hdfi.h:354:9: note: '_MEDcheckAttributeStringFunc' declared here
  354 | med_err _MEDcheckAttributeStringFunc(med_idt id,const char *lname, const H5L_info_t *linfo, med_string_itdatas *data);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../src/ci/_MEDfieldComputingStepCheck236.c:160:32: error: passing argument 2 of '_MEDiterate' from incompatible pointer type [-Wincompatible-pointer-types]
  160 |       if (_MEDiterate(_cstpid, _MEDchecknSublinkFunc, multiplemesh ) < 0) {
      |                                ^~~~~~~~~~~~~~~~~~~~~
      |                                |
      |                                med_err (*)(med_idt,  const char *, const H5L_info1_t *, med_bool *) {aka int (*)(long int,  const char *, const H5L_info1_t *, med_bool *)}
../../../include/med_hdfi.h:412:49: note: expected 'herr_t (*)(void)' {aka 'int (*)(void)'} but argument is of type 'med_err (*)(med_idt,  const char *, const H5L_info1_t *, med_bool *)' {aka 'int (*)(long int,  const char *, const H5L_info1_t *, med_bool *)'}
  412 | med_err _MEDiterate(const med_idt fid, herr_t (*func)(), void * itdatas );
      |                                        ~~~~~~~~~^~~~~~~
../../../include/med_hdfi.h:359:9: note: '_MEDchecknSublinkFunc' declared here
  359 | med_err _MEDchecknSublinkFunc(med_idt id,const char *lname, const H5L_info_t *linfo, med_bool *data);
      |         ^~~~~~~~~~~~~~~~~~~~~
make[4]: *** [Makefile:1597: _MEDfieldComputingStepCheck236.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../src/ci -I../../../include -I../../include -DH5_USE_16_API -I/usr/lib/x86_64-linux-gnu/hdf5/openmpi/include -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/lib/x86_64-linux-gnu/openmpi/include -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi -DOMPI_SKIP_MPICXX=1 -DMPICH_SKIP_MPICXX=1 -DH5_USE_110_API -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/med-fichier-4.1.0+repack=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c ../../../src/ci/_MEDfieldComputingStepMeshInfo31.c -o _MEDfieldComputingStepMeshInfo31.o >/dev/null 2>&1
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../src/ci -I../../../include -I../../include -DH5_USE_16_API -I/usr/lib/x86_64-linux-gnu/hdf5/openmpi/include -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/lib/x86_64-linux-gnu/openmpi/include -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi -DOMPI_SKIP_MPICXX=1 -DMPICH_SKIP_MPICXX=1 -DH5_USE_110_API -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/med-fichier-4.1.0+repack=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c ../../../src/ci/_MEDfieldComputingStepMeshInfo236.c -o _MEDfieldComputingStepMeshInfo236.o >/dev/null 2>&1
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../src/ci -I../../../include -I../../include -DH5_USE_16_API -I/usr/lib/x86_64-linux-gnu/hdf5/openmpi/include -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/lib/x86_64-linux-gnu/openmpi/include -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi -DOMPI_SKIP_MPICXX=1 -DMPICH_SKIP_MPICXX=1 -DH5_USE_110_API -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/med-fichier-4.1.0+repack=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c ../../../src/ci/_MEDfieldInfoByName30.c -o _MEDfieldInfoByName30.o >/dev/null 2>&1
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../src/ci -I../../../include -I../../include -DH5_USE_16_API -I/usr/lib/x86_64-linux-gnu/hdf5/openmpi/include -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/lib/x86_64-linux-gnu/openmpi/include -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi -DOMPI_SKIP_MPICXX=1 -DMPICH_SKIP_MPICXX=1 -DH5_USE_110_API -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/med-fichier-4.1.0+repack=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c ../../../src/ci/_MEDfieldInfoByName236.c -o _MEDfieldInfoByName236.o >/dev/null 2>&1
make[4]: Leaving directory '/build/reproducible-path/med-fichier-4.1.0+repack/build.python3.12/src/ci'
make[3]: *** [Makefile:762: all-recursive] Error 1
make[3]: Leaving directory '/build/reproducible-path/med-fichier-4.1.0+repack/build.python3.12/src'
make[2]: *** [Makefile:526: all-recursive] Error 1
make[2]: Leaving directory '/build/reproducible-path/med-fichier-4.1.0+repack/build.python3.12'
dh_auto_build: error: cd build.python3.12 && make -j8 returned exit code 2
make[1]: *** [debian/rules:43: my_build_python3.12] Error 25
make[1]: Leaving directory '/build/reproducible-path/med-fichier-4.1.0+repack'
make: *** [debian/rules:3: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the debian-science-maintainers mailing list