[Debian-zh-dev] Bug#1097320: lunar: ftbfs with GCC-15
Matthias Klose
doko at debian.org
Mon Feb 17 17:35:26 GMT 2025
Package: src:lunar
Version: 2.2-9
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/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
More information about the Chinese-developers
mailing list