#1098034 uim: ftbfs with GCC-15

#1098034#5
Date:
2025-02-17 17:58:20 UTC
From:
To:
[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/uim_1.8.8-10_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

[...]
      |                           |
      |                           ScmObj (*)(ScmObj,  ScmObj) {aka long unsigned int (*)(long unsigned int,  long unsigned int)}
../sigscheme/src/module.c:282:49: note: expected 'ScmFuncType' {aka 'long unsigned int (*)(void)'} but argument is of type 'ScmObj (*)(ScmObj,  ScmObj)' {aka 'long unsigned int (*)(long unsigned int,  long unsigned int)'}
  282 | scm_register_func(const char *name, ScmFuncType c_func,
      |                                     ~~~~~~~~~~~~^~~~~~
../sigscheme/src/storage-compact.h:225:18: note: 'ScmFuncType' declared here
  225 | typedef ScmObj (*ScmFuncType)();
      |                  ^~~~~~~~~~~
uim-scm-sigscheme.c: In function 'uim_scm_init_proc3':
uim-scm-sigscheme.c:1259:27: error: passing argument 2 of 'scm_register_func' from incompatible pointer type [-Wincompatible-pointer-types]
 1259 |   scm_register_func(name, (scm_procedure_fixed_3)func, SCM_PROCEDURE_FIXED_3);
      |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                           |
      |                           ScmObj (*)(ScmObj,  ScmObj,  ScmObj) {aka long unsigned int (*)(long unsigned int,  long unsigned int,  long unsigned int)}
../sigscheme/src/module.c:282:49: note: expected 'ScmFuncType' {aka 'long unsigned int (*)(void)'} but argument is of type 'ScmObj (*)(ScmObj,  ScmObj,  ScmObj)' {aka 'long unsigned int (*)(long unsigned int,  long unsigned int,  long unsigned int)'}
  282 | scm_register_func(const char *name, ScmFuncType c_func,
      |                                     ~~~~~~~~~~~~^~~~~~
../sigscheme/src/storage-compact.h:225:18: note: 'ScmFuncType' declared here
  225 | typedef ScmObj (*ScmFuncType)();
      |                  ^~~~~~~~~~~
uim-scm-sigscheme.c: In function 'uim_scm_init_proc4':
uim-scm-sigscheme.c:1270:27: error: passing argument 2 of 'scm_register_func' from incompatible pointer type [-Wincompatible-pointer-types]
 1270 |   scm_register_func(name, (scm_procedure_fixed_4)func, SCM_PROCEDURE_FIXED_4);
      |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                           |
      |                           ScmObj (*)(ScmObj,  ScmObj,  ScmObj,  ScmObj) {aka long unsigned int (*)(long unsigned int,  long unsigned int,  long unsigned int,  long unsigned int)}
../sigscheme/src/module.c:282:49: note: expected 'ScmFuncType' {aka 'long unsigned int (*)(void)'} but argument is of type 'ScmObj (*)(ScmObj,  ScmObj,  ScmObj,  ScmObj)' {aka 'long unsigned int (*)(long unsigned int,  long unsigned int,  long unsigned int,  long unsigned int)'}
  282 | scm_register_func(const char *name, ScmFuncType c_func,
      |                                     ~~~~~~~~~~~~^~~~~~
../sigscheme/src/storage-compact.h:225:18: note: 'ScmFuncType' declared here
  225 | typedef ScmObj (*ScmFuncType)();
      |                  ^~~~~~~~~~~
uim-scm-sigscheme.c: In function 'uim_scm_init_proc5':
uim-scm-sigscheme.c:1282:27: error: passing argument 2 of 'scm_register_func' from incompatible pointer type [-Wincompatible-pointer-types]
 1282 |   scm_register_func(name, (scm_procedure_fixed_5)func, SCM_PROCEDURE_FIXED_5);
      |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                           |
      |                           ScmObj (*)(ScmObj,  ScmObj,  ScmObj,  ScmObj,  ScmObj) {aka long unsigned int (*)(long unsigned int,  long unsigned int,  long unsigned int,  long unsigned int,  long unsigned int)}
../sigscheme/src/module.c:282:49: note: expected 'ScmFuncType' {aka 'long unsigned int (*)(void)'} but argument is of type 'ScmObj (*)(ScmObj,  ScmObj,  ScmObj,  ScmObj,  ScmObj)' {aka 'long unsigned int (*)(long unsigned int,  long unsigned int,  long unsigned int,  long unsigned int,  long unsigned int)'}
  282 | scm_register_func(const char *name, ScmFuncType c_func,
      |                                     ~~~~~~~~~~~~^~~~~~
../sigscheme/src/storage-compact.h:225:18: note: 'ScmFuncType' declared here
  225 | typedef ScmObj (*ScmFuncType)();
      |                  ^~~~~~~~~~~
libtool: compile:  gcc -DHAVE_CONFIG_H -DSCMLIBDIR=\"/usr/share/uim/lib\" -I. -I../replace -I../uim -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/uim-1.8.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O1 -O1 -pedantic -pipe -Wall -Wchar-subscripts -Wmissing-declarations -Wredundant-decls -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wno-long-long -Wno-overlength-strings -DNDEBUG -Wno-redundant-decls -Wno-unused-function -c anthy.c -o libuim_anthy_la-anthy.o >/dev/null 2>&1
libtool: compile:  gcc -DHAVE_CONFIG_H -DSCMLIBDIR=\"/usr/share/uim/lib\" -I. -I../replace -I../uim -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/uim-1.8.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O1 -O1 -pedantic -pipe -Wall -Wchar-subscripts -Wmissing-declarations -Wredundant-decls -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wno-long-long -Wno-overlength-strings -DNDEBUG -Wno-redundant-decls -Wno-unused-function -c expat.c  -fPIC -DPIC -o .libs/libuim_expat_la-expat.o
libtool: compile:  gcc -DHAVE_CONFIG_H -DSCMLIBDIR=\"/usr/share/uim/lib\" -I. -I../replace -I../uim -DSCM_FILES=\"/usr/share/uim\" -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/uim-1.8.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O1 -O1 -pedantic -pipe -Wall -Wchar-subscripts -Wmissing-declarations -Wredundant-decls -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wno-long-long -Wno-overlength-strings -DNDEBUG -Wno-redundant-decls -Wno-unused-function -c uim-custom.c -o libuim_custom_la-uim-custom.o >/dev/null 2>&1
libtool: compile:  gcc -DHAVE_CONFIG_H -DSCMLIBDIR=\"/usr/share/uim/lib\" -I. -I../replace -I../uim -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/uim-1.8.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O1 -O1 -pedantic -pipe -Wall -Wchar-subscripts -Wmissing-declarations -Wredundant-decls -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wno-long-long -Wno-overlength-strings -DNDEBUG -Wno-redundant-decls -Wno-unused-function -c anthy-utf8.c -o libuim_anthy_utf8_la-anthy-utf8.o >/dev/null 2>&1
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -DSCMLIBDIR="\"/usr/share/uim/lib\"" -I. -I../replace -I../uim -I.. -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/uim-1.8.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O1 -O1 -pedantic -pipe -Wall -Wchar-subscripts -Wmissing-declarations -Wredundant-decls -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wno-long-long -Wno-overlength-strings -DNDEBUG -Wno-redundant-decls -Wno-unused-function -c -o libuim_xkb_la-uim-xkb.lo `test -f 'uim-xkb.c' || echo './'`uim-xkb.c
expat.c: In function 'xml_start_element_handler_internal':
expat.c:62:16: warning: comparison between pointer and zero character constant [-Wpointer-compare]
   62 |   while (*atts != '\0') {
      |                ^~
expat.c:62:10: note: did you mean to dereference the pointer?
   62 |   while (*atts != '\0') {
      |          ^
libtool: compile:  gcc -DHAVE_CONFIG_H -DSCMLIBDIR=\"/usr/share/uim/lib\" -I. -I../replace -I../uim -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/uim-1.8.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O1 -O1 -pedantic -pipe -Wall -Wchar-subscripts -Wmissing-declarations -Wredundant-decls -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wno-long-long -Wno-overlength-strings -DNDEBUG -Wno-redundant-decls -Wno-unused-function -c uim-xkb.c  -fPIC -DPIC -o .libs/libuim_xkb_la-uim-xkb.o
libtool: compile:  gcc -DHAVE_CONFIG_H -DSCMLIBDIR=\"/usr/share/uim/lib\" -I. -I../replace -I../uim -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/uim-1.8.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O1 -O1 -pedantic -pipe -Wall -Wchar-subscripts -Wmissing-declarations -Wredundant-decls -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wno-long-long -Wno-overlength-strings -DNDEBUG -Wno-redundant-decls -Wno-unused-function -c m17nlib.c -o libuim_m17nlib_la-m17nlib.o >/dev/null 2>&1
make[3]: *** [Makefile:1675: libuim_scm_la-uim-scm-sigscheme.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
libtool: compile:  gcc -DHAVE_CONFIG_H -DSCMLIBDIR=\"/usr/share/uim/lib\" -I. -I../replace -I../uim -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/uim-1.8.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O1 -O1 -pedantic -pipe -Wall -Wchar-subscripts -Wmissing-declarations -Wredundant-decls -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wno-long-long -Wno-overlength-strings -DNDEBUG -Wno-redundant-decls -Wno-unused-function -c expat.c -o libuim_expat_la-expat.o >/dev/null 2>&1
libtool: compile:  gcc -DHAVE_CONFIG_H -DSCMLIBDIR=\"/usr/share/uim/lib\" -I. -I../replace -I../uim -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/uim-1.8.8=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O1 -O1 -pedantic -pipe -Wall -Wchar-subscripts -Wmissing-declarations -Wredundant-decls -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wno-long-long -Wno-overlength-strings -DNDEBUG -Wno-redundant-decls -Wno-unused-function -c uim-xkb.c -o libuim_xkb_la-uim-xkb.o >/dev/null 2>&1
make[3]: Leaving directory '/build/reproducible-path/uim-1.8.8/uim'
make[2]: *** [Makefile:1132: all] Error 2
make[2]: Leaving directory '/build/reproducible-path/uim-1.8.8/uim'
make[1]: *** [Makefile:673: all-recursive] Error 1
make[1]: Leaving directory '/build/reproducible-path/uim-1.8.8'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:57: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2