#1097320 lunar: ftbfs with GCC-15

Package:
src:lunar
Source:
src:lunar
Submitter:
Matthias Klose
Date:
2025-10-05 02:37:01 UTC
Severity:
normal
Tags:
#1097320#5
Date:
2025-02-17 17:35:26 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/lunar_2.2-9_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

[...]
lunar.c:947:41: error: too many arguments to function ‘GZcycle’; expected 0, have 2
  947 |            GZcycle(gan2.day, zhi2.day), GZcycle(gan2.hour, zhi2.hour));
      |                                         ^~~~~~~ ~~~~~~~~~
lunar.c:612:5: note: declared here
  612 | int GZcycle(g, z)
      |     ^~~~~~~
lunar.c: In function ‘ReportBM’:
lunar.c:966:5: error: too many arguments to function ‘display3’; expected 0, have 3
  966 |     display3(gan.year+GanBM, zhi.year+ZhiBM, NianBM);
      |     ^~~~~~~~
lunar.c:204:19: note: declared here
  204 | void    readBM(), display3();
      |                   ^~~~~~~~
lunar.c:967:5: error: too many arguments to function ‘display3’; expected 0, have 3
  967 |     display3(gan.month+GanBM, zhi.month+ZhiBM, YueBM);
      |     ^~~~~~~~
lunar.c:204:19: note: declared here
  204 | void    readBM(), display3();
      |                   ^~~~~~~~
lunar.c:968:5: error: too many arguments to function ‘display3’; expected 0, have 3
  968 |     display3(gan.day+GanBM, zhi.day+ZhiBM, RiBM);
      |     ^~~~~~~~
lunar.c:204:19: note: declared here
  204 | void    readBM(), display3();
      |                   ^~~~~~~~
lunar.c:969:5: error: too many arguments to function ‘display3’; expected 0, have 3
  969 |     display3(gan.hour+GanBM, zhi.hour+ZhiBM, ShiBM);
      |     ^~~~~~~~
lunar.c:204:19: note: declared here
  204 | void    readBM(), display3();
      |                   ^~~~~~~~
lunar.c:971:5: error: too many arguments to function ‘display3’; expected 0, have 3
  971 |     display3(gan2.year+GanBM, zhi2.year+ZhiBM, NianBM);
      |     ^~~~~~~~
lunar.c:204:19: note: declared here
  204 | void    readBM(), display3();
      |                   ^~~~~~~~
lunar.c:972:5: error: too many arguments to function ‘display3’; expected 0, have 3
  972 |     display3(gan2.month+GanBM, zhi2.month+ZhiBM, YueBM);
      |     ^~~~~~~~
lunar.c:204:19: note: declared here
  204 | void    readBM(), display3();
      |                   ^~~~~~~~
lunar.c:973:5: error: too many arguments to function ‘display3’; expected 0, have 3
  973 |     display3(gan2.day+GanBM, zhi2.day+ZhiBM, RiBM);
      |     ^~~~~~~~
lunar.c:204:19: note: declared here
  204 | void    readBM(), display3();
      |                   ^~~~~~~~
lunar.c:974:5: error: too many arguments to function ‘display3’; expected 0, have 3
  974 |     display3(gan2.hour+GanBM, zhi2.hour+ZhiBM, ShiBM);
      |     ^~~~~~~~
lunar.c:204:19: note: declared here
  204 | void    readBM(), display3();
      |                   ^~~~~~~~
lunar.c: In function ‘display3’:
lunar.c:1012:6: warning: old-style function definition [-Wold-style-definition]
 1012 | void display3(i, j, k)
      |      ^~~~~~~~
