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

Bug#1096553: dvi2dvi: ftbfs with GCC-15



Package: src:dvi2dvi
Version: 2.0alpha-12
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/dvi2dvi_2.0alpha-12_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

[...]
      |      ^~~~~~~~~~
dvi2.c: In function ‘FindPostAmblePtr’:
dvi2.c:274:1: warning: old-style function definition [-Wold-style-definition]
  274 | FindPostAmblePtr(postambleptr)
      | ^~~~~~~~~~~~~~~~
dvi2.c:278:1: error: number of arguments doesn’t match prototype
  278 | {
      | ^
dvi2.c:40:6: error: prototype declaration
   40 | void FindPostAmblePtr();
      |      ^~~~~~~~~~~~~~~~
dvi2.c:287:19: error: too many arguments to function ‘getuint’; expected 0, have 2
  287 |         if (((i = getuint(dvifp, 1)) != 223) &&
      |                   ^~~~~~~ ~~~~~
global.h:130:5: note: declared here
  130 | int getuint();
      |     ^~~~~~~
dvi2.c:289:13: error: too many arguments to function ‘Fatal’; expected 0, have 1
  289 |             Fatal("Bad end of DVI file");
      |             ^~~~~ ~~~~~~~~~~~~~~~~~~~~~
global.h:95:6: note: declared here
   95 | void Fatal();
      |      ^~~~~
dvi2.c:294:23: error: too many arguments to function ‘getuint’; expected 0, have 2
  294 |     (*postambleptr) = getuint(dvifp, 4);
      |                       ^~~~~~~ ~~~~~
global.h:130:5: note: declared here
  130 | int getuint();
      |     ^~~~~~~
dvi2.c: In function ‘GetFontDef’:
dvi2.c:305:1: warning: old-style function definition [-Wold-style-definition]
  305 | GetFontDef(hdfip)
      | ^~~~~~~~~~
dvi2.c:311:1: error: number of arguments doesn’t match prototype
  311 | {
      | ^
dvi2.c:41:6: error: prototype declaration
   41 | void GetFontDef();
      |      ^~~~~~~~~~
dvi2.c:315:15: error: too many arguments to function ‘getuint’; expected 0, have 2
  315 |         cmd = getuint(dvifp, 1);
      |               ^~~~~~~ ~~~~~
global.h:130:5: note: declared here
  130 | int getuint();
      |     ^~~~~~~
dvi2.c:317:25: error: too many arguments to function ‘getuint’; expected 0, have 2
  317 |             ReadFontDef(getuint(dvifp, cmd-FNT_DEF1+1), hdfip);
      |                         ^~~~~~~ ~~~~~
global.h:130:5: note: declared here
  130 | int getuint();
      |     ^~~~~~~
dvi2.c:317:13: error: too many arguments to function ‘ReadFontDef’; expected 0, have 2
  317 |             ReadFontDef(getuint(dvifp, cmd-FNT_DEF1+1), hdfip);
      |             ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
global.h:59:6: note: declared here
   59 | void ReadFontDef();
      |      ^~~~~~~~~~~
dvi2.c:323:13: error: too many arguments to function ‘Fatal’; expected 0, have 1
  323 |             Fatal("POST_POST missing after fontdefs");
      |             ^~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
global.h:95:6: note: declared here
   95 | void Fatal();
      |      ^~~~~
make[2]: *** [Makefile:75: dvi2.o] Error 1
make[2]: Leaving directory '/build/reproducible-path/dvi2dvi-2.0alpha'
dh_auto_build: error: make -j8 returned exit code 2
make[1]: *** [debian/rules:11: override_dh_auto_build] Error 25
make[1]: Leaving directory '/build/reproducible-path/dvi2dvi-2.0alpha'
make: *** [debian/rules:4: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2


Reply to: