#1097387 metview: ftbfs with GCC-15

#1097387#5
Date:
2025-02-17 17:37:27 UTC
From:
To:
[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/metview_5.23.1-1_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/metview-5.23.1/mars-client/src/tools.c:1203:28: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=]
 1203 |         sprintf(tmp, "%s/%s", dir, fname);
      |                            ^
In function 'sprintf',
    inlined from 'real_name' at /build/reproducible-path/metview-5.23.1/mars-client/src/tools.c:1203:9:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output 2 or more bytes (assuming 1025) into a destination of size 1024
   30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   31 |                                   __glibc_objsize (__s), __fmt,
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   32 |                                   __va_arg_pack ());
      |                                   ~~~~~~~~~~~~~~~~~
[ 32%] Building C object mars-client/src/CMakeFiles/marsclient.dir/marsxdr.c.o
cd /build/reproducible-path/metview-5.23.1/debian/build/mars-client/src && /usr/bin/cc -DLITTLE_END -DNOFDB -DODB_SUPPORT -DR64 -Dmarsclient_EXPORTS -I/build/reproducible-path/metview-5.23.1/debian/build/mars-client/src -I/build/reproducible-path/metview-5.23.1/mars-client/src -I/build/reproducible-path/metview-5.23.1/mir/src -I/build/reproducible-path/metview-5.23.1/debian/build/mir/src -I/usr/include/tirpc -I/usr/include/x86_64-linux-gnu/eckit/linalg -I/usr/include/x86_64-linux-gnu/eckit -I/usr/include/x86_64-linux-gnu/eckit/geometry -I/usr/include/x86_64-linux-gnu/eckit/option -I/usr/include/x86_64-linux-gnu/odc -I/usr/include/x86_64-linux-gnu/eckit/sql -I/usr/include/x86_64-linux-gnu/metkit -I/usr/include/x86_64-linux-gnu/fdb5 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/metview-5.23.1=. -fstack-protector-strong -fstack-clash-protection -fcf-protection -Wall -pedantic -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -pipe -O3 -DNDEBUG -fPIC -MD -MT mars-client/src/CMakeFiles/marsclient.dir/marsxdr.c.o -MF CMakeFiles/marsclient.dir/marsxdr.c.o.d -o CMakeFiles/marsclient.dir/marsxdr.c.o -c /build/reproducible-path/metview-5.23.1/debian/build/mars-client/src/marsxdr.c
[ 32%] Building C object mars-client/src/CMakeFiles/marsclient.dir/mars_client_version.c.o
cd /build/reproducible-path/metview-5.23.1/debian/build/mars-client/src && /usr/bin/cc -DLITTLE_END -DNOFDB -DODB_SUPPORT -DR64 -Dmarsclient_EXPORTS -I/build/reproducible-path/metview-5.23.1/debian/build/mars-client/src -I/build/reproducible-path/metview-5.23.1/mars-client/src -I/build/reproducible-path/metview-5.23.1/mir/src -I/build/reproducible-path/metview-5.23.1/debian/build/mir/src -I/usr/include/tirpc -I/usr/include/x86_64-linux-gnu/eckit/linalg -I/usr/include/x86_64-linux-gnu/eckit -I/usr/include/x86_64-linux-gnu/eckit/geometry -I/usr/include/x86_64-linux-gnu/eckit/option -I/usr/include/x86_64-linux-gnu/odc -I/usr/include/x86_64-linux-gnu/eckit/sql -I/usr/include/x86_64-linux-gnu/metkit -I/usr/include/x86_64-linux-gnu/fdb5 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/metview-5.23.1=. -fstack-protector-strong -fstack-clash-protection -fcf-protection -Wall -pedantic -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -pipe -O3 -DNDEBUG -fPIC -MD -MT mars-client/src/CMakeFiles/marsclient.dir/mars_client_version.c.o -MF CMakeFiles/marsclient.dir/mars_client_version.c.o.d -o CMakeFiles/marsclient.dir/mars_client_version.c.o -c /build/reproducible-path/metview-5.23.1/debian/build/mars-client/src/mars_client_version.c
/build/reproducible-path/metview-5.23.1/debian/build/mars-client/src/marsxdr.c: In function 'xdr_cache_t':
/build/reproducible-path/metview-5.23.1/debian/build/mars-client/src/marsxdr.c:13:15: error: conflicting types for 'strcache'; have 'char *(void)'
   13 |  extern char* strcache();
      |               ^~~~~~~~
