Bug#1075179: liblouisutdml: ftbfs with GCC-14

Matthias Klose doko at debian.org
Wed Jul 3 13:33:36 BST 2024


Package: src:liblouisutdml
Version: 2.12.0-5
Severity: important
Tags: sid trixie
User: debian-gcc at 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/liblouisutdml_2.12.0-5_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

[...]
/usr/include/libxml2/libxml/parser.h:959:17: note: declared here
  959 |                 xmlThrDefKeepBlanksDefaultValue(int v);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
transcriber.c:4023:7: warning: ‘xmlThrDefLineNumbersDefaultValue’ is deprecated [-Wdeprecated-declarations]
 4023 |       xmlThrDefLineNumbersDefaultValue (1);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/libxml2/libxml/parser.h:969:17: note: declared here
  969 |                 xmlThrDefLineNumbersDefaultValue(int v);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
transcriber.c: In function ‘processDaisyDoc’:
transcriber.c:4065:3: warning: ‘initGenericErrorDefaultFunc’ is deprecated [-Wdeprecated-declarations]
 4065 |   initGenericErrorDefaultFunc (NULL);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/libxml2/libxml/valid.h:15,
                 from /usr/include/libxml2/libxml/parser.h:19:
/usr/include/libxml2/libxml/xmlerror.h:894:5: note: declared here
  894 |     initGenericErrorDefaultFunc (xmlGenericErrorFunc *handler);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
transcriber.c: In function ‘freeDaisyDoc’:
transcriber.c:4083:3: warning: ‘initGenericErrorDefaultFunc’ is deprecated [-Wdeprecated-declarations]
 4083 |   initGenericErrorDefaultFunc (NULL);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/libxml2/libxml/xmlerror.h:894:5: note: declared here
  894 |     initGenericErrorDefaultFunc (xmlGenericErrorFunc *handler);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../java/Jliblouisutdml.c: In function ‘louisForBack’:
../java/Jliblouisutdml.c:1089:19: error: passing argument 6 of ‘lou_translate’ from incompatible pointer type [-Wincompatible-pointer-types]
 1089 | #define typeformX typeformY
      |                   ^~~~~~~~~
      |                   |
      |                   jbyte * {aka signed char *}
../java/Jliblouisutdml.c:1145:39: note: in expansion of macro ‘typeformX’
 1145 |                             &outlenX, typeformX, NULL,
      |                                       ^~~~~~~~~
/usr/include/liblouis/liblouis.h:130:40: note: expected ‘formtype *’ {aka ‘short unsigned int *’} but argument is of type ‘jbyte *’ {aka ‘signed char *’}
  130 |                 int *outlen, formtype *typeform, char *spacing, int *outputPos, int *inputPos,
      |                              ~~~~~~~~~~^~~~~~~~
../java/Jliblouisutdml.c:1089:19: error: passing argument 6 of ‘lou_backTranslate’ from incompatible pointer type [-Wincompatible-pointer-types]
 1089 | #define typeformX typeformY
      |                   ^~~~~~~~~
      |                   |
      |                   jbyte * {aka signed char *}
../java/Jliblouisutdml.c:1150:43: note: in expansion of macro ‘typeformX’
 1150 |                                 &outlenX, typeformX, NULL,
      |                                           ^~~~~~~~~
/usr/include/liblouis/liblouis.h:172:58: note: expected ‘formtype *’ {aka ‘short unsigned int *’} but argument is of type ‘jbyte *’ {aka ‘signed char *’}
  172 |                 widechar *outbuf, int *outlen, formtype *typeform, char *spacing, int *outputPos,
      |                                                ~~~~~~~~~~^~~~~~~~
../java/Jliblouisutdml.c: In function ‘Java_org_liblouis_LibLouisUTDML_registerLogCallback’:
../java/Jliblouisutdml.c:1377:29: error: passing argument 1 of ‘lbu_registerLogCallback’ from incompatible pointer type [-Wincompatible-pointer-types]
 1377 |     lbu_registerLogCallback(javaLbuLogCallbackFunc);
      |                             ^~~~~~~~~~~~~~~~~~~~~~
      |                             |
      |                             void (*)(int,  const char *)
./liblouisutdml.h:171:61: note: expected ‘logcallback’ {aka ‘void (*)(logLevels,  const char *)’} but argument is of type ‘void (*)(int,  const char *)’
  171 | LBUAPI void EXPORT_CALL lbu_registerLogCallback(logcallback callback);
      |                                                 ~~~~~~~~~~~~^~~~~~~~
make[4]: *** [Makefile:1365: liblouisutdml_la-Jliblouisutdml.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DLBU_PATH=\"/usr/share/liblouisutdml/lbu_files/\" -DLIBLOUIS_TABLES_PATH=\"/usr/share/liblouis/tables/\" -DLBULIB -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/lib/jvm/java-17-openjdk-amd64/include -I/usr/lib/jvm/java-17-openjdk-amd64/include/linux -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux -I/usr/include/liblouis -I/usr/include/libxml2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c transcriber.c -o liblouisutdml_la-transcriber.o >/dev/null 2>&1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/liblouisutdml'
make[3]: *** [Makefile:1046: all] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/liblouisutdml'
make[2]: *** [Makefile:1065: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j8 --assume-new=file2brl.1 returned exit code 2
make[1]: *** [debian/rules:34: override_dh_auto_build-arch] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:18: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Pkg-a11y-devel mailing list