Source: psycopg2
Version: 2.9.9-1
Severity: normal
User: debian-pyt...@lists.debian.org
Usertags: python3.13

This package failed build from source when test-built against a version of
python3-defaults that incudes 3.13 as a supported version.

To reproduce this issue, build against python3-defaults (python3-all-dev etc.)
from Debian experimental.

What's new in Python 3.13:
https://docs.python.org/3.13/whatsnew/3.13.html

Log snippet:

aarch64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall 
-g -O2 -Werror
=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -
fstack-clash-protection -Wformat -Werror=format-security 
-mbranch-protection=standard -Wdate-t
ime -D_FORTIFY_SOURCE=2 -fPIC "-DPSYCOPG_VERSION=2.9.9 (dt dec pq3 ext lo64)" 
-DPSYCOPG_DEBUG=
1 -DPG_VERSION_NUM=170000 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 
-I/usr/include/python3.13 -I. -I/usr
/include/postgresql -I/usr/include/postgresql/17/server -I/usr/include/libxml2 
-c psycopg/util
s.c -o build/temp.linux-aarch64-cpython-313/psycopg/utils.o 
-Wdeclaration-after-statement
psycopg/utils.c: In function ‘psyco_is_main_interp’:
psycopg/utils.c:397:12: error: implicit declaration of function 
‘_PyInterpreterState_Get’; did you mean ‘PyInterpreterState_Get’? 
[-Wimplicit-function-declaration]
  397 |     return _PyInterpreterState_Get() == PyInterpreterState_Main();
      |            ^~~~~~~~~~~~~~~~~~~~~~~
      |            PyInterpreterState_Get
psycopg/utils.c:397:38: warning: comparison between pointer and integer
  397 |     return _PyInterpreterState_Get() == PyInterpreterState_Main();
      |                                      ^~
error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1
E: pybuild pybuild:389: build: plugin distutils failed with: exit code=1: 
/usr/bin/python3.13 setup.py build 
...
make[1]: *** [debian/rules:14: override_dh_auto_build-indep] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:11: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2024-09-11T14:57:35Z

If required, the full build log is available here (for the next 30 days):
https://debusine.debian.net/artifact/700686/

This bug has been filed at "normal" severity, as we haven't started the
transition to add 3.13 as a supported version, yet. This will be raised to RC
as soon as that happens, hopefully well before trixie.

Thanks,

Stefano

Reply via email to