Fedora Account System
Red Hat Associate
Red Hat Customer
vim-9.1.1435-1.fc43 fails to build in Fedora 43: gcc -c -I. -I/usr/include/python3.14 -DPy_LIMITED_API=0x3080000 -pthread -DDYNAMIC_PYTHON3_DLL=\"libpython3.14.so.1.0\" -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/cloudproviders -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/webp -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/atk-1.0 -I/usr/lib64/pkgconfig/../../include/dbus-1.0 -I/usr/lib64/pkgconfig/../../lib64/dbus-1.0/include -I/usr/include/fribidi -I/usr/include/libxml2 -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DWITH_GZFILEOP -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/sysprof-6 -pthread -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -std=c17 -DSYS_VIMRC_FILE='"/etc/vimrc"' -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -o objects/if_python3.o if_python3.c if_python3.c: warning: -D_FORTIFY_SOURCE defined but value is too low In file included from if_python3.c:1133: if_py_both.h: In function ‘DictionaryUpdate’: if_py_both.h:2412:21: error: implicit declaration of function ‘PySequence_Fast_GET_SIZE’ [-Wimplicit-function-declaration] 2412 | if (PySequence_Fast_GET_SIZE(fast) != 2) | ^~~~~~~~~~~~~~~~~~~~~~~~ if_py_both.h:2423:29: error: implicit declaration of function ‘PySequence_Fast_GET_ITEM’; did you mean ‘PySequence_GetItem’? [-Wimplicit-function-declaration] 2423 | keyObject = PySequence_Fast_GET_ITEM(fast, 0); | ^~~~~~~~~~~~~~~~~~~~~~~~ | PySequence_GetItem if_py_both.h:2423:27: error: assignment to ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 2423 | keyObject = PySequence_Fast_GET_ITEM(fast, 0); | ^ if_py_both.h:2445:27: error: assignment to ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 2445 | valObject = PySequence_Fast_GET_ITEM(fast, 1); | ^ A difference between passing and failing build root is at <https://koschei.fedoraproject.org/build/20710181>. This failure seems to be triggered by upgrading python3-devel from 3.13.3-3.fc43 to 3.14.0~b2-3.fc43.
Hi Peťo, thank you for filing the issue! Python removed those functions from stable API, and Vim is not in their COPR where they test new python before they put it into Fedora (although I talked about it with Python team members at least once), so I didn't find out till now. I'll check up with Python team about what can be used instead, because leaving stable API will bring us more headaches...
FEDORA-2025-9c0933e39f (vim-9.1.1435-2.fc43) has been submitted as an update to Fedora 43. https://bodhi.fedoraproject.org/updates/FEDORA-2025-9c0933e39f
FEDORA-2025-9c0933e39f (vim-9.1.1435-2.fc43) has been pushed to the Fedora 43 stable repository. If problem still persists, please make note of it in this bug report.