lunar.c:1014:1: error: number of arguments doesn’t match prototype
 1014 | {
      | ^
lunar.c:204:19: error: prototype declaration
  204 | void    readBM(), display3();
      |                   ^~~~~~~~
make[1]: *** [<builtin>: lunar] Error 1
make[1]: Leaving directory '/build/reproducible-path/lunar-2.2'
dh_auto_build: error: make -j8 "INSTALL=install --strip-program=true" returned exit code 2
make: *** [debian/rules:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

#1097320#14
Date:
2025-10-03 20:37:40 UTC
From:
To:
Dear maintainer,

I've prepared an NMU for lunar (versioned as 2.2-9.1) and uploaded
it to DELAYED/2. Please feel free to tell me if I should cancel it.

cu
Adrian

#1097320#23
Date:
2025-10-05 02:14:26 UTC
From:
To:
Hi,

Thanks your patch.

I just had uploaded 2.2-10, which used your patch.


Regards,

在 2025/10/4 04:37, Adrian Bunk 写道:

#1097320#28
Date:
2025-10-05 02:36:00 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
lunar, 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 1097320@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
xiao sheng wen <atzlinux@sina.com> (supplier of updated lunar 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, 05 Oct 2025 09:44:59 +0800
Source: lunar
Architecture: source
Version: 2.2-10
Distribution: unstable
Urgency: medium
Maintainer: Debian Chinese Team <chinese-developers@lists.alioth.debian.org>
Changed-By: xiao sheng wen <atzlinux@sina.com>
Closes: 1097320
Changes:
 lunar (2.2-10) unstable; urgency=medium
 .
   [ xiao sheng wen(肖盛文) ]
   * d/control: fix typo in long Description
   * d/patches: add Forwarded: not-needed for some files
   * d/copyright:
       - update year info to 2025
       - fix lintian old-fsf-address-in-copyright-file
   * Bump Standards-Version: 4.7.2
 .
   [ Adrian Bunk ]
   * d/rules: Build with -std=gnu17 to workaround FTBFS with GCC 15.
     (Closes: #1097320)
Checksums-Sha1:
 6a7512ac6fafb6e01bae26a76984bbbbb758d7e9 1963 lunar_2.2-10.dsc
 8dde80c75c5417cb75c7216686b6209812a6abf9 13228 lunar_2.2-10.debian.tar.xz
 05c5ad60d5403bc6433c79fc3a5b88541c5ce3b5 5893 lunar_2.2-10_source.buildinfo
Checksums-Sha256:
 539f5a05499c4fb3f7cc8983deeb857b120d48eab30e1cd3f3adb2f49ab079a0 1963 lunar_2.2-10.dsc
 5203c3225f2fdc720f9d5173ce69172f845d8068cbfc26d319d7b77b89230e57 13228 lunar_2.2-10.debian.tar.xz
 59344f246c328c929999b5541414a64c31bb3be97da845e0f55043a6ec6306f8 5893 lunar_2.2-10_source.buildinfo
Files:
 6f077de153e3d75c7ac5f6208e25f335 1963 utils optional lunar_2.2-10.dsc
 c90736f91c1e1d733222a371f5db9a25 13228 utils optional lunar_2.2-10.debian.tar.xz
 9973fad8773b5169ca274b994d1a0f1d 5893 utils optional lunar_2.2-10_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEvGv7H5NUQYeSuhtTJ2Egg8PSprAFAmjh0qwACgkQJ2Egg8PS
prCGXw/9ESeEHjp4awQijPh6tAmrRNIQ+d4gcSOiPsaQlE9pS7ow0w30TjGTjGKM
kWQeNENq0DHhrf7TEkPPzqzXy4N1N5mx0QHN/kvmgm6hGlEBWZvzXrpJZDYVbh+B
iLlhASgmwOk6PmDpU5Ne5ohBydJbS70gCCb2W6qUSopkApHM6todDryP7wr9h/Yk
TjvoQIuaWVz0aZGiwZyIvni3BxD/qopdXLPFOXTVpV6AuaiapdZDoQpfatFNTnY3
5FtpOSZlPRDet2CpQT6U7/NyI+LJCFp8wfsmklGZtbizrl6DvAclJ4L4wbyJCqpu
ABzYKMqUtqJJN3q+SsbHpGfrPwLZLcShMUC/Hz/m/LgJpFMRpcxTuKwvpcOtwY7T
F5brG0zjP7Tg8/NWyh91rBV/+4Bh0YVP22iLfwmPfUXOnUXPnKzRw4K3EWfVIQgS
4xXlOtazmVNefp2IRnnalfB3V8fQpqVy38CTfCn41BsA9eD4CWBdJB/EohDEyZIC
DvYxaTP2KzX0fqIPJOyg/3tnUTFnTRtoq8QJaFt6JGzZsRPCd97mOKlg3VdTEWzs
6yN+lR8aENBycspZTJ3SjZZU95q/lkWj7/EX3usOYheojq5N3KHz0p/LVEsrhNuT
5E5+diKqo8QiJIdkV1x6LZJqtauCwbEozhUUgsd2bNvehb2z7ZM=
=4FGm
-----END PGP SIGNATURE-----