[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1096411: canna: ftbfs with GCC-15



Package: src:canna
Version: 3.7p3-25
Severity: important
Tags: sid forky
User: debian-gcc@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/canna_3.7p3-25_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

[...]
  984 | void                    _RkKillCache();
      |                         ^~~~~~~~~~~~
tempdic.c: In function ‘_Rktsearch’:
tempdic.c:608:1: warning: old-style function definition [-Wold-style-definition]
  608 | _Rktsearch(cx, dm, key, n, nread, maxcache, cf)
      | ^~~~~~~~~~
tempdic.c:624:21: error: too many arguments to function ‘uniqAlnum’; expected 0, have 1
  624 |     Wchar       k = uniqAlnum(key[j++]);
      |                     ^~~~~~~~~ ~~~~~~~~
tempdic.c:617:17: note: declared here
  617 |   Wchar         uniqAlnum();
      |                 ^~~~~~~~~
tempdic.c:643:33: error: too many arguments to function ‘_RkReadCache’; expected 0, have 2
  643 |               nread[nc].cache = _RkReadCache(dm, (long)tn->tn_word);
      |                                 ^~~~~~~~~~~~ ~~
RKintern.h:982:26: note: declared here
  982 | struct ncache           *_RkReadCache();
      |                          ^~~~~~~~~~~~
tempdic.c:671:35: error: too many arguments to function ‘_RkReadCache’; expected 0, have 2
  671 |                 nread[nc].cache = _RkReadCache(dm, (long)n0->tn_word);
      |                                   ^~~~~~~~~~~~ ~~
RKintern.h:982:26: note: declared here
  982 | struct ncache           *_RkReadCache();
      |                          ^~~~~~~~~~~~
tempdic.c: In function ‘_Rktio’:
tempdic.c:702:1: warning: old-style function definition [-Wold-style-definition]
  702 | _Rktio(dm, cp, io)
      | ^~~~~~
tempdic.c: In function ‘_Rktctl’:
tempdic.c:720:1: warning: old-style function definition [-Wold-style-definition]
  720 | _Rktctl(dm, qm, what, arg, gram)
      | ^~~~~~~
tempdic.c:746:15: error: too many arguments to function ‘RkParseOWrec’; expected 0, have 5
  746 |     else if (!RkParseOWrec(gram, arg, wrec, TEMPDIC_WRECSIZE, lucks))
      |               ^~~~~~~~~~~~ ~~~~
RKintern.h:1001:26: note: declared here
 1001 | Wrec                    *RkParseOWrec();
      |                          ^~~~~~~~~~~~
tempdic.c:758:15: error: too many arguments to function ‘RkParseOWrec’; expected 0, have 5
  758 |     else if (!RkParseOWrec(gram, arg, wrec, TEMPDIC_WRECSIZE, lucks))
      |               ^~~~~~~~~~~~ ~~~~
RKintern.h:1001:26: note: declared here
 1001 | Wrec                    *RkParseOWrec();
      |                          ^~~~~~~~~~~~
tempdic.c: In function ‘_Rktsync’:
tempdic.c:774:1: warning: old-style function definition [-Wold-style-definition]
  774 | _Rktsync(cx, dm, qm)
      | ^~~~~~~~
tempdic.c:807:11: error: too many arguments to function ‘_RkCreatePath’; expected 0, have 2
  807 |   file  = _RkCreatePath(dd_p, df_p->df_link);
      |           ^~~~~~~~~~~~~ ~~~~
RKintern.h:1060:26: note: declared here
 1060 | char                    *_RkCreatePath();
      |                          ^~~~~~~~~~~~~
tempdic.c: At top level:
tempdic.c:24:13: warning: ‘rcsid’ defined but not used [-Wunused-variable]
   24 | static char rcsid[]="$Id: tempdic.c,v 1.4 2003/09/17 08:50:52 aida_s Exp $";
      |             ^~~~~
make[5]: *** [Makefile:1123: tempdic.o] Error 1
make[5]: Leaving directory '/build/reproducible-path/canna-3.7p3/lib/RK'
make[4]: *** [Makefile:1112: all] Error 2
make[4]: Leaving directory '/build/reproducible-path/canna-3.7p3/lib'
make[3]: *** [Makefile:1120: all] Error 2
make[3]: Leaving directory '/build/reproducible-path/canna-3.7p3'
make[2]: *** [Makefile:1263: canna] Error 2
make[2]: Leaving directory '/build/reproducible-path/canna-3.7p3'
make[1]: *** [debian/rules:19: override_dh_auto_build] Error 2
make[1]: Leaving directory '/build/reproducible-path/canna-3.7p3'
make: *** [debian/rules:74: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2


Reply to: