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

Bug#1096366: bibtool: ftbfs with GCC-15



Package: src:bibtool
Version: 2.68+ds-1
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/bibtool_2.68+ds-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

[...]
main.c:569:33: error: assignment to ‘int (*)(void)’ from incompatible pointer type ‘int (*)(struct rECORD *, struct rECORD *)’ [-Wincompatible-pointer-types]
  569 |       else                  fct = rec_gt;          /*                        */
      |                                 ^
main.c:90:13: note: ‘rec_gt’ declared here
   90 |  static int rec_gt _ARG((Record r1,Record r2));    /* main.c                 */
      |             ^~~~~~
main.c:571:21: error: passing argument 2 of ‘db_sort’ from incompatible pointer type [-Wincompatible-pointer-types]
  571 |     db_sort(the_db, fct);                          /*                        */
      |                     ^~~
      |                     |
      |                     int (*)(void)
In file included from include/bibtool/expand.h:32,
                 from include/bibtool/bibtool.h:46,
                 from main.c:64:
include/bibtool/database.h:173:33: note: expected ‘int (*)(struct rECORD *, struct rECORD *)’ but argument is of type ‘int (*)(void)’
  173 |  void db_sort _ARG((DB db,int (*less)_ARG((Record, Record))));/*             */
      |                                 ^
include/bibtool/database.h:158:17: note: in definition of macro ‘_ARG’
  158 | #define _ARG(A) A
      |                 ^
main.c: In function ‘rec_gt’:
main.c:624:12: warning: old-style function definition [-Wold-style-definition]
  624 | static int rec_gt(r1, r2)                          /*                        */
      |            ^~~~~~
main.c: In function ‘rec_lt’:
main.c:641:12: warning: old-style function definition [-Wold-style-definition]
  641 | static int rec_lt(r1, r2)                          /*                        */
      |            ^~~~~~
main.c: In function ‘rec_gt_cased’:
main.c:658:12: warning: old-style function definition [-Wold-style-definition]
  658 | static int rec_gt_cased(r1, r2)                    /*                        */
      |            ^~~~~~~~~~~~
main.c: In function ‘rec_lt_cased’:
main.c:675:12: warning: old-style function definition [-Wold-style-definition]
  675 | static int rec_lt_cased(r1, r2)                    /*                        */
      |            ^~~~~~~~~~~~
main.c: In function ‘do_keys’:
main.c:689:13: warning: old-style function definition [-Wold-style-definition]
  689 | static bool do_keys(db, rec)                       /*                        */
      |             ^~~~~~~
main.c: In function ‘do_no_keys’:
main.c:709:13: warning: old-style function definition [-Wold-style-definition]
  709 | static bool do_no_keys(db, rec)                    /*                        */
      |             ^~~~~~~~~~
main.c: In function ‘update_crossref’:
main.c:731:13: warning: old-style function definition [-Wold-style-definition]
  731 | static bool update_crossref(db, rec)               /*                        */
      |             ^~~~~~~~~~~~~~~
make[1]: *** [makefile:492: main.o] Error 1
make[1]: *** Waiting for unfinished jobs....
io.c: In function ‘save_input_file’:
io.c:79:6: warning: old-style function definition [-Wold-style-definition]
   79 | void save_input_file(file)                         /*                        */
      |      ^~~~~~~~~~~~~~~
io.c: In function ‘get_input_file’:
io.c:129:8: warning: old-style function definition [-Wold-style-definition]
  129 | Symbol get_input_file(i)                           /*                        */
      |        ^~~~~~~~~~~~~~
io.c: In function ‘save_output_file’:
io.c:151:6: warning: old-style function definition [-Wold-style-definition]
  151 | void save_output_file(file)                        /*                        */
      |      ^~~~~~~~~~~~~~~~
io.c: In function ‘save_macro_file’:
io.c:187:6: warning: old-style function definition [-Wold-style-definition]
  187 | void save_macro_file(file)                         /*                        */
      |      ^~~~~~~~~~~~~~~
make[1]: Leaving directory '/build/reproducible-path/bibtool-2.68+ds'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:13: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2


Reply to: