Bug#1092068: swiftlang ftbfs with Python 3.13 as the default

Matthias Klose doko at debian.org
Sat Jan 4 10:22:30 GMT 2025


Package: src:swiftlang
Version: 5.9.2-1
Severity: serious
Tags: sid trixie patch
User: debian-python at lists.debian.org
Usertags: python3.13

swiftlang ftbfs with Python 3.13 as the default. It might be sufficient 
to take the python3.13.diff patch from the llvm-toolchain-17 package.

[...]
/<<PKGBUILDDIR>>/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
/<<PKGBUILDDIR>>/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp:77:10: 
error: use of undeclared identifier '_Py_IsFinalizing'; did you mean 
'Py_IsFinalizing'?
    77 |   return _Py_IsFinalizing();
       |          ^~~~~~~~~~~~~~~~
       |          Py_IsFinalizing
/usr/include/python3.13/pylifecycle.h:68:17: note: 'Py_IsFinalizing' 
declared here
    68 | PyAPI_FUNC(int) Py_IsFinalizing(void);
       |                 ^
1 error generated.
[816/1037][ 78%][1197.240s] Building CXX object 
source/Plugins/ScriptInterpreter/Python/CMakeFiles/lldbPluginScriptInterpreterPython.dir/ScriptedPythonInterface.cpp.o
[817/1037][ 78%][1200.308s] Building CXX object 
source/Plugins/ScriptInterpreter/Python/CMakeFiles/lldbPluginScriptInterpreterPython.dir/ScriptInterpreterPython.cpp.o
FAILED: 
source/Plugins/ScriptInterpreter/Python/CMakeFiles/lldbPluginScriptInterpreterPython.dir/ScriptInterpreterPython.cpp.o 

/usr/bin/clang++ -DGTEST_HAS_RTTI=0 -DHAVE_ROUND -DLLDB_ENABLE_SWIFT 
-DLLDB_PYTHON_EXE_RELATIVE_PATH=\"bin/python3\" 
-DLLDB_PYTHON_RELATIVE_LIBDIR=\"local/lib/python3.13/dist-packages\" 
-D_DEBUG -D_GLIBCXX_ASSERTIONS -D_LIBCPP_ENABLE_ASSERTIONS 
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS 
-I/<<PKGBUILDDIR>>/build/buildbot_linux/lldb-linux-x86_64/source/Plugins/ScriptInterpreter/Python 
-I/<<PKGBUILDDIR>>/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python 
-I/<<PKGBUILDDIR>>/llvm-project/lldb/include 
-I/<<PKGBUILDDIR>>/build/buildbot_linux/lldb-linux-x86_64/include 
-I/<<PKGBUILDDIR>>/llvm-project/llvm/include 
-I/<<PKGBUILDDIR>>/build/buildbot_linux/llvm-linux-x86_64/include 
-I/<<PKGBUILDDIR>>/llvm-project/clang/include 
-I/<<PKGBUILDDIR>>/build/buildbot_linux/llvm-linux-x86_64/tools/clang/include 
-I/<<PKGBUILDDIR>>/llvm-project/lldb/source 
-I/<<PKGBUILDDIR>>/build/buildbot_linux/swift-linux-x86_64/include 
-I/<<PKGBUILDDIR>>/swift/include 
-I/<<PKGBUILDDIR>>/swift/stdlib/public/SwiftShims 
-I/usr/include/python3.13 
-I/<<PKGBUILDDIR>>/llvm-project/lldb/tools/clang/include 
-I/<<PKGBUILDDIR>>/build/buildbot_linux/lldb-linux-x86_64/../clang/include 
-I/<<PKGBUILDDIR>>/build/buildbot_linux/lldb-linux-x86_64/source 
-isystem /usr/include/libxml2 -Wno-unknown-warning-option 
-Werror=unguarded-availability-new -fno-stack-protector -fPIC 
-fno-semantic-interposition -fvisibility-inlines-hidden 
-Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra 
-Wno-unused-parameter -Wwrite-strings -Wcast-qual 
-Wmissing-field-initializers -Wimplicit-fallthrough 
-Wcovered-switch-default -Wno-class-memaccess -Wno-noexcept-type 
-Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override 
-Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported 
-fdiagnostics-color -ffunction-sections -fdata-sections 
-Wno-deprecated-declarations -Wno-unknown-pragmas -Wno-strict-aliasing 
-Wno-stringop-truncation -Wno-deprecated-register -Wno-vla-extension -O3 
-DNDEBUG -std=c++17  -fno-exceptions -fno-rtti -UNDEBUG -MD -MT 
source/Plugins/ScriptInterpreter/Python/CMakeFiles/lldbPluginScriptInterpreterPython.dir/ScriptInterpreterPython.cpp.o 
-MF 
source/Plugins/ScriptInterpreter/Python/CMakeFiles/lldbPluginScriptInterpreterPython.dir/ScriptInterpreterPython.cpp.o.d 
-o 
source/Plugins/ScriptInterpreter/Python/CMakeFiles/lldbPluginScriptInterpreterPython.dir/ScriptInterpreterPython.cpp.o 
-c 
/<<PKGBUILDDIR>>/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
/<<PKGBUILDDIR>>/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp:178:9: 
error: use of undeclared identifier 'PyEval_ThreadsInitialized'
   178 |     if (PyEval_ThreadsInitialized()) {
       |         ^
1 error generated.



More information about the Pkg-llvm-team mailing list