#1075658 xdvik-ja: ftbfs with GCC-14

#1075658#5
Date:
2024-07-03 12:48:37 UTC
From:
To:
[This bug is 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-14/g++-14, but succeeds to build with gcc-13/g++-13. The
severity of this report will be raised before the trixie release.

The full build log can be found at:
http://qa-logs.debian.net/2024/07/01/xdvik-ja_22.87.06+j1.42-3_unstable_gccexp.log
The last lines of the build log are at the end of this report.

To build with GCC 14, either set CC=gcc-14 CXX=g++-14 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++

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-14/porting_to.html

[...]
 1065 |             (void)getcwd(path, MAXPATHLEN);
      |                   ^~~~~~~~~~~~~~~~~~~~~~~~
util.c: In function ‘find_file’:
util.c:1489:27: warning: ignoring return value of ‘fchdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1489 |                     (void)fchdir(fd);
      |                           ^~~~~~~~~~
vf.c: In function ‘read_VF_index’:
vf.c:169:19: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  169 |             (void)fread((char *)m->pos, 1, len, VF_file);
      |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -DHAVE_CONFIG_H -I.  -I./gui -DPS_GS  -I/usr/include/freetype2 -I/usr/include/libpng16    -Wdate-time -D_FORTIFY_SOURCE=2 -Wimplicit -Wreturn-type -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o xdvi.o xdvi.c
gcc -DHAVE_CONFIG_H -I.  -I./gui -DPS_GS  -I/usr/include/freetype2 -I/usr/include/libpng16    -Wdate-time -D_FORTIFY_SOURCE=2 -Wimplicit -Wreturn-type -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o xserver-info.o xserver-info.c
gcc -DHAVE_CONFIG_H -I.  -I./gui -DPS_GS  -I/usr/include/freetype2 -I/usr/include/libpng16    -Wdate-time -D_FORTIFY_SOURCE=2 -Wimplicit -Wreturn-type -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o ptexvf.o ptexvf.c
gcc -DHAVE_CONFIG_H -I.  -I./gui -DPS_GS  -I/usr/include/freetype2 -I/usr/include/libpng16    -Wdate-time -D_FORTIFY_SOURCE=2 -Wimplicit -Wreturn-type -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o ptexmap.o ptexmap.c
gcc -DHAVE_CONFIG_H -I.  -I./gui -DPS_GS  -I/usr/include/freetype2 -I/usr/include/libpng16    -Wdate-time -D_FORTIFY_SOURCE=2 -Wimplicit -Wreturn-type -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o ft2.o ft2.c
gcc -DHAVE_CONFIG_H -I.  -I./gui -DPS_GS  -I/usr/include/freetype2 -I/usr/include/libpng16    -Wdate-time -D_FORTIFY_SOURCE=2 -Wimplicit -Wreturn-type -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o jfm.o jfm.c
gcc -DHAVE_CONFIG_H -I.  -I./gui -DPS_GS  -I/usr/include/freetype2 -I/usr/include/libpng16    -Wdate-time -D_FORTIFY_SOURCE=2 -Wimplicit -Wreturn-type -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o fontconfig.o fontconfig.c
gcc -DHAVE_CONFIG_H -I.  -I./gui -DPS_GS  -I/usr/include/freetype2 -I/usr/include/libpng16    -Wdate-time -D_FORTIFY_SOURCE=2 -Wimplicit -Wreturn-type -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o ft2vert.o ft2vert.c
In file included from ft2.c:42:
ft2.c: In function ‘ft2_get_bitmap’:
ft2.c:270:32: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 3 has type ‘long int’ [-Wformat=]
  270 |         XDVI_WARNING(( stderr, "FreeType2: Failed in load glyph. "
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  271 |                        "(char=0x%X)\n", char_code ));
      |                                         ~~~~~~~~~
      |                                         |
      |                                         long int
util.h:212:17: note: in definition of macro ‘XDVI_WARNING’
  212 |         fprintf X;                                              \
      |                 ^
ft2.c:277:32: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 3 has type ‘long int’ [-Wformat=]
  277 |         XDVI_WARNING(( stderr, "FreeType2: Failed in render glyph. "
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  278 |                        "(char=0x%X)\n", char_code ));
      |                                         ~~~~~~~~~
      |                                         |
      |                                         long int
util.h:212:17: note: in definition of macro ‘XDVI_WARNING’
  212 |         fprintf X;                                              \
      |                 ^
gcc -DHAVE_CONFIG_H -I.  -I./gui -DPS_GS  -I/usr/include/freetype2 -I/usr/include/libpng16    -Wdate-time -D_FORTIFY_SOURCE=2 -Wimplicit -Wreturn-type -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o AJ16.o AJ16.c
squeeze/squeeze ./psheader.txt psheader.c
gcc -DHAVE_CONFIG_H -I.  -I./gui -DPS_GS  -I/usr/include/freetype2 -I/usr/include/libpng16    -Wdate-time -D_FORTIFY_SOURCE=2 -Wimplicit -Wreturn-type -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o gui/Panner.o gui/Panner.c
gcc -DHAVE_CONFIG_H -I.  -I./gui -DPS_GS  -I/usr/include/freetype2 -I/usr/include/libpng16    -Wdate-time -D_FORTIFY_SOURCE=2 -Wimplicit -Wreturn-type -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o gui/Tip.o gui/Tip.c
gcc -DHAVE_CONFIG_H -I.  -I./gui -DPS_GS  -I/usr/include/freetype2 -I/usr/include/libpng16    -Wdate-time -D_FORTIFY_SOURCE=2 -Wimplicit -Wreturn-type -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o gui/help-window.o gui/help-window.c
gcc -DHAVE_CONFIG_H -I.  -I./gui -DPS_GS  -I/usr/include/freetype2 -I/usr/include/libpng16    -Wdate-time -D_FORTIFY_SOURCE=2 -Wimplicit -Wreturn-type -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o gui/mag.o gui/mag.c
gcc -DHAVE_CONFIG_H -I.  -I./gui -DPS_GS  -I/usr/include/freetype2 -I/usr/include/libpng16    -Wdate-time -D_FORTIFY_SOURCE=2 -Wimplicit -Wreturn-type -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o gui/menu.o gui/menu.c
gcc -DHAVE_CONFIG_H -I.  -I./gui -DPS_GS  -I/usr/include/freetype2 -I/usr/include/libpng16    -Wdate-time -D_FORTIFY_SOURCE=2 -Wimplicit -Wreturn-type -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o gui/message-window.o gui/message-window.c
gcc -DHAVE_CONFIG_H -I.  -I./gui -DPS_GS  -I/usr/include/freetype2 -I/usr/include/libpng16    -Wdate-time -D_FORTIFY_SOURCE=2 -Wimplicit -Wreturn-type -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o gui/pagesel.o gui/pagesel.c
gcc -DHAVE_CONFIG_H -I.  -I./gui -DPS_GS  -I/usr/include/freetype2 -I/usr/include/libpng16    -Wdate-time -D_FORTIFY_SOURCE=2 -Wimplicit -Wreturn-type -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o gui/print-dialog.o gui/print-dialog.c
gui/pagesel.c: In function ‘xaw_update_list’:
gui/pagesel.c:541:41: error: passing argument 2 of ‘XawListChange’ from incompatible pointer type [-Wincompatible-pointer-types]
  541 |     XawListChange(LIST_WIDGET, page_info.page_labels, 0,
      |                                ~~~~~~~~~^~~~~~~~~~~~
      |                                         |
      |                                         char **
In file included from gui/pagesel.c:93:
/usr/include/X11/Xaw/List.h:170:27: note: expected ‘const char **’ but argument is of type ‘char **’
  170 |  _Xconst char           **list,
      |                           ^
make[3]: *** [Makefile:941: gui/pagesel.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/<<PKGBUILDDIR>>/texk/xdvik'
make[2]: *** [Makefile:1079: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/texk/xdvik'
make[1]: *** [Makefile:634: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/texk/xdvik'
dh_auto_build: error: cd texk/xdvik && make -j8 returned exit code 2
make: *** [debian/rules:9: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

#1075658#14
Date:
2024-11-13 18:13:29 UTC
From:
To:
severity 1075658 important
thanks

Hi.

Now it works, which means this could be probably due to
a build-dependency, but I don't know which one, so I'm
just downgrading for now.

Note that it could be the case that the code is still wrong
but the C compiler accepts it now (this is why I'm not just
closing the bug).

Thanks.

#1075658#21
Date:
2024-11-16 00:19:39 UTC
From:
To:
Hi.

This is when this build failure stopped happening:

bisection finished successfully
   last good timestamp: 20241101T145036Z -> package still ftbfs
   first bad timestamp: 20241101T210520Z -> package started to build ok again
the following packages differ between the last good and first bad timestamp:
   libsystemd0:amd64 256.7-2 -> 256.7-3
   libudev1:amd64 256.7-2 -> 256.7-3
   libx11-6:amd64 2:1.8.7-1+b2 -> 2:1.8.10-1
   libx11-data 2:1.8.7-1 -> 2:1.8.10-1
   libx11-dev:amd64 2:1.8.7-1+b2 -> 2:1.8.10-1
   libxau-dev:amd64 1:1.0.9-1+b2 -> 1:1.0.11-1
   libxau6:amd64 1:1.0.9-1+b2 -> 1:1.0.11-1
   libxaw7-dev:amd64 2:1.0.14-1+b3 -> 2:1.0.16-1
   libxaw7:amd64 2:1.0.14-1+b3 -> 2:1.0.16-1

(note: good and bad are reversed)

Packages "nas" and "timidity" started to build ok in the same date.

Thanks.