Building from PyPI source wheel in Windows-2022 github actions runner fails due to undeclared identifiers

21 views
Skip to first unread message

Vitor Guidi

unread,
May 14, 2024, 10:46:57 AMMay 14
to Protocol Buffers
Hello, folks.

I am attempting to build a python binary wheel for protobuf from the PyPi 4.25.3 source wheel under github actions, in this workflow. The builds broke due to missing identifiers under python/identifier.c:

```
 C:\Users\runneradmin\AppData\Local\Temp\cibw-sdist-m44pjj69\protobuf-4.25.3\upb/message/internal/array.h(123): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
    C:\Users\runneradmin\AppData\Local\Temp\cibw-sdist-m44pjj69\protobuf-4.25.3\upb/message/accessors.h(316): warning C4267: 'function': conversion from 'size_t' to 'int', possible loss of data
    python\descriptor.c(48): error C2059: syntax error: ';'
    python\descriptor.c(53): error C2059: syntax error: '}'
    python\descriptor.c(56): error C2065: 'PyUpb_DescriptorBase': undeclared identifier
    python\descriptor.c(56): error C2065: 'base': undeclared identifier
```
Is there any specific procedure for building windows from source, or any assumptions about the environment that should be respected? I ran out of ideas on how to troubleshoot this, any help is welcome.

Python version: 3.9.13
Github actions image: windows-2022
Reply all
Reply to author
Forward
0 new messages