Bug#1097345: m17n-lib: ftbfs with GCC-15
Package: src:m17n-lib
Version: 1.8.4-2
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/m17n-lib_1.8.4-2_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
[...]
medit.c: In function ‘CursorProc’:
medit.c:1954:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1954 | int data = (int) client_data;
| ^
medit.c: In function ‘InputMethodProc’:
medit.c:1997:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1997 | int idx = (int) client_data;
| ^
medit.c: In function ‘FaceProc’:
medit.c:2033:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
2033 | int idx = (int) client_data;
| ^
medit.c: In function ‘DumpImageProc’:
medit.c:2138:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
2138 | int narrowed = (int) client_data;
| ^
medit.c: In function ‘surrounding_text_handler’:
medit.c:2198:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
2198 | int len = (int) mplist_value (ic->plist);
| ^
medit.c:2223:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
2223 | int len = (int) mplist_value (ic->plist);
| ^
medit.c: In function ‘FileDialogProc’:
medit.c:2433:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
2433 | if ((int) client_data == 1)
| ^
medit.c: In function ‘main’:
medit.c:2736:8: error: too many arguments to function ‘read_file’; expected 0, have 1
2736 | mt = read_file (filename);
| ^~~~~~~~~ ~~~~~~~~
medit.c:1864:1: note: declared here
1864 | read_file ()
| ^~~~~~~~~
medit.c:2790:40: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
2790 | mface_put_prop (face, Msize, (void *) fontsize);
| ^
medit.c:2806:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
2806 | default_font_size = (int) mfont_get_prop (font, Msize);
| ^
medit.c:2809:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
2809 | font_width = (int) mframe_get_prop (frame, Mfont_width);
| ^
medit.c:2810:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
2810 | font_ascent = (int) mframe_get_prop (frame, Mfont_ascent);
| ^
medit.c:2811:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
2811 | font_descent = (int) mframe_get_prop (frame, Mfont_descent);
| ^
medit.c:2468:47: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
2468 | (MENU).proc = (PROC), (MENU).client_data = (XtPointer) (DATA), \
| ^
medit.c:2996:9: note: in expansion of macro ‘SetMenu’
2996 | SetMenu (menus[i + 2], 0, name1, name2, InputMethodProc, i, 0);
| ^~~~~~~
medit.c:2468:47: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
2468 | (MENU).proc = (PROC), (MENU).client_data = (XtPointer) (DATA), \
| ^
medit.c:3068:11: note: in expansion of macro ‘SetMenu’
3068 | SetMenu (menus[j - i], 0, face_table[j].name, NULL,
| ^~~~~~~
make[3]: *** [Makefile:699: medit.o] Error 1
make[3]: Leaving directory '/build/reproducible-path/m17n-lib-1.8.4/example'
make[2]: *** [Makefile:645: all-recursive] Error 1
make[2]: Leaving directory '/build/reproducible-path/m17n-lib-1.8.4'
make[1]: *** [Makefile:509: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/m17n-lib-1.8.4'
dh_auto_build: error: make -j1 returned exit code 2
make: *** [debian/rules:19: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
Reply to: