https://bugzilla.redhat.com/show_bug.cgi?id=2248129
Miro Hrončok <mhroncok(a)redhat.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|python-pyqt6 fails to build |python-pyqt6 fails to build
|with Python 3.13: |with Python 3.13: error:
|RecursionError: maximum |‘Py_SetProgramName’ was not
|recursion depth exceeded in |declared in this scope
|comparison |
--- Comment #2 from Miro Hrončok <mhroncok(a)redhat.com> ---
With bz2250649 mitigated, I see:
In file included from /usr/include/qt6/QtCore/qfuture.h:9,
from /usr/include/qt6/QtCore/QtCore:106,
from /usr/include/qt6/QtDesigner/QtDesignerDepends:3,
from /usr/include/qt6/QtDesigner/QtDesigner:3,
from ../../designer/pluginloader.h:28,
from ../../designer/pluginloader.cpp:24:
/usr/include/qt6/QtCore/qfutureinterface.h:472:37: warning: template-id not
allowed for constructor in C++20 [-Wtemplate-id-cdtor]
472 | explicit QFutureInterface<void>(State initialState = NoState)
| ^~~~~
/usr/include/qt6/QtCore/qfutureinterface.h:472:37: note: remove the ‘< >’
../../designer/pluginloader.cpp: In constructor
‘PyCustomWidgets::PyCustomWidgets(QObject*)’:
../../designer/pluginloader.cpp:146:17: error: ‘Py_SetProgramName’ was not
declared in this scope; did you mean ‘Py_GetProgramName’?
146 | Py_SetProgramName(venv_wc);
| ^~~~~~~~~~~~~~~~~
| Py_GetProgramName
make[1]: *** [Makefile:801: pluginloader.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Entering directory '/builddir/build/BUILD/PyQt6-6.6.1/build/designer'
g++ -c -pipe -O2 -flto=auto -ffat-lto-objects -fexceptions -g
-grecord-gcc-switches -pipe -Wall -Werror=format-security
-Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
`pkg-config --cflags dbus-python` -DQT_NO_INT128 -Wall -Wextra -D_REENTRANT
-fPIC -DPYTHON_LIB=\"libpython3.13.so\" -DQT_NO_DEBUG -DQT_PLUGIN
-DQT_DESIGNER_LIB -DQT_UIPLUGIN_LIB -DQT_OPENGLWIDGETS_LIB -DQT_WIDGETS_LIB
-DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_CORE_LIB
-DQDESIGNER_EXPORT_WIDGETS -I. -I/usr/include/python3.13 -I../../designer
-I/usr/include/qt6 -I/usr/include/qt6/QtDesigner -I/usr/include/qt6/QtUiPlugin
-I/usr/include/qt6/QtOpenGLWidgets -I/usr/include/qt6/QtWidgets
-I/usr/include/qt6/QtOpenGL -I/usr/include/qt6/QtGui -I/usr/include/qt6/QtXml
-I/usr/include/qt6/QtCore -I. -I/usr/lib64/qt6/mkspecs/linux-g++ -o
moc_pluginloader.o moc_pluginloader.cpp
make[1]: Leaving directory '/builddir/build/BUILD/PyQt6-6.6.1/build/designer'
In file included from /usr/include/qt6/QtCore/qfuture.h:9,
from /usr/include/qt6/QtCore/QtCore:106,
from /usr/include/qt6/QtDesigner/QtDesignerDepends:3,
from /usr/include/qt6/QtDesigner/QtDesigner:3,
from ../../designer/pluginloader.h:28,
from moc_pluginloader.cpp:9:
/usr/include/qt6/QtCore/qfutureinterface.h:472:37: warning: template-id not
allowed for constructor in C++20 [-Wtemplate-id-cdtor]
472 | explicit QFutureInterface<void>(State initialState = NoState)
| ^~~~~
/usr/include/qt6/QtCore/qfutureinterface.h:472:37: note: remove the ‘< >’
make: *** [Makefile:82: sub-designer-make_first-ordered] Error 2
https://docs.python.org/3.13/whatsnew/3.13.html says:
Remove the following old functions to configure the Python
initialization, deprecated in Python 3.11:
...
Py_SetProgramName(): set PyConfig.program_name instead.
https://docs.python.org/3.13/c-api/init_config.html#c.PyConfig
https://peps.python.org/pep-0587/
https://github.com/python/cpython/issues/105145
--
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2248129
Report this comment as SPAM:
https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=rep...