#1133462 eccodes: ftbfs with GCC-16

Package:
src:eccodes
Source:
src:eccodes
Submitter:
Emanuele Rocca
Date:
2026-07-20 13:41:02 UTC
Severity:
normal
Tags:
#1133462#5
Date:
2026-04-13 13:02:58 UTC
From:
To:
Hi,

eccodes 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/eccodes_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.

[...]


//ADVANCED property for variable: PNG_PNG_INCLUDE_DIR
PNG_PNG_INCLUDE_DIR-ADVANCED:INTERNAL=1
PNG_user_provided_input:INTERNAL=1
PRODUCT_BUFR_user_provided_input:INTERNAL=0
PRODUCT_GRIB_user_provided_input:INTERNAL=0
//ADVANCED property for variable: SITE
SITE-ADVANCED:INTERNAL=1
TESTS_user_provided_input:INTERNAL=0
USE_SHARED_LIB_AEC_user_provided_input:INTERNAL=0
//ADVANCED property for variable: ZLIB_INCLUDE_DIR
ZLIB_INCLUDE_DIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: ZLIB_LIBRARY_DEBUG
ZLIB_LIBRARY_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: ZLIB_LIBRARY_RELEASE
ZLIB_LIBRARY_RELEASE-ADVANCED:INTERNAL=1
//CMAKE_INSTALL_PREFIX during last run
_GNUInstallDirs_LAST_CMAKE_INSTALL_PREFIX:INTERNAL=/usr
//Compiler reason failure
_Python_Compiler_REASON_FAILURE:INTERNAL=
//Development reason failure
_Python_Development_REASON_FAILURE:INTERNAL=
//Path to a program.
_Python_EXECUTABLE:INTERNAL=/usr/bin/python3
//Python Properties
_Python_INTERPRETER_PROPERTIES:INTERNAL=Python;3;13;12;64;32;<none>;cpython-313-aarch64-linux-gnu;abi3;/usr/lib/python3.13;/usr/lib/python3.13;/usr/local/lib/python3.13/dist-packages;/usr/local/lib/python3.13/dist-packages
_Python_INTERPRETER_SIGNATURE:INTERNAL=4c8bfa8951e99fa32e4000a94f8c04a2
//NumPy reason failure
_Python_NumPy_REASON_FAILURE:INTERNAL=
//Result of TRY_COMPILE
_linker_understands_origin:INTERNAL=TRUE
eccodes_ALL_EXES:INTERNAL=
eccodes_ALL_LIBS:INTERNAL=
//Test eccodes_CXX_FLAG_TEST_1
eccodes_CXX_FLAG_TEST_1:INTERNAL=1
//Test eccodes_C_FLAG_TEST_1
eccodes_C_FLAG_TEST_1:INTERNAL=1
eccodes_ENABLE_AEC_defined_value:INTERNAL=ON
eccodes_ENABLE_BIT_REPRODUCIBLE_defined_value:INTERNAL=ON
eccodes_ENABLE_BUILD_TOOLS_defined_value:INTERNAL=ON
eccodes_ENABLE_ECKIT_GEO_defined_value:INTERNAL=ON
eccodes_ENABLE_EXAMPLES_defined_value:INTERNAL=ON
eccodes_ENABLE_FORTRAN_defined_value:INTERNAL=ON
eccodes_ENABLE_GEOGRAPHY_defined_value:INTERNAL=ON
eccodes_ENABLE_JPG_LIBJASPER_defined_value:INTERNAL=ON
eccodes_ENABLE_JPG_LIBOPENJPEG_defined_value:INTERNAL=ON
eccodes_ENABLE_JPG_defined_value:INTERNAL=ON
eccodes_ENABLE_NETCDF_defined_value:INTERNAL=ON
eccodes_ENABLE_PKGCONFIG_defined_value:INTERNAL=ON
eccodes_ENABLE_PNG_defined_value:INTERNAL=ON
eccodes_ENABLE_PRODUCT_BUFR_defined_value:INTERNAL=ON
eccodes_ENABLE_PRODUCT_GRIB_defined_value:INTERNAL=ON
eccodes_ENABLE_TESTS_defined_value:INTERNAL=ON
eccodes_ENABLE_USE_SHARED_LIB_AEC_defined_value:INTERNAL=ON
//eccodes BIN full install path
eccodes_FULL_INSTALL_BIN_DIR:INTERNAL=/usr/bin
//eccodes CMAKE full install path
eccodes_FULL_INSTALL_CMAKE_DIR:INTERNAL=/usr/lib/aarch64-linux-gnu/cmake/eccodes
//eccodes DATA full install path
eccodes_FULL_INSTALL_DATA_DIR:INTERNAL=/usr/share/eccodes
//eccodes INCLUDE full install path
eccodes_FULL_INSTALL_INCLUDE_DIR:INTERNAL=/usr/include
//eccodes LIB full install path
eccodes_FULL_INSTALL_LIB_DIR:INTERNAL=/usr/lib/aarch64-linux-gnu
//perl script to generate persistent objects
sg_perl:INTERNAL=/usr/share/ecbuild/cmake/sg.pl

dh_auto_configure: error: cd debian/build-gfortran-15 && cmake -DCMAKE_MODULE_PATH=/usr/share/ecbuild/cmake -DECBUILD_MACROS_DIR=/usr/share/ecbuild/cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DBUILD_SITE=debian -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON "-GUnix Makefiles" -DECBUILD_LOG_LEVEL=DEBUG -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_LIBDIR=lib/aarch64-linux-gnu -DENABLE_INSTALL_ECCODES_DEFINITIONS=ON -DENABLE_INSTALL_ECCODES_SAMPLES=ON -DENABLE_PNG=ON -DENABLE_ECKIT_GEO=ON -DENABLE_AEC=ON -DENABLE_RPATHS=OFF -DENABLE_RELATIVE_RPATHS=OFF -DCMAKE_C_CFLAGS="-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/eccodes-2.46.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2  -Wl,-z,relro -Wl,-z,now" -DENABLE_ALIGN_MEMORY=ON -DENABLE_GRIB_TIMER=ON -DENABLE_ECCODES_OMP_THREADS=On -DCMAKE_Fortran_COMPILER=gfortran-15 ../.. returned exit code 1
make[1]: *** [debian/rules:69: dh_configure_fortran_gfortran-15] Error 2
make[1]: Leaving directory '/build/reproducible-path/eccodes-2.46.0'
make: *** [debian/rules:48: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2

#1133462#10
Date:
2026-07-20 13:39:18 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
eccodes, 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 1133462@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Alastair McKinstry <mckinstry@debian.org> (supplier of updated eccodes 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: Mon, 20 Jul 2026 13:35:55 +0100
Source: eccodes
Architecture: source
Version: 2.48.0-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Changed-By: Alastair McKinstry <mckinstry@debian.org>
Closes: 1133462
Changes:
 eccodes (2.48.0-1) unstable; urgency=medium
 .
   * New upstream release. Closes: #1133462
Checksums-Sha1:
 b5b72552141ad29af3aa9d9326d4959c02d0f33d 2546 eccodes_2.48.0-1.dsc
 5c9c7430e9b9386c5f0186987db2236121ddf307 14061383 eccodes_2.48.0.orig.tar.gz
 837f0a8679570dbee7edde240e94e6810d78519d 13292 eccodes_2.48.0-1.debian.tar.xz
 87003d706a101127ab58bdf6c6d10f7f23a93e52 14652 eccodes_2.48.0-1_arm64.buildinfo
Checksums-Sha256:
 294a084e65439f6cd8ac66bc09c4a0adee170211e0d41e60dff2bd2ffb2b341a 2546 eccodes_2.48.0-1.dsc
 773125f898807267426627a54ccc6aba77be074555b8a44ed05c894d6382da5d 14061383 eccodes_2.48.0.orig.tar.gz
 a6ef2d5bda53a26da964f7547b45b561f3437bf6b2790bd829739ebd192b3d78 13292 eccodes_2.48.0-1.debian.tar.xz
 340ef7683dadb64c2ef30393dab9dd365c39fcd0f458a39d38c2b0968c740883 14652 eccodes_2.48.0-1_arm64.buildinfo
Files:
 d7f1b31d51d78432ba3cc0821205fbc6 2546 science optional eccodes_2.48.0-1.dsc
 99d9e355521c0b7ea1495321af8fcedb 14061383 science optional eccodes_2.48.0.orig.tar.gz
 3a873f679e94e5e35fd5ebbc8656d058 13292 science optional eccodes_2.48.0-1.debian.tar.xz
 392b69568d4f6931af5d5266d5aa726d 14652 science optional eccodes_2.48.0-1_arm64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEgjg86RZbNHx4cIGiy+a7Tl2a06UFAmpeHWUACgkQy+a7Tl2a
06Vz8Q/9H2jlrxb3JaGEcHh5U0ZdUGNL76yGVryXWQkoso3A+A6LLtrdXERU2sfF
3p55kdL2BzEEa5HMrnuHBdAcwWIUJalG1IDC626eBVrP5P2rxYXOm86NMYD4Afti
LtbQ//5qfxwuyeWNuOZcidkBlMnW1ltKn/euHTtsVd08FT+fv1Ro85P8D2XLl4WU
Ewj479s63XLD6TGyXbiH5Kpgw4E/d4gnqDmF0i2NphQ/bwAjV5ClNsizAUIq/FVZ
HQjujSKwW8HheSamdTZFclZF5ifZtC6QNRH4vXI9jvpr6U0nTDzKWgnORAFSCHvs
B9oYW9Fu0ywOaQv/ogBQybccUH40iRcby6JNf6/2L12lkHy7V/UHsI99kEMhiWlx
REbVOCsiqPwdtJRWdxrHBRWlLF4yJ3Ou0p6/2PPo4XZwfMrg12R38BYtSRVarayv
INhUcJUnOlYecHArm49FxBYP+Euov1YjZtRPflmQFqsyDg/9N36D8yUA3F71r0Ba
cJvb32ma9EzuTuN8Fd+LjvNOFhHfophNXXc53d6rA/GAyhPsqz6RcKuICR0fyHs0
vHoI3hcIqtFoUwXaaRi/ZL9KN5lFBHkB52iNWysiiYLWnPSGl5ycWHiJpqCYcCyM
S4f642pwnjg1HIuXMLOybV3zJzTj6uVhccC15WaOS3OBETGV0dU=
=F+JU
-----END PGP SIGNATURE-----