Fails to build with Python 3.11
thesamesam opened this issue · 2 comments
thesamesam commented
$ python3.11 --version
Python 3.11.0b1
x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -Werror=format-security -Werror=implicit-function-declaration -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -ggdb3 -Werror=format-security -Werror=implicit-function-declaration -fPIC -fno-strict-aliasing -I/usr/include/python3.11 -I/usr/include/python3.11 -c /var/tmp/portage/dev-python/snakeoil-0.9.10/work/snakeoil-0.9.10/src/snakeoil/_posix.c -o /var/tmp/portage/dev-python/snakeoil-0.9.10/work/snakeoil-0.9.10-python3_11/temp.linux-x86_64-3.11/var/tmp/portage/dev-python/snakeoil-0.9.10/work/snakeoil-0.9.10/src/snakeoil/_posix.o
x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -Werror=format-security -Werror=implicit-function-declaration -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -ggdb3 -Werror=format-security -Werror=implicit-function-declaration -fPIC -fno-strict-aliasing -I/usr/include/python3.11 -I/usr/include/python3.11 -c /var/tmp/portage/dev-python/snakeoil-0.9.10/work/snakeoil-0.9.10/src/snakeoil/_sequences.c -o /var/tmp/portage/dev-python/snakeoil-0.9.10/work/snakeoil-0.9.10-python3_11/temp.linux-x86_64-3.11/var/tmp/portage/dev-python/snakeoil-0.9.10/work/snakeoil-0.9.10/src/snakeoil/_sequences.o
/var/tmp/portage/dev-python/snakeoil-0.9.10/work/snakeoil-0.9.10/src/snakeoil/_posix.c: In function ‘__Pyx__GetException’:
/var/tmp/portage/dev-python/snakeoil-0.9.10/work/snakeoil-0.9.10/src/snakeoil/_posix.c:5026:28: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_type’
5026 | tmp_type = exc_info->exc_type;
| ^~
/var/tmp/portage/dev-python/snakeoil-0.9.10/work/snakeoil-0.9.10/src/snakeoil/_posix.c:5028:26: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_traceback’
5028 | tmp_tb = exc_info->exc_traceback;
| ^~
/var/tmp/portage/dev-python/snakeoil-0.9.10/work/snakeoil-0.9.10/src/snakeoil/_posix.c:5029:17: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_type’
5029 | exc_info->exc_type = local_type;
| ^~
/var/tmp/portage/dev-python/snakeoil-0.9.10/work/snakeoil-0.9.10/src/snakeoil/_posix.c:5031:17: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_traceback’
5031 | exc_info->exc_traceback = local_tb;
| ^~
[...]
Full log: build.log
mgorny commented
You probably need to upgrade cython.
Hello71 commented
it works if system cython is forced by rm src/snakeoil/*.c
. would be nice to see a new release with cython 0.29.28+ for python 3.11 compatibility.