This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Cython Build: '_PyErr_StackItem’ has no member named ‘exc_traceback’
Type: compile error Stage: resolved
Components: Versions: Python 3.11
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: YoSTEALTH, iritkatriel, scoder
Priority: normal Keywords:

Created on 2022-01-18 21:56 by YoSTEALTH, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (3)
msg410901 - (view) Author: (YoSTEALTH) * Date: 2022-01-18 21:56
Getting compilation error for an Cython project, since upgrade from `3.11.0a3` to `3.11.0a4`, same code.

/opt/python/3.11/bin/python3 setup.py build_ext --inplace -j18 clean --all

# 3.11.0a3
# ========
prefix                        /usr
includedir                    /usr/include
libdir                        /usr/lib
libdevdir                     /usr/lib
relativelibdir                
mandir                        /usr/man
datadir                       /usr/share
stringop_overflow             yes
array_bounds                  yes
__kernel_rwf_t                yes
__kernel_timespec             yes
open_how                      yes
statx                         yes
C++                           yes
has_ucontext                  yes
has_memfd_create              yes
liburing_nolibc               yes
CC                            gcc
CXX                           g++
Compiling src/uring.pyx because it depends on /opt/python/3.11/lib/python3.11/site-packages/Cython/Includes/libc/s
tring.pxd.
[1/1] Cythonizing src/uring.pyx
running build_ext
building 'uring._uring' extension
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Ilibs/liburing/src/include -I/opt/python/3.11/inc
lude/python3.11 -c libs/liburing/src/nolibc.c -o build/temp.linux-x86_64-3.11/libs/liburing/src/nolibc.o -Os -g0 -
include libs/liburing/config-host.h
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Ilibs/liburing/src/include -I/opt/python/3.11/inc
lude/python3.11 -c libs/liburing/src/queue.c -o build/temp.linux-x86_64-3.11/libs/liburing/src/queue.o -Os -g0 -in
clude libs/liburing/config-host.h
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Ilibs/liburing/src/include -I/opt/python/3.11/inc
lude/python3.11 -c libs/liburing/src/register.c -o build/temp.linux-x86_64-3.11/libs/liburing/src/register.o -Os -
g0 -include libs/liburing/config-host.h
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Ilibs/liburing/src/include -I/opt/python/3.11/inc
lude/python3.11 -c libs/liburing/src/setup.c -o build/temp.linux-x86_64-3.11/libs/liburing/src/setup.o -Os -g0 -in
clude libs/liburing/config-host.h
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Ilibs/liburing/src/include -I/opt/python/3.11/inc
lude/python3.11 -c src/uring.c -o build/temp.linux-x86_64-3.11/src/uring.o -Os -g0 -include libs/liburing/config-h
ost.h
gcc -pthread -shared build/temp.linux-x86_64-3.11/libs/liburing/src/nolibc.o build/temp.linux-x86_64-3.11/libs/lib
uring/src/queue.o build/temp.linux-x86_64-3.11/libs/liburing/src/register.o build/temp.linux-x86_64-3.11/libs/libu
ring/src/setup.o build/temp.linux-x86_64-3.11/src/uring.o -o build/lib.linux-x86_64-3.11/uring/_uring.cpython-311-
x86_64-linux-gnu.so
copying build/lib.linux-x86_64-3.11/uring/_uring.cpython-311-x86_64-linux-gnu.so -> uring
running clean
removing 'build/temp.linux-x86_64-3.11' (and everything under it)
removing 'build/lib.linux-x86_64-3.11' (and everything under it)
removing 'build/bdist.linux-x86_64' (and everything under it)
'build/scripts-3.11' does not exist -- can't clean it
removing 'build'


# 3.11.0a4
# ========
prefix                        /usr
includedir                    /usr/include
libdir                        /usr/lib
libdevdir                     /usr/lib
relativelibdir                
mandir                        /usr/man
datadir                       /usr/share
stringop_overflow             yes
array_bounds                  yes
__kernel_rwf_t                yes
__kernel_timespec             yes
open_how                      yes
statx                         yes
C++                           yes
has_ucontext                  yes
has_memfd_create              yes
liburing_nolibc               yes
CC                            gcc
CXX                           g++
Compiling src/uring.pyx because it depends on /opt/python/3.11/lib/python3.11/site-packages/Cython/Includes/libc/string.pxd.
[1/1] Cythonizing src/uring.pyx
running build_ext
building 'uring._uring' extension
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Ilibs/liburing/src/include -I/opt/python/3.11/include/python3.11 -c libs/liburing/src/nolibc.c -o build/temp.linux-x86_64-3.11/libs/liburing/src/nolibc.o -Os -g0 -include libs/liburing/config-host.h
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Ilibs/liburing/src/include -I/opt/python/3.11/include/python3.11 -c libs/liburing/src/queue.c -o build/temp.linux-x86_64-3.11/libs/liburing/src/queue.o -Os -g0 -include libs/liburing/config-host.h
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Ilibs/liburing/src/include -I/opt/python/3.11/include/python3.11 -c libs/liburing/src/register.c -o build/temp.linux-x86_64-3.11/libs/liburing/src/register.o -Os -g0 -include libs/liburing/config-host.h
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Ilibs/liburing/src/include -I/opt/python/3.11/include/python3.11 -c libs/liburing/src/setup.c -o build/temp.linux-x86_64-3.11/libs/liburing/src/setup.o -Os -g0 -include libs/liburing/config-host.h
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Ilibs/liburing/src/include -I/opt/python/3.11/include/python3.11 -c src/uring.c -o build/temp.linux-x86_64-3.11/src/uring.o -Os -g0 -include libs/liburing/config-host.h
src/uring.c: In function ‘__Pyx_PyErr_GetTopmostException’:                                                       
src/uring.c:53549:21: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_type’      
53549 |     while ((exc_info->exc_type == NULL || exc_info->exc_type == Py_None) &&                               
      |                     ^~                                                                                    
src/uring.c:53549:51: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_type’      
53549 |     while ((exc_info->exc_type == NULL || exc_info->exc_type == Py_None) &&                               
      |                                                   ^~                                                      
src/uring.c: In function ‘__Pyx__ExceptionSave’:                                                                  
src/uring.c:53563:21: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_type’      
53563 |     *type = exc_info->exc_type;                                                                           
      |                     ^~                                                                                    
src/uring.c:53565:19: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_traceback’ 
53565 |     *tb = exc_info->exc_traceback;                                                                        
      |                   ^~                                                                                      
src/uring.c: In function ‘__Pyx__ExceptionReset’:                                                                 
src/uring.c:53579:24: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_type’      
53579 |     tmp_type = exc_info->exc_type;                                                                        
      |                        ^~                                                                                 
src/uring.c:53581:22: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_traceback’ 
53581 |     tmp_tb = exc_info->exc_traceback;                                                                     
      |                      ^~                                                                                   
src/uring.c:53582:13: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_type’      
53582 |     exc_info->exc_type = type;                                                                            
      |             ^~                                                                                            
src/uring.c:53584:13: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_traceback’ 
53584 |     exc_info->exc_traceback = tb;                                                                         
      |             ^~                                                                                            
src/uring.c: In function ‘__Pyx__GetException’:                                                                   
src/uring.c:53641:28: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_type’      
53641 |         tmp_type = exc_info->exc_type;                                                                    
      |                            ^~                                                                             
src/uring.c:53643:26: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_traceback’ 
53643 |         tmp_tb = exc_info->exc_traceback;                                                                 
      |                          ^~                                                                               
src/uring.c:53644:17: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_type’      
53644 |         exc_info->exc_type = local_type;                                                                  
      |                 ^~                                                                                        
src/uring.c:53646:17: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_traceback’ 
53646 |         exc_info->exc_traceback = local_tb;                                                               
      |                 ^~                                                                                        
src/uring.c: In function ‘__Pyx__ExceptionSwap’:                                                                  
src/uring.c:53679:24: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_type’      
53679 |     tmp_type = exc_info->exc_type;                                                                        
      |                        ^~                                                                                 
src/uring.c:53681:22: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_traceback’ 
53681 |     tmp_tb = exc_info->exc_traceback;                                                                     
      |                      ^~                                                                                   
src/uring.c:53682:13: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_type’      
53682 |     exc_info->exc_type = *type;                                                                           
      |             ^~                                                                                            
src/uring.c:53684:13: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_traceback’ 
53684 |     exc_info->exc_traceback = *tb;                                                                        
      |             ^~                                                                                            
error: command '/usr/bin/gcc' failed with exit code 1
msg410905 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2022-01-18 22:05
This is issue45711. See Stefan’s comment there.
msg410907 - (view) Author: (YoSTEALTH) * Date: 2022-01-18 22:20
Thanks @iritkatriel will close this, seems like people are aware of this bug as working on fix it :)
History
Date User Action Args
2022-04-11 14:59:54adminsetgithub: 90586
2022-01-18 22:20:37YoSTEALTHsetstatus: open -> closed

messages: + msg410907
stage: resolved
2022-01-18 22:16:17iritkatrielsetnosy: + scoder
2022-01-18 22:05:15iritkatrielsetmessages: + msg410905
2022-01-18 22:02:18Dennis Sweeneysettitle: 3.11.0a3 vs 3.11.0a4 -> Cython Build: '_PyErr_StackItem’ has no member named ‘exc_traceback’
2022-01-18 21:59:21erlendaaslandsetnosy: + iritkatriel
2022-01-18 21:56:34YoSTEALTHcreate