Bug 2099824 - bout++ fails to build with python3.11
Summary: bout++ fails to build with python3.11
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: Cython
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miro Hrončok
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2098677
TreeView+ depends on / blocked
 
Reported: 2022-06-21 18:56 UTC by david08741
Modified: 2022-06-21 21:15 UTC (History)
5 users (show)

Fixed In Version: python3.11-3.11.0~b3-4.fc37
Clone Of:
Environment:
Last Closed: 2022-06-21 19:30:54 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description david08741 2022-06-21 18:56:16 UTC
Description of problem:
bout++, or rather its python interface fails to build with python3.11

Unfortunately I don't had the time so far to dig into this, but it seems to be a cython of cpython issue.

Version-Release number of selected component (if applicable):
0.29.30-2.fc37

How reproducible:
always

Steps to Reproduce:
1. build bout++ for python3.11

Actual results:
Fails with:

In file included from /usr/include/python3.11/Python.h:38,
                 from boutcore.cpp:262:
/usr/include/python3.11/pyport.h: In instantiation of ‘type {anonymous}::_Py_CAST_impl(const expr_type&) [with type = _object*; expr_type = int]’:
boutcore.cpp:64765:9:   required from here
/usr/include/python3.11/pyport.h:47:24: error: invalid ‘static_cast’ from type ‘int’ to type ‘_object*’
   47 |                 return static_cast<type>(const_cast<expr_type &>(expr));
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
boutcore.cpp: At global scope:
boutcore.cpp:25759:45: warning: ‘__pyx_obj_8boutcore_Vector2D* __pyx_f_8boutcore_v2dFromObj(Vector2D)’ defined but not used [-Wunused-function]
25759 | static struct __pyx_obj_8boutcore_Vector2D *__pyx_f_8boutcore_v2dFromObj(Vector2D __pyx_v_i) {
      |                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~



Expected results:
No error

Additional info:
Failed build is here:
https://koji.fedoraproject.org/koji/taskinfo?taskID=88350396

Comment 1 Miro Hrončok 2022-06-21 19:31:30 UTC
Building bout++-4.4.2-3.fc37 for rawhide
Created task: 88564598
Task info: https://koji.fedoraproject.org/koji/taskinfo?taskID=88564598

Comment 2 david08741 2022-06-21 21:15:20 UTC
Thanks a lot :-)


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