In file included from /build/reproducible-path/metview-5.23.1/debian/build/mars-client/src/rpcmars.h:21,
                 from /build/reproducible-path/metview-5.23.1/debian/build/mars-client/src/marsxdr.c:6:
/build/reproducible-path/metview-5.23.1/mars-client/src/hash.h:20:7: note: previous declaration of 'strcache' with type 'char *(const char *)'
   20 | char* strcache(const char* name);
      |       ^~~~~~~~
/build/reproducible-path/metview-5.23.1/debian/build/mars-client/src/marsxdr.c:34:10: error: too many arguments to function 'strcache'; expected 0, have 1
   34 |  *name = strcache(sp);
      |          ^~~~~~~~ ~~
/build/reproducible-path/metview-5.23.1/debian/build/mars-client/src/marsxdr.c:13:15: note: declared here
   13 |  extern char* strcache();
      |               ^~~~~~~~
/build/reproducible-path/metview-5.23.1/debian/build/mars-client/src/marsxdr.c: In function 'xdr_value':
/build/reproducible-path/metview-5.23.1/debian/build/mars-client/src/marsxdr.c:47:27: warning: unused variable 'buf' [-Wunused-variable]
   47 |         register int32_t *buf;
      |                           ^~~
/build/reproducible-path/metview-5.23.1/debian/build/mars-client/src/marsxdr.c: In function 'xdr_request':
/build/reproducible-path/metview-5.23.1/debian/build/mars-client/src/marsxdr.c:63:27: warning: unused variable 'buf' [-Wunused-variable]
   63 |         register int32_t *buf;
      |                           ^~~
/build/reproducible-path/metview-5.23.1/debian/build/mars-client/src/marsxdr.c: In function 'xdr_parameter':
/build/reproducible-path/metview-5.23.1/debian/build/mars-client/src/marsxdr.c:83:27: warning: unused variable 'buf' [-Wunused-variable]
   83 |         register int32_t *buf;
      |                           ^~~
/build/reproducible-path/metview-5.23.1/debian/build/mars-client/src/marsxdr.c: In function 'xdr_netlock':
/build/reproducible-path/metview-5.23.1/debian/build/mars-client/src/marsxdr.c:206:27: warning: unused variable 'buf' [-Wunused-variable]
  206 |         register int32_t *buf;
      |                           ^~~
/build/reproducible-path/metview-5.23.1/debian/build/mars-client/src/marsxdr.c: In function 'xdr_cache_index':
/build/reproducible-path/metview-5.23.1/debian/build/mars-client/src/marsxdr.c:218:27: warning: unused variable 'buf' [-Wunused-variable]
  218 |         register int32_t *buf;
      |                           ^~~
