Date: Fri, 12 May 2023 19:28:53 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 271382] devel/py-rapidfuzz does not build with Python 3.11 Message-ID: <bug-271382-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271382 Bug ID: 271382 Summary: devel/py-rapidfuzz does not build with Python 3.11 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: yuri@freebsd.org Reporter: 000.fbsd@quip.cz Flags: maintainer-feedback?(yuri@freebsd.org) Assignee: yuri@freebsd.org We have tried to build our package set in Poudriere for Python 3.11, but py-rapidfuzz failed. Building on FreeBSD 13.2 amd64 with following options in make.conf: OPTIONS_UNSET=3D X11 GUI CUPS DOCS EXAMPLES NLS HAL DEFAULT_VERSIONS=3Dapache=3D2.4 perl5=3D5.32 mysql=3D10.6m php=3D8.1 python= =3D3.11 python3=3D3.11 pgsql=3D12 bdb=3D5 /usr/local/include/python3.11/pytypedefs.h:22:16: note: forward declaration= of '_frame' typedef struct _frame PyFrameObject; ^ /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process.cxx:22785:43: warning: 'ob_shash' is deprecated [-Wdeprecated-declarations] hash1 =3D ((PyBytesObject*)s1)->ob_shash; ^ /usr/local/include/python3.11/cpython/bytesobject.h:7:5: note: 'ob_shash' h= as been explicitly marked deprecated here Py_DEPRECATED(3.11) Py_hash_t ob_shash; ^ /usr/local/include/python3.11/pyport.h:336:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__)) ^ /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process.cxx:22786:43: warning: 'ob_shash' is deprecated [-Wdeprecated-declarations] hash2 =3D ((PyBytesObject*)s2)->ob_shash; ^ /usr/local/include/python3.11/cpython/bytesobject.h:7:5: note: 'ob_shash' h= as been explicitly marked deprecated here Py_DEPRECATED(3.11) Py_hash_t ob_shash; ^ /usr/local/include/python3.11/pyport.h:336:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__)) ^ /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process.cxx:24440:30: error: no member named 'exc_type' in '_err_stackitem' tmp_type =3D exc_info->exc_type; ~~~~~~~~ ^ /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process.cxx:24442:28: error: no member named 'exc_traceback' in '_err_stackitem' tmp_tb =3D exc_info->exc_traceback; ~~~~~~~~ ^ /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process.cxx:24443:19: error: no member named 'exc_type' in '_err_stackitem' exc_info->exc_type =3D local_type; ~~~~~~~~ ^ /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process.cxx:24445:19: error: no member named 'exc_traceback' in '_err_stackitem' exc_info->exc_traceback =3D local_tb; ~~~~~~~~ ^ /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process.cxx:24642:23: error: no member named 'exc_type' in '_err_stackitem' while ((exc_info->exc_type =3D=3D NULL || exc_info->exc_type =3D=3D Py_= None) && ~~~~~~~~ ^ /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process.cxx:24642:53: error: no member named 'exc_type' in '_err_stackitem' while ((exc_info->exc_type =3D=3D NULL || exc_info->exc_type =3D=3D Py_= None) && ~~~~~~~~ ^ /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process.cxx:24656:23: error: no member named 'exc_type' in '_err_stackitem' *type =3D exc_info->exc_type; ~~~~~~~~ ^ /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process.cxx:24658:21: error: no member named 'exc_traceback' in '_err_stackitem' *tb =3D exc_info->exc_traceback; ~~~~~~~~ ^ /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process.cxx:24672:26: error: no member named 'exc_type' in '_err_stackitem' tmp_type =3D exc_info->exc_type; ~~~~~~~~ ^ /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process.cxx:24674:24: error: no member named 'exc_traceback' in '_err_stackitem' tmp_tb =3D exc_info->exc_traceback; ~~~~~~~~ ^ /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process.cxx:24675:15: error: no member named 'exc_type' in '_err_stackitem' exc_info->exc_type =3D type; ~~~~~~~~ ^ /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process.cxx:24677:15: error: no member named 'exc_traceback' in '_err_stackitem' exc_info->exc_traceback =3D tb; ~~~~~~~~ ^ /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process.cxx:24698:26: error: no member named 'exc_type' in '_err_stackitem' tmp_type =3D exc_info->exc_type; ~~~~~~~~ ^ /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process.cxx:24700:24: error: no member named 'exc_traceback' in '_err_stackitem' tmp_tb =3D exc_info->exc_traceback; ~~~~~~~~ ^ /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process.cxx:24701:15: error: no member named 'exc_type' in '_err_stackitem' exc_info->exc_type =3D *type; ~~~~~~~~ ^ /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process.cxx:24703:15: error: no member named 'exc_traceback' in '_err_stackitem' exc_info->exc_traceback =3D *tb; ~~~~~~~~ ^ fatal error: too many errors emitted, stopping now [-ferror-limit=3D] 3 warnings and 20 errors generated. [6/22] Building CXX object rapidfuzz/CMakeFiles/cpp_process_cdist.dir/cpp_process_cdist.cxx.o FAILED: rapidfuzz/CMakeFiles/cpp_process_cdist.dir/cpp_process_cdist.cxx.o= =20 /usr/bin/c++ -Dcpp_process_cdist_EXPORTS -I/usr/local/include/python3.11 -I/usr/local/lib/python3.11/site-packages/rapidfuzz_capi -I/wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfu= zz -I/usr/local/lib/python3.11/site-packages/numpy/core/include -isystem /usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing = -O3 -DNDEBUG -fPIC -Wall -Wextra -pedantic -pthread -std=3Dgnu++17 -MD -MT rapidfuzz/CMakeFiles/cpp_process_cdist.dir/cpp_process_cdist.cxx.o -MF rapidfuzz/CMakeFiles/cpp_process_cdist.dir/cpp_process_cdist.cxx.o.d -o rapidfuzz/CMakeFiles/cpp_process_cdist.dir/cpp_process_cdist.cxx.o -c /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process_cdist.cxx In file included from /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process_cdist.cxx:16: In file included from /usr/local/include/python3.11/Python.h:39: /usr/local/include/python3.11/pymacro.h:10:11: warning: keyword is hidden by macro definition [-Wkeyword-macro] # define static_assert _Static_assert ^ In file included from /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process_cdist.cxx:981: In file included from /usr/local/lib/python3.11/site-packages/numpy/core/include/numpy/arrayobjec= t.h:5: In file included from /usr/local/lib/python3.11/site-packages/numpy/core/include/numpy/ndarrayobj= ect.h:12: In file included from /usr/local/lib/python3.11/site-packages/numpy/core/include/numpy/ndarraytyp= es.h:1940: /usr/local/lib/python3.11/site-packages/numpy/core/include/numpy/npy_1_7_de= precated_api.h:17:2: warning: #warning is a language extension [-Wpedantic] #warning "Using deprecated NumPy API, disable it with " \ ^ /usr/local/lib/python3.11/site-packages/numpy/core/include/numpy/npy_1_7_de= precated_api.h:17:2: warning: "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings] /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process_cdist.cxx:10497:37: error: member access into incomplete type 'PyFrameObject' (aka '_frame') if (CYTHON_TRACE && (*frame)->f_trace =3D=3D NULL) { ^ /usr/local/include/python3.11/pytypedefs.h:22:16: note: forward declaration= of '_frame' typedef struct _frame PyFrameObject; ^ /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process_cdist.cxx:10499:21: error: member access into incomplete type 'PyFrameObject' (aka '_frame') (*frame)->f_trace =3D Py_None; ^ /usr/local/include/python3.11/pytypedefs.h:22:16: note: forward declaration= of '_frame' typedef struct _frame PyFrameObject; ^ /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process_cdist.cxx:10506:5: error: member access into incomplete type 'PyFrameObject' (aka '_frame') __Pyx_PyFrame_SetLineNumber(*frame, firstlineno); ^ /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process_cdist.cxx:605:62: note: expanded from macro '__Pyx_PyFrame_SetLineNumber' #define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno =3D (lineno) ^ /usr/local/include/python3.11/pytypedefs.h:22:16: note: forward declaration= of '_frame' typedef struct _frame PyFrameObject; ^ /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process_cdist.cxx:11111:43: warning: 'ob_shash' is deprecated [-Wdeprecated-declarations] hash1 =3D ((PyBytesObject*)s1)->ob_shash; ^ /usr/local/include/python3.11/cpython/bytesobject.h:7:5: note: 'ob_shash' h= as been explicitly marked deprecated here Py_DEPRECATED(3.11) Py_hash_t ob_shash; ^ /usr/local/include/python3.11/pyport.h:336:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__)) ^ /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process_cdist.cxx:11112:43: warning: 'ob_shash' is deprecated [-Wdeprecated-declarations] hash2 =3D ((PyBytesObject*)s2)->ob_shash; ^ /usr/local/include/python3.11/cpython/bytesobject.h:7:5: note: 'ob_shash' h= as been explicitly marked deprecated here Py_DEPRECATED(3.11) Py_hash_t ob_shash; ^ /usr/local/include/python3.11/pyport.h:336:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__)) ^ /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process_cdist.cxx:11516:23: error: no member named 'exc_type' in '_err_stackitem' while ((exc_info->exc_type =3D=3D NULL || exc_info->exc_type =3D=3D Py_= None) && ~~~~~~~~ ^ /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process_cdist.cxx:11516:53: error: no member named 'exc_type' in '_err_stackitem' while ((exc_info->exc_type =3D=3D NULL || exc_info->exc_type =3D=3D Py_= None) && ~~~~~~~~ ^ /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process_cdist.cxx:11530:23: error: no member named 'exc_type' in '_err_stackitem' *type =3D exc_info->exc_type; ~~~~~~~~ ^ /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process_cdist.cxx:11532:21: error: no member named 'exc_traceback' in '_err_stackitem' *tb =3D exc_info->exc_traceback; ~~~~~~~~ ^ /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process_cdist.cxx:11546:26: error: no member named 'exc_type' in '_err_stackitem' tmp_type =3D exc_info->exc_type; ~~~~~~~~ ^ /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process_cdist.cxx:11548:24: error: no member named 'exc_traceback' in '_err_stackitem' tmp_tb =3D exc_info->exc_traceback; ~~~~~~~~ ^ /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process_cdist.cxx:11549:15: error: no member named 'exc_type' in '_err_stackitem' exc_info->exc_type =3D type; ~~~~~~~~ ^ /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process_cdist.cxx:11551:15: error: no member named 'exc_traceback' in '_err_stackitem' exc_info->exc_traceback =3D tb; ~~~~~~~~ ^ /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process_cdist.cxx:11608:30: error: no member named 'exc_type' in '_err_stackitem' tmp_type =3D exc_info->exc_type; ~~~~~~~~ ^ /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process_cdist.cxx:11610:28: error: no member named 'exc_traceback' in '_err_stackitem' tmp_tb =3D exc_info->exc_traceback; ~~~~~~~~ ^ /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process_cdist.cxx:11611:19: error: no member named 'exc_type' in '_err_stackitem' exc_info->exc_type =3D local_type; ~~~~~~~~ ^ /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process_cdist.cxx:11613:19: error: no member named 'exc_traceback' in '_err_stackitem' exc_info->exc_traceback =3D local_tb; ~~~~~~~~ ^ /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process_cdist.cxx:11646:26: error: no member named 'exc_type' in '_err_stackitem' tmp_type =3D exc_info->exc_type; ~~~~~~~~ ^ /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process_cdist.cxx:11648:24: error: no member named 'exc_traceback' in '_err_stackitem' tmp_tb =3D exc_info->exc_traceback; ~~~~~~~~ ^ /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process_cdist.cxx:11649:15: error: no member named 'exc_type' in '_err_stackitem' exc_info->exc_type =3D *type; ~~~~~~~~ ^ /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/rapidfuzz= /cpp_process_cdist.cxx:11651:15: error: no member named 'exc_traceback' in '_err_stackitem' exc_info->exc_traceback =3D *tb; ~~~~~~~~ ^ fatal error: too many errors emitted, stopping now [-ferror-limit=3D] 5 warnings and 20 errors generated. ninja: build stopped: subcommand failed. Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/skbuild/setuptools_wrap.py", line 642, in setup cmkr.make(make_args, install_target=3Dcmake_install_target, env=3Denv) File "/usr/local/lib/python3.11/site-packages/skbuild/cmaker.py", line 67= 9, in make self.make_impl(clargs=3Dclargs, config=3Dconfig, source_dir=3Dsource_di= r, install_target=3Dinstall_target, env=3Denv) File "/usr/local/lib/python3.11/site-packages/skbuild/cmaker.py", line 71= 0, in make_impl raise SKBuildError( An error occurred while building with CMake. Command: /usr/local/bin/cmake --build . --target install --config Release -- Install target: install Source directory: /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15 Working directory: =20=20=20 /wrkdirs/usr/ports/devel/py-rapidfuzz/work-py311/rapidfuzz-2.0.15/_skbuild/= freebsd-13.2-RELEASE-amd64-3.11/cmake-build Please check the install target is valid and see CMake's output for more information. *** Error code 1 Stop. make: stopped in /usr/ports/devel/py-rapidfuzz --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-271382-7788>