Bug ID 1220970
Summary GCC 14: python package fails
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware Other
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component Python
Assignee python-maintainers@suse.com
Reporter michal.jires@suse.com
QA Contact qa-bugs@suse.de
CC mcepl@suse.com
Blocks 1220571
Target Milestone ---
Found By ---
Blocker ---

Building python with GCC 14 fails here:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/python/standard/x86_64

Due to (exhaustive list of errors):

Python-2.7.18/Modules/_tkinter.c: In function ‘AsObj’:
Python-2.7.18/Modules/_tkinter.c:1178:38: error: passing argument 1 of
‘Tcl_NewUnicodeObj’ from incompatible pointer type
[-Wincompatible-pointer-types]
 1178 |             return Tcl_NewUnicodeObj(inbuf, size);
      |                                      ^~~~~
      |                                      |
      |                                      Py_UNICODE * {aka int *}
In file included from /usr/include/tcl.h:2418,
                 from
/home/abuild/rpmbuild/BUILD/Python-2.7.18/Modules/_tkinter.c:70:
/usr/include/tclDecls.h:1102:62: note: expected ‘const Tcl_UniChar *’ {aka
‘const short unsigned int *’} but argument is of type ‘Py_UNICODE *’ {aka ‘int
*’}
 1102 | EXTERN Tcl_Obj *        Tcl_NewUnicodeObj(const Tcl_UniChar *unicode,
      |                                           ~~~~~~~~~~~~~~~~~~~^~~~~~~

See the meta bug#1220571 for more info.


You are receiving this mail because: