#1096335 astronomical-almanac: ftbfs with GCC-15

#1096335#5
Date:
2025-02-17 17:03:58 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/astronomical-almanac_5.6-8_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

[...]
      |        ^~~~
In file included from kep.h:83,
                 from moonrise.c:7:
protos.h:72:15: note: previous declaration of ‘sqrt’ with type ‘double(double)’
   72 | extern double sqrt(double);
      |               ^~~~
moonrise.c:28:17: error: conflicting types for ‘asin’; have ‘double(void)’
   28 | double sqrt (), asin (), log ();
      |                 ^~~~
protos.h:67:15: note: previous declaration of ‘asin’ with type ‘double(double)’
   67 | extern double asin(double);
      |               ^~~~
moonrise.c:28:26: error: conflicting types for ‘log’; have ‘double(void)’
   28 | double sqrt (), asin (), log ();
      |                          ^~~
protos.h:74:15: note: previous declaration of ‘log’ with type ‘double(double)’
   74 | extern double log(double);
      |               ^~~
moonrise.c: In function ‘main’:
moonrise.c:149:11: error: too many arguments to function ‘search’; expected 0, have 1
  149 |       u = search (u);
      |           ^~~~~~  ~
moonrise.c:122:8: note: declared here
  122 | double search ();
      |        ^~~~~~
moonrise.c: In function ‘search’:
moonrise.c:169:1: warning: old-style function definition [-Wold-style-definition]
  169 | search (t)
      | ^~~~~~
moonrise.c:171:1: error: number of arguments doesn’t match prototype
  171 | {
      | ^
moonrise.c:122:8: error: prototype declaration
  122 | double search ();
      |        ^~~~~~
moonrise.c:183:3: error: too many arguments to function ‘func’; expected 0, have 1
  183 |   func (t);
      |   ^~~~  ~
moonrise.c:123:13: note: declared here
  123 | static void func ();
      |             ^~~~
moonrise.c:197:7: error: too many arguments to function ‘func’; expected 0, have 1
  197 |       func (t0);
      |       ^~~~  ~~
moonrise.c:123:13: note: declared here
  123 | static void func ();
      |             ^~~~
moonrise.c:223:7: error: too many arguments to function ‘func’; expected 0, have 1
  223 |       func (t0);
      |       ^~~~  ~~
moonrise.c:123:13: note: declared here
  123 | static void func ();
      |             ^~~~
moonrise.c:245:7: error: too many arguments to function ‘func’; expected 0, have 1
  245 |       func (t0);
      |       ^~~~  ~~
moonrise.c:123:13: note: declared here
  123 | static void func ();
      |             ^~~~
moonrise.c: In function ‘func’:
moonrise.c:263:1: warning: old-style function definition [-Wold-style-definition]
  263 | func (t)
      | ^~~~
make[2]: *** [<builtin>: moonrise.o] Error 1
make[2]: Leaving directory '/build/reproducible-path/astronomical-almanac-5.6'
dh_auto_build: error: make -j1 "INSTALL=install --strip-program=true" moonrise conjunct aa returned exit code 2
make[1]: *** [debian/rules:13: override_dh_auto_build] Error 25
make[1]: Leaving directory '/build/reproducible-path/astronomical-almanac-5.6'
make: *** [debian/rules:10: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

#1096335#14
Date:
2025-09-06 22:34:05 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
astronomical-almanac, 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 1096335@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Thorsten Alteholz <debian@alteholz.de> (supplier of updated astronomical-almanac 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: Sat, 06 Sep 2025 18:08:52 +0100
Source: astronomical-almanac
Architecture: source
Version: 5.6-9
Distribution: unstable
Urgency: medium
Maintainer: Thorsten Alteholz <debian@alteholz.de>
Changed-By: Thorsten Alteholz <debian@alteholz.de>
Closes: 1096335
Changes:
 astronomical-almanac (5.6-9) unstable; urgency=medium
 .
   * debian/control: version bumped to 4.7.2 (no changes)
   * add gcc15.patch (Closes: #1096335)
Checksums-Sha1:
 9fbc86d32e51ffccbb439b8f9153efea075ab3cd 2102 astronomical-almanac_5.6-9.dsc
 d74e2ab1aaba6f5f1659a2f9b166dba60a939dad 410073 astronomical-almanac_5.6.orig.tar.gz
 c511fbaddc8ed74bd47f5d65fc521f0250d826ff 32168 astronomical-almanac_5.6-9.debian.tar.xz
 c779143415e81a5ce927228a7eee99118e633612 6357 astronomical-almanac_5.6-9_amd64.buildinfo
Checksums-Sha256:
 61abf238d6dd3e780ea7c7bfa0cee3497c894621416c74d8536ae5722dcd409e 2102 astronomical-almanac_5.6-9.dsc
 9d5c2c7a9c3d9104c3247dfe1cc380503666b8dc659151bf0e5611d3878fb48a 410073 astronomical-almanac_5.6.orig.tar.gz
 baa51bf34370179f4d394243039b4845519402ff79419f2e502e1f6c19003fbd 32168 astronomical-almanac_5.6-9.debian.tar.xz
 5d9f2d60e0f28cb34da7ff2bbd338630a55aa7af6319b0ce32cafadbee7c36ba 6357 astronomical-almanac_5.6-9_amd64.buildinfo
Files:
 775b852cef2fc7e92902c02ceeb9e455 2102 science optional astronomical-almanac_5.6-9.dsc
 a1464c450d1177e148e2bc70c6c8c248 410073 science optional astronomical-almanac_5.6.orig.tar.gz
 c16fd161ea89044049c7c43ad34be525 32168 science optional astronomical-almanac_5.6-9.debian.tar.xz
 1481429d1e990c79612ff5ae82846802 6357 science optional astronomical-almanac_5.6-9_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQKnBAEBCgCRFiEEYgH7/9u94Hgi6ruWlvysDTh7WEcFAmi8salfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDYy
MDFGQkZGREJCREUwNzgyMkVBQkI5Njk2RkNBQzBEMzg3QjU4NDcTHGRlYmlhbkBh
bHRlaG9sei5kZQAKCRCW/KwNOHtYR6O9D/9chxYy1q2n18N+MzbAOWu5s++5OCQ2
qivVANvUi4bY4REZce3H+iywH7iRJoVf5b0gWf5wjJkRIFSl1coFjRhQIZKXq3kT
+WxR9+4zmRc8KYoILFgKnBdJ8zHSH5Zb9HvEskOkKkce3a2XfK3zBC1JO8MGJ+8U
RZ3CedbN8ULZXoKQz/iLkFqwu17ZZloBufNDYEssh3rz1Hj9GTpNh1o+uNzlMKQA
AATPi+npDoDPcWb1MS2zVFZa8dzPw5ylEYPGoGTYkfQk78C+KKr0LUqcWH17Jt1v
WEebNvPaIYzxBgoLvABTcpbTOz0EiHn/ascmXrUElrxOMcKs/PYGgXwdw4Tj77II
yAhJBduSMxvH2pxH1KPVf24fsi0kBNceHxzw69gz/QvWqsoeLgUIpeYCmXV6O/VS
plX+/UohiuFp2/9Ky4r0qB8UinEIdR6xxB3BA309+eV7EnLWa24Lnd6qPYd9f3x9
TpxZL35agprmh4J4/MR93s80ZXDN8KTMBgf/P++8q4fZlVcOMms0UsazBIvhlxq0
QYUYhJvIJd1aJqcmDh1rc2jKwfO7lmdCfUfXnanojOndUoBPAKAZkyeoGlfqBdTR
6hzNtDy+l+DDFb44j+ecp436/wgEDFRxZYOc9Giv05vCPeDV2BqU56ubuyGpXKuP
kqcMmjumRhP6SA==
=XaPd
-----END PGP SIGNATURE-----