Bug 2246276 - coccinelle fails to build with Python 3.13: Py.find_library: unable to find the Python library [/lib64/libpython3.13.so.1.0 returned Cannot resolve _PyObject_NextNotImplemented.
Summary: coccinelle fails to build with Python 3.13: Py.find_library: unable to find t...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: coccinelle
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.13
TreeView+ depends on / blocked
 
Reported: 2023-10-26 07:10 UTC by Karolina Surma
Modified: 2023-11-07 14:07 UTC (History)
5 users (show)

Fixed In Version: coccinelle-1.1.1-24.20230624git0afff7f.fc40, ocaml-pyml-20231101-1.fc40
Clone Of:
Environment:
Last Closed: 2023-11-07 14:07:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2023-10-26 07:10:32 UTC
coccinelle fails to build with Python 3.13.0a1.

This report is automated and not very verbose, but we'll try to get back here with details.

+ /builddir/build/BUILDROOT/coccinelle-1.1.1-23.20230624git0afff7f.fc40.x86_64/usr/lib64/coccinelle/spatch --sp-file /builddir/build/SOURCES/testpy.cocci /builddir/build/SOURCES/test.c
init_defs_builtins: /builddir/build/BUILDROOT/coccinelle-1.1.1-23.20230624git0afff7f.fc40.x86_64/usr/lib64/coccinelle/standard.h
Py.find_library: unable to find the Python library [/lib64/libpython3.13.so.1.0 returned Cannot resolve _PyObject_NextNotImplemented.
]

https://docs.python.org/3.13/whatsnew/3.13.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/06546747-coccinelle/

For all our attempts to build coccinelle with Python 3.13, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/coccinelle/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.13:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/

Let us know here if you have any questions.

Python 3.13 is planned to be included in Fedora 41.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Richard W.M. Jones 2023-10-26 07:59:03 UTC
I reported this on the upstream mailing list.

Comment 2 Jerry James 2023-11-06 15:46:28 UTC
The use of _PyObject_NextNotImplemented actually comes from ocaml-pyml.  There is a new version of ocaml-pyml out that drops all support for python 2.7, including this symbol.  I will build it and rebuild coccinelle.  That should fix this bug.  I will do mock builds first to ensure that is the case.

Comment 3 Jerry James 2023-11-06 19:31:19 UTC
The ocaml-pyml update and coccinelle rebuild are now done in Rawhide.  I was not able to build ocaml-pyml for python 3.13 because it BuildRequires python3-ipython, which does not seem to be available yet.  However, I did grep over the new ocaml-pyml and coccinelle binary RPM contents for _PyObject_NextNotImplemented, and did not find it, so I think this bug is probably fixed now.

Comment 4 Miro Hrončok 2023-11-07 09:31:46 UTC
The latest automatic coccinelle rebuild in Copr happened with ocaml-pyml-devel 20220905-5.fc40, which isn't the latest I can see. I will trigger a new build.

Comment 5 Miro Hrončok 2023-11-07 14:07:23 UTC
Built fine.


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