Closed
Description
Attempting to build unicodedata2 in a docker container (aarch64/amd64). Works fine using Python 3.10.4-slim-bullseye base image. Build fails using Python 3.11.0b1-slim-bullseye base image. No other changes made to the build process except the base container.
Error is as follows:
#17 17.42 Running setup.py install for unicodedata2: started
#17 17.42 Running command Running setup.py install for unicodedata2
#17 17.73 running build_ext
#17 17.74 building 'unicodedata2' extension
#17 17.74 creating build
#17 17.74 creating build/temp.linux-aarch64-cpython-311
#17 17.74 creating build/temp.linux-aarch64-cpython-311/unicodedata2
#17 17.74 gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I./unicodedata2/ -I/usr/local/include/python3.11 -c ./unicodedata2/unicodectype.c -o build/temp.linux-aarch64-cpython-311/./unicodedata2/unicodectype.o
#17 18.07 gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I./unicodedata2/ -I/usr/local/include/python3.11 -c ./unicodedata2/unicodedata.c -o build/temp.linux-aarch64-cpython-311/./unicodedata2/unicodedata.o
#17 18.39 ./unicodedata2/unicodedata.c: In function ‘PyInit_unicodedata2’:
#17 18.39 ./unicodedata2/unicodedata.c:1362:24: error: lvalue required as left operand of assignment
#17 18.39 1362 | Py_TYPE(&UCD_Type) = &PyType_Type;
#17 18.39 | ^
#17 18.41 error: command '/usr/bin/gcc' failed with exit code 1
#17 18.43 error: subprocess-exited-with-error
Metadata
Metadata
Assignees
Labels
No labels