Bug#1075663: xfonts-utils: ftbfs with GCC-14
Package: src:xfonts-utils
Version: 1:7.7+6
Severity: important
Tags: sid trixie
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-14
[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/xfonts-utils_7.7+6_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
[...]
| ^~~~~~~
In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from ../mkfontscale/mkfontscale.c:27:
/usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
from /usr/include/stdlib.h:26,
from ../mkfontscale/hash.c:27:
/usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
../mkfontscale/mkfontscale.c: In function ‘main’:
../mkfontscale/mkfontscale.c:160:26: error: passing argument 1 of ‘makeList’ from incompatible pointer type [-Wincompatible-pointer-types]
160 | encodings = makeList(encodings_array, countof(encodings_array), NULL, 0);
| ^~~~~~~~~~~~~~~
| |
| const char **
In file included from ../mkfontscale/mkfontscale.c:50:
../mkfontscale/list.h:42:25: note: expected ‘char **’ but argument is of type ‘const char **’
42 | ListPtr makeList(char **a, int n, ListPtr old, int begin);
| ~~~~~~~^
../mkfontscale/mkfontscale.c:162:32: error: passing argument 1 of ‘makeList’ from incompatible pointer type [-Wincompatible-pointer-types]
162 | extra_encodings = makeList(extra_encodings_array,
| ^~~~~~~~~~~~~~~~~~~~~
| |
| const char **
../mkfontscale/list.h:42:25: note: expected ‘char **’ but argument is of type ‘const char **’
42 | ListPtr makeList(char **a, int n, ListPtr old, int begin);
| ~~~~~~~^
../mkfontscale/mkfontscale.c: In function ‘doDirectory’:
../mkfontscale/mkfontscale.c:777:66: warning: declaration of ‘encodingsToDo’ shadows a global declaration [-Wshadow]
777 | doDirectory(const char *dirname_given, int numEncodings, ListPtr encodingsToDo)
| ~~~~~~~~^~~~~~~~~~~~~
../mkfontscale/mkfontscale.c:114:16: note: shadowed declaration is here
114 | static ListPtr encodingsToDo;
| ^~~~~~~~~~~~~
../mkfontscale/mkfontscale.c:927:17: warning: declaration of ‘n’ shadows a previous local [-Wshadow]
927 | int n = strlen(xlfd_name);
| ^
../mkfontscale/mkfontscale.c:788:12: note: shadowed declaration is here
788 | int i, n, found, rc;
| ^
../mkfontscale/mkfontscale.c: In function ‘checkExtraEncoding’:
../mkfontscale/mkfontscale.c:1217:17: warning: declaration of ‘found’ shadows a parameter [-Wshadow]
1217 | int found = 0;
| ^~~~~
../mkfontscale/mkfontscale.c:1211:59: note: shadowed declaration is here
1211 | checkExtraEncoding(FT_Face face, char *encoding_name, int found)
| ~~~~^~~~~
../mkfontscale/mkfontscale.c: In function ‘readEncodings’:
../mkfontscale/mkfontscale.c:1287:23: warning: declaration of ‘encodings’ shadows a global declaration [-Wshadow]
1287 | readEncodings(ListPtr encodings, char *dirname)
| ~~~~~~~~^~~~~~~~~
../mkfontscale/mkfontscale.c:91:16: note: shadowed declaration is here
91 | static ListPtr encodings, extra_encodings;
| ^~~~~~~~~
make[4]: *** [Makefile:508: mkfontscale.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory '/<<PKGBUILDDIR>>/mkfontscale-build'
make[3]: *** [Makefile:524: all-recursive] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/mkfontscale-build'
make[2]: *** [Makefile:393: all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/mkfontscale-build'
dh_auto_build: error: cd mkfontscale-build && make -j8 returned exit code 2
make[1]: *** [debian/rules:35: stampdir/build-mkfontscale] Error 255
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:15: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
Reply to: