#1133497 hdf5: ftbfs with GCC-16

Package:
src:hdf5
Source:
src:hdf5
Submitter:
Emanuele Rocca
Date:
2026-04-13 13:05:11 UTC
Severity:
normal
Tags:
#1133497#5
Date:
2026-04-13 13:04:36 UTC
From:
To:
Hi,

hdf5 fails to build in a test rebuild on at least amd64 and arm64 with
gcc-16/g++-16, but builds properly with gcc-15/g++-15. The severity of this
report will be raised before the forky release.

The full build log can be found at:
https://people.debian.org/~ema/gcc-16-rebuilds/output-1/hdf5_arm64.build.xz

The last lines of the build log are at the end of this report.

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

  apt-get -t=experimental install g++

Common build failures include unused (but set) variables, array subscripts
partly outside array bounds, and new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-16/porting_to.html

Please only close this issue after double-checking that the package can be
built correctly with GCC 16.

Please do not reassign this bug to another package. If a fix in another package
is required, then file a bug for the other package (or clone), and mark this
bug as blocked by the bug in the other package.

[...]


host_cpu='aarch64'
host_os='linux-gnu'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include/hdf5/openmpi'
infodir='${prefix}/share/info'
install_sh='${SHELL} /build/reproducible-path/hdf5-1.14.6+repack/bin/install-sh'
libdir='${prefix}/lib/aarch64-linux-gnu'
libexecdir='${prefix}/lib/aarch64-linux-gnu'
localedir='${datarootdir}/locale'
localstatedir='/var'
mandir='${prefix}/share/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr'
program_transform_name='s,x,x,'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "HDF5"
#define PACKAGE_TARNAME "hdf5"
#define PACKAGE_VERSION "1.14.6"
#define PACKAGE_STRING "HDF5 1.14.6"
#define PACKAGE_BUGREPORT "help@hdfgroup.org"
#define PACKAGE_URL ""
#define PACKAGE "hdf5"
#define VERSION "1.14.6"
#define HAVE_STDIO_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_STRINGS_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_UNISTD_H 1
#define STDC_HEADERS 1
#define SIZEOF_CHAR 1
#define SIZEOF_SHORT 2
#define SIZEOF_INT 4
#define SIZEOF_UNSIGNED 4
#define SIZEOF_LONG 8
#define SIZEOF_LONG_LONG 8
#define SIZEOF_FLOAT 4
#define SIZEOF_DOUBLE 8
#define SIZEOF_LONG_DOUBLE 16
#define SIZEOF__FLOAT16 2
#define LDOUBLE_TO_FLOAT16_CORRECT 1
#define HAVE__FLOAT16 1
#define PAC_C_MAX_REAL_PRECISION 36
#define VERS_MAJOR_TMP 1
#define VERS_MINOR_TMP 14
#define VERS_RELEASE_TMP 6

configure: exit 1
dh_auto_configure: error: cd debian/build-openmpi && ../../configure --build=aarch64-linux-gnu --prefix=/usr --includedir=\${prefix}/include --mandir=\${prefix}/share/man --infodir=\${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-option-checking --disable-silent-rules --libdir=\${prefix}/lib/aarch64-linux-gnu --libexecdir=\${prefix}/lib/aarch64-linux-gnu --disable-maintainer-mode --disable-dependency-tracking --prefix=/usr --host=aarch64-linux-gnu --build=aarch64-linux-gnu --libdir=\${prefix}/lib/aarch64-linux-gnu --mandir=\${prefix}/share/man --with-pthread --enable-linux-lfs --enable-shared --enable-build-mode=production --disable-sharedlib-rpath --with-zlib --with-default-api-version=v114 --with-szlib --enable-fortran --enable-fortran2003 --enable-hltools --enable-ros3-vfd --includedir=\${prefix}/include/hdf5/openmpi --with-flavor=openmpi --with-default-plugindir=/usr/lib/aarch64-linux-gnu/hdf5/openmpi/plugins --enable-unsupported --enable-cxx --enable-parallel=yes returned exit code 1
make[1]: *** [debian/rules:290: configure_openmpi] Error 25
rm debian/libhdf5-flavor-hl-fortran-soname_hl_f.install debian/libhdf5-flavor-soname.shlibs debian/libhdf5-flavor-hl-fortran-soname_hl_f.shlibs debian/libhdf5-flavor-soname.install debian/libhdf5-flavor-fortran-soname_f.shlibs debian/libhdf5-flavor-cpp-soname_cxx.install debian/libhdf5-flavor-hl-soname_hl.shlibs debian/libhdf5-flavor-fortran-soname_f.install debian/libhdf5-flavor-hl-cpp-soname_hl_cxx.install debian/libhdf5-flavor-soname.doc debian/libhdf5-flavor-hl-soname_hl.install
make[1]: Leaving directory '/build/reproducible-path/hdf5-1.14.6+repack'
make: *** [debian/rules:276: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2