-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Under current Archlinux, running pip install python-bls fails at building a module with gcc:
...
Building wheels for collected packages: python-bls
Building wheel for python-bls (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [31 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-311
creating build/lib.linux-x86_64-cpython-311/bls_py
copying bls_py/threshold.py -> build/lib.linux-x86_64-cpython-311/bls_py
copying bls_py/util.py -> build/lib.linux-x86_64-cpython-311/bls_py
copying bls_py/tests.py -> build/lib.linux-x86_64-cpython-311/bls_py
copying bls_py/fields_t.py -> build/lib.linux-x86_64-cpython-311/bls_py
copying bls_py/ec.py -> build/lib.linux-x86_64-cpython-311/bls_py
copying bls_py/tdata.py -> build/lib.linux-x86_64-cpython-311/bls_py
copying bls_py/aggregation_info.py -> build/lib.linux-x86_64-cpython-311/bls_py
copying bls_py/pairing.py -> build/lib.linux-x86_64-cpython-311/bls_py
copying bls_py/keys.py -> build/lib.linux-x86_64-cpython-311/bls_py
copying bls_py/bls.py -> build/lib.linux-x86_64-cpython-311/bls_py
copying bls_py/bls12381.py -> build/lib.linux-x86_64-cpython-311/bls_py
copying bls_py/__init__.py -> build/lib.linux-x86_64-cpython-311/bls_py
copying bls_py/fields.py -> build/lib.linux-x86_64-cpython-311/bls_py
copying bls_py/signature.py -> build/lib.linux-x86_64-cpython-311/bls_py
running build_ext
building 'bls_py.fields_t_c' extension
creating build/temp.linux-x86_64-cpython-311
creating build/temp.linux-x86_64-cpython-311/extmod
creating build/temp.linux-x86_64-cpython-311/extmod/bls_py
gcc -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -fPIC -I/xxx/include -I/usr/include/python3.11 -c extmod/bls_py/fields_t_c.c -o build/temp.linux-x86_64-cpython-311/extmod/bls_py/fields_t_c.o
extmod/bls_py/fields_t_c.c: In function ‘__pyx_f_6bls_py_10fields_t_c_mpz_get_pylong_large’:
extmod/bls_py/fields_t_c.c:2316:23: error: lvalue required as unary ‘&’ operand
2316 | __pyx_v_sizeptr = &Py_SIZE(((PyObject *)__pyx_v_L));
| ^
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
...
Local Python version is 3.11.8, GCC is 13.2.1.
Metadata
Metadata
Assignees
Labels
No labels