Bug 2373314 - vim-9.1.1435-1.fc43 FTBFS: if_py_both.h:2412:21: error: implicit declaration of function ‘PySequence_Fast_GET_SIZE’
Summary: vim-9.1.1435-1.fc43 FTBFS: if_py_both.h:2412:21: error: implicit declaration ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: vim
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Dohnal
QA Contact: Fedora Extras Quality Assurance
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
Depends On:
Blocks: F43FTBFS
TreeView+ depends on / blocked
 
Reported: 2025-06-18 09:12 UTC by Petr Pisar
Modified: 2025-06-19 15:35 UTC (History)
3 users (show)

Fixed In Version: vim-9.1.1435-2.fc43
Clone Of:
Environment:
Last Closed: 2025-06-19 15:35:02 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Pisar 2025-06-18 09:12:49 UTC
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.

Comment 1 Zdenek Dohnal 2025-06-19 06:02:47 UTC
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...

Comment 2 Fedora Update System 2025-06-19 13:06:12 UTC
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

Comment 3 Fedora Update System 2025-06-19 15:35:02 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.