make[3]: *** [mars-client/src/CMakeFiles/marsclient.dir/build.make:1267: mars-client/src/CMakeFiles/marsclient.dir/marsxdr.c.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In function 'netcdf_attribute_to_request',
    inlined from 'netcdf_schema_to_request' at /build/reproducible-path/metview-5.23.1/mars-client/src/ncschema.c:494:25:
/build/reproducible-path/metview-5.23.1/mars-client/src/ncschema.c:367:21: warning: 'd' may be used uninitialized [-Wmaybe-uninitialized]
  367 |                     mars_field_index_add(idx, c->name, s_ok, buf, l_ok, l, d_ok, d);
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/reproducible-path/metview-5.23.1/mars-client/src/ncschema.c: In function 'netcdf_schema_to_request':
/build/reproducible-path/metview-5.23.1/mars-client/src/ncschema.c:324:16: note: 'd' was declared here
  324 |         double d;
      |                ^
make[3]: Leaving directory '/build/reproducible-path/metview-5.23.1/debian/build'
make[2]: *** [CMakeFiles/Makefile2:5293: mars-client/src/CMakeFiles/marsclient.dir/all] Error 2
make[2]: Leaving directory '/build/reproducible-path/metview-5.23.1/debian/build'
make[1]: *** [Makefile:169: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/metview-5.23.1/debian/build'
dh_auto_build: error: cd debian/build && make -j8 "INSTALL=install --strip-program=true" returned exit code 2
make: *** [debian/rules:53: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

#1097387#10
Date:
2025-07-06 15:06:03 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
metview, 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 1097387@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 metview 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: Sun, 06 Jul 2025 15:26:32 +0100
Source: metview
Binary: libmetview-dev libmetview0d libmetview0d-dbgsym metview metview-data metview-dbgsym
Architecture: source arm64 all
Version: 5.25.1-1
Distribution: experimental
Urgency: medium
Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Changed-By: Alastair McKinstry <mckinstry@debian.org>
Description:
 libmetview-dev - Development files for MetView
 libmetview0d - Shared libraries  for MetView
 metview    - Interactive data visualization and analysis environment,
 metview-data - Data needed for the Metview data analysis environment
Closes: 1097387
Changes:
 metview (5.25.1-1) experimental; urgency=medium
 .
   * New upstream release
   * gcc-15.patch: prototypes needed to fix FTBFS. Closes: #1097387
Checksums-Sha1:
 98b4fc17bfdf4c70edc2e45ed1e12378b7b8b723 3325 metview_5.25.1-1.dsc
 6e97333de2b59e38698c6a1d75b981070e391065 12472796 metview_5.25.1.orig-data.tar.xz
 bb76c6b32c9dea2c4f19e7dc35b75655ad0da6d7 46311244 metview_5.25.1.orig.tar.xz
 538c2e5d1399545e44a1f89f46b5f7eedb58ce95 41508 metview_5.25.1-1.debian.tar.xz
 2916b55d2ae01a05da025b3fd7ae46cba8062190 118556 libmetview-dev_5.25.1-1_arm64.deb
 756c8d43db88a459354b95c3f55cebd8f22bd37e 37227400 libmetview0d-dbgsym_5.25.1-1_arm64.deb
 edce97cc0acfb4c943736d998702989ec97ab9cc 2299920 libmetview0d_5.25.1-1_arm64.deb
 3aa8e99ba6d7b855c7e21d8ef357dee4eb4cf496 17029964 metview-data_5.25.1-1_all.deb
 d7cfd3b66489069d089f0cb7907098a9cec175ec 215734624 metview-dbgsym_5.25.1-1_arm64.deb
 8ea7a5598994c171b08982f485a84fea7e54df81 25418 metview_5.25.1-1_arm64.buildinfo
 304dd96ededf63a65259c63489716ea7da809476 14770556 metview_5.25.1-1_arm64.deb
Checksums-Sha256:
 0058358a241565024670bc0a26731792aa2d4e4b0313aad3c8740c731ca2e258 3325 metview_5.25.1-1.dsc
 0e42c9a09f6a55155c7413ac4c2fc225f42f7dc99f1310078541944cb426e62b 12472796 metview_5.25.1.orig-data.tar.xz
 211966c89070ed1905a4ad4d3b3b54483f3ef78f89733a3486951ed4132cb9d5 46311244 metview_5.25.1.orig.tar.xz
 57f0f2686494066084b21d45aef29733d4e4970ce0d75b050f9bec4fed9c247f 41508 metview_5.25.1-1.debian.tar.xz
 7164266fe3afe95f792a709830ba200d2592503f0c17410c482f5730977dae1c 118556 libmetview-dev_5.25.1-1_arm64.deb
 44a82559ac5bc046bac5f8935553974df8de46a0bd346802103f3e12de2985b1 37227400 libmetview0d-dbgsym_5.25.1-1_arm64.deb
 6062b161dc09b435f8797a83999e4a442c0d976a95caeaa3795dbed3d682df12 2299920 libmetview0d_5.25.1-1_arm64.deb
 509bf516864aaf6daca0609f63d40c5116c6e91900160d556b46afbb9a813f67 17029964 metview-data_5.25.1-1_all.deb
 12685366b8c85cdede5fac219ef625872e63210f103388c7b2a2003a1d14de73 215734624 metview-dbgsym_5.25.1-1_arm64.deb
 39719d52692bb999eea208c562c3f11380985ade31b958166a44a377c00c9e19 25418 metview_5.25.1-1_arm64.buildinfo
 87be96e8fe8309f5b55904cedff29e00fecba2d427b267b66bcd774ace4a065a 14770556 metview_5.25.1-1_arm64.deb
Files:
 ac9aa569e4d1c2a6838729e312ae0881 3325 science optional metview_5.25.1-1.dsc
 937244526893d74fac9918a5f30d02d1 12472796 science optional metview_5.25.1.orig-data.tar.xz
 1671c27bd4696efef498542fe2abe37b 46311244 science optional metview_5.25.1.orig.tar.xz
 28c266cd9dae30cea5c13199c89a9e4a 41508 science optional metview_5.25.1-1.debian.tar.xz
 440b0d260571ff2f2fc56c9174753481 118556 libdevel optional libmetview-dev_5.25.1-1_arm64.deb
 00cd67e09744ebaa5a5102c011738df2 37227400 debug optional libmetview0d-dbgsym_5.25.1-1_arm64.deb
 4341df3af5d55d9a6fb778ad12611452 2299920 libs optional libmetview0d_5.25.1-1_arm64.deb
 e469f2f63bda176997bcf801c18234ab 17029964 science optional metview-data_5.25.1-1_all.deb
 e548ffb4270bf87803ae7aa3b5fdbaf4 215734624 debug optional metview-dbgsym_5.25.1-1_arm64.deb
 7353f5af481bd3b670b73ae0be288cb1 25418 science optional metview_5.25.1-1_arm64.buildinfo
 b6860e95d214b18f2aeb270409d4a582 14770556 science optional metview_5.25.1-1_arm64.deb
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEgjg86RZbNHx4cIGiy+a7Tl2a06UFAmhqiq8ACgkQy+a7Tl2a
06WAQg//a5iUP4o4aBQxU6zFZz2krzX+OR9TIGFf2/zSHlKJa7ILwQc71oFCrP+G
b6TMVhJM4zotYc8cxUxzKBe24oCqev8HrBt27lbzJQ2moARwGeXqbf5xQ8Wrykb5
u2HiFJEASovQkfcZYgG+UM8x/P/OOInWUjio3i5Ix30SjP/ojLYf2tBihcRQyOAi
vMK7meYv7Brp3g1zZlJ/2HhnaEdhdrsf0e6ddjLgO8Pp3gZH/LAuS5VzTm5y7cGn
xBMWQY0YNpkzK82rFvcR3ZH6Zjz7JSN4L50Q9FC78RkZ8tuTSLtkVbNuFHVqa79E
8vD3dkkzEOyWyc40ydQiNH6y3+Hk4jTEmSG0qrCYRXkyT26PpZQLq02Q6XFrkDPj
8mJ36M60y0qGawzqwmuz/JMJOSEdQikV6Lwl8L7VKONdg/W2jN2Zlb5yKWkE2Wyp
iDTcV+sO/CKOX6hT3vMtHCwHjNPHFno0mI+tVOntlWRuEAFFUtx/S8x+DGWVayQo
MJVlPiFoYhxbhsEO6NMweiiDSJ/8ifLD+iiV4MiuGwY8dczkFKVLFF+lTEEzsW44
v7IFv2HH+8mWFbRs66bEeocQ32SO9qXVVIaYoB1SA3qV1LOhyOGOTlpNnRsD5iPr
uNH0JDf4Ak1jrJ8qIfyavpuRb7/lpCOVxcVS/4jRiWFMV1QcVgk=
=my4b
-----END PGP SIGNATURE-----