Martin Werner created an issue: 
https://gitlab.rtems.org/rtems/prequal/rtems-central/-/issues/7



## Summary
Running `make env` fails on Debian 13 using python 3.13 with the following 
output:

```
Building wheels for collected packages: typed-ast                               
                                                                                
                                                                                
                                                                                
                                                            
  Building wheel for typed-ast (pyproject.toml) ... error                       
                                                                                
                              
  error: subprocess-exited-with-error                                           
                                                                                
                                                                                
                                                                                
                                                            
                                                                                
                                                                                
                              
  × Building wheel for typed-ast (pyproject.toml) did not run successfully.     
                                                                                
                                                                                
                                                                                
                                                            
  │ exit code: 1                                                                
                                                                                
                              
  ╰─> [26 lines of output]                                                      
                                                                                
                                                                                
                                                                                
                                                            
      running bdist_wheel                                                       
                                                                                
                              
      running build                                                             
                                                                                
                                                                                
                                                                                
                                                            
      running build_py                                                          
                                                                                
                              
      creating build/lib.linux-x86_64-cpython-313/typed_ast                     
                                                                                
                                                                                
                                                                                
                                                            
      copying typed_ast/conversions.py -> 
build/lib.linux-x86_64-cpython-313/typed_ast                                    
                                                                    
      copying typed_ast/ast3.py -> build/lib.linux-x86_64-cpython-313/typed_ast 
                                                                                
                                                                                
                                                                                
                                                            
      copying typed_ast/ast27.py -> 
build/lib.linux-x86_64-cpython-313/typed_ast                                    
                                                                          
      copying typed_ast/__init__.py -> 
build/lib.linux-x86_64-cpython-313/typed_ast                                    
                                                                                
                                                                                
                                                                                
                     
      creating build/lib.linux-x86_64-cpython-313/typed_ast/tests               
                                                                                
                              
      copying ast3/tests/test_basics.py -> 
build/lib.linux-x86_64-cpython-313/typed_ast/tests                              
                                                                                
                                                                                
                                                                                
                 
      running build_ext                                                         
                                                                                
                                                                                
                                                                                
                                                            
      building '_ast27' extension                                               
                                                                                
                                                                                
                                                                                
                                                            
      creating build/temp.linux-x86_64-cpython-313/ast27/Custom                 
                                                                                
                              
      creating build/temp.linux-x86_64-cpython-313/ast27/Parser                 
                                                                                
                                                                                
                                                                                
                                                            
      creating build/temp.linux-x86_64-cpython-313/ast27/Python                 
                                                                                
                              
      x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 
-Wall -fPIC -Iast27/Include -I/home/arand/utv/rtems-central/env/include 
-I/usr/include/python3.13 -c ast27/Custom/typed_ast.c -o 
build/temp.linux-x86_64-cpython-313/ast27/Custom/typed_ast.o                    
                                                                                
            
      In file included from /usr/include/python3.13/pyport.h:358,               
                                                                                
                              
                       from /usr/include/python3.13/Python.h:63,                
                                                                                
                                                                                
                                                                                
                                                            
                       from ast27/Custom/typed_ast.c:1:                         
                                                                                
                                                                                
                                                                                
                                                            
      ast27/Custom/../Include/compile.h:12:12: error: unknown type name 
‘PyFutureFeatures’                                                              
                                                                                
                                                                                
                                                                    
         12 | PyAPI_FUNC(PyFutureFeatures *) PyFuture_FromAST(struct _mod *, 
const char *);                                                                  
                                 
            |            ^~~~~~~~~~~~~~~~                                       
                                                                                
                                                                                
                                                                                
                                                            
      /usr/include/python3.13/exports.h:94:53: note: in definition of macro 
‘PyAPI_FUNC’                                                                    
                                  
         94 | #       define PyAPI_FUNC(RTYPE) Py_EXPORTED_SYMBOL RTYPE         
                                                                                
                                                                                
                                                                                
                                                            
            |                                                     ^~~~~         
                                                                                
                              
      error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1    
                                                                                
                                                                                
                                                                                
                                                            
      [end of output]                                                           
                                                                                
                                                                                
                                                                                
                                                            
                                                                                
                                                                                
                                                                                
                                                                                
                                                            
  note: This error originates from a subprocess, and is likely not a problem 
with pip.                                                                       
                                 
  ERROR: Failed building wheel for typed-ast                                    
                                                                                
                                                                                
                                                                                
                                                            
Failed to build typed-ast                                                       
                                                                                
                                                                                
                                                                                
                                                            
error: failed-wheel-build-for-install                                           
                                                                                
                                                                                
                                                                                
                                                            
                                                                                
                                                                                
                              
× Failed to build installable wheels for some pyproject.toml based projects     
                                                                                
                                                                                
                                                                                
                                                            
╰─> typed-ast                                                                   
                                                                                
                              
make: *** [Makefile:32: env] Error 1                                  
```

Simply removing typed-ast from requirements.txt and re-running seems to resolve 
the issue. I'm not sure why typded-ast is a requirement here? At least `make 
format` and `./spec2modules.py` seems to work fine without it.

typed-ast seems to be unmaintained and deprecated according to 
https://github.com/python/typed_ast/issues/179

Can it just be removed from `requirements.txt` or is it actually used?

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/prequal/rtems-central/-/issues/7